I have a remote linux based ftp webserver? how can I install curl on there? i want to use it through PHP

link|improve this question
1  
"FTP webserver" makes no sense. FTP and HTTP are independent protocols. – Ignacio Vazquez-Abrams May 21 '11 at 4:50
1  
Please clarify. Which distro do you run? What have you tried? What is a 'linux based ftp webserver'? – bitmask May 21 '11 at 4:56
feedback

migrated from stackoverflow.com May 21 '11 at 4:48

This question came from our site for professional and enthusiast programmers.

3 Answers

up vote 1 down vote accepted

If your distribution uses yum you could do like this:

  1. Login to the remote site.
  2. Run yum search curl and read the package descriptions.
  3. Run yum install <package_name> as root to install the package that contains curl.

If it doesn't work, give at least some indication as to your distribution and why you have problems installing curl.

link|improve this answer
feedback

firstly, check your PHP env with phpinfo();

if it support dl() function, you can load curl dynamic into your script,

if not, seems that you're not able to load curl extension.

link|improve this answer
feedback

sudo apt-get install curl libcurl3 libcurl3-dev php5-curl

link|improve this answer
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.