Jump to content
Larry Ullman's Book Forums

Recommended Posts

I am sorry, Larry, I have to ask yet another question.

I ran the 11.4 script - it works, there are no error messages, only

the successful one "Your file has been uploaded."


But there is no file in the destination folder. I use your line of code:

if (move_uploaded_file ($_FILES['the_file']['tmp_name'], "C:\Main\uploads{$_FILES['the_file']['name']}")) {

I have xampp and I created a folder outside xampp as you can see - I have all the permissions.

I tried everything and still no file.


Share this post

Link to post
Share on other sites

Sorry, please disregard this question - after countless checks and rewrites it now works -

but I am not sure why. It may have been due to a typing error.


Share this post

Link to post
Share on other sites

Thanks, Larry. Thank you too for writing this book - I very much appreciate the clear explanations and examples.

Sometimes I get confused - for example in this very Chapter it took me some time to work

out that making a new directory in fact means making a new subdirectory in a directory I was supposed

to create beforehand.

Thanks for your patience.

Share this post

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Create New...