need help with ini_set()

Ask about general coding issues or problems here.

Moderators: macek, egami, gesf

pugs421
New php-forum User
New php-forum User
Posts: 31
Joined: Sat Jun 28, 2003 9:09 pm

need help with ini_set()

Postby pugs421 » Mon Jun 30, 2003 1:00 am

Php is installed on the webhost server that I use. I'm trying to change the upload_temp_dir but I'm not sure if I'm trying to do it right.

Here's the code I'm trying to use to change the ini file.

<?php
ini_set ('upload_tmp_dir','/home/newbie/public_html/temp');
?>

1. would that be right?
2. Is all I'm supposed to do is put that on a php page and open it on the webserver from a browser? Should that make the changes because no changes are made when I view phpinfo().

thanks

User avatar
pootergeist
New php-forum User
New php-forum User
Posts: 191
Joined: Wed Jan 29, 2003 7:11 am
Location: UK
Contact:

Postby pootergeist » Mon Jun 30, 2003 2:35 am

it would only affect it for the duration of the script and then only if the server admin has allowed that variable to be modified.

pugs421
New php-forum User
New php-forum User
Posts: 31
Joined: Sat Jun 28, 2003 9:09 pm

Postby pugs421 » Mon Jun 30, 2003 6:14 am

Is there anyway to change the upload_tmp_dir on a remote server then? Are you saying that I would have to ask the webhosting company to make changes like that?


Return to “PHP coding => General”

Who is online

Users browsing this forum: Google [Bot] and 2 guests