Re: [PHP] magic_quotes_gpc
Is your ISP running Apache? If so, they should allow you to create a .htaccess file. You can set all of PHP's ini parameters from there with the php_value/php_flag directives in PHP 4 or (in)directly using PHP 3. Like this: # PHP 4 php_flag magic_quotes_gpc on # PHP 3 php3_magic_quotes_gpc on Note, not only must you be allowed to use .htaccess files, but Apache needs to be configured with AllowOverride All. Pete Note, Tim Thorburn wrote: > Hi, > > Is it possible to activate magic_quotes_gpc on a server running PHP > 3.0.16 without the php.ini settings being physically altered? > > I ask became my hosting company is hesitant to activate it for some > unknown reason - however without it I cannot enter information into a > database for a content management system I'm working on. > > Thanks > -Tim > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: php include path setting in .htaccess
php_value include_path "../includefiles/:../../includefiles/" Bill wrote: > How can I set the php include path on an Apache machine using .htaccess. > > Assuming I'm puting it outside of the web root, I think it is something > like: > > php_include_path "../includefiles/:../../includefiles/" > > but that generates server errors. > > Any suggestions? > > kind regards, > > bill hollett > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: Auto_prepend_file
It's not 'php' but 'php_value'. php_value auto_prepend_file "pathtoscript/uniemail.php" Richard Baskett wrote: > What I want to do is have a function available to all my php files without > having to use an include in every page. So what I did was put this line in > my .htaccess file: > > php auto_prepend_file "pathtoscript/uniemail.php" > > It didn¹t work, I also tried php_auto with the underscore in the above.. And > that didn¹t work either. I have modified my httpd.conf file so that it will > process .htaccess files.. > > Any ideas? > > Rick > > "I haven't failed, I've found 10,000 ways that don't work." - Ben Franklin > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php