RE: [PHP] fopen problem

2005-06-24 Thread Shaw, Chris - Accenture
Are you using the a or a+ modes on fopen, because I have a sneaky feeling the file doesn't exist. -Original Message- From: Ross [mailto:[EMAIL PROTECTED] Sent: 24 June 2005 00:33 To: php-general@lists.php.net Subject: [PHP] fopen problem * This e

[PHP] fopen problem

2005-06-23 Thread Ross
I have a bit of a problem when using fopen, fwrite and fclose locally I get the flowing warnings Warning: fopen(counterlog.txt) [function.fopen]: failed to open stream: Permission denied in c:\Inetpub\wwwroot\pillars\index.php on line 30 Warning: fwrite(): supplied argument is not a valid

Re: [PHP] fopen problem

2005-06-23 Thread Esteamedpw
can you show the code? did you chmod the files?

Re: [PHP] fopen problem

2005-06-23 Thread Richard Lynch
On Thu, June 23, 2005 4:33 pm, Ross said: Warning: fopen(counterlog.txt) [function.fopen]: failed to open stream: Permission denied in c:\Inetpub\wwwroot\pillars\index.php on line 30 The PHP user does *NOT* have permission to open the counterlog.txt file. Exactly *HOW* you change permissions

[PHP] fopen problem using ftp

2005-02-15 Thread Giulio
HI all, I have a script that uses fopen to acces for read a file using ftp: $filepointer = fopen($address,'r'); having $address string formed this way: $address = ftp:/ /.$FTPuser.:.$FTPpassword.@.$FTPserver./.$FileFolder./.$FileNa me; This script always worked for me, it has now stopped

Re: [PHP] fopen problem using ftp

2005-02-15 Thread Richard Lynch
Giulio wrote: HI all, I have a script that uses fopen to acces for read a file using ftp: $filepointer = fopen($address,'r'); having $address string formed this way: $address = ftp:/ /.$FTPuser.:.$FTPpassword.@.$FTPserver./.$FileFolder./.$FileNa me; You really don't need all those '.'

Re: [PHP] fopen problem using ftp

2005-02-15 Thread The Disguised Jedi
Why not use the built in FTP functions instead of fopen? us2.php.net/ftp Those should be able to handle any of the address problems you have, seeing as they don't use the ftp://username:[EMAIL PROTECTED] syntax, they open a connection and work with the FTP system. -- The Disguised Jedi [EMAIL

Re: [PHP] fopen problem, 5 line script

2004-09-16 Thread Chris Dowell
: Wednesday, September 15, 2004 10:17 AM To: php php Subject: Re: [PHP] fopen problem, 5 line script * Thus wrote Mag: Hi, Can someone tell me what I am doing wrong here please? ?php $fileptr = fopen(http://www.google.com/index.html,r;); $contents = fread($fileptr, filesize($fileptr

[PHP] fopen problem, 5 line script

2004-09-15 Thread Mag
Hi, Can someone tell me what I am doing wrong here please? ?php $fileptr = fopen(http://www.google.com/index.html,r;); $contents = fread($fileptr, filesize($fileptr)); if(strstr($contents, href=\/froogle?hl=entab=wf\)) { $result = 1;}else{ $result = 2;} echo $result; ? This is the error I

Re: [PHP] fopen problem, 5 line script

2004-09-15 Thread Mark
--- Mag [EMAIL PROTECTED] wrote: Hi, Can someone tell me what I am doing wrong here please? ?php $fileptr = fopen(http://www.google.com/index.html,r;); $contents = fread($fileptr, filesize($fileptr)); http://us2.php.net/filesize int filesize ( string filename)

Re: [PHP] fopen problem, 5 line script

2004-09-15 Thread Curt Zirzow
* Thus wrote Mag: Hi, Can someone tell me what I am doing wrong here please? ?php $fileptr = fopen(http://www.google.com/index.html,r;); $contents = fread($fileptr, filesize($fileptr)); ... This is the error I get: Warning: filesize(): Stat failed for Resource id #1 (errno=2 - No

RE: [PHP] fopen problem, 5 line script

2004-09-15 Thread Vail, Warren
I thought filesize required the file name, and not the fileptr??? Warren Vail -Original Message- From: Curt Zirzow [mailto:[EMAIL PROTECTED] Sent: Wednesday, September 15, 2004 10:17 AM To: php php Subject: Re: [PHP] fopen problem, 5 line script * Thus wrote Mag: Hi, Can someone

Re: [PHP] fopen problem, 5 line script

2004-09-15 Thread Mag
--- Curt Zirzow [EMAIL PROTECTED] wrote: * Thus wrote Mag: Hi, Can someone tell me what I am doing wrong here please? ?php $fileptr = fopen(http://www.google.com/index.html,r;); $contents = fread($fileptr, filesize($fileptr)); ... This is the error I get: Warning:

Re: [PHP] fopen problem, 5 line script [SOLVED!]

2004-09-15 Thread Mag
Got it, 'case anybody else needs this: $page = file_get_contents('http://www.google.se/index.html'); if(strstr($page, 'href=/imghp?hl=svtab=wiie=UTF-8')) { $resultt = 1; } else {

[PHP] fopen problem

2003-02-08 Thread Jeff Schwartz
I'm having trouble with a basic file write and can't figure out why. It must have something to do with the program the code is in because if I run that same code as a separate program, as the same user, and on the same directory, it works fine. The program is listening on a port with:

[PHP] fopen problem... maybe?

2001-02-20 Thread Ben Weinberger
Hi~ We're working on a page located at http://www.manageasy.com/request_offer.php3. The page comes up with a bunch of errors, and we don't know why-- the page worked on our old server, and we didn't change anything from there... we think it might be a permissions issue on the new server.

Re: [PHP] fopen problem... maybe?

2001-02-20 Thread David Robley
On Wed, 21 Feb 2001 15:23, Ben Weinberger wrote: Hi~ We're working on a page located at http://www.manageasy.com/request_offer.php3. The page comes up with a bunch of errors, and we don't know why-- the page worked on our old server, and we didn't change anything from there... we think it