BLOGGER TEMPLATES - TWITTER BACKGROUNDS

Monday, June 22, 2009

PHP

use terminal and use this command :

- su root
- [password]
- cd /media/Fedora/10\i386\DVD/Packages/
- ls | grep php
- (will show you list all php packages)
- rpm -ivh
- vim/var/www/html .php

[Coding PHP]

echo ("whatever you want to say
");

for ($i=1; $i<=10; $i++){
for ($j=1; $j<=i; $j++){

echo("whatever");

}

echo ("
");

}
?>

- klik 'i' untuk insert
- esc
- :wq
- buka mozilla and taip http://127.0.0.1/(your file name).html

0 comments: