2/4/2011 Assignment - I: WWW - Phpnet.us
2/4/2011 Assignment - I: WWW - Phpnet.us
Assignment - I
Q:1
Based on the knowledge you gained in the class create an account on
www.phpnet.us
It’s a website where you can create your free account(of type
yourname.phpnet.us) to execute your php scripts. Sign up for a free account
and all the details(including the ftp account) will be mailed to you by this
website itself. Create your scripts in phpdesigner 7 and upload them to your
account. Execute the following script on your newly created account.
<?php
/**
* @author MohitGarg
* @copyright 2011
*/
$a="mohit";
$b=1;
$c=1.5;
$d=array($a,$b,$c);
for($i=0;$i<count($d);$i++)
echo "<BR>".gettype($d[$i]);
?>
Q:2
Is php interpreted or compiled? What is the difference between two?
Q: 4 Read the php.ini file using phpinfo() function and write it down the
following constants from it and explain their significance.
SMTP
CURL
Gzip
Q:5 Issue netstat command from command prompt and note down all the
ports and socket connection you see ther.Therafter download tcpmon utility
and execute it and check whether you get the same output.