|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
FTP name problem
Hello,
I have the FTP script off php.net: PHP Code:
I am passing through $userfile from a form on the previous page. The upload works fine but instead of uploading the file with the filename, it uploads the file and calls it $userfile instead of the actual filename. Why is this? How do I make this work? Cheers, James |
|
#2
|
||||
|
||||
|
PHP Code:
PHP Code:
Both of those should be fine... using '/public_html/$userfile' inhibit the string parsing so the variable is not replaced. Also, I would highly suggest you to use : PHP Code:
Then you will not have problems with the fact the register global option can be turned off.
__________________
"The ultimate knowledge is reached when it does not bring new questions..." -- Usaphdas encyclopedia XV.4 |
|
#3
|
||||
|
||||
|
oh, and you should replace $_POST par $_GET accordingly to what kind of method your form is using...
|
|
#4
|
|||
|
|||
|
thanks that works
|
![]() |
| Viewing: Dev Shed Forums > System Administration > FTP Help > FTP name problem |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|