Archive

Posts Tagged ‘_SERVER’

WordPress Hacked – eval base64_decode _SERVER[HTTP_REFERER]

September 4th, 2009 8 comments
WordPress Hacked – eval base64_decode _SERVER[HTTP_REFERER] if your wordpress links not working, is redirected or url have this text: eval(base64_decode($_SERVER[HTTP_REFERER])) your WordPress Has Been Hacked! Malicious codes, especially those that interpreted with eval() or base64_decode() command been inserted into WordPress PHP files or in database. Solution for nasty ...

PHP Current Folder – 6 Solution

February 21st, 2009 No comments
PHP Current Folder – 6 Solution using getcwd (Gets the current working directory) $current_directory = getcwd(); using dirname (Returns directory name component of path) $current_directory = dirname(__FILE__); <=== The Fastest or $current_directory = dirname($_SERVER["SCRIPT_FILENAME"]); or $current_directory = dirname( $_SERVER["DOCUMENT_ROOT"].$_SERVER["PHP_SELF"] ); using substr (Return part of a string) and strrpos (Find position of first occurrence ...
GoCache - ByREV-Cache v1.0 - live served in : 0.60441 sec (gzip)