need help with ini_set()

Ask about general coding issues or problems here.

Moderators: egami, macek, gesf

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

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

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

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.
avatar image based upon nasas apod (only updates if I post though)

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

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?

Post Reply
  • Information
  • Who is online

    Users browsing this forum: No registered users and 4 guests