/    Sign up×
Community /Pin to ProfileBookmark

Hi,

just started to learn PHP, have windows XP pro, and have installed IIS, however when i go to test this, the PHP echo statement does not come up, only the html code, any ideas on why this error is occurring. obviously it is something to do with the test server, but i have successfully installed IIS, i also have apache installed on my computer, there wouldnt be a conflict there would there?

thanks

to post a comment
PHP

9 Comments(s)

Copy linkTweet thisAlerts:
@96turnerriJun 11.2004 — im not sure about setting up your home computer to run php (IIS and Apache) but i think you still need to install php

http://uk.php.net/get/php-4.3.7-installer.exe/from/a/mirror
Copy linkTweet thisAlerts:
@clairec666Jun 11.2004 — Hi

I've had this problem before. Either a) you haven't yet installed PHP or b) you haven't installed it correctly. I've previously had trouble setting up PHP on Apache and IIS even with the help of their 'help' sections :rolleyes: and I would suugest using [URL=http://www.aprelium.com/abyssws/index.html]abyss[/URL] web server, which has an easy guide to installing PHP.
Copy linkTweet thisAlerts:
@ShrineDesignsJun 11.2004 — setting up and installing php on apache is relatively easy, refer to "install.txt" that is provided with php
Copy linkTweet thisAlerts:
@dennicauthorJun 17.2004 — Hi,

Im still having problems with PHP, I have uninstalled apache and the other PHP version and re-installed PHP version 4.3.7, I then installed IIS, the following components on IIS were not installed though - FTP Service (this wont affect anything will it??).

i created a basic script in dreamweaver with the following code:

<html>

<head>

<title>PHP Test</title>

<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">

</head>

<body>

<p>This page was created at <b>

<?php echo date("h:i:s a", time()); ?>

</b>

on the computer running PHP.</p>

</body>

</html>

i created the folder in INETPUB then inside WWWROOT then inside a folder named KENMORTON, the filename is called timetest.php

so when i go to test the page i type in:

http://localhost/timetest.php

however it comes up with the error that the page cannot be found.

help!!!
Copy linkTweet thisAlerts:
@shimonJun 17.2004 — if your document root is called "WWWROOT" (sounds like it, anyway) and your test script is in s subfolder called KENMORTON you might want to try

http://localhost/KENMORTON/timetest.php

but I can't say for sure, cos I can't see your httpd.conf or your hard drive from here ?
Copy linkTweet thisAlerts:
@dennicauthorJun 24.2004 — thanks mate, that works now, where exactly is the httpd.conf file stored??
Copy linkTweet thisAlerts:
@solavarJun 24.2004 — httpd.conf is an Apache configuration file.

When you install Apache, this configuration file is created in the Apache subfolder called conf.
Copy linkTweet thisAlerts:
@dennicauthorJun 24.2004 — so what if i havent installed apache, and i only have IIS installed?? what is the file called then?
Copy linkTweet thisAlerts:
@solavarJun 24.2004 — I don't know...

...but these guys here will tell you

http://forums.devshed.com/search.php?searchid=300077
×

Success!

Help @dennic spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.18,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...