[PHP] fopen problems

2005-03-24 Thread AJ Lemke
Hello all, I have an install of php on a Red Hat Ent. server that is giving me fits. I have been trying to use the fopen command to retreive files from external sites and have been getting this error: Warning: fopen(http://us3.php.net/images/php.gif): failed to open stream: HTTP request failed! 

Re: [PHP] fopen() Problems

2004-02-06 Thread Jason Wong
On Saturday 07 February 2004 07:08, [EMAIL PROTECTED] wrote: > I am using the below code (kind of sloppy..). I have tried for fopen r+, > w, and w+, but no matter what I do, the file is always truncated, and > previously entered data is erased. I have been unable to fix this. Assuming that you'r

[PHP] fopen() Problems

2004-02-06 Thread rabbit
I am using the below code (kind of sloppy..). I have tried for fopen r+, w, and w+, but no matter what I do, the file is always truncated, and previously entered data is erased. I have been unable to fix this. '; $d1 = date("l dS of F Y h:i:s A"); $divclose = ''; $some = " $divhead "; $some1 =

[PHP] fopen() problems :-(

2002-12-04 Thread Hellkeeper
hi all :)) i have a problem with fopen() 1) i open the connection to the server $fp = fsockopen ("www.testserver.at", 80, &$errno, &$errstr, 30); 2) i make the fputs() fputs ($fp, 'GET /cgi-bin/portal/frameset.jsp HTTP/1.1 Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, application/