I just spent about an hour trying to figure this out, but when you have a php application that requires call time pass reference to be enabled, you can set in the .htaccess file. The trick on some systems is that it must be set to “1″ and not “on” as is indicated on the PHP support forums. here’s the code:
php_flag allow_call_time_pass_reference 1
Whether or not you need to use “1″ or “on” seems to depend on the install and whether you’re using PHP version 4 or 5.
You just saved me some time! Thanks.
didn’t work for me but I bet there is a good reason for that.
i was doing an install of another program, that said i needed this option. luckily i found your post after some google-ing.
i first tried
allow_call_time_pass_reference 1
without php_flag at the beginning
that didnt work
thanks!
What to write in the HTaccess file other than that
‘ php_flag allow_call_time_pass_reference 1 ‘
because when i create a htaccess file … i get at 404 page….
Thanks
Hassan
Hey Hassan, your host server is probably not set to allow php settings in .htaccess. I would check with support for your host provider or if it’s your own server, check the forums for whatever OS you are using.
FYI I tried using the string above:
php_flag allow_call_time_pass_reference 1
And it did not work for me. I had to use:
php_flag allow_call_time_pass_reference on
This is with PHP Version 5.1.6
Oh! Important note about my comment above: I was modifying the vhost.conf file of a site on a Plesk installation rather than an .htaccess file, if that perhaps makes any difference.
@Hermes
Thanks Hermes, I updated the page to indicate that it may be one or the other.
php_flag allow_call_time_pass_reference 1
this only worked after changing my file name to .htaccess instead of htaccess.txt
Hey Al, it’s somewhat of a convention to include a default htaccess.txt file with web apps like joomla, wordpress, etc. Essentially this makes the file disabled until you rename it to .htaccess. it’s done that way because .htaccess files contain server configuration and it tends to vary widely what is supported from one server to the next.
Also files that begin with a dot are hidden by default on a lot of systems.