Beginner Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me

The Shed is going Social! Join us on FaceBook and Twitter and chime in on the conversation.

Go Back   Dev Shed ForumsOtherBeginner Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old August 6th, 2000, 05:28 PM
BillGates BillGates is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2000
Location: Redmond
Posts: 3 BillGates User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
I have Created my First PHP Page

<HTML>
<HEAD><TITLE>Our first PHP3.0 script</TITLE></HEAD>
<BODY>
<CENTER>Our first PHP3.0 script</CENTER>
<?
$today = date("Y-m-d");
PRINT "<CENTER>Today is: $today.</CENTER>";
?>
</BODY>
</HTML>
When I View the page in Browser I cannot see what is printed in the Browser . Can anyone take sometime and tell me why is it not working ?

Thanks,

Bill

Reply With Quote
  #2  
Old August 7th, 2000, 10:15 AM
JonLed JonLed is offline
Contributing User
Dev Shed Novice (500 - 999 posts)
 
Join Date: Aug 2000
Location: Indiana
Posts: 614 JonLed User rank is Corporal (100 - 500 Reputation Level)JonLed User rank is Corporal (100 - 500 Reputation Level)JonLed User rank is Corporal (100 - 500 Reputation Level)JonLed User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: 4 h 49 m 49 sec
Reputation Power: 14
Worked fine for me: http://www.ledscripts.com/asdf.php3

That's exactly what you had.

That server's running php4, so manybe php3 had as bug that doesn't run the code right or something.

Reply With Quote
  #3  
Old August 7th, 2000, 01:38 PM
benliong benliong is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jun 2000
Posts: 56 benliong User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 13
BillGate,

You have to have a server running on the machine. A server that support PHP. Have the server running, and enter in the browser "localhost" to access it through your server.

the thing is that our browsers doesn't know any PHP. It's the server that's translating these codes into HTML.

--Ben.

Reply With Quote
Reply

Viewing: Dev Shed ForumsOtherBeginner Programming > Viewing File in Browser

Developer Shed Advertisers and Affiliates



Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 


Powered by: vBulletin Version 3.0.5
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.

© 2003-2013 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap