473,396 Members | 1,755 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

set upload_tmp_dir

I'm currently on a shared host, and upload_tmp_dir is set to none, I
was wondering if I was required to change that value to allow for file
uploads, and how I could go about doing that, as I cant seem to upload
files as it is.

Jun 5 '07 #1
2 9170
TheReckter wrote:
I'm currently on a shared host, and upload_tmp_dir is set to none, I
was wondering if I was required to change that value to allow for file
uploads, and how I could go about doing that, as I cant seem to upload
files as it is.
Hi,

See my answer to howa (4 postings earlier in this ng).

In short: You can't.

Solution: Contact your ISP and let them explain to you why they disabled
file-uploads, and what they are going to do about it.

If they do not cooperate, you have several options left:
1) Don't use fileupload.
2) change ISP
3) Dive into the raw posted data.
I expect the uploaded file(s) are somewhere in there.
You'll have to use things like:
$mySocket = fopen('php://input','rb');

I never used it, and I am unsure if it contains the file-upload.
If you want to use such an approach, be prepared for low-level formatting.
No handy dandy things like $_POST[], but a raw datastream.

My advise is to talk with your ISP and tell them their PHP installation is
broken (on purpose maybe).
Tell them also that they can set the maximum size of fileuploads in php.ini
if they are afraid of 50 Gbyte fileuploads crashing their server.

Good luck.

Regards,
Erwin Moller
Jun 6 '07 #2
Thank's alot, I really appreciate the help.

Jun 6 '07 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Tim218 | last post by:
Hi Everyone This is my first day with PHP and, not surprisingly, I've run into a problem :-) I want to allow file uploads to the server without exposing the non-technical end-users to FTP...
1
by: Xenofon Papadopoulos | last post by:
When I was using /usr/tmp to keep the temp uploaded files, move_uploaded_file used to fail randomly. Since I created a directory owned by nobody:nobody (my apache user) and set upload_tmp_dir to...
4
by: dickiedyce | last post by:
Hi there. I've spent the weekend getting ever more frustrated, trying to get an upload file function working on a website. The site is hosted by a company called oneandone. They're using PHP...
0
by: Robert_Wr | last post by:
hello PHP Masters:) my privider set: safe_mode to ON and leave upload_tmp_dir blank I think that there is the reason for my trouble with upload files via POST method. If yes - I will ask my...
2
by: iulian.ilea | last post by:
I have a problem when I upload files: if try to upload files stored in the same directory whith upload script it is ok, it uploads them on the ftp. IF I select a file from another directory than...
9
by: Synapse Syndrome | last post by:
Hi I've been given what I am told is a PHP script to be used on my server. I do not know any PHP. I am trying to use a feature of a program called ArchiCAD. This feauture allows CAD drawing...
1
by: TJ | last post by:
Hello All, This is my first posting on this group and I'm also new to PHP ;-) We have a client who is providing Web Hosting Solutions to customers. One of the latest requirements is to enable...
1
by: howa | last post by:
Using Windows, PHP5.2 ini_set("upload_tmp_dir", "c:/temp"); echo ini_get('upload_tmp_dir'); // print out the default one no effect...
1
by: howa | last post by:
Hi, I have not set the "upload_tmp_dir" in my php.ini, so I am assuming it is using /tmp/. From time to time, I noticed that some strange files appear in the / tmp, and when I viewed it, I...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.