Board index   FAQ   Search  
Register  Login
Board index PHP PHP General

Newbie Question: Even cannot load simple PHP...

General discussions related to php

Moderators: macek, egami, gesf

Newbie Question: Even cannot load simple PHP...

Postby saifeilei » Mon Mar 03, 2003 8:58 pm

Hi All,

I'm totally new to PHP and would like to start from scratch. I have installed the EasyPHP bundle (incl. Apache, MySQL & PHP).

As instructed by EasyPHP, I can load the http://localhost/index.php in my browser. That makes me think that the apache web server is up and running. However, when I load a php file with the following codes...

<html>
<head>
<title>My First page in PHP</title>
</head>
<body>
Current date : <? print (Date("l F d, Y")); ?>
</body>
</html>

I cannot get the date displayed... My questions are:

(1) Do I have to do anything to make the php work, in addition to startup the web server.
(2) EasyPHP is easy to install, but, there's no admin function to further setup the configuration such as location of localhost, MySQL database etc. (correct me if I was wrong). Is there any other bunder out there which suit newbies like me?

Any idea is much appreciated. Thanks.
saifeilei
New php-forum User
New php-forum User
 
Posts: 3
Joined: Mon Mar 03, 2003 8:42 pm

Re: Newbie Question: Even cannot load simple PHP...

Postby WiZARD » Mon Mar 03, 2003 11:55 pm

Hi saifeilei!
Youre server is running(maby) but PHP not see info in install.txt in c:\php
User avatar
WiZARD
Moderator
Moderator
 
Posts: 1257
Joined: Thu Jun 20, 2002 10:14 pm
Location: Ukraine, Crimea, Simferopol

Postby saifeilei » Tue Mar 04, 2003 12:10 am

Hi WiZARD,

Not quite sure about your suggestion. I have installed EasyPHP in \Program Files\EasyPHP and I found there's a subfolder PHP there. However, there's no install.txt inside, nor there's any in \Program Files\EasyPHP and its subfolders.

Do I have to setup anything to make PHP works?

Thx.
saifeilei
New php-forum User
New php-forum User
 
Posts: 3
Joined: Mon Mar 03, 2003 8:42 pm

Postby Oleg Butuzov » Tue Mar 04, 2003 12:20 am

search at this forum httpd.conf - i has publish here my own apache config file, whare all that needs for php development is configured.
Oleg Butuzov
Last Samuray
Last Samuray
 
Posts: 831
Joined: Sun Jun 02, 2002 3:09 am

Postby WiZARD » Tue Mar 04, 2003 12:45 am

At youre place i'm not use other programm like EasyPHP.....
Only PHP Apache and MySQL
User avatar
WiZARD
Moderator
Moderator
 
Posts: 1257
Joined: Thu Jun 20, 2002 10:14 pm
Location: Ukraine, Crimea, Simferopol

Postby saifeilei » Tue Mar 04, 2003 1:15 am

EasyPHP seems convenient to me as a newbie. However, do you guys used to install separate modules (PHP, Apache, MySQL...) and configure it yourself, ... , and is this better?

I have downloaded the Apache2 and installed it. Seems there's nothing related to PHP, even it seems there should be a few lines added to the httpd.conf. Do I have to download something else to make it work?

Thanks.
saifeilei
New php-forum User
New php-forum User
 
Posts: 3
Joined: Mon Mar 03, 2003 8:42 pm

Postby WiZARD » Tue Mar 04, 2003 3:52 am

If you will carefully read install.txt in PHP you see part about installation under apache2.
I'm use:
http://www.php.net PHP 4.3.1
http://www.apache.org Apache 1.3.27
http://www.mysql.com MySQL 3.x (last release)
User avatar
WiZARD
Moderator
Moderator
 
Posts: 1257
Joined: Thu Jun 20, 2002 10:14 pm
Location: Ukraine, Crimea, Simferopol

Postby Redcircle » Tue Mar 04, 2003 11:48 am

try <?php not just <?
User avatar
Redcircle
Moderator
Moderator
 
Posts: 830
Joined: Tue Jan 21, 2003 10:42 pm
Location: Michigan USA

Postby WiZARD » Tue Mar 04, 2003 11:58 pm

It's if you use paralell PHP and ASP....
P.S. did you get may e-mail?
User avatar
WiZARD
Moderator
Moderator
 
Posts: 1257
Joined: Thu Jun 20, 2002 10:14 pm
Location: Ukraine, Crimea, Simferopol

Postby Redcircle » Wed Mar 05, 2003 12:39 am

yeah.. thanks. I posted it in my downloads on my site.
User avatar
Redcircle
Moderator
Moderator
 
Posts: 830
Joined: Tue Jan 21, 2003 10:42 pm
Location: Michigan USA


Return to PHP General

Who is online

Users browsing this forum: Yahoo [Bot] and 1 guest

Sponsored by Sitebuilder Web hosting and Traduzioni Italiano Rumeno and antispam for cPanel.