Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Lets start PHP with me 1
10-12-2013, 04:56 PM (This post was last modified: 10-12-2013 05:06 PM by shindesharad71.)
Post: #1
Lets start PHP with me 1
The php is prepocessor html language and its syntax is

<?php

statements


?>

The variables of PHP are declered as
$a,$b;

http;//mob71.tkhappy
Visit this user's website Find all posts by this user
Like Post Quote this message in a reply
[-] The following 1 user Likes shindesharad71's post:
Nazim47 (02-16-2014)
10-13-2013, 07:36 PM
Post: #2
RE: Lets start PHP with me 1
plz share knowledge here

http;//mob71.tkhappy
Visit this user's website Find all posts by this user
Like Post Quote this message in a reply
02-03-2014, 08:50 PM (This post was last modified: 02-05-2014 11:24 AM by shashwat.)
Post: #3
RE: Lets start PHP with me 1
Echoing Date and with php:
PHP Code:
<?php

$today 
date(d/m/Y);
$txt "Today is<b>" $today "</b>, and is a nice day!";

echo 
$txt;

?>

Result:
Today is 03/02/14, and is a nice day!

P.S. ยป The date changes according to the date of that particular day. Date in the example is static for just a format hint!

big grin Shashwat Mishra Cool
Visit this user's website Find all posts by this user
Like Post Quote this message in a reply
02-05-2014, 11:39 AM (This post was last modified: 02-09-2014 07:49 PM by shashwat.)
Post: #4
RE: Lets start PHP with me 1
Simple html tester tool in PHP by Shashwat Mishra[UPDATED]:

Please Leave the credits intact. Thankyou!

PHP Code:
<?php
//////////////////////////////
////// Developed by:
///// Shashwat Mishra
//// contact & website
/// www.shashwat.cf
// [email protected]
/////////////////////////////
$samit "<div style=\'float:right;\'><a href=\"http://shashwat.cf\">Shashwat</a>";
error_reporting(0);

echo 
'<form method=\'post\'><textarea name=\'htmlcode\'></textarea><input type=\'submit\' value=\'Test It!\'/></form>';

$htmltest $_POST['htmlcode'];

echo 
"Your HTML Test code:" $htmltest "<br>" $samit;

?>

+respect & +like would be appriciated..!! winking happy

big grin Shashwat Mishra Cool
Visit this user's website Find all posts by this user
Like Post Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 1 Guest(s)