Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
Showing results for
$_FILES['file']['tmp_name'] is this /tmp again
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Plusnet Community
- :
- Forum
- :
- Help with my Plusnet services
- :
- Everything else
- :
- $_FILES['file']['tmp_name'] is this /tmp again
$_FILES['file']['tmp_name'] is this /tmp again
30-01-2011 7:55 PM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
My web site has worked fine up until very recenty. The problem is when users upload pictures the script passes but the upload doesnt work. The line at fault is the one with $_FILES['file']['tmp_name'] in it.
Without this I can not copy the uploaded file from the temp area to somewhere I can deal woth perminantly. I guess this should be from the /tmp dir. So one question I have is has anything changed in the last week or so to prevent the above working. When the script runs the line returns an empty string.
// The Upload Part
if ($error_FILE != 1)
{
// echo $_FILES['file']['tmp_name'];
if(is_uploaded_file($_FILES['file']['tmp_name']))
{
Anybody having the same problem or even better resolved it?
Without this I can not copy the uploaded file from the temp area to somewhere I can deal woth perminantly. I guess this should be from the /tmp dir. So one question I have is has anything changed in the last week or so to prevent the above working. When the script runs the line returns an empty string.
// The Upload Part
if ($error_FILE != 1)
{
// echo $_FILES['file']['tmp_name'];
if(is_uploaded_file($_FILES['file']['tmp_name']))
{
Anybody having the same problem or even better resolved it?
Message 1 of 3
(2,345 Views)
2 REPLIES 2
Re: $_FILES['file']['tmp_name'] is this /tmp again
30-01-2011 9:38 PM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
Yes it is the /tmp fu;ll problem again.A
I installed a php.ini file in the root of the web and added a dierctory for the uploads and this has cleared it.
A copy of the default php.ini file is available from Gabe.<a href="http://community.plus.net/forum/index.php/topic,83568.msg696223.html#msg696223">Click Here</a>
Tony
I installed a php.ini file in the root of the web and added a dierctory for the uploads and this has cleared it.
A copy of the default php.ini file is available from Gabe.<a href="http://community.plus.net/forum/index.php/topic,83568.msg696223.html#msg696223">Click Here</a>
Tony
Message 2 of 3
(416 Views)
Re: $_FILES['file']['tmp_name'] is this /tmp again
31-01-2011 1:08 PM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
I hate the is_uploaded_file() function anyway. Along with move_uploaded_file they're the two most troublesome functions I've ever had to deal with. The script will work fine on one apache server but then do nothing on another. I always use dynamic file paths (ie using getcwd()) so it shouldn't be a problem with that but it always turns out to be some stupid file system permissions error. It drives me mad because one system might be ok with the lowest possible permission while another will only work with 755 or 777 for some idiotic reason.
PN aren't directly in the webhosting game, I think they only offer their hosting as a legacy service to older customers so support is never going to be great unfortunately.
PN aren't directly in the webhosting game, I think they only offer their hosting as a legacy service to older customers so support is never going to be great unfortunately.
I need a new signature... i'm bored of the old one!
Message 3 of 3
(416 Views)
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Plusnet Community
- :
- Forum
- :
- Help with my Plusnet services
- :
- Everything else
- :
- $_FILES['file']['tmp_name'] is this /tmp again