/    Sign up×
Community /Pin to ProfileBookmark

ini_set() problem

Hi all. I’m using SuSE Linux 9.2 pro, mod_php4 4.3.8.

The following script will NOT change the value of upload_max_filesize,
or other php.ini options.

<?php

$option = ‘upload_max_filesize’;
echo “default value of $option is ” . ini_get($option) . “<br />”;

if (!ini_set($option, ‘5MB’))
echo “error in setting php.ini $option value <br />”;

echo “New value of $option is ” . ini_get($option) . “<br />”;

$entries = parse_ini_file(“/etc/php.ini”);

foreach ($entries as $key => $value) {
echo “$key => $value <br />”;
}

?>

Safe Mode is set to OFF, for this particular directory tree, in httpd.conf

Anyone got any ideas whats happening here please?

TY – Jabez

to post a comment
PHP

1 Comments(s)

Copy linkTweet thisAlerts:
@ShrineDesignsJun 20.2005 — use a .htaccess file to do so
×

Success!

Help @jabez spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 4.29,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,

tipper: @Samric24,
tipped: article
amount: 1000 SATS,
)...