anyway to make php4 strict code in xammp ??

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
User avatar
PHPycho
Forum Contributor
Posts: 336
Joined: Fri Jan 06, 2006 12:37 pm

anyway to make php4 strict code in xammp ??

Post by PHPycho »

Hello forums!!
I would like to know if there is any method to make the php script to be strict php4 compatible
For example we can use E_STRICT for php5

I would like to any .htaccess hack or else method.
Note: I have xammp installed with php5
Thanks in advance to all of you.
User avatar
Benjamin
Site Administrator
Posts: 6935
Joined: Sun May 19, 2002 10:24 pm

Re: anyway to make php4 strict code in xammp ??

Post by Benjamin »

You can't. You can prevent the errors from being displayed, but var is depreciated in PHP5. You can do a find and replace to convert var to public though.
Post Reply