Jump to content

[SOLVED] Pulling data from another website


cliftonbazaar

Recommended Posts

I run multiple websites and all the privacy policies are the same.

 

When they were running in ASP I knew how to make one text file and display it on each website - but I don't know how to do it in PHP.

I have tried google but don't actually know how to ask the question :(

 

The code I have at the moment is

<?PHP INCLUDE ("http://www.cliftonbazaar.com/default/addurl.php"); ?>

but it doesn't display anything.

The addurl.php page that it is trying to include is full of html code.

You might want to use a relative path instead of an absolute path.

From the PHP file making the request use '../' to move one folder up and using that way navigate to the file you're trying to include.

 

That way if you move your PHP application to another computer (say linux.. which does not have a C drive) your script will still function.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.