Send Mail with PHP and SMTP

September 3, 2012

If you are using Cpanel first install the Pear Mail. To do so go to Software/Service and find PHP Pear Packages Like so: Once You have clicked on PHP Pear Packages you will type in Mail: This will allow you to search for the PHP Pear Mail package. You will see it listed like so: […]

Finding visitors IP address using PHP

June 3, 2012

There are 2 was to find a users IP address using PHP. The method you will need to use depends on the server setup(or more directly the php.ini setup). To find your current setup you can simply create a file named phpinfo.php, info.php or whatever you would like it to be named. In the file […]

Integrating Twitter feed into your page

April 13, 2012

Integrating Tweets into your page is not as difficult as one may think. The first step is to find your twitter RSS feed. It would look something like: https://api.twitter.com/1/statuses/user_timeline.rss?screen_name=Your_User_name Once you have your RSS Feed URL the following snippet of php will get your tweets: $doc = new DOMDocument(); if($doc->load(‘http://api.twitter.com/1/statuses/user_timeline.rss?screen_name=Your_User_name’)) { $max_tweets = 5;   […]