TalkTopics.com - Talk about everything on earth!

Go Back   TalkTopics.com > TalkTopics Community > Computers & Technology > Linux / Open Source

Linux / Open Source Talk about Linux and Open Source stuffs here. On the desktop or as a server, talk all you want and get response from others around the world.

Reply
 
LinkBack Thread Tools
  #1 (permalink)  
Old 12-28-2006, 06:10 AM
smartgk smartgk is offline
Junior Member
Friendizen
 
Join Date: Dec 2006
Posts: 3
smartgk is on a distinguished road
Php - mysql - web based application

First sample :

save file as my001.php in any of your web server(ensures that web server supports php files).

and run from web browser as www.yoursite.com/my001.php


Sample Webpage 1:

<? php

phpinfo();

?>

Output:

It shows the Php Configuration Information
Reply With Quote
  #2 (permalink)  
Old 12-28-2006, 06:27 AM
smartgk smartgk is offline
Junior Member
Friendizen
 
Join Date: Dec 2006
Posts: 3
smartgk is on a distinguished road
PHP / MySQL Web based application

Second sample :

save file as my001.php in any of your web server(ensures that web server supports php files).

and run from web browser as www.yoursite.com/my001.php


Sample Webpage 2:

<? php
$a=10;
$b=5;
$c = $a + $b;
echo '<h2> '.$c.'</h2>';

?>

Output:

It shows : 15

Here

1. echo is used to print.
2. all the variable name should starts with $
3. second character should be a character or _
4. subsequents may be combinations of character , _ , numerals.
5. Other special character are not allowed.
6. Dot(.) is string concatenation operator.

Any related things may be posted in this as reply, are welcome.
Regards,
smartgk

Reply With Quote
Reply



Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Home based job hkpadd1 Classifieds 1 11-13-2006 08:41 AM
Home based job hkpadd1 Working From Home 0 11-13-2006 05:23 AM
Do you believe in home based jobs ? hkpadd1 Working From Home 1 11-10-2006 06:05 AM
Home based job datcom777 Working From Home 3 11-02-2006 02:05 AM
Wal-mart application peachey Funny Jokes 7 07-20-2006 03:04 PM


All times are GMT +1. The time now is 02:11 AM.





Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0 RC6