Jump to content
Larry Ullman's Book Forums
Sign in to follow this  
fishswim

Chapter 11 Script 11.4

Recommended Posts

There is received this error notice.

Notice: Undefined index: temp_name

and the if conditional in the script as written in the end user`s script and book shows:

if(move_uploaded_file($_FILES['thefile']['temp_name'], "../t_testUploads/{$_FILES['thefile']['name']}"))

I do see in the ini file:

upload_tmp_dir = /Applications/MAMP/tmp/php

before i attempt to place the value of /Applications/MAMP/tmp/php in place of temp_name.

so the actual question here is,

will placing the ini file value of /Applications/MAMP/tmp/php in place of temp_index do the trick.

 

note, i am working a graveyard shift so the brain and action is in a state of ask questions first. normally i would just jump and see what happens.

 

Thank you.

Share this post


Link to post
Share on other sites

Sorry I don't really understand exactly what you're trying to ask but I think the index you're looking for is tmp_name NOT temp_name?

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.

Guest
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.

Loading...
Sign in to follow this  

×
×
  • Create New...