Posts Tagged ‘PHP’

Use Gmail Account To Relay Email From PHP mail Function

Localhost Mail

One of the things I find hard in developing a web application is using a library for sending email such as PHPMailer. I find it hard when used to send emails. Another thing I find hard is when sending emails in a localhost webserver. It would also cost me more and would take much time in setting up my own mail server. PHP’s mail function is also very useless in such testing ground. If you are using a gmail account [...]

Continue Reading

1 Comment

PDO Database Extensions Error

Drupal Logo

    I installed Apache, MySQL and PHP on windows 7.  I tried to install drupal version 7.9 and went through an error as shown in the image below: The error “Your web server does not appear to support any common PDO database extensions.” can be fixed by following these steps: Open your php.ini file Around line 966 uncomment the line “extension=php_pdo_mysql.dll” Make sure you have php_pdo_mysql.dll on your ext folder or download it here php_pdo_mysql Restart Apache and you can [...]

Continue Reading

No Comments

PHP Curl

If you are a web developer and having problems on Installing PHP Curl on Apache with PHP installed on Windows Operating System, below is my version of tonyspecer’s “cURL with PHP and Apache on Windows“.  The steps are simple and direct to the point. I have windows apache version 2.2.14 and PHP Version 5.2.10 installed on my Laptop using the installers provided on the respective sites. 1.  Install APACHE and PHP (I installed my APACHE on C:\apache and PHP on [...]

Continue Reading

No Comments

PHPMailer

Sending E-Mail with PHP can be simple, or it can be very complex depending on what you want to do.  PHPmailer is a free PHP software used for sending emails or should I say used for “spamming”.  Though the software has been provided for free, many developers has gone beyond its real purpose.  With a block of IP Address , a web server with PHP installed in it is a perfect set-up for spamming. I have been using this free [...]

Continue Reading

2 Comments

Code Igniter Query

Code Igniter is one of the best PHP framework available today.  It is free to download and user guide can be found together with the package. In Code Igniter the class that has the database queries or the methods that deals with getting the data on the database is placed inside the MODEL folder.  Just remember the “D” which tells us that Database methods are placed in this folder as what Jeffrey Way said in his tutorials. Here are different [...]

Continue Reading

6 Comments

Session Authentication

One problem in creating a PHP Session Authentication is that when you are logged in and suddenly logs out and click the back button you will be returned to the page where you kast visited.   Isn’t this a problem especially when you have important data in that page.  So if you have problem with this let me share a code that will surely eleminate the problem.  In this code there is no need for javascripts to disable the back button(what [...]

Continue Reading

2 Comments

PHP Displaying On the Browser

When its your first time to code HTML , the tendency of opening the file is by clicking it twice and yes the expected result is displaying.  And from that point on, they can view their web page/website as it was intended to be viewed.  Above image is one example of an HTML file viewed by double clicking on the file. But when you have a web server things are different. Last night I have this friend who was programming [...]

Continue Reading

No Comments

Rss Feeds