Checking if file_get_contents works on Web server

Hire is little handy script how to check if function file_get_contents works on the web server. <?php $con = file_get_contents(‘https://pixabay.com/get/e833b2062df6093ed95c4518b74f4791e27ee4d004b0154696f5c070a4eeb2_640.jpg’); if(strlen($con)>0){ echo “hurray, we can get ” . strlen($con) . ” bytes from https://pixabay.com/get/e833b2062df6093ed95c4518b74f4791e27ee4d004b0154696f5c070a4eeb2_640.jpg”; }else{ echo “file_get_contents() PHP not working, we can get 0 (read:zero) bytes from https://pixabay.com/get/e833b2062df6093ed95c4518b74f4791e27ee4d004b0154696f5c070a4eeb2_640.jpg. This means we cannot read files”; }…

Tagged ,

VPN connection dropping every couple minutes…

There are many reasons why VPN might be dropping its connection: * Inadequate Signal Strength – you are connected to a signal based network such as Wi-Fi or on a mobile Internet connection, low signal strength will likely cause your connection to drop due to excessive data losses. * Network Congestion – When connected to…

Tagged ,

Log file formats

Common Log format (CLF) W3C Squid native format NCSA Log format Cloud Front Google Cloud Storage AWS elastic load balancing (https/s) The Common Log Format example. 207.40.10.1 user-identifier frank [10/Oct/2000:13:55:36 -0700] “GET /apache_pb.gif HTTP/1.0″ 200 2326 Explanation: If you find “-” in a field this indicates the missing data. 207.40.10.1 is the IP address of…

Tagged