0% found this document useful (0 votes)
37 views

ZCE (PHP Language Basics) PDF

To run PHP scripts, you need a web server like Apache installed along with the PHP module. For database applications, you'll also need a database server like MySQL installed. The document provides instructions on installing PHP and Apache on Ubuntu Linux, Windows, and Mac OS X. It discusses setting the timezone in PHP and compiling PHP from source. It also mentions using PuTTY to run PHP remotely.

Uploaded by

Abdelahad Satour
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
37 views

ZCE (PHP Language Basics) PDF

To run PHP scripts, you need a web server like Apache installed along with the PHP module. For database applications, you'll also need a database server like MySQL installed. The document provides instructions on installing PHP and Apache on Ubuntu Linux, Windows, and Mac OS X. It discusses setting the timezone in PHP and compiling PHP from source. It also mentions using PuTTY to run PHP remotely.

Uploaded by

Abdelahad Satour
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 6

De l'esprit à la machine

L'approche Professo-Académique

ZCE

Séances
PHP Language Basics
To create and run PHP scripts, you need to have a few things in
place:
 A computer running Web server software, such as Apache or
Internet Information Server (IIS)
 The PHP server module installed on the same computer. This
module talks to the Web server software; this is the PHP
engine that actually does the work of running your PHP scripts
 If you want to build database-driven Web applications — and
you probably will — you also need a database server installed.
Options include MySQL, PostgreSQL, and SQL Server. This
book mostly refers to using MySQL, so that's the database
server that you'll install here
Many combinations of operating system and Web server software
(not to mention versions of PHP) are available. For example,
operating systems that can run PHP include Linux, Windows,
and Mac OS X, and Web server software includes Apache, IIS,
and Zeus. To keep things simple, this chapter concentrates on
installing PHP and Apache on Ubuntu Linux, Microsoft
Windows, and Mac OS X.
1. Download wampserver
2. http://windows.php.net/download/
3. Copy
◦ Wampserver.conf(extension_dir )
◦ php.ini (extension_dir)
◦ phpForApache.ini(extension_dir , rename php.ini-development)
1. Setting Your Time Zone
;date.timezone = America/Los_Angeles

OR

.htaccess
php_value date.timezone America/Los_Angeles

OR

date_default_timezone_set( "America/Los_Angeles" );
 Compiling PHP Yourself
Todo http://windows.php.net/snapshots/

 MSDOS
TP
 Running PHP Remotely

http://www.putty.org/
 Phpinfo();

You might also like