Running cron job every 5 minutes
1. Go to editor: crontab -e 2. */5 * * * * /usr/bin/curl https://www.natality-dating.com/1/bulkmailer/1 2>/dev/null >/dev/null 3. Check the result: crontab -l 4. Check if cron is running: ps -aef | grep cron
1. Go to editor: crontab -e 2. */5 * * * * /usr/bin/curl https://www.natality-dating.com/1/bulkmailer/1 2>/dev/null >/dev/null 3. Check the result: crontab -l 4. Check if cron is running: ps -aef | grep cron
1. git remote set-url origin https://username@hostname:port/project.git 2. check the result by typing git remote -v
1. Directly with Redis class config/app.php … ‘providers’ => array( ‘Illuminate\Redis\RedisServiceProvider’, ), ‘aliases’ => array( ‘Redis’ => ‘Illuminate\Support\Facades\Redis’, ), config/database.php … ‘redis’ => array( ‘cluster’ => false, ‘default’ => array( ‘host’ => ‘127.0.0.1’, ‘port’ => 6379, ‘database’ => 0, ), ), … PHP code will look like this $redis = \Redis::connection(); if ($redis->exists($cacheKey)) { $results […]
error_reporting(-1); ini_set(‘display_errors’, ‘On’);
1. Add trace attribute to SoapClient when intialize it. $soapclient = new SoapClient( $soapurl, array(‘trace’ => 1) ); 2. Add the following 2 methods after making a soap call echo $soapclient->__getLastRequest(); echo $soapclient->__getLastResponse() ;
The usual approach is Use objects when returning a defined data structure with fixed branches: $person -> name = “John” -> surname = “Miller” -> address = “123 Fake St” Use arrays when returning a list: “John Miller” “Peter Miller” “Josh Swanson” “Harry Miller” Use an array of objects when returning a list of structured […]
window.location.host or document.location.host : you’ll get sub.domain.com:8080 or sub.domain.com:80 window.location.hostname or document.location.hostname: you’ll get sub.domain.com window.location.protocol or document.location.protocol: you’ll get http: window.location.port or document.location.port: you’ll get 8080 or 80 window.location.origin or document.location.origin: you’ll get http://sub.domain.com *