on 22/03/03 4:39 AM, Adam - ([EMAIL PROTECTED]) wrote: > Just a thought about sessions, they still rely on cookies working, unless > you pass the session id with every link on the page. If you set your > php.ini file to automatically put the session id in ever link on your page, > that's great, but what if you don't have access to the php.ini file which > is common with shared hosting. I'v read somewhere that you can put a > php.ini file with those settings in the current working directory and it > will read in the settings from it. Is that true and would you have to put a > copy of the ini file in every folder that you used in order for it to work??
That's sort-of right. 1. PHP would need to be compiled with enable trans sid first 2. You can override SOME php.ini values with a .htaccess file (placed in a directory), but this is NOT a copy of the php.ini, it's a method of overriding values. You'd also need your ISP to grant you permission to run such files. They work from a certain directory down, so if you placed the file in your doc root, it would apply recursivly down to each folder bewlow it. example: <IfModule mod_php4.c> php_flag register_globals off php_flag magic_quotes_runtime on php_flag magic_quotes_gpc on </IfModule> 3. You can also override some php.ini values by using things like PHP's ini_set() function in your scripts. Justin -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php