Jump to content

Htaccess Changes


Agrestis

Recommended Posts

Since the upgrades, a few of my PHP scripts no longer work as expected.

 

I have the following lines in my htaccess file

 

>php_value date.timezone Europe/London
php_value include_path .:/usr/lib/php:/usr/local/lib/php:/home/***/php

 

(there are other php_value statements and they have all been enclosed in <IfModule php_config> by the upgrade)

 

In the past this enabled me to use PHP functions like strtotime() and PEAR packages in my scripts.

 

But since the upgrade I am getting these errors:

Warning: require_once(Numbers/Roman.php) [function.require-once]: failed to open stream: No such file or directory in ****.php on line 123

 

Strict Standards: strtotime() [function.strtotime]: It is not safe to rely on the system's timezone settings. Please use the date.timezone setting, the TZ environment variable or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'America/New_York' for 'EDT/-4.0/DST' instead in ****.php on line 123

Other php_value lines are still working as expected yet these two seem to have stopped working as expected.

 

The Numbers/Roman pear package is definitely still installed and other pear packages in other scripts in directories without this htaccess file stile work, so I am assuming it is some problem with either the include_path or the timezone or both in this htaccess.

Link to comment
Share on other sites

Join the conversation

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

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

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