SitePoint Sponsor

User Tag List

Results 1 to 4 of 4
  1. #1
    SitePoint Member
    Join Date
    Jun 2001
    Location
    Florida
    Posts
    2
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    PHP FTP Script Problem


    For the past 3 days Ive been trying to get my first PHP script to work, all its supposed to do is grab a file from one server and move it to the server that the script is on. I tries using fopen and fclose to no avail, so now im trying PHP's FTP abilitys. The error im getting is:

    Warning: Wrong parameter count for ftp_login() in /home/beta/public_html/tensix/swap.php on line 15

    The FTP code is pretty much directly out of the documentation, you can see the scripthere.

    I've tried alternate methods of logging into the ftp server (as you can see in the code) but then it will just give me a parse error. I just dont know whats wrong with it
    TenSix
    WARNING: Taken in large doses, Dreamweaver can deteriorate or destroy HTML coding skills.

  2. #2
    SitePoint Wizard creole's Avatar
    Join Date
    Oct 2000
    Location
    Nashvegas Baby!
    Posts
    7,845
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Do you have permission to FTP to the server you are trying to use?
    Adobe Certified Coldfusion MX 7 Developer
    Adobe Certified Advanced Coldfusion MX Developer
    My Blog (new) | My Family | My Freelance | My Recipes

  3. #3
    SitePoint Member
    Join Date
    Jun 2001
    Location
    Florida
    Posts
    2
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Ive tried many different servers, all of which i have access to, but no matter what that darn error pops up
    TenSix
    WARNING: Taken in large doses, Dreamweaver can deteriorate or destroy HTML coding skills.

  4. #4
    SitePoint Wizard creole's Avatar
    Join Date
    Oct 2000
    Location
    Nashvegas Baby!
    Posts
    7,845
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    it would probably help to abandon this post and repost in the Server Side scripting forum. Also, I would post the code if I were you, it would help people figure out your problem easier.
    Adobe Certified Coldfusion MX 7 Developer
    Adobe Certified Advanced Coldfusion MX Developer
    My Blog (new) | My Family | My Freelance | My Recipes


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •