[PHP] ftp_get
How exactly does ftp_get work? I tried it several times, but it always said something like Warning: error opening /web/destinationfile.html in .scriptlocation.. on line 38 line 38 has: ftp_get($conn_id, $destfile, $remotefile, FTP_BINARY); Can someone please help me with this. -Maarten
Re: [PHP] ftp_get
The user i use to login has full permissions When i login with an ordinary ftp client using that user, then i can do anything. I think when there is a permission problem the error would say that. - Original Message - From: "Chris Lambert" <[EMAIL PROTECTED]> To: "MBK" <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Sunday, August 26, 2001 11:50 PM Subject: Re: [PHP] ftp_get > It looks like you might not have permissions set for the web server to > create files in /web/... > > If you know the names of the files which will be transferred ahead of time, > you can manually create them from FTP or your shell, then chmod them to 777. > Otherwise you might be better off creating a folder (/web/ftp/) and chmoding > the folder itself to 777. > > /* Chris Lambert, CTO - [EMAIL PROTECTED] > WhiteCrown Networks - More Than White Hats > Web Application Security - www.whitecrown.net > */ > > - Original Message - > From: MBK <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > Sent: Sunday, August 26, 2001 2:51 PM > Subject: [PHP] ftp_get > > > How exactly does ftp_get work? > > I tried it several times, but it always said something like > Warning: error opening /web/destinationfile.html in .scriptlocation.. on > line 38 > > line 38 has: ftp_get($conn_id, $destfile, $remotefile, FTP_BINARY); > > Can someone please help me with this. > > -Maarten > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] ftp_get
oh yeah, that's true. Ok, i made a dir 'testdir' with permissions 777. Still i it gives the same error. Warning: error opening /web/testdir/test.html in -Maarten - Original Message - From: "Chris Lambert" <[EMAIL PROTECTED]> To: "MBK" <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Monday, August 27, 2001 2:54 AM Subject: Re: [PHP] ftp_get > No, the permission problem would be local (hence the error referencing the > destination file). It has nothing to do with FTP permissions, but the web > server's permission to write the file to /web/. > > /* Chris Lambert, CTO - [EMAIL PROTECTED] > WhiteCrown Networks - More Than White Hats > Web Application Security - www.whitecrown.net > */ > > - Original Message - > From: MBK <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > Sent: Sunday, August 26, 2001 8:23 PM > Subject: Re: [PHP] ftp_get > > > | The user i use to login has full permissions > | When i login with an ordinary ftp client using that user, then i can do > | anything. > | I think when there is a permission problem the error would say that. > | > | > | > | - Original Message - > | From: "Chris Lambert" <[EMAIL PROTECTED]> > | To: "MBK" <[EMAIL PROTECTED]> > | Cc: <[EMAIL PROTECTED]> > | Sent: Sunday, August 26, 2001 11:50 PM > | Subject: Re: [PHP] ftp_get > | > | > | > It looks like you might not have permissions set for the web server to > | > create files in /web/... > | > > | > If you know the names of the files which will be transferred ahead of > | time, > | > you can manually create them from FTP or your shell, then chmod them to > | 777. > | > Otherwise you might be better off creating a folder (/web/ftp/) and > | chmoding > | > the folder itself to 777. > | > > | > /* Chris Lambert, CTO - [EMAIL PROTECTED] > | > WhiteCrown Networks - More Than White Hats > | > Web Application Security - www.whitecrown.net > | > */ > | > > | > - Original Message - > | > From: MBK <[EMAIL PROTECTED]> > | > To: <[EMAIL PROTECTED]> > | > Sent: Sunday, August 26, 2001 2:51 PM > | > Subject: [PHP] ftp_get > | > > | > > | > How exactly does ftp_get work? > | > > | > I tried it several times, but it always said something like > | > Warning: error opening /web/destinationfile.html in .scriptlocation.. on > | > line 38 > | > > | > line 38 has: ftp_get($conn_id, $destfile, $remotefile, FTP_BINARY); > | > > | > Can someone please help me with this. > | > > | > -Maarten > | > > | > > | > | > | > | -- > | PHP General Mailing List (http://www.php.net/) > | To unsubscribe, e-mail: [EMAIL PROTECTED] > | For additional commands, e-mail: [EMAIL PROTECTED] > | To contact the list administrators, e-mail: [EMAIL PROTECTED] > | > | > | > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > To contact the list administrators, e-mail: [EMAIL PROTECTED] > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] Print..
the function printer_open() or printer_write() doesn't exist in php. I don't know where you saw those functions. - Original Message - From: "Daniel Antonio de Lima" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, August 27, 2019 12:55 PM Subject: [PHP] Print.. Good Morning I am working with PHP 4.0.6, and I do not obtain to send given of the page for the printer. I use function " PRINTER_OPEN() ", I make the manual in accordance with, exactly thus it gives an error to me of indefinite function. What it can be? Fatal error: Call you undefined function:printer_open() $print = printer_open(); $print = printer_open("LPT1 "); printer_write($print, " Test of printer "); printer_write($print, " Test of printer "); printer_write($print, " Test of printer "); $print = printer_close(); e this error it even gives to me with function " PRINTER_WRITE() ", could give tips of that he can be happening. Yours truly. Daniel -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] Print..
Oops, my bad. I always check bigmanual.html, also from php.net couldn't find it in there. - Original Message - From: "hassan el forkani" <[EMAIL PROTECTED]> To: "MBK" <[EMAIL PROTECTED]>; "Daniel Antonio de Lima" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Monday, August 27, 2001 1:11 PM Subject: Re: [PHP] Print.. > > > hi > > check this out before posting: http://php.net/manual/en/ref.printer.php > > windows specific functions > > regards > > > > At 13:59 27/08/01, MBK wrote: > > >the function printer_open() or printer_write() doesn't exist in php. > > >I don't know where you saw those functions. > > > > > >- Original Message - > > >From: "Daniel Antonio de Lima" <[EMAIL PROTECTED]> > > >To: <[EMAIL PROTECTED]> > > >Sent: Tuesday, August 27, 2019 12:55 PM > > >Subject: [PHP] Print.. > > > > > > > > >Good Morning > > > > > >I am working with PHP 4.0.6, and I do not obtain to send given of the > page > > >for the printer. I use function " PRINTER_OPEN() ", I make the manual in > > >accordance with, exactly thus it gives an error to me of indefinite > > >function. What it can be? > > >Fatal error: Call you undefined function:printer_open() > > > > > >$print = printer_open(); > > >$print = printer_open("LPT1 "); > > >printer_write($print, " Test of printer "); > > >printer_write($print, " Test of printer "); > > >printer_write($print, " Test of printer "); > > >$print = printer_close(); > > > > > >e this error it even gives to me with function " PRINTER_WRITE() ", could > > >give tips of that he can be happening. > > > > > >Yours truly. > > > > > >Daniel > > > > > > > > > > > > > > > > > > > > >-- > > >PHP General Mailing List (http://www.php.net/) > > >To unsubscribe, e-mail: [EMAIL PROTECTED] > > >For additional commands, e-mail: [EMAIL PROTECTED] > > >To contact the list administrators, e-mail: [EMAIL PROTECTED] > > > > > > > > -- > > PHP General Mailing List (http://www.php.net/) > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > To contact the list administrators, e-mail: [EMAIL PROTECTED] > > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]