Announcement

Collapse
No announcement yet.

Question about file upload

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Question about file upload

    How do i let users upload a file to a non-anonymous ftp? I already tried it with either the copy() and fopen() function by defining the file destination like this: ftp://user[email protected] but it didn't work. Could this problem depend on the php config settings, or am i just doing something wrong? (please note my magic quotes setting is ON)

  • #2
    http://www.php.net/manual/ref.ftp.php

    Comment


    • #3
      Thanks!

      But actually the server doesn't support php4 yet Could you please sxplain me how to do the upload in php3?

      Comment


      • #4
        Using the FTP module - that has nothing to do with PHP4 vs PHP3. You just have to download the module (if it isn't standard) and reconfigure.

        If the FTP and HTTP servers are on the same physical server, then copy() should work - or whatever the command is. Otherwise, you can't.

        Comment

        widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
        Working...
        X