Jump to content


Photo

fp is not valid PHP


  • This topic is locked This topic is locked
No replies to this topic

#1 Guest(old)

Guest(old)

    Junior Member

  • Members
  • 312 posts

Posted 24 November 2002 - 01:15 AM

Hi,
I pretty much cut and pasted the php code added my MySQL bit where needed, but I am getting errors related to the fp.
line 17: $fp = fsockopen ("www.paypal.com", 80, $errno, $errstr, 30);

================Warnings=================
Warning: feof(): 2 is not a valid File-Handle resource in /home/javajim/sonlightdevelopment-www/cartLite/ppAccept.php on line 42

Warning: fgets(): 2 is not a valid File-Handle resource in /home/javajim/sonlightdevelopment-www/cartLite/ppAccept.php on line 43

Warning: fclose(): 2 is not a valid File-Handle resource in /home/javajim/sonlightdevelopment-www/cartLite/ppAccept.php on line 66

==============================================

line 42: while (!feof($fp)) {
line 43: $res = fgets ($fp, 1024);
line 66: fclose ($fp);


I am stumped HELP!
Thanks in advance!
James




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users