Hey
I am trying to use Fopen() for using http instead of the old <? include(http://site.com/updates.php); ?> however I dont get any errors but it doesnt diplay at all and I am using this for the line of code...
<?php $file = fopen("http://www.ffgenesis.com/updates.php","r"); ?>
Its just blank and no php error. How do i get it to be displayed on screen cause I am terribly confused.
that's because fopen returns a "file pointer resource." You have to use functions liek fread(), etc. to actually read the file and display the contents.
If you want to just get the file all into a string, try file_get_contents().
file_get_contents() dont work there blocked when it comes to http url includes on my server.
Dude, I'm posting on your other thread! Go read it.