GIDForums  

Go Back   GIDForums > Computer Programming Forums > MySQL / PHP Forum
User Name
Password
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

 
 
Thread Tools Search this Thread Rate Thread
  #1  
Old 24-Mar-2003, 04:22
JdS's Avatar
JdS JdS is offline
Senior Member
 
Join Date: Aug 2001
Location: KUL, Malaysia
Posts: 3,371
JdS will become famous soon enough

gzwrite(): supplied argument is not a valid stream resource in


When my web host recently upgraded PHP to the latest version, i.e. PHP 4.3.1, one of my scripts started to fail, warning :

gzwrite(): supplied argument is not a valid stream resource in....

After numerous tests, I figured out a few things:
  1. the problem is gzopen() and not gzwrite().
  2. $gp = gzopen( '/folder/logs.gz', 'wb' ); or $gp = gzopen( '/folder/logs.gz', 'rb' ); works fine but not $gp = gzopen( '/folder/logs.gz', 'ab' );

This is a bug... http://bugs.php.net/bug.php?id=21304
  #2  
Old 24-Mar-2003, 06:31
jrobbio's Avatar
jrobbio jrobbio is offline
Regular Member
 
Join Date: Jan 2003
Location: Loughborough, England
Posts: 840
jrobbio will become famous soon enough
Did you find a way round it?
  #3  
Old 24-Mar-2003, 07:57
JdS's Avatar
JdS JdS is offline
Senior Member
 
Join Date: Aug 2001
Location: KUL, Malaysia
Posts: 3,371
JdS will become famous soon enough
Unfortunately no and I am too busy to think up a solution so I re-coded the script to use regular fopen() till the next version is available.
 
 

Recent GIDBlogWelcome to Baghdad by crystalattice

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump

Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The

All times are GMT -6. The time now is 01:48.


vBulletin, Copyright © 2000 - 2008, Jelsoft Enterprises Ltd.