Thursday, February 19, 2009

installation XAMPP to Ubunto

download the XAMPP from aparchie friend

linux version.


sudo tar xvfz xampp-linux-1.5.3a.tar.gz -C /opt


This is command to extracting the file into the folder.

customzied the folder for yourself.


start XAMPP

sudo /opt/lampp/lampp start


kang@ubuntu:~$ sudo lampp/lampp start



stop XAMPP

sudo /opt/lampp/lampp stop






1. Make public_html directory in home directory:
Code:

mkdir ~/public_html

2. Link to /opt/lampp/htdocs
Code:

sudo ln -s ~/public_html /opt/lampp/htdocs/$USER

Wednesday, February 18, 2009

printing a Message

print "This is kang";
?>


phpinfo();

eg. phpinfo() code

phpinfo();
?>

create, upload,and run a php script

HTML and PHP

my code clear with comments

Platforms, Servers, Databases, and PHP

PHP is cross-platform

server module

PHP is designed to integrate easily with databases.

1. directly
2. open database connectivity (ODBC)



A1: The manual for PHP is available at http://www.php.net/manual/.



A2: You can get help on configuration options by calling the configure script in the PHP distribution folder and passing it the --help argument:


./configure -help





A3: The Apache configuration file is called httpd.conf.



A4: The line is


AddType application/x-httpd-php .php


It ensures that Apache treats files ending with the .php extension as PHP scripts.



A5: PHP's configuration file is called php.ini.

installing PHP

I used the windows XP

so, I used the XAMPP for running the PHP, Apache, mysql

my plan for PHP

What kind of PHP I want to create


1. internet shopping mall