disabling deprecated texts

Problems with the Windows version of XAMPP, questions, comments, and anything related.

disabling deprecated texts

Postby jordan30001 » 29. September 2011 23:49

hi guys i just instaled xampp and im recieving deprecated texts all over the page such as

Deprecated: Function eregi_replace() is deprecated in C:\xampp\htdocs\Arcade.php on line 121
Deprecated: Function eregi_replace() is deprecated in C:\xampp\htdocs\Arcade.php on line 125
Deprecated: Function eregi_replace() is deprecated in C:\xampp\htdocs\Arcade.php on line 126
Deprecated: Function eregi_replace() is deprecated in C:\xampp\htdocs\Arcade.php on line 127

is there a option that i mised to stop it showing these deprecatations
jordan30001
 
Posts: 4
Joined: 29. September 2011 23:41

Re: disabling deprecated texts

Postby Sharley » 29. September 2011 23:59

We require your XAMPP version and your Windows Version to provide the correct version support.
viewtopic.php?f=16&t=48331
viewtopic.php?f=16&t=32670

Thanks.
User avatar
Sharley
AF Moderator
 
Posts: 3316
Joined: 03. October 2008 05:10
Location: Yeppoon, Australia Time Zone: GMT/UTC+10
Operating System: Win 7 Pro 32bit/XP Pro SP3

Re: disabling deprecated texts

Postby jordan30001 » 30. September 2011 00:01

Sorry, i am using version 1.7.7
Last edited by jordan30001 on 30. September 2011 00:11, edited 2 times in total.
jordan30001
 
Posts: 4
Joined: 29. September 2011 23:41

Re: disabling deprecated texts

Postby Sharley » 30. September 2011 00:10

Open \xampp\php\php.ini file in your text editor and find these lines that are not commented out.

Code: Select all
error_reporting = E_ALL | E_STRICT
The above can be changed by reading the comments for this setting

You can turn this to Off
Code: Select all
display_errors = On
If you make any changes save the file and restart Apache.

But remember you will not know if your scripts have any php errors.

So if you get unexpected behavior then turn the above back On again and test your scripts.

XAMPP is by default set up for Developers who obviously need error reporting turned On.

Good look and please post back if the above helps.

Thanks :)
User avatar
Sharley
AF Moderator
 
Posts: 3316
Joined: 03. October 2008 05:10
Location: Yeppoon, Australia Time Zone: GMT/UTC+10
Operating System: Win 7 Pro 32bit/XP Pro SP3

Re: disabling deprecated texts

Postby jordan30001 » 30. September 2011 00:16

thanks i used E_COMPILE_ERROR|E_RECOVERABLE_ERROR|E_ERROR|E_CORE_ERROR which gives errors that are needed but rids the page of the deprecated text :)
jordan30001
 
Posts: 4
Joined: 29. September 2011 23:41


Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 260 guests