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
Share on other sites

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

Link to comment
Share on other sites

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/"

 

 

Link to comment
Share on other sites

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?????.....

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.