Jump to content

[SOLVED] PHP get data from website


EagerWolf

Recommended Posts

The output of the code above will be:

 

This is a test file with test text.

 

Only if you happen to have a file named test.txt with the text 'This is a test file with test text.' in the same folder as the php script. Personally, i dont  ;)

 

The output of the code above will be:

 

This is a test file with test text.

 

Only if you happen to have a file named test.txt with the text 'This is a test file with test text.' in the same folder as the php script. Personally, i dont  ;)

 

 

Oops, I sort of misunderstood him lol. Your right.

 

file_get_contents("http://www.site.com/index.html"); 

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.