|
|
|||||||||
|
|||||||||
|
|||||||||
| |
|||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
|
|
Stop making mediocre tutorials.The best tutorials are video! Camtasia Studio makes it easy to create engaging, buzz-building screen videos at any size, in any popular format. Download the free trial!
|
|
#1
|
|||
|
|||
|
Hi guys..
I've tried anything... OK, almost anything, and I didn't manged to this right... I've written this code: <?php $fd=@fopen($my_file,"r"); if ($fd==FALSE) { echo "Error: can't open $my_file\n"; } else { fscanf($fd,"%s %s",$var1,$var2); fclose($fd); } Bla bla, yada yada yada Bla bla, yada yada yada Bla bla, yada yada yada Bla bla, yada yada yada ?> each time when I try to enter a URL to a file: http://www.my-site.com/myscript.php?my_file=http://www.geocities.com/anything/anything.txt I get the error message:"Error: can't open http://www.geocities.com/anything/anything.txt I'll appreciate any comments.. thanx anything |
|
#2
|
|||
|
|||
|
BTW - I forgot to say that the script runs on a UNIX system
BTW - I forgot to say that the script runs on a UNIX system
|
|
#3
|
||||
|
||||
|
Chances are that your server's security settings are such that you can't open remote files. Check the docs on fopen() at php.net for details.
__________________
Please don't PM me asking for solutions outside the scope of a thread. Keeping all responses in a thread stands to help others who come along later, which is after all what this forum's all about. |
![]() |
| Viewing: Dev Articles Community Forums > Programming > PHP Development > Please HELP me!! |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|