introduction screenshots faq forum blog modules components download
Please use the search function and/or read the FAQ first.

Go to Topic: PreviousNext
Go to: Message ListNew TopicSearchLog InPrint View

Example program: data.php will not run



Posted by: Mungy
December 17, 2008 10:53PM
I've installed EasyPHP per the instructions on the Introduction page at this site.

I have green lights for Apache and MySQL.
And the following information for EasyPHP:
17/12 16:26:54 EasyPHP: Servers starting

I then created the following file (data.php) using the example code to print the date in the browser:

<html>
<head>
<title>My first page in PHP</title>
</head>
<body>

Current date. : <? print (Date("l F d, Y")); ?>

</body>
</html>

Only "Current date. :" is displayed in the browser when I click the link for this page in [EasyPHP] - Web Local.

Can anyone tell me why the php in this file is not being interpreted?

Thanks,
M
Options: ReplyQuote
Posted by: Aphrael
December 17, 2008 11:02PM
<?php not <?

Aphrael...

--
The Doctor: Sonic Blaster ? Fifty-first century ? Weapons factory at Villengard, yes?
Captain Jack Harkness: You've been to the factories?
The Doctor: Once.
Captain Jack Harkness: Well, they're gone now. The main reactor went critical, destroyed the whole lot.
The Doctor: Like I said. Once.
Options: ReplyQuote
Posted by: Mungy
December 17, 2008 11:06PM
It worked, of course.

Thank you very much for the instant reply.

M
Options: ReplyQuote


Go to: Message ListSearchLog In
Your Name: 
Your Email: 
Subject: 
Spam prevention:
Please, enter the code that you see below in the input field. This is for blocking bots that try to post this form automatically. If the code is hard to read, then just try to guess it right. If you enter the wrong code, a new image is created and you get another chance to enter it right.