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!");

[PHP] problem with file download konqueror-internet explorer

2005-05-16 Thread cima
hi all, i have the following code in a script whereby i send the filename to be downloaded. there is something that´s not working properly depending on the web browser (and probably the Operating system). now im working on php4,postrgesql,apache2 an mandrake 10 with Konqueror as my web browser. t

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

[PHP] problem with file upload script

2004-09-27 Thread AMC
Hi, 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 http://schemas.microsoft.com/intellisense/ie5";> Browse for file to upload: -- PHP General Mailing List (http://www.php.net/)

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 (?

[PHP] Problem with file()

2002-04-16 Thread Zambra - Michael
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 (??). I'd appreciate any advice.

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

[PHP] problem with file writing

2002-03-16 Thread Ben Waldher
I'm having some trouble writing data to a file, when I use this code it works fine: But several problems with this occur: First of all, it tries to open template.txt1 instead of template.txt. Second of all, some letters written to news.txt become a 1 for some odd reason. I don't know why. I

[PHP] Problem with file permissions within my PHP document when running on an Apache web server

2001-09-25 Thread Jack A.
I'm having a problem with file permissions within my PHP document when running on an Apache web server. When accessing a perl script or an executable from the cgi-bin directory the web server runs the script as the correct user and group id. However then a PHP document is accessed within the sam

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

[PHP] problem with file upload

2001-01-19 Thread John LYC
hi, i have a situation where i need to upload 3 img file within an array that is within another array. 2 di-array i have no problem with only variable type and value but its not working with type="file". here's my code "; //this is working print ""; //this is not } } ?> i can get