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

RE: [PHP] problem with file upload script

2004-09-27 Thread Jay Blanchard
[snip] Here is a script I'm using to upload files. Can anyone see anything wrong with it? No file is uploaded when I click the upload button [/snip] Start here http://us4.php.net/manual/en/features.file-upload.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://ww

Re: [PHP] Problem with file()

2002-04-16 Thread Justin Blake
Zambra - Michael wrote: > > What kind of line ending does the file() function include in the array > elements. I'm having problem with file() combined with implode() when > reading in complete HTML files in a Windows environment. After parsing these > resulting strings I get tons of white lines (?

Re: [PHP] problem with file writing

2002-03-16 Thread Jason Wong
On Sunday 17 March 2002 12:53, Ben Waldher wrote: > I'm having some trouble writing data to a file, when I use this code it > works fine: > > $file = fopen("template.txt", "w"); > > fwrite ($file, $temp); > > fclose ($file); > > ?> > > But several problems with this occur: > > > $stuff = include

Re: [PHP] problem with file upload

2001-01-19 Thread Ignacio Vazquez-Abrams
On Fri, 19 Jan 2001, Richard Lynch wrote: > > > for ($i=0 ; $i < 4 ; $i++) > > { > > file://do something > > > > for ($k=0 ; $k < 3 ; $k++) > >{ > > print " > value=\"".$K."\" >"; file://this is working > > print ""; file://this > is > > not > >} > > } > > For FOR

Re: [PHP] problem with file upload

2001-01-19 Thread Richard Lynch
> for ($i=0 ; $i < 4 ; $i++) > { > file://do something > > for ($k=0 ; $k < 3 ; $k++) >{ > print " value=\"".$K."\" >"; file://this is working > print ""; file://this is > not >} > } For FORMs, files as arrays were added in later, and then 2-D arrays came after th