PDA

View Full Version : uploading file????...


pavmoxo
08-07-2006, 10:46 AM
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??

blm126
08-07-2006, 04:13 PM
If you are using ftp to upload the files, then it has nothing to do with PHP.

pavmoxo
08-14-2006, 03:15 PM
You are wrong!!! In PHP code there're ftp functions to upload files!!!

blm126
08-14-2006, 09:38 PM
Ah, I see what you mean now. If you could post the rest of your code I can help.

pavmoxo
08-16-2006, 11:26 AM
I think I already have a solution but very thanks for your attention!!