RE: [PHP-INST] php problem

From: Date: Fri, 17 Jan 2003 10:11:35 +0000
Subject: RE: [PHP-INST] php problem
References: 1  Groups: php.install 
Request: Send a blank email to php-install+get-9721@lists.php.net to get a copy of this message
Problem with code should have a space between <?php and echo and have ; at the line termination and a space before ?> also if you have globals turned off this will need to be changed to $_GET['s'] and rewritten to: <?php echo 'hello '.$_GET['s']; ?> Timothy Hitchens (HiTCHO) Open Source Consulting e-mail: tim@hitcho.com.au > -----Original Message----- > From: Steve [mailto:slj_bailey@clear.net.nz] > Sent: Friday, 17 January 2003 3:19 PM > To: php-install@lists.php.net > Subject: [PHP-INST] php problem > > > Hi, im just a newbi to php and ive read a few tutorials put i > seem to have a problem e.g. if i use this code (the file is > saved as index.php in my webserver wwwroot) > > <html> > <head> > <title>Untitled Document</title> > <meta http-equiv="Content-Type" content="text/html; > charset=iso-8859-1"> </head> <body> <?phpecho "hello $s"?> > </body> </html> > > and i use the url in my browser > http://localhost/index.php?s=steven it will > show up in the > > browser but only "hello" and not "hello steven" as it should. > could you please help? Im using IIS4 or latter & PHP4 on > WinXP Home. Thanks... > > slj_bailey@clear.net.nz >

« previous php.install (#9721) next »