Search the Community
Showing results for tags 'ereg_replace()'.
-
Can anyone help me with this - I don't normally do coding. I've just moved an old site onto new hosting and I'm getting this message: Deprecated: Function ereg_replace() is deprecated The code looks like this: if( preg_match( '/sl/i', $sOption ) ) $sContent = addslashes( $sContent ); else $sContent = stripslashes( $sContent ); $sContent = ereg_replace( "\r", '', $sContent ); if( preg_match( '/len/i', $sOption ) ) $sContent = checkLengthOfTxt( $sContent ); I changed it to look like this: if( preg_match( '/sl/i', $sOption ) ) $sContent = addslashes( $sContent ); else $sContent = stripslashes( $sContent ); $sContent = preg_replace( "\r", '', $sContent ); if( preg_match( '/len/i', $sOption ) ) $sContent = checkLengthOfTxt( $sContent ); But now get this warning message: Warning: preg_replace() [function.preg-replace]: Empty regular expression I didn't build the site so I don't even know what the script is trying to do - forgive my ignorance!
-
When I type my Website URL It's all right. But When I press the sub-category to view the inner content then the problem is occur. There is 5 folder in my public_html.. They are: 1.admin 2.avatars 3.FTP 4.images 5.includes and some php files. This is a script. I can't php. ###There's some Error... Deprecated: Function ereg_replace() is deprecated in /home/exwggayd/public_html/includes/functions.php on line 62 Deprecated: Assigning the return value of new by reference is deprecated in /home/exwggayd/public_html/includes/phpflickr/phpFlickr.php on line 91 Deprecated: Assigning the return value of new by reference is deprecated in /home/exwggayd/public_html/includes/phpflickr/phpFlickr.php on line 330 Deprecated: Assigning the return value of new by reference is deprecated in /home/exwggayd/public_html/includes/phpflickr/phpFlickr.php on line 399 Deprecated: Assigning the return value of new by reference is deprecated in /home/exwggayd/public_html/includes/phpflickr/phpFlickr.php on line 468 Deprecated: Assigning the return value of new by reference is deprecated in /home/exwggayd/public_html/includes/phpflickr/PEAR/HTTP/Request.php on line 228 Deprecated: Assigning the return value of new by reference is deprecated in /home/exwggayd/public_html/includes/phpflickr/PEAR/HTTP/Request.php on line 324 Deprecated: Assigning the return value of new by reference is deprecated in /home/exwggayd/public_html/includes/phpflickr/PEAR/HTTP/Request.php on line 602 Deprecated: Assigning the return value of new by reference is deprecated in /home/exwggayd/public_html/includes/phpflickr/PEAR/HTTP/Request.php on line 621 Strict Standards: Redefining already defined constructor for class Net_URL in /home/exwggayd/public_html/includes/phpflickr/PEAR/Net/URL.php on line 122 Strict Standards: Non-static method PEAR::isError() should not be called statically, assuming $this from incompatible context in /home/exwggayd/public_html/includes/phpflickr/PEAR/HTTP/Request.php on line 590 Strict Standards: Non-static method PEAR::isError() should not be called statically, assuming $this from incompatible context in /home/exwggayd/public_html/includes/phpflickr/PEAR/HTTP/Request.php on line 591 Strict Standards: Non-static method PEAR::isError() should not be called statically, assuming $this from incompatible context in /home/exwggayd/public_html/includes/phpflickr/PEAR/HTTP/Request.php on line 603 ##### The function.php inside the "includes" folder...may be there is the problem. But When I reload the page Everything Seems allright. Here is the Codes...Paste on Pastebin!! #function.php# hxxp://pastebin.com/PR4RKSJS #phpFlickr.php# hxxp://pastebin.com/zzaVehBx #Request.php# hxxp://pastebin.com/MPfq5zAL #URL.php# hxxp://pastebin.com/yDMvA7e5
- 1 reply
-
- ereg_replace()
- pereg_replace()
-
(and 3 more)
Tagged with: