There's no such thing as a stupid question, but they're the easiest to answer.
JoinTour
Login
 
Software Development
Tag Cloud
adware audio blue screen boot bsod computer cpu crash dell desktop driver drivers error excel external hard drive firefox freezes freezing hard drive hardware hijackthis internet internet explorer itunes laptop malware mouse msn network networking outlook 2007 popups power printer problem ram router screen slow sound trojan usb virtumonde virus vista vista 32-bit windows windows xp winxp wireless
Search
Search in:
 
Advanced Search
Tech Support Guy Forums > Software & Hardware > Software Development >
PHP problem


Computer problem? Tech Support Guy is completely free -- paid for by advertisers and donations. Click here to join today! If you're new to Tech Support Guy, we highly recommend that you visit our Guide for New Members. Enjoy!

Closed Thread
 
Thread Tools
N.N.P's Avatar
Junior Member with 27 posts.
 
Join Date: Jul 2004
Experience: Beginner
06-Sep-2004, 10:45 AM #1
PHP problem
Hi, im very new to php (as in started learning 5 minutes ago) but i've come across a bit of a problem already. I got the following code from a php tutorial and apparently it should display todays date. I put it in a text file and saved it as a .html file but when i click on the page all i get is a blank white page. Im sure this is something incredibly basic but if someone can help it's appreciated.


Code:
<html> 
<head> 
<title>Listing 1-6</ title> 
</head> 
<body> 
Today's date: <?php print( Date(" l F d, Y")); ?> 
</body> 
</html>

I also tried saving it as a .php file and the same thing happened except first windows asked me what program i wanted to use to open the file. (I selected IE) Do i need some sort of server software installed for this to work? i.e apache

Thanks
brendandonhu's Avatar
Distinguished Member with 15,988 posts.
 
Join Date: Jul 2002
Location: Ann Arbor, MI
Experience: Advanced
06-Sep-2004, 02:12 PM #2
You don't necessarily need a web server, but you need PHP from http://php.net
deuce868's Avatar
Senior Member with 638 posts.
 
Join Date: Nov 2000
Location: MI
07-Sep-2004, 03:01 PM #3
PHP is a served language.(meaning it means to be processed, usually by a web server) The best thing to do is to get something like wamp that will setup a php/apache install on your machine. Then you must save your PHP files in the apache web root and pull them up from there.

brendan is right though, you can run php command line, but you'll have fun once you get to learning about validating html forms.
__________________
www.ricksweb.info
www.2webheads.com
Quote:
Techies just think a little differently...at least that's what they keep telling me.
brendandonhu's Avatar
Distinguished Member with 15,988 posts.
 
Join Date: Jul 2002
Location: Ann Arbor, MI
Experience: Advanced
07-Sep-2004, 05:23 PM #4
Oh and I might add that you can also do GUI programming using PHP-Gtk
Closed Thread

THIS THREAD HAS EXPIRED.
Are you having the same problem? We have volunteers ready to answer your question, but first you'll have to join for free. Need help getting started? Check out our Welcome Guide.


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
WELCOME TO TECH SUPPORT GUY! Are you looking for the solution to your computer problem? Join our site today to ask your question -- for free! Our site is run completely by volunteers who want to help you solve your computer problems. See our Welcome Guide to get started.



Thread Tools


You Are Using:
Server ID
Advertisements do not imply our endorsement of that product or service.
All times are GMT -4. The time now is 11:42 AM.
Copyright © 1996 - 2008 TechGuy, Inc. All rights reserved.
Powered by vBulletin, Copyright © 2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0
Powered by Cermak Technologies, Inc.