Date: 08/31/01
- Next message: Paul Procacci: "[PHP] Re: passing variables between scripts?"
- Previous message: Kunal Jhunjhunwala: "[PHP] Getting links from html page"
- In reply to: speedboy: "Re: [PHP] Serious Fopen Problems - not newbie :)"
- Next in thread: Philip Murray: "Re: [PHP] Serious Fopen Problems - not newbie :)"
- Reply: Philip Murray: "Re: [PHP] Serious Fopen Problems - not newbie :)"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
This is a snippet from my code.
$FILE = "http://www.somehost.com";
$fp = fopen($FILE, "r");
if(!$fp){
print("Somethings screwy");
}
else{
do stuff
}
Any suggestions?
Paul
Speedboy wrote:
> > I'm sure http://www.php.net exists. :)
>
> No, what my sentence meant was you're trying to do some operations on a
> mis-typed file descripter?
>
> $fp = fopen...
> fputs($fp2...
> ^- There should be no 2.
>
> Possibly something like that?
>
> > > > > with fopen(). Everytime I try to use fopen, I get some weird error
> > > > > messages. If I do fopen("http://www.php.net", "r") - I get this error
> > > > > message: Undefined error:
> > > > > If I try doing
> > > > > fopen("http://www.somehost.com/~myname/somefile.php?var=value", "r") - I
> > > > > get this message: Bad file descriptor
> > >
> > > You're trying to do operations on a file descripter that doesn't exist?
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-general-unsubscribe <email protected> For additional commands, e-mail: php-general-help <email protected> To contact the list administrators, e-mail: php-list-admin <email protected>
- Next message: Paul Procacci: "[PHP] Re: passing variables between scripts?"
- Previous message: Kunal Jhunjhunwala: "[PHP] Getting links from html page"
- In reply to: speedboy: "Re: [PHP] Serious Fopen Problems - not newbie :)"
- Next in thread: Philip Murray: "Re: [PHP] Serious Fopen Problems - not newbie :)"
- Reply: Philip Murray: "Re: [PHP] Serious Fopen Problems - not newbie :)"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

