Index: [Article Count Order] [Thread]

Date:  Mon, 26 Jan 2009 12:07:39 -0600
From:  "Gerald Waugh" <gwaugh (at mark) frontstreetnetworks.com>
Subject:  [coba-e:14878] Re: upgrade issue  php4.x to 5.x
To:  <coba-e (at mark) bluequartz.org>
Message-Id:  <88F2359B0D1C4DA3B56D961405DE8C6B@systemax>
In-Reply-To:  <F37FA228691A4A848B594E1D7F6A2227@OfficeKen>
X-Mail-Count: 14878

Ken Marcus wrote Monday, January 26, 2009 11:50 AM
> Gerald Waugh wrote Monday, January 26, 2009 8:05 AM
> 
> > We upgraded php4.x to 5.x
> > Now this issue.
> > See;
> >
> > 
> http://www.mezzocammin.com/iambic.php?vol=2008>
&iss=2&cat=emily&page=em
> > il
> > y
> >
> > relevant lines below.
> > 440 $fh = fopen("http://www.bartleby.com/113/".$pageNum.".html",
> > "r");
> > 441 while (!feof($fh)) {
> > 442 $buffer = fgets($fh, 4096);
> > 443 $content .= " zzz " . $buffer;
> > 444
> > 445 }
> > 446 fclose($fh);
> > Any ideas why this might occur?
> > --
> > Gerald
> >
> 
> Gerald
> 
> In your php.ini there is an option
> allow_url_fopen = On

Looks like that was the default, as it is "On"

> You could turn that on.
> 
> But a better solution would be to just change the script to 
> include the file 
> from a directory location like 
> fopen("/home/sites/www.bartleby.com/113/".$pageNum.".html",
> 
Will try that, i'm not a php expert, my friend is trying to get the
script to run.
He claims it was OK till we did the upgrade.

Thanks for the response,
Gerald