changing to enable ftp on phpinfo

Discussion in 'Programming' started by kes, Aug 10, 2007.

  1. #1
    Hello,

    Im running mysql 5.x on webfusion shared hosting.

    with some scripts im running i need to be able to enable ftp on my phpinfo file.

    but for the life of me i cannot work out were this is and how i enable it.

    anyone know ?
     
    kes, Aug 10, 2007 IP
  2. sea otter

    sea otter Peon

    Messages:
    250
    Likes Received:
    23
    Best Answers:
    0
    Trophy Points:
    0
    #2
    ftp support needs to be enabled at compile time via the --enable-ftp flag. If that flag wasn't set when your version of php was compiled, you won't be able to use the ftp functions.

    You can tell if this was set by looking at the output of phpinfo() and seeing if "--enable-ftp" is somewhere in the "configure commands" section (it's at the top of the page).

    Additionally, depending on what you're doing, you might need to disable safe mode and set enable_url_fopen, both of which can be set in php.ini

    Hope that helps.
     
    sea otter, Aug 10, 2007 IP
  3. kes

    kes Active Member

    Messages:
    368
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    55
    #3

    thanks for that - but where exactly is the phpinfo() i cannot see any configure commands

    also where is the php.ini

    are these in phpmyadmin or somewhere else, I cannot see this is phpmyadmin??

    apologies for all the questions but im new to all this php mysql stuff.
     
    kes, Aug 11, 2007 IP
  4. kes

    kes Active Member

    Messages:
    368
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    55
    #4
    right figured a few things out.

    ive made a phpinfo file and it does have the --enable-ftp within the commands, so its on.


    where would the php.ini file be ? i cannot see it in the root of my directory
     
    kes, Aug 11, 2007 IP
  5. kes

    kes Active Member

    Messages:
    368
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    55
    #5
    i ran the phpinfo()

    and its saying my pp.ini is in /etc/php.ini

    ive looked on my server and cannot find a /etc/ file or a php.ini

    am i looking in wrong place?
     
    kes, Aug 11, 2007 IP