Tuesday, November 18, 2008

PHP BASIC SYNTAX

THIS TUTORIAL IS CREATED BY ME OF COURSE ^^ THIS IS MORE ABOUT BASIC SYNTAX IN PHP. WATCH AND LEARN AND APPLY IT IN YOUR HOME LAB. JUST BE PATIENT, And chill..




Friday, November 7, 2008

Installing PHP, IIS, My SQL

TIP: just focus forget all those things just put in your mind here and apply it in vmaware.this is only 20min review to know more about installing php,iis,sql how it run.much better if you focus, and be patient.

Windows Base: Using XP

this sign > greaterthan that you will see in my tutorial is it means NEXT


First: you have to do is go to control panel > add and remove programs click it and click in the add and remove windows components in the left side> it pup ups and check IIS and click details check all except except ftp and front page because we dont need that as of now. and click next.. > ok. finish

Second: go to Run > type inetmgr to open iis or if doesn't appear go to windows website and download iis manager DOWNLOAD HERE
> go to c:\inetpub\wwwroot > create a web html name test.html> save it to wwwroot > and restart iis > go to web browser type localhost/test.html you will see its ok.

How to restart iis? goto iis manager in your local computer rightclick and you will see they have restart option and click it.

Third: download php download zip file Here in PHP link.> choose us> and create a folder anything you want in your drive letsay in your c:\php folder and extract it into the folder that you have been created.much better if its .zip rather than .exe if because its to simple just follow the instruction

Fourth: Go to your php path find php.ini-recommended open it using notepad or textpad in c:\php that you have been created and open it in text pad > find doc_root using ctrl+f > and edit it put c:\inetpub\wwwroot and > find session.save in the session.save_path put this location c:\inetpub\session and go to c:\inetpub and create a folder name session to save the session that you have been created > and
find extension_dir > to see if there are extension go to c:\inetpub and find the folder ext > go back to textpad put c:\inetpub\ext > and next find mysql > and ; delete this ; in the mysql.dll > and now save your config in c:\php using php.ini file name.

Fifth: go to my computer > right click> properties > advance tab > environments variables > click new if dont have yet php input > PHPRC variables c:\php > and in systems variable > edit the path > put c:\php; ok.


Sixth: In iis manager >go to website default in the downlist > properties> home directories > configuration > add > .php and executable find >php5isapi.dll > apply ok ok.. go to document tab and add index.php > ok > and put in the upper level. ok> and restart iis

and create a php in notepad. to test it here is the example

sample:


echo "this is my php test.";
?>

note: search more sample in PHP tutorial site


and save it in wwwroot save: index.php

create a virtual directory:

go to iis manager > default website right click > new virtual directory > create an alias let say (firstvirtual)> create a folder in c:\inetpub\wwwroot letsay first > then put into them the iis virtual directory > check all the following permission > ok> finish

and create again a php and save it in (first folder) name: first.php
and try to browse it in explorer type localhost/firsttest/first.php

How to download mysql? and install?

and now download a my sql in MySql link

install it > run it> next>install> next> next> finish > detailed config > if dont have install use standard> next> use the deault mysql > enter pass dont enable root access >next > execute> finish

It is almost done for installing it so easy right!if you have any problem, dont scarred to ask because it's free.. ihope you enjoying to read my blogs.

If you want to know CIsco networking Config and Design go to this link its my blogs again Network Evolution

thanks, ihope this is imparmative to you. and later ill post my screenshot for what im doing.and maybe video. tenx.