473,597 Members | 2,715 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 11711

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
6744
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.3.4RC2
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 pretty sure it's possible, because I've got MyPHPAdmin running, and
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 to tmp dir, but
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 D:\Atlanticmoon\collaudi\ftp_upload.php on line 35. I tried to set the upload_tmp_dir in the php.ini...
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 and uses other
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 temporary folder for uploaded file. However, we dont want it to be pointing to a folder on the web
1
3979
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
9186
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
3561
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 files under this folder from time
0
7977
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
7894
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 synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8276
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. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
8044
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 most users, this new feature is actually very convenient. If you want to control the update process,...
0
8261
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
5847
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
3893
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 the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
3936
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2409
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system

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.