Jump to content

how to configure custom php.ini file


Recommended Posts

Hi all,

 

In my project i have folder name "my_project"

 

I have placed my php.ini file in "my_project\php.ini"

 

how can i call and load it

 

by default it is calling default php.ini

 

ini_set("Loaded Configuration File","E:\xampp\htdocs\my_project\php.ini");

ini_set("upload_max_filesize","50M");

phpinfo();

echo 'display_errors = ' . ini_get('display_errors') . "\n";

echo 'register_globals = ' . ini_get('register_globals') . "\n";

echo 'post_max_size = ' . ini_get('upload_max_filesize') . "\n";

 

 

or any other way to create custom php.ini file

 

any other way from ini_set and .htacess file

Link to comment
https://forums.phpfreaks.com/topic/132531-how-to-configure-custom-phpini-file/
Share on other sites

  Quote

Hi all,

 

In my project i have folder name "my_project"

 

I have placed my php.ini file in "my_project\php.ini"

 

how can i call and load it

 

by default it is calling default php.ini

 

ini_set("Loaded Configuration File","E:\xampp\htdocs\my_project\php.ini");

ini_set("upload_max_filesize","50M");

phpinfo();

echo 'display_errors = ' . ini_get('display_errors') . "\n";

echo 'register_globals = ' . ini_get('register_globals') . "\n";

echo 'post_max_size = ' . ini_get('upload_max_filesize') . "\n";

 

 

or any other way to create custom php.ini file

 

any other way from ini_set and .htacess file

 

 

i have gone through following link but not gettting

 

http://www.php.net/manual/en/configuration.php#configuration.file

  Quote

Hi all,

 

In my project i have folder name "my_project"

 

I have placed my php.ini file in "my_project\php.ini"

 

how can i call and load it

 

by default it is calling default php.ini

 

ini_set("Loaded Configuration File","E:\xampp\htdocs\my_project\php.ini");

ini_set("upload_max_filesize","50M");

phpinfo();

echo 'display_errors = ' . ini_get('display_errors') . "\n";

echo 'register_globals = ' . ini_get('register_globals') . "\n";

echo 'post_max_size = ' . ini_get('upload_max_filesize') . "\n";

 

 

or any other way to create custom php.ini file

 

any other way from ini_set and .htacess file

 

SetEnv PHPRC "E:/xampp/htdocs/my_project/php.ini"

SetEnv PHPRC "E:/xampp/htdocs/my_project/"

export PHPRC="E:/xampp/htdocs/my_project/"

 

 

i want to modify my post and add some more text after i logout

 

when i login again then i can see "quote" link ,i can't see modify link

 

when i click on "quote" link and add some more text then a new post below it

get added

 

In other forum i can see modify link but here i can't

 

how can i modify my post?????.....

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.