Re: [PHP] Problem with file reading

2007-01-05 Thread Roman Neuhauser
# [EMAIL PROTECTED] / 2007-01-05 17:40:49 +: > Using mod_php with Apache will make the current directory the directory > that contains the script being requested. I am assuming that the OP is > trying to access the file from the script that is being requested and > not an included file in a

Re: [PHP] Problem with file reading

2007-01-05 Thread Stut
Roman Neuhauser wrote: # [EMAIL PROTECTED] / 2007-01-05 17:17:46 +: Roman Neuhauser wrote: # [EMAIL PROTECTED] / 2007-01-05 16:34:41 +: Delta Storm wrote: I'm a beginner and i'm still learning PHP and I got a problem: $file = "http://localhost/test_folde

Re: [PHP] Problem with file reading

2007-01-05 Thread Roman Neuhauser
# [EMAIL PROTECTED] / 2007-01-05 17:17:46 +: > Roman Neuhauser wrote: > ># [EMAIL PROTECTED] / 2007-01-05 16:34:41 +: > >>Delta Storm wrote: > >>>I'm a beginner and i'm still learning PHP and I got a problem: > >>> > >>> $file = "http://localhost/test_folder/test1.txt";; //I have >

Re: [PHP] Problem with file reading

2007-01-05 Thread Stut
Roman Neuhauser wrote: # [EMAIL PROTECTED] / 2007-01-05 16:34:41 +: Delta Storm wrote: I'm a beginner and i'm still learning PHP and I got a problem: $file = "http://localhost/test_folder/test1.txt";; //I have also tried "test_folder/test1.txt" and "text1.txt"

Re: [PHP] Problem with file reading

2007-01-05 Thread Roman Neuhauser
# [EMAIL PROTECTED] / 2007-01-05 16:34:41 +: > Delta Storm wrote: > >I'm a beginner and i'm still learning PHP and I got a problem: > > > >$file = "http://localhost/test_folder/test1.txt";; //I have > >also tried "test_folder/test1.txt" and "text1.txt" > > > >$fh = fop

Re: [PHP] Problem with file reading

2007-01-05 Thread Stut
Delta Storm wrote: I'm a beginner and i'm still learning PHP and I got a problem: $file = "http://localhost/test_folder/test1.txt";; //I have also tried "test_folder/test1.txt" and "text1.txt" $fh = fopen($file, "r") or die("Could not open file!"); $data = fre

[PHP] Problem with file reading

2007-01-05 Thread Delta Storm
Hi, I'm a beginner and i'm still learning PHP and I got a problem: $file = "http://localhost/test_folder/test1.txt";; //I have also tried "test_folder/test1.txt" and "text1.txt" $fh = fopen($file, "r") or die("Could not open file!");