Archive for the 'PHP' category

cURL example

if (!function_exists(‘curl_init’)){ die(‘CURL is not installed!’); } $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $Url); curl_setopt($ch, CURLOPT_REFERER,

Remote Address & Browser

$_SERVER['REMOTE_ADDR'] $_SERVER['HTTP_USER_AGENT']

.htaccess, show PHP errors

php_flag display_errors on php_flag display_startup_errors on php_value error_reporting 2047

Check if PHP works with sessions

Create a PHP file with the code bellow and check if it works!