using PHP +Xampp locally( on my laptop) to FTP remotely

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
eoina
Forum Newbie
Posts: 1
Joined: Wed Dec 05, 2012 1:37 am

using PHP +Xampp locally( on my laptop) to FTP remotely

Post by eoina »

Hi all,
I was just wondering if i can use Xampp installed on my local machine running a PHP script with FTP commands to forward a file to another server which is online? Any information or tutorials would be of great help to me as i can't seem to find much online at the moment. Thanks in advance. :D
Eric!
DevNet Resident
Posts: 1146
Joined: Sun Jun 14, 2009 3:13 pm

Re: using PHP +Xampp locally( on my laptop) to FTP remotely

Post by Eric! »

Why not just use FTP? Failing that if for some reason you need PHP to do ftp, you can do it with cURL (with our without PHP). You can also use the ftp wrapper which allows you to use more common php commands like those used for files (file_put_contents, etc.). Or you can use the full on ftp extensions.
Post Reply