473,385 Members | 1,279 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

PHP Include - external files

Hi

Any idea why my code doesnt work I need to pull ind ate from numerous other servers ...but the following code doesnt work
Expand|Select|Wrap|Line Numbers
  1. <?php include 'http://server1/tmp/test.php?';?>
  2.  
or
Expand|Select|Wrap|Line Numbers
  1. <?php include "//server1/test/test.php"; ?>
  2.  
if you take the urls they open up on their own in IE7 but in the php incldue they dont

the php file just includes a stabdard html table for now

any ideas
Cheers
Oct 15 '07 #1
2 4369
Markus
6,050 Expert 4TB
Hi

Any idea why my code doesnt work I need to pull ind ate from numerous other servers ...but the following code doesnt work

<?php include 'http://server1/tmp/test.php?';?>

or

<?php include "//server1/test/test.php"; ?>

if you take the urls they open up on their own in IE7 but in the php incldue they dont

the php file just includes a stabdard html table for now

any ideas
Cheers
Expand|Select|Wrap|Line Numbers
  1. <?php include("filename.php");?> // that should work... but maybe you know that?
  2.  
  3. //remember to wrap it in ( file ) not sure whether you have to but i think you do. Im only 17 ;)
  4.  
Oct 15 '07 #2
pbmods
5,821 Expert 4TB
Heya, crashpolo. Welcome to TSDN!

Please use CODE tags when posting source code:

[CODE=php]
PHP code goes here.
[/CODE]

Markus, actually include does not require parenthesis, because it is a language construct and not a function.

Crashpolo, what do you get when you turn on debug messages?
Oct 16 '07 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

11
by: Marc Ferry | last post by:
I already posted this mail in comp.sys.hp and comp.sys.hp.hpux but had no response. As this problem might be present on other OSes than HP-UX 10.20, I crosspost it here, in the hope of getting an...
1
by: Piet | last post by:
Hi there. I have started to work with CSS. For formatting HTML files, the CSS commands can either be be present in the same HTML file via the style-tag <style type="text/css"> <!-- tagname {}...
28
by: Ramesh | last post by:
Hi, I am currently maintaining a legacy code with a very very large code base. I am facing problems with C/C++ files having a lot of un-necessary #includes. On an average every C/C++ file has...
18
by: Exits Funnel | last post by:
Hello, I'm a little confused about where I should include header files and was wondering whether there was some convention. Imagine I've written a class foo and put the definition in foo.h and...
3
by: Juergen Stein | last post by:
Hi Group, I couldn't find an answer on this with Google, so let me test you :) I've a fairly complex WebApp, and I put most of the JS code in independent external .js files. One of these...
6
by: atv | last post by:
Alright, i have some questions concerning include files en global variables.I hope someone is willing to answer these. 1).Why is it that if i define a global variable in a file, say main.c, and...
44
by: Neil Cerutti | last post by:
In Rob Pike's style guide he urges the following: Simple rule: include files should never include include files. If instead they state (in comments or implicitly) what files they need...
11
by: Duncan Winn | last post by:
I would like to use CStringArray, but when I try to include afxcol.h my compiler (VS.NET) complains that... WINDOWS.H already included. MFC apps must not #include <windows.h> Any...
22
by: maxwell | last post by:
I'm having a problem using the XML "include" mechanism, which I think has to do with namespaces. I have an XML file that has a lot of repetition--a sequence of elements that appear multiple...
3
by: vippstar | last post by:
Is this a valid implementation of stdio.h? -- stdio.h -- #ifndef __STDIO_H #define __STDIO_H /* all the necessary declarations etc */ void __dummy(void); void __dummy(void) { return;...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.