Re: [PHP] ftp_put issues
On Thu, Apr 16, 2009 at 9:27 PM, James mli...@ichor-interactive.com wrote: Hi, yeah ftp manually works just fine using the same login too. James -Original Message- From: Chris [mailto:dmag...@gmail.com] Sent: Wednesday, April 15, 2009 10:09 PM To: James Cc: php-general@lists.php.net Subject: Re: [PHP] ftp_put issues James wrote: Hi, I'm trying to upload a pdf file from a local drive to the server using a php routine. I've done it server to server before with no issues but this just keeps failing on me. This is the function I'm calling, it connects and logs in just fine, but it will not upload the file. The file I'm sending is just a 100k pdf file. If you do it manually does it work? Maybe the account is over quota. -- Postgresql php tutorials http://www.designmagick.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php Just to be clear where are you running your ftpData function from? Your local computer? Where is the PDF file coming from? I hope from your local computer as well. How does your Source and Dest variables look like? Full paths? Have you tried your firewall? (Assuming both script and file is coming from local and your firewall is on whitelist mode.) Cheers -- http://www.lampadmins.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] ftp_put issues
On Thu, Apr 16, 2009 at 10:24 PM, James Hill ja...@ichor-interactive.com wrote: The ftpData function and in fact all the php stuff is running online on my webserver. The pdf file is on my local machine, I'm trying to upload the local pdf file to the server using ftp. The dest variable I have tried with the full path: /var/www/html/Docs/DU/DU1.pdf And with just the DU1.pdf along with ftp_chdir. The local file path is being passed through a html form and consists of L:/mypdfs/testpdf.pdf I've disabled my firewall to try that to no avail. James Just to be clear where are you running your ftpData function from? Your local computer? Where is the PDF file coming from? I hope from your local computer as well. How does your Source and Dest variables look like? Full paths? Have you tried your firewall? (Assuming both script and file is coming from local and your firewall is on whitelist mode.) Cheers -- http://www.lampadmins.com I think that explains your problem, in order to upload a file via FTP your FTP client GENERALLY must reside on the same computer as your client, in your case your FTP client sits remotely elsewhere (which is your PHP script) and your file is on your local computer. A simple HTTP file upload should fit your 100K file nicely. Cheers. -- http://www.lampadmins.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] [php] scheduled task in php
On Fri, Apr 3, 2009 at 7:49 PM, Andrew Williams andrew4willi...@gmail.com wrote: does anyone knows the the following is not working: C:\PHP\php.exe D:\DEMO\index.php?action=runrun=1 The querystring does not have an effect from the command line, it is part of the HTTP protocol. Use console options instead and use the getopt function http://us2.php.net/manual/en/function.getopt.php -- http://www.lampadmins.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] User Authentication across multiple server
On Fri, Mar 6, 2009 at 5:14 PM, Paul Scott psc...@uwc.ac.za wrote: On Fri, 2009-03-06 at 10:09 +0100, Edmund Hertle wrote: The only method which possibly could work and came to my mind was using somehow $_GET parameter for username and password (encrypted). Set a cookie and crypt that (RC4 works well) and then check for the cookie on both sites. Kind of like a Remember me type deal -- Paul -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php I believe you can do this with a database to handle session, I haven't used that myself though. -- - http://www.lampadmins.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] PHP AS an FTP server
On Wed, Feb 18, 2009 at 4:24 AM, Ashley Sheridan a...@ashleysheridan.co.uk wrote: I used vsftp for several FTP systems at work, and bar a few problems (errors on my part!) they work just fine. I've even got PHP talking to various Bash scripts to manage users and permissions for the FTP, and, touch wood, everything works well. I wouldn't really agree that allowing local users to FTP in is a bad idea. I'm using just that method for my systems. The users, etc are only ever created through a web interface, which forces certain rules on usernames, which as far as I see it, is the only problem. As long as the vsftpd.conf file is configured correctly and securely, the whole thing will remain pretty tight. Ash www.ashleysheridan.co.uk -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php A couple months back we were able to configure ProFTPd with MySQL support to allow our forum users to login and upload files. Although users login using credentials from MySQL they are somewhat chrooted to a single user with very limited capabilities and no shell of course. This opens up the possibility of working with the users from PHP. With a bit of creativity this link can help you get started http://www.howtoforge.com/proftpd_mysql_virtual_hosting - http://www.lampadmins.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php