| Autor |
Mesaj |
Vlad
MoDeRaToR


Data inscrierii: 27/Iul/2006 Mesaje: 82
|
|
EasyPHP |
|
http://sourceforge.net/project/downloading.php?groupname=quickeasyphp&filename=easyphp1-8_setup.exe&use_mirror=nchc
Si o mica introducere
Cod:
Launch EasyPHP
We can't properly talk about the launch of EasyPHP, it's only the fact of starting the Apache and MySQL server. After the installation, a shortcut to EasyPHP is created in the directory "Start/Programs/EasyPHP". Once EasyPHP is launched, an icon is placed in the System Tray. Click on it to access on the different menus :
• Log file: reporting every generated errors from Apache and MySQL
• Configuration : a simple interface to configure EasyPHP
• Web local : open the URL "http://localhost/"
• Start/Stop : start/stop Apache and MySQL service
• Quit : do I need to explain? :p
The use of the www directory
In order for your scripts to be executed, you must place your files in the "www" directory. The Apache server is configured to automatically open an index file when you enter the address 'http://localhost/' (Apache must have been started). This page is the default start page, it's the proof that EasyPHP is running. You are advised to create a directory for each project inside the "www" directory; so you can easily manage all of your developments.
My first PHP pages
A lot of PHP editors exists. Here we will simply use a text editor (such as Notepad).
• Edit a new file
• Type the usual blank HTML structure page:
<html>
<head>
<title>My first page in PHP</title>
</head>
<body>
</body>
</html>
• This example will display the current date. The PHP code can be set inside the HTML code and begins with <? (or <php>.
Posting current date :
<html>
<head>
<title>My First page in PHP</title>
</head>
<body>
Current date : <print>
</body>
</html>
• Save page.
Create a new directory in the "www" or use the directory created after the installation : "project1" (can be renamed, of course :P). Save the PHP page with ONE of the following extension: php, php3, php4. This is the usual set up of d'EasyPHP. Extensions may vary with your hosting company: don't forget to change the extension if needed. In this example, we choose .php extension: "date.php"
• Display of the result.
Reminder:
AVOID DOING : double click on the written script inside your project directory: you will get an error page.
BETTER DOING : launch EasyPHP, connect yourself on "http://localhost" from your browser, open your directory, then click on "date.php". You will see the correct page interpreted by the Apache server. Result look like this : "Current date : Sunday May 13, 2002".
It's your turn to realizate your scripts and pages. :) Enjoy EasyPHP!
|
|
| 25/02/2007 00:11 |
|
 |
|
|
Nu puteti crea un subiect nou in acest forum Nu puteti raspunde in subiectele acestui forum Nu puteti modifica mesajele proprii din acest forum Nu puteti sterge mesajele proprii din acest forum Nu puteti vota in chestionarele din acest forum
|
Powered by phpBB © 2001, 2005 phpBB Group Fa-ti si tu propriul forum GRATUIT, pe www.myforum.ro
|
|