Re: Loaded Configuration File (none) ? Why ?



C. (http://symcbean.blogspot.com/) a écrit :

Nothing immediately springs to mind - have you tried accessing the
file from within your own php code?


You can override most settings from the ini file within your Apache
config - see http://us2.php.net/configuration.changes but I think you
need PHP5.3 to change the ini file used.

C.

Well, i tried to do :
<?php
$filename = "/etc/php/php.ini";
$handle = fopen ($filename, "r");
$contents = fread ($handle, filesize ($filename));
fclose ($handle);
echo "$contents";
?>

No problems occured when reading the file.. So, it's definitivly not a permission problem...
.



Relevant Pages

  • Re: getting around time out errors (again)
    ... but i did know aout changing the .ini file to make the ... but it works for my update script, that takes about 12 minutes to execute ... // your php code ...
    (alt.php)
  • Re: Loaded Configuration File (none) ? Why ?
    ... file from within your own php code? ... config - seehttp://us2.php.net/configuration.changesbut I think you ... need PHP5.3 to change the ini file used. ... I'm stumped - strace might help. ...
    (comp.lang.php)
  • Re: apache and php horor part 2
    ... > Tried installation with apache 2.0.47. ... > and .ini file to the right locations. ... If you have PHP installed as a module, why are you passing PHP pages to ... Apache treat index.html as a PHP program. ...
    (comp.lang.php)
  • Solution
    ... To be honest, what I was hoping would be a couple of lines of code appears to require writing literally pages and pages of code to define classes and then some fiddling around writing changes into the app config file. ... release instance of ini file class ...
    (microsoft.public.dotnet.framework)
  • cannot load php5apache2_2.dll
    ... Apache and PHP instalation and starting went without problems. ... I set the ini file into the windows / system32 ... Restart server: error ...
    (comp.lang.php)