943,621 Members | Top Members by Rank

Ad:
  • PHP Discussion Thread
  • Unsolved
  • Views: 761
  • PHP RSS
Jan 12th, 2009
0

problem

Expand Post »
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
php Syntax (Toggle Plain Text)
  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.
Similar Threads
Reputation Points: 10
Solved Threads: 0
Newbie Poster
anchal is offline Offline
3 posts
since Jan 2009
Jan 12th, 2009
0

Re: problem

you need a web server.
for learning google xampp or wamp
Reputation Points: 4
Solved Threads: 3
Junior Poster in Training
Lensva is offline Offline
76 posts
since Mar 2008
Jan 12th, 2009
0

Re: problem

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.
Reputation Points: 232
Solved Threads: 137
Practically a Master Poster
buddylee17 is offline Offline
665 posts
since Nov 2007
Jan 12th, 2009
0

Re: problem

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
Reputation Points: 562
Solved Threads: 367
Posting Maven
almostbob is offline Offline
2,970 posts
since Jan 2009
Jan 13th, 2009
0

Re: problem

[QUOTE=buddylee17;776521]

i hav wamp5

i dnt knw....m writin d url correctly....
Reputation Points: 10
Solved Threads: 0
Newbie Poster
anchal is offline Offline
3 posts
since Jan 2009
Jan 13th, 2009
0

Re: problem

what extension have you given the file
/myfirstfile.php ? .txt .src .html may not parse
Reputation Points: 562
Solved Threads: 367
Posting Maven
almostbob is offline Offline
2,970 posts
since Jan 2009
Jan 22nd, 2009
0

Re: problem

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
Reputation Points: 10
Solved Threads: 0
Newbie Poster
anchal is offline Offline
3 posts
since Jan 2009
Jan 23rd, 2009
0

Re: problem

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
Reputation Points: 10
Solved Threads: 1
Newbie Poster
Monalisaparker is offline Offline
22 posts
since Jan 2009
Jan 24th, 2009
0

Re: problem

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
Reputation Points: 10
Solved Threads: 1
Newbie Poster
Yayo_SK is offline Offline
11 posts
since Jan 2009

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in PHP Forum Timeline: How to install a new phpbb3 skin yo my forum
Next Thread in PHP Forum Timeline: Checking for going up a Directory





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC