cd /var/www/images
And use wget to download the file you need:
wget http://www.someplace.com/image3.jpg
That's it! Don't let it fool you, wget is a very advanced tool. For more usage examples go here:
http://en.wikipedia.org/wiki/Wget#Using_Wget
<?php phpinfo(); ?>Visit that page and search for "curl". If nothing is found, you don't have cURL. A proper installation should have a reference under "Additional .ini files parsed" as well as a section called "curl" with all the details.
apt-get install curl libcurl3 libcurl3-dev php5-curl php5-mcryptXAMPP (edit xampp\apache\bin\php.ini and uncomment or add this line)
extension=php_curl.dllIn either case you'll need to restart Apache to load cURL after the installation.
<?php $result = array(); $command = 'svn export '; $command .= 'https://your_server/svn/project /path/to/www '; $command .= '--username USER --password PASS --force '; $command .= '--non-interactive --trust-server-cert'; exec($command, $result); print_r($result); ?>