top of page
Search
سُلَيْمَان بْن دَاوُوْد
Jan 5, 20252 min read
How malwares actually look of PHP Sites
I am adding few sample screen shots of how actually malwares look like in code of commonly affected sites Following is search engine...
سُلَيْمَان بْن دَاوُوْد
Jul 29, 20201 min read
Get User IP Address in PHP
public static function function get_client_ip() { $ipaddress = ''; if (getenv('HTTP_CLIENT_IP')) $ipaddress =...
سُلَيْمَان بْن دَاوُوْد
Jun 21, 20201 min read
REST API (POST/GET/PUT/DELETE) in php
Create a POST Request $postdata = array('name'=>'Hosting Transfer','price'=> '250'); $data_json = json_encode($postdata); $headers =...
سُلَيْمَان بْن دَاوُوْد
Jun 21, 20201 min read
Changing Directory Permission with Code
<?php file_fix_directory(dirname(__FILE__)); function file_fix_directory($dir, $nomask = array('.', '..')) { if (is_dir($dir)) { // Try...
سُلَيْمَان بْن دَاوُوْد
Jun 21, 20201 min read
Zip and Unzip in PHP
Code to Zip <?php //echo getcwd(); die; $rootPath = realpath('/home/cififacywac8/public_html'); // Initialize archive object $zip = new...
bottom of page