This is an old revision of the document!


IP

<PHP> print “Your IP is ”.$_SERVER[“REMOTE_ADDR”].“<BR>\n”; Print “Server IP is ”.$_SERVER[“SERVER_ADDR”].“<BR>\n”; </PHP>


Other

<PHP> $x=5; $y=8; $z=3; Print “X=$x\nY=$y\n<BR>\nX+Y=”.($x+$y).“\n”;

</PHP>

  • playground/php.1208212017.txt.gz
  • Last modified: 2014/11/13 10:50
  • (external edit)