playground:php

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
playground:php [2008/04/14 15:23] – created photonicsguyplayground:php [2014/11/13 10:50] (current) – external edit 127.0.0.1
Line 3: Line 3:
 == IP == == IP ==
 <PHP> <PHP>
-print "Your IP is ".$_SERVER["REMOTE_ADDR"]."\n\n"; +print "Your IP is ".$_SERVER["REMOTE_ADDR"]."<BR>\n"; 
-Print "Server IP is ".$_SERVER["SERVER_ADDR"]."\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> </PHP>
  • playground/php.1208211792.txt.gz
  • Last modified: 2014/11/13 10:50
  • (external edit)