Jump to content

kalpana

New Members
  • Posts

    1
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

kalpana's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. hi, i have a code to connect to ftp using curl. It works in my local system but when i upload it to the server, nothing is displayed. Can some one help me out to sort this problem. Here is my code: <? set_time_limit(100000); $curl = curl_init() or die(curl_error($curl)); $ftp_server = "ftp://username:password@aftp.name.com"; curl_setopt($curl, CURLOPT_URL, $ftp_server); curl_setopt($curl, CURLOPT_TIMEOUT, 40000); curl_setopt($curl, CURLOPT_FTPLISTONLY, 1); ob_start(); curl_exec ($curl) or die(curl_error($curl)); ob_end_clean(); curl_close ($curl); ?> Is there any thing wrong in this code?
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.