Archive for the ‘php’ category

Manual Installation Tutorial for PHP 5 on IIS 5.1 (Windows XP Pro)

January 13th, 2010

Prerequisite: IIS (web server) installed. There is a link to an IIS installation tutorial at the end of this article

Before we begin any installation steps, the first thing we will need to do is download the PHP zip file from PHP.net (www.php.net/downloads.php). The version available at the time of this publishing is 5.1.4.

The first step is to extract all of the files from the downloaded zip file into C:PHP (create the folder if it doesn’t already exist). You may choose a different location, although it is not recommended. The path must NOT have spaces, for example, you cannot use C:Program FilesPHP. Some web servers may not be able to handle the path name and will fault.

PHP 5 includes a CGI executable, a CLI executable as well as the server modules. The DLLs needed for these executables can be found in the root of the PHP folder (C:PHP).

php5ts.dll needs to be available to the web server. To do this, you have 3 options:

1. Copy php5ts.dll to the web server’s directory (C:inetpubwwwroot).

2. Copy php5ts.dll to the Windows system directory (C:windowssystem32).

3. Add the PHP directory path to the environment variables PATH.

We will go with option 3, because we would like to keep all of our PHP install files in the same location, for easier cleanup later, if needed. Let’s proceed…

Instructions on how to put C:php in env variables PATH.

First we want to open System Properties. There are two ways to get to System Properties. Either way will work.

1. Right-Click on My computer and choose “properties”.

2. Go to Control Panel, and select “System”.

Once here, we want to select the Advanced tab. In the Advanced tab, click the “Environment Variables” button. There are two sections in the Environment Variables window, User Variable and System Variables. We will be using System Variables. Scroll down in System Variables until you find the variable PATH. Highlight that line and the select Edit below the System Variables window. We will only be adding to the Variable Value. BE CAREFUL HERE. You do not want to delete anything on this line. Simply find the end of the line and add a semi-colon ( ; ) if there is not one already. After the semi-colon, type: C:PHP and then hit OK. Now click OK on the Environment Variables window. Finally click OK on the System Properties window and we are done with this part.

Now we must restart the computer to make the Environment Variables changes come into play. We cannot simply log off and log on, you must restart.

The next step is to set up a config file for PHP, php.ini. In C:PHP you will find two files named php.ini-dist and php.ini-recommended. We will use php.ini-recommended for this install, and all you need to do is rename it from php.ini-recommended to php.ini.

1. doc_root = C:inetpubwwwroot

2. cgi.force_redirect = 0

Now PHP is installed, lets move on to preparing our IIS to use PHP.


Configure IIS to use PHP.

1. Open IIS

2. Under Home Directory: Set “Execute Permissions” to “Scripts Only”

3. Click on configuration..

a. Click Add

b. Set “executable” to C:PHPphp5isapi.dll

c. Set “extension” to .php (don’t forget to include the . )

d. Click OK

e. Click Apply, then OK.

Under ISAPI Filters

a. Click “Add”

b. Set Filter Name to PHP

c. Set Executable to C:PHPphp5isapi.dll

d. Click OK.

e. Click Apply, then OK.

Restart the Web Server

Now we want to test PHP on our system. To do this, we will create a file called phpinfo.php and it will be used to display all of the PHP info from our system in our web browser.

1. Open Notepad and type:

&amp;lt;?php echo phpinfo();<br>?&amp;gt;

2. Save the file as phpinfo.php and select the file type ‘All Files’(Important: do not save the file as .txt, as it will not work).

3. Move the file into C:inetpubwwwroot

4. Open your web browser and type: [http://localhost/phpnfo.php]

5. Your browser should display a lot of PHP information.
Click here for IIS installation tutorial. [http://www.studiothreehundred.com/viewarticle.php?id=45]

Congratulations! PHP is now installed and configured on your machine. You can now start building dynamic web pages.

Chris Alexander is a freelance web designer for StudioThreeHundred.com. For more tutorials visit StudioThreeHundred.com

PHP Tutorials For Beginners is What You Need

January 10th, 2010

Creating your first website can be both fun and rewarding. Using HTML seems easy enough so you build your site around it. The problem you may have is that their is only so much you can do with this language. You need PHP on your website to make it more functional. But PHP seems so hard to understand. A PHP tutorial for beginners would be nice to have but is it really worth the effort to make the chance to PHP?

The good thing about PHP is that you do not need to make your entire website from PHP. You can use it in conjunction with your HTML. Certain applications like collecting e-mail addresses allows you to send the visitor straight to the page you want without you having to e-mail the link to them. This helps make you site automated. That means you do not have to step in every time someone subscribes to what you are offering. They can download stuff easier, submit comments that displays on your website instantly and more.

Depending what you want your site to do it is not necessary for you to use a PHP tutorial to build a site with. You can download scripts that you particularly need but the problem with that is you may not be able to adapt the code to match your website. By having some type of PHP tutorial for beginners you can create codes that perfectly match your website making you look more professional.

You do not have to worry about it not working on your visitor’s PC because it works on all operating systems and most web servers out there. Your visitors should have no problems when they land on your site.

A PHP tutorial is best if your site is a membership site. Your members will be able to navigate your site and upload and download software as well as send messages to other members without you having to do a thing. This will save you both time and money.

I could go on all day about the benefits of having your own PHP tutorial to build your website with but I think you get the idea. For beginners, this is the best thing to have so you do not make mistakes that end up costing you a potential customer. You only get one chance to make a good first impression so do it right.

If you really want to see what PHP can do for your website than you need to see the PHP tutorials for beginners and get started now. Like that idea about a membership site? Create your own here at: http://www.allproman.com/membership-website-software/

Create a Simple Hit Counter Using PHP and MySQL

January 8th, 2010

In this article I describe how to use PHP and MySQL to produce a simple counter that can be placed on a web page. PHP and MySQL work very well together, and this article shows, hopefully, how easy they are to use to produce a useful little utility.

In order for the counter to work, the web server you upload the files to needs to support PHP and MySQL. Most good hosting solutions do.

The counter needs a database called ‘counter’, a table in that database called ‘countertable’, and a field in the table called ‘count’. If you want to use a different database, table, or field name, make sure you change the appropriate references to these names in the scripts. » Read more: Create a Simple Hit Counter Using PHP and MySQL

LAMP (Linux Apache MySQL PHP) Software Bundle for PHP Developers

December 28th, 2009

Current website development relies more on open source to handle forms and back end things. Whether it is a e commerce website or a portal, certain level of technical handling is there from server side. Certain redirection, conditional surfing based on ip address of client, privilege approving and database integration all are done by a software bundle named LAMP. LAMP is a short notation of individual software such as Linux (OS), Apache HTTP server, MySQL (DBMS) and of course PHP. » Read more: LAMP (Linux Apache MySQL PHP) Software Bundle for PHP Developers

Should I Using ColdFusion Or PHP?

December 27th, 2009

There is a long running debate over which of these two languages is better for developing dynamic web pages. Each can provide a great deal of functionality and features (along with database access) to a website. Each are in high demand be web developers, and it seems that everyone has their preference for one reason or another.

Most would argue or even agree that ColdFusion is easier to use. Its tag based setup makes it very similar to writing HTML. As such the transition from one into the other is easier and the vast array of tags provides an extensive source of functions. As you would expect, this makes ColdFusion very accessible and the small amounts of concise code make debugging a very straight forward process. Furthermore it is very simple to make the transition from one database system to another in ColdFusion as the process only required one element of the code to be changed. ColdFusion also has built in functionality such as XML integration, charting and POP mail retrieval. » Read more: Should I Using ColdFusion Or PHP?

The Benefits That PHP Certification Can Give Web Developers

December 26th, 2009

PHP is a server side scripting language that allows you to create some of the most beautifully dynamic and interactive websites out there, and if you can use it, you can go straight to the top when it comes to getting web design work. However, getting your foot in the door isn’t simply a matter of knowing how to do the work; not only do you need to know PHP inside and out, you are going to need to prove to potential clients and employers that you have the knowledge as well! The truth of the matter is that when you are looking to get hired for web design work, you are not always dealing with people who will recognize your experience or your knowledge; this is where having PHP certification can help. » Read more: The Benefits That PHP Certification Can Give Web Developers

Introduction to Web application development for PHP Developers – PHP Tutorial by Aegis Software Part 1

December 25th, 2009

How Web Applications works technically?

Web Application is final software products which interact with end users. Every web pages are stored at server located anywhere in the world. Whenever a user sends the request for certain page, the request is passed to certain ip address at which the web server is situated. Web server then resolve the query and provide user with requested page. At user side a partial replica of the web page is created temporary to let users view the page. » Read more: Introduction to Web application development for PHP Developers – PHP Tutorial by Aegis Software Part 1

The Growing Craze about Cheap SEO Services

December 24th, 2009

The world is already passing through a period of global economic recession & hit by an economic down time most of the business owners are now looking for cheaper alternatives to online marketing that will promote their site successfully. What could be more effective than cheap SEO services which will bring their sites cheap publicity & help them save valuable advertising dollars?

In fact the initiation of search engine optimization has brought new hopes for every small to medium sized business & helps them skyrocket their profit. But online advertising & marketing of a site involves high cost & it can be brought down successively through hiring of affordable SEO services from reliable companies. However, website owners usually have to face a great difficulty in finding cheap search engine optimization companies with a record of quality SEO services. » Read more: The Growing Craze about Cheap SEO Services

85 Free Php Scripts

December 23rd, 2009

1) Expired Domain Finder Script:
This PHP script has become a very hot item within the last 6 months! This Script will look up domains that have expired, or are about to expire in both the Yahoo! Directory, AND Dmoz Directory! This script will also allow your customers to monitor domains that they are interested in; it has a domain digger, and has PayPal IPN functionality built right into the script! There are many websites selling memberships using this script for up to as much as $29.99 per month! The script comes with an administrator section where you can manage the look, and feel of your website, as well as manage your members, set up different membership packages and more! The fact that this script uses MySQL means that it is extremely fast, and can look up expired or soon to expire domains in an instant! » Read more: 85 Free Php Scripts

How To Find A PHP Generator To Make Building Your Website Easier

December 22nd, 2009

Are you looking for a PHP generator to use to help you build web pages for your website? Then you need to know that there are a couple of different places to find a good generator to use. Knowing how to find this tool will make it much easier for you to start using it for your online business. Plus, it will save you a lot of time searching.

Here are the different places to find a good generator you can use. » Read more: How To Find A PHP Generator To Make Building Your Website Easier