problem

Reply

Join Date: Jan 2009
Posts: 3
Reputation: anchal is an unknown quantity at this point 
Solved Threads: 0
anchal anchal is offline Offline
Newbie Poster

problem

 
0
  #1
Jan 12th, 2009
i hav a problem

m new to php nd i started with writin my first page but whenever i start my browser i see the complete code and nt the output i need

i wrote
  1. <html>
  2. <title>my php page</title>
  3. <body>
  4. <?php
  5. echo "hello there!";
  6. ?>
  7. </body>
  8. </html>
the output is d same text above

help me
Last edited by peter_budo; Jan 13th, 2009 at 5:22 pm. Reason: Keep It Organized - For easy readability, always wrap programming code within posts in [code] (code blocks) and [icode] (inline code) tags.
Reply With Quote Quick reply to this message  
Join Date: Mar 2008
Posts: 76
Reputation: Lensva has a little shameless behaviour in the past 
Solved Threads: 3
Lensva Lensva is offline Offline
Junior Poster in Training

Re: problem

 
0
  #2
Jan 12th, 2009
you need a web server.
for learning google xampp or wamp
Reply With Quote Quick reply to this message  
Join Date: Nov 2007
Posts: 596
Reputation: buddylee17 has a spectacular aura about buddylee17 has a spectacular aura about 
Solved Threads: 125
buddylee17's Avatar
buddylee17 buddylee17 is offline Offline
Posting Pro

Re: problem

 
0
  #3
Jan 12th, 2009
Your probably not previewing the file via through the server. What testing server are you using? Make sure your url is something like with http://localhost/filename.php. Where filename.php is your file. Also make sure the file is saved in your htdocs folder.
Last edited by buddylee17; Jan 12th, 2009 at 10:01 am.
Lost time is never found again.
- Benjamin Franklin
Reply With Quote Quick reply to this message  
Join Date: Jan 2009
Posts: 1,311
Reputation: almostbob has a spectacular aura about almostbob has a spectacular aura about 
Solved Threads: 161
almostbob's Avatar
almostbob almostbob is offline Offline
Nearly a Posting Virtuoso

Re: problem

 
0
  #4
Jan 12th, 2009
Goto sourceforge.net and get the DevPHP IDE package, will give you a LocalHost server you can run your script on as part of the package, code highlighting, context help
Failure is not an option It's included free
If at first you dont succeed, join the club
Of course its always in the last place you look, you dont keep looking after you find it

Please mark solved problems, solved
Reply With Quote Quick reply to this message  
Join Date: Jan 2009
Posts: 3
Reputation: anchal is an unknown quantity at this point 
Solved Threads: 0
anchal anchal is offline Offline
Newbie Poster

Re: problem

 
0
  #5
Jan 13th, 2009
[QUOTE=buddylee17;776521]

i hav wamp5

i dnt knw....m writin d url correctly....
Reply With Quote Quick reply to this message  
Join Date: Jan 2009
Posts: 1,311
Reputation: almostbob has a spectacular aura about almostbob has a spectacular aura about 
Solved Threads: 161
almostbob's Avatar
almostbob almostbob is offline Offline
Nearly a Posting Virtuoso

Re: problem

 
0
  #6
Jan 13th, 2009
what extension have you given the file
/myfirstfile.php ? .txt .src .html may not parse
Failure is not an option It's included free
If at first you dont succeed, join the club
Of course its always in the last place you look, you dont keep looking after you find it

Please mark solved problems, solved
Reply With Quote Quick reply to this message  
Join Date: Jan 2009
Posts: 3
Reputation: anchal is an unknown quantity at this point 
Solved Threads: 0
anchal anchal is offline Offline
Newbie Poster

Re: problem

 
0
  #7
Jan 22nd, 2009
i downloaded apache http server 2.2, php 5 and mysql server 6.0...... dere occured a problem in php5 sayin dat manually configure ur server...bt i really dnt knw how to do that...

nd one more thing i need a connector for php and mysql

d links on d google site r broken

plz help out
Reply With Quote Quick reply to this message  
Join Date: Jan 2009
Posts: 22
Reputation: Monalisaparker is an unknown quantity at this point 
Solved Threads: 0
Monalisaparker Monalisaparker is offline Offline
Newbie Poster

Re: problem

 
0
  #8
Jan 23rd, 2009
you might run this program directly from the browser, you need to have some web server, just install WAMP or XAMPP on your PC, if you are windows user
Reply With Quote Quick reply to this message  
Join Date: Jan 2009
Posts: 11
Reputation: Yayo_SK is an unknown quantity at this point 
Solved Threads: 1
Yayo_SK Yayo_SK is offline Offline
Newbie Poster

Re: problem

 
0
  #9
Jan 24th, 2009
You are not using XAMPP so try this:
Follow insallation steps and everything is gonna be OK

http://www.thesitewizard.com/php/ins...-windows.shtml

http://www.ricocheting.com/server/php.html

http://www.webmasterworld.com/forum88/4495.htm
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Similar Threads
Other Threads in the PHP Forum
Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC