Advanced Search

Results 1 to 5 of 5

Thread: uploading file????...

  1. #1
    Join Date
    Apr 2006
    Posts
    107
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Arrow uploading file????...

    I use ftp for upload images but I have a problem when do that in the remote server. when I leave the file field empty a path is registered in the DB when in this case the field reference to the image must be NULL.


    Example:
    regist images/links/35_ in the DB and upload a file named 35_ ????


    Code of the destination file:

    $destination_file = "public_html/images/links/".$arrx["link_ID"]."_".$_FILES['file']['name'];


    The problem is in this line, I'm sure but I don't know what to do resolve the problem!!! Can You help me??

  2. #2
    Join Date
    Sep 2005
    Posts
    882
    Thanks
    0
    Thanked 3 Times in 3 Posts

    Default

    If you are using ftp to upload the files, then it has nothing to do with PHP.

  3. #3
    Join Date
    Apr 2006
    Posts
    107
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    You are wrong!!! In PHP code there're ftp functions to upload files!!!

  4. #4
    Join Date
    Sep 2005
    Posts
    882
    Thanks
    0
    Thanked 3 Times in 3 Posts

    Default

    Ah, I see what you mean now. If you could post the rest of your code I can help.

  5. #5
    Join Date
    Apr 2006
    Posts
    107
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    I think I already have a solution but very thanks for your attention!!

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
  •