0

Hi
I'm new to PHP. I installes wamp2. and wrote a sample code

<HTML><BODY>
<? echo date("M-d-Y"); ?>
</BODY></HTML>

saved it in www folder. but now wen i click the saved file (hello.php)

the file opens but nothing is getting display

pls help me

Divya

3
Contributors
6
Replies
7
Views
8 Years
Discussion Span
Last Post by dreamluverz
0

hi divya..
do u run from wamp server.
eg:

http://localhost/foldername/aaa.php

use <?php echo date("Y-m-d"); ?>..because some times <? is not accepting based on wamp.


and also u should open new folder in www ....in that folder only u place ur file..
sry 4 language inconvinience...

Hi
I'm new to PHP. I installes wamp2. and wrote a sample code

<HTML><BODY>
<? echo date("M-d-Y"); ?>
</BODY></HTML>

saved it in www folder. but now wen i click the saved file (hello.php)

the file opens but nothing is getting display

pls help me

Divya

0

hi sarika

thanx for the reply ..but i tried to open it as u said. i mean run from the wamp server. i placed it in a folder named 'sample ' and added the

<?php ............?>

. it has the Icon of mozilla firefox. still its not opening

0

no probs..


try this..

<HTML><BODY>
<?php echo date("[B]m[/B]-d-Y"); ?>
</BODY></HTML>

ur mistake is use M..

0

oh!! sorry.....i cant start the wamp server i thnk thats the prob

trying to start it ....but it says that cant start wamp in host computer

no probs..


try this..

<HTML><BODY>
<?php echo date("[B]m[/B]-d-Y"); ?>
</BODY></HTML>

ur mistake is use M..

0

first make sure apache and php are running perfectly on your machine. Try echo phpinfo() if you'll see the result

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.