473,578 Members | 2,818 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

upload_tmp_dir

so, I'm trying to change the upload temp directory... I've put a
php.ini file in my public_html folder, but it doesn't seem to be
reading it..so I tried this instead

<pre>
<?php
$old =
ini_set('upload _tmp_dir','/home/myusername/public_html/uploads');
echo "old value: $old<br />";
print_r(ini_get _all());
?>
</pre>

and..that isn't changing it either. what could be the problem?

Oct 18 '06 #1
11 11710

Mark wrote:
so, I'm trying to change the upload temp directory... I've put a
php.ini file in my public_html folder, but it doesn't seem to be
reading it..so I tried this instead

<pre>
<?php
$old =
ini_set('upload _tmp_dir','/home/myusername/public_html/uploads');
echo "old value: $old<br />";
print_r(ini_get _all());
?>
</pre>

and..that isn't changing it either. what could be the problem?
oh..right now it's using /usr/local/Zend/etc/php.ini but i can't edit
this file :(

Oct 18 '06 #2
Mark wrote:
Mark wrote:
>>so, I'm trying to change the upload temp directory... I've put a
php.ini file in my public_html folder, but it doesn't seem to be
reading it..so I tried this instead

<pre>
<?php
$old =
ini_set('uplo ad_tmp_dir','/home/myusername/public_html/uploads');
echo "old value: $old<br />";
print_r(ini_g et_all());
?>
</pre>

and..that isn't changing it either. what could be the problem?


oh..right now it's using /usr/local/Zend/etc/php.ini but i can't edit
this file :(
They very well could be disabled. A lot of shared hosts do that.

--
=============== ===
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
js*******@attgl obal.net
=============== ===
Oct 18 '06 #3

Jerry Stuckle wrote:
Mark wrote:
Mark wrote:
>so, I'm trying to change the upload temp directory... I've put a
php.ini file in my public_html folder, but it doesn't seem to be
reading it..so I tried this instead

<pre>
<?php
$old =
ini_set('uploa d_tmp_dir','/home/myusername/public_html/uploads');
echo "old value: $old<br />";
print_r(ini_ge t_all());
?>
</pre>

and..that isn't changing it either. what could be the problem?

oh..right now it's using /usr/local/Zend/etc/php.ini but i can't edit
this file :(

They very well could be disabled. A lot of shared hosts do that.

--
=============== ===
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
js*******@attgl obal.net
=============== ===
That's very frusterating. Especially since I was told not to upload
anything to the temporary directory...thi s basically means I can't
upload at all.

Oct 18 '06 #4
"Mark" <mn*******@gmai l.comwrote in news:1161212988 .345958.154010
@i42g2000cwa.go oglegroups.com:
>
Jerry Stuckle wrote:
>Mark wrote:
Mark wrote:

so, I'm trying to change the upload temp directory... I've put a
php.ini file in my public_html folder, but it doesn't seem to be
reading it..so I tried this instead

<pre>
<?php
$old =
ini_set('uplo ad_tmp_dir','/home/myusername/public_html/uploads');
echo "old value: $old<br />";
print_r(ini_g et_all());
?>
</pre>

and..that isn't changing it either. what could be the problem?
oh..right now it's using /usr/local/Zend/etc/php.ini but i can't
edit
this file :(

They very well could be disabled. A lot of shared hosts do that.

--
============== ====
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
js*******@attgl obal.net
============== ====

That's very frusterating. Especially since I was told not to upload
anything to the temporary directory...thi s basically means I can't
upload at all.

Get a new host.

Check out www.cirtexhosting.com

Oct 19 '06 #5
Rik
Mark wrote:
That's very frusterating. Especially since I was told not to upload
anything to the temporary directory...thi s basically means I can't
upload at all.
Euhmm, usually this should work on most shared hosts, uploading to temp...

Are you absolutely sure they didn't mean: 'Don't upload files by FTP to the
temp directory, that's for other uses, like a HTTP upload.'?
--
Rik Wasmus
Oct 19 '06 #6

Rik wrote:
Mark wrote:
That's very frusterating. Especially since I was told not to upload
anything to the temporary directory...thi s basically means I can't
upload at all.

Euhmm, usually this should work on most shared hosts, uploading to temp...

Are you absolutely sure they didn't mean: 'Don't upload files by FTP to the
temp directory, that's for other uses, like a HTTP upload.'?
--
Rik Wasmus
quite sure.
i somehow managed to crash the entire server using an html form to
upload stuff.

Oct 25 '06 #7

Lone Clapper wrote:
"Mark" <mn*******@gmai l.comwrote in news:1161212988 .345958.154010
@i42g2000cwa.go oglegroups.com:

Jerry Stuckle wrote:
Mark wrote:
Mark wrote:

so, I'm trying to change the upload temp directory... I've put a
php.ini file in my public_html folder, but it doesn't seem to be
reading it..so I tried this instead

<pre>
<?php
$old =
ini_set('uploa d_tmp_dir','/home/myusername/public_html/uploads');
echo "old value: $old<br />";
print_r(ini_ge t_all());
?>
</pre>

and..that isn't changing it either. what could be the problem?
oh..right now it's using /usr/local/Zend/etc/php.ini but i can't
edit
this file :(


They very well could be disabled. A lot of shared hosts do that.

--
=============== ===
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
js*******@attgl obal.net
=============== ===
That's very frusterating. Especially since I was told not to upload
anything to the temporary directory...thi s basically means I can't
upload at all.

Get a new host.

Check out www.cirtexhosting.com
the prices look good.. but how about speed, reliability and support?

Oct 25 '06 #8
Rik
Mark wrote:
Rik wrote:
>Mark wrote:
>>That's very frusterating. Especially since I was told not to upload
anything to the temporary directory...thi s basically means I can't
upload at all.

Euhmm, usually this should work on most shared hosts, uploading to
temp...

Are you absolutely sure they didn't mean: 'Don't upload files by FTP
to the temp directory, that's for other uses, like a HTTP upload.'?

quite sure.
i somehow managed to crash the entire server using an html form to
upload stuff.
Well, if you manage to crash a server with that, those people have
absolutely no idea what they're doing. If it simply doesn't work, but the
server is up, they are (needlessly) strict/paranoid. Hosting is dirt cheap
at present, I agree with Lone Clapper: find a new host, there are lots of
decent hosts out there.

Unfortunaely I cannot give you any hosting adviuce, I usually use local
(dutch) hosts (or my own) for my stuff for better communication (and
ass-kicking capability without buying a planeticket).
--
Rik Wasmus
Oct 26 '06 #9

Rik wrote:
Mark wrote:
Rik wrote:
Mark wrote:
That's very frusterating. Especially since I was told not to upload
anything to the temporary directory...thi s basically means I can't
upload at all.

Euhmm, usually this should work on most shared hosts, uploading to
temp...

Are you absolutely sure they didn't mean: 'Don't upload files by FTP
to the temp directory, that's for other uses, like a HTTP upload.'?
quite sure.
i somehow managed to crash the entire server using an html form to
upload stuff.

Well, if you manage to crash a server with that, those people have
absolutely no idea what they're doing. If it simply doesn't work, but the
server is up, they are (needlessly) strict/paranoid. Hosting is dirt cheap
at present, I agree with Lone Clapper: find a new host, there are lots of
decent hosts out there.

Unfortunaely I cannot give you any hosting adviuce, I usually use local
(dutch) hosts (or my own) for my stuff for better communication (and
ass-kicking capability without buying a planeticket).
--
Rik Wasmus
thing is, it's my friend, and he's hosting me for free. can't complain
too much...
oh well. some nice fellow i might gave me some additional hosting free
of charge.

Oct 27 '06 #10

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

Similar topics

4
6743
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 settings, file naming protocols, etc. I've found the following from http://www.zend.com/manual/features.file-upload.php ....
1
4934
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 it, I don't have any problems. Any idea why /usr/tmp as temp upload directory created this kind of mess? It's not a quota problem. I'm using php...
4
2769
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 4.2. 3, not in safe mode. I think that the basic problem is the set-up for the temp folder, but I don't have access to the .ini settings. I'm...
0
412
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 provider for changes but first I would like to ask You. Can you ensure me? thx in advance, Rob PS If I am wrong, the explanation: files are uploaded...
2
1054
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 the one with tha php script I get an error: uploadPHP Warning: ftp_put(langtxt-update.sql) : failed to open stream: No such file or directory in...
9
1999
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 files to be published on a webpage, and viewed and commented on using a java applet. The problem is that with ArchiCAD v10, it now makes spaces...
1
1836
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 PHP Scripting on the Hosting Servers. We are using PHP v4.4.0, but are running in an issue with File Uploads. In PHP.ini file there is a config for...
1
3978
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...
2
9185
by: TheReckter | last post by:
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.
1
3560
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 believe it is the temp file which somehow not handled correctly by my scripts and leave in the /tmp/ folder. I want to ask, will PHP delete the...
0
7779
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
8126
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
0
8291
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
1
7874
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
6524
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
0
5343
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3786
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
0
3801
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1114
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

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.