How to get the Nameservers of a domain using PHP

Use the dns_get_record function with type DNS_NS Example: //Add this piece of code to your PHP will $result = dns_get_record(‘yourdomain.com’,DNS_NS); Execute the script //An array will be returned similar as below Array ( [0] => Array ( [host] => yourdomain.com [type] => NS [target] => ns1.yourdomain.com [class] => IN [ttl] => 70144 ) [1] => Array ( [host] => yourdomain.com [type] => NS [target] => ns2.yourdomain.com [class] => IN [ttl] => 70144 ) ) Explanation: ...

March 22, 2018 · 1 min · 87 words · icarnaghan

How to get the QUERY STRING using the Yii Framework 1.1.x

The QUERY STRING server variable forms part of the Server and execution environment information set To get the QUERY STRING within the Yii Framework use the following code echo Yii::app()->request->getQueryString(); //The same as echo $_SERVER['QUERY_STRING']; This can be called from anywhere within your Yii Framework application

March 22, 2018 · 1 min · 46 words · icarnaghan

How to get the request URI using the Yii Framework 1.1.x

The Request URI server variable forms part of the Server and execution environment information set To get the URI within the Yii Framework use the following code echo Yii::app()->request->getRequestUri(); //The same as echo $_SERVER['REQUEST_URI']; This can be called from anywhere within your Yii Framework application

March 22, 2018 · 1 min · 45 words · icarnaghan

How to get the server name using the Yii Framework 1.1.x

Use the code below to obtain the server name Yii::app()->request->serverName

March 22, 2018 · 1 min · 10 words · icarnaghan

How to get the user's IP Address using the Yii Framework 1.1.x

The Host Address server variable forms part of the Server and execution environment information set To get the user’s IP ADDRESS within the Yii Framework use the following code echo Yii::app()->request->userHostAddress; This can be called from anywhere within your Yii Framework application

March 22, 2018 · 1 min · 42 words · icarnaghan

How to get Twitter Push Notifications on your IPhone?

Make sure you have the Twitter app installed and configured Click on Settings Select Notifications and ensure that the Notifications are switched on Select Twitter from the list and ensure that the Alerts are switched on Now whenever a new tweet arrives you will get notified.

March 22, 2018 · 1 min · 46 words · icarnaghan

How to include JQuery in the Yii Framework

You can add the below code anywhere in your Yii Application and JQuery will be included in the rightful place in your application Yii::app()->clientScript->registerCoreScript('jquery');

March 22, 2018 · 1 min · 24 words · icarnaghan

How to increase the file upload size for PHP using the .htaccess file

Copy the following lines into your .htaccess file, you may adjust the values as you see fit php_value upload_max_filesize 10M php_value post_max_size 20M php_value memory_limit 128M

March 22, 2018 · 1 min · 26 words · icarnaghan

How to make an html input field readonly

You need to use the READONLY attribute for the input field. Readonly only prevents the user to change data in the input field. Example: <input type="text" name="info" id="info" READONLY />

March 22, 2018 · 1 min · 30 words · icarnaghan

How to manually delete music from your IPhone using iTunes

NOTE: This has been tested within iT****unes 10 Connect your iPhone and open iTunes On the left side panel within iTunes under Devices select your iPhone and choose the Summary tab at the top Under Options tick Manually manage music and videos and click the Apply button On the left side panel under Devices expand the sub-menu’s for your device by pressing on the arrow and select **Music ...

March 22, 2018 · 1 min · 101 words · icarnaghan