Go Back   nzDevelopers - New Zealand Webmaster Forum > Developer Forums > Web Development

Web Development Chat about all aspects of developing web sites. PHP, MySQL, Javascript, Ajax, etc.


Reply
 
Thread Tools Display Modes
Old 01-18-2008   #1
Junior Member
 
Join Date: Jan 2008
Posts: 2
Default PHP does not seem to work

Hello PHP erxperts

I expect this is a really stupid question to bother you with. I am a complete beginner with PHP. I have had a lot of experience with java and javascript and am a pretty good programmer although my database skills need attention.

I installed a program called XAMPP which I downloaded from apache and in the first 'hello world' program I got from a tutorial was told to put the following program in the conf file which contains the file httpd.conf.

<html>
<head>
<title>PHP Test</title>
</head>
<body>
<?php echo '<p>Hello World</p>'; ?>
</body>
</html>

I was told then to type

http://localhost/hello.php

into the program open dialogue of my browser which is IE explorer.

Sadly when I did this all I got was an error message.

Any ideas ?

Rory Barrett
rorybarrett is offline   Reply With Quote
Old 01-18-2008   #2
Junior Member
 
Join Date: Nov 2007
Posts: 8
Default

well i blame the tutorial

in browse to {HDD LETTER}:/xampp/htdocs/
stick that code into a file and name it 'hello.php'

then with xampp running goto :: http://localhost/hello.php

it should come up then
__________________
---[ Posting Info ]---
I don't try to be mean but you know what they say, theres no such thing at stupid answers, only stupid questions...

---[ A Good Rhyme / Joke ]---
Little Timmy was a chemist,
Little Timmy is no more...
'Cause what Little Timmy thought was H2O,
Was really H2SO4
Antimidget is offline   Reply With Quote
Old 01-18-2008   #3
Junior Member
 
Join Date: Jan 2008
Posts: 2
Talking php does not seem to work

Thanks. I'll try that. I knew it had to be something really simple.I would have played round for days and I may or may not have found this.

I'll try tomorrow.

Rory Barrett
rorybarrett is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Do you work as a full time webmaster/designer? PhilG Chit Chat 1 04-22-2008 10:20 AM


All times are GMT +12. The time now is 08:07 PM.

Hosting by Databloc Web Hosting.
Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
webmaster forum

eXTReMe Tracker