How to Run PHP in Dreamweaver? Explore the Site Definition
We aren’t simply able to run php scripts directly in Dreamweaver, as the software needs to know some information about the server, host name and the location of the PHP files first. So how can we do it then?
The Site Definition is the answer for this question. Follow these steps:
The following screenshots were captured from Dreamweaver CS4. For CS3, 8, MX-2004, and MX, the screens are slightly different.
On the menu bar, select Site -> New Site…

You will see the following screen. Notice that the Basic and Advanced Site Definition are both available. I would recommend selecting Advanced as you will have more flexibility in configurations than the Basic one. On the other hand, the Basic Site Definition is easier to understand as it will show and ask you to input fewer details.

Under the advanced tab, you should notice there are various categories to be configured. I’ll explain it what’s necessary for us in just a minute. At this point, create a folder called ‘dwphp’ or anything else you prefer under C:\AppServ\www\ and another folder called ‘images’ under C:\AppServ\www\dwphp\
Read the rest of this entry »
Writing and Running Your First PHP Code
In the previous tutorial I explained you about how to install Appserv as our server which also supports PHP and MySQL. I believed that you, my dear online friends, could get through all the steps so easily…
Congratulations! You are now ready for the next step. After you have Appserv installed, you should notice a directory call “Appserv” which is located in C: Drive (by default “c:\AppServ\”). Double click on it and find a folder named “www”.

This is where our files for web sites will reside….At this level of directory, you need not pay attention to other folders. What’s necessary for us now is only “www”.
Read the rest of this entry »
Apache Server/PHP/MySQL/phpMyAdmin Setup using AppServ
Our goal is to be able to run PHP scripts on our own computers for the purpose of dynamic web testing and development. What exactly should you do to get the scripts run properly? Unlike running general HTML scripts in IE or any other browser, running PHP requires some components for the script compilation. The answer to this question is by installing a web server (Apache), PHP Core, and MySQL (for database-driven websites) on your PC.
However, installing all these components individually on your PC is quite cumbersome for newbies as some complicated configurations will be needed in the process. I’d recommend my dear readers to grab the following package that will install the above components for you in just less than 10 clicks…Trust me, it’s really that simple!
Read the rest of this entry »
Hello World! Getting Yourself Ready!
Welcome to the very first post of this blog. You probably noticed the words “Hello World” in title, and wondered why they should be the title of this post. Well, simply it was provided by WordPress after the installation’s finished, and I thought it’s kinda cool as these two words are found in almost all first programming exercises for printing some texts on the screen using a specific syntax.
Having said that, this similar exercise will definitely be included as part of PHP Tutorial Series that you will explore further. At this time, be prepared and get yourself ready to begin your (first time) coding. All you need to have now are a Computer and Willingness to learn
.
In case you have some specific topics in mind that you would like me to cover in the future. Feel free to suggest them in your comments, and I’ll try to find a spot for them in my further tutorials. I’ll see you in the next post then !
Last but not least:
1 2 3 | <?php echo "Hello World!"; ?> |
