Jump to content

Welcome to Geeks to Go - Register now for FREE

Geeks To Go is a helpful hub, where thousands of volunteer geeks quickly serve friendly answers and support. Check out the forums and get free advice from the experts. Register now to gain access to all of our features, it's FREE and only takes one minute. Once registered and logged in, you will be able to create topics, post replies to existing threads, give reputation to your fellow members, get your own private messenger, post status updates, manage your profile and so much more.

Create Account How it Works
Photo

Having trouble with php. Or maybe XAMPP or Apache


  • Please log in to reply

#1
Craigypoos

Craigypoos

    New Member

  • Member
  • Pip
  • 4 posts
I hope someone can help me. I have been writing websites and publishing them for a couple of years and wanted to move into using php to make my sites better. So after spending days trying (and failing!) to install and configure php and apache (php 5.14 & 5.0.58 with Apache 2.2) I came across some advice on a forum saying to ditch the whole thing and try installing XAMPP instead. 20 minutes later XAMPP seemed to be correctly installed and running properly. Even the example pages they give you (with biorhythm graphs and such) worked fine.

But when I try writing my own php scripts it doesn't work. I wrote a simple "Hello World" kinda script and placed it in my htdocs folder and then opened it up in Netscape. All I got was blank page. Worse, when I tried to open the page in Internet Explorer, it failed to open and kickstarted dreamweaver (even though I wrote the script page in notepad!) I tried placing the php snippet inside html containers and the same thing happened.

Help me please someone before this all drives me insane!

Craig
  • 0

Advertisements


#2
Major Payne

Major Payne

    Retired Staff

  • Retired Staff
  • 5,307 posts
Can you provide a link to the page online or example of the php code (the simpler one...) you wrote and the filename you used? Probably missed a question or three here. Hopefully, someone with a lot more PHP code writing experience will be around by the time you post back and give a hand on your post.

Ron
  • 0

#3
Craigypoos

Craigypoos

    New Member

  • Topic Starter
  • Member
  • Pip
  • 4 posts
Thanks for your reply but I have the problem fixed now.

Thanks again anyway,
Craig

Edited by Craigypoos, 26 June 2006 - 12:44 AM.

  • 0

#4
Major Payne

Major Payne

    Retired Staff

  • Retired Staff
  • 5,307 posts
OK. Glad you found the problem and for letting us know.

Ron
  • 0






Similar Topics

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users

As Featured On:

Microsoft Yahoo BBC MSN PC Magazine Washington Post HP