944,123 Members | Top Members by Rank

Ad:
  • PHP Discussion Thread
  • Unsolved
  • Views: 2462
  • PHP RSS
Jan 20th, 2006
0

error parsing php code

Expand Post »
im working on win xp with apache 2.0.55 ,php4
when i run the code
<html>
<head></head>
<body>
abcdefrr
<br />

<?php
// print output
echo 'php code ';
?>


</body>
</html>

i get output on browser
abcdefrr


----please help me run php code embeded in html page
also the case when i run a page containing only php code then output is a blank page reply soon
Similar Threads
Reputation Points: 10
Solved Threads: 0
Newbie Poster
fresher_php is offline Offline
2 posts
since Jan 2006
Jan 21st, 2006
0

Re: error parsing php code

im working on win xp with apache 2.0.55 ,php4
when i run the code
<html>
<head></head>
<body>
abcdefrr<br />

<?php
// print output
echo 'php code';
?>

</body>
</html>

i get output on browser
abcdefrr



Of course, you would get this (abcdefrr) output on your browser because it is written in the body of your HTML code. Delete and you will not find it anymore. And, you should get these output on your browser:
abcdefrr // HTML output
php code //This is your php code output

If you will not get or display "php code" on your browser. Definitely, you have problem in your apache 2.0.55 server. Why don't you use IIS server (it is included in windows XP) and install PHP in it.

Good luck!
Reputation Points: 10
Solved Threads: 0
Light Poster
rcasinillo_s is offline Offline
29 posts
since Jan 2006
Jan 23rd, 2006
0

Re: error parsing php code

Quote originally posted by rcasinillo_s ...
im working on win xp with apache 2.0.55 ,php4
when i run the code
<html>
<head></head>
<body>
abcdefrr<br />

<?php
// print output
echo 'php code';
?>

</body>
</html>

i get output on browser
abcdefrr



Of course, you would get this (abcdefrr) output on your browser because it is written in the body of your HTML code. Delete and you will not find it anymore. And, you should get these output on your browser:
abcdefrr // HTML output
php code //This is your php code output

If you will not get or display "php code" on your browser. Definitely, you have problem in your apache 2.0.55 server. Why don't you use IIS server (it is included in windows XP) and install PHP in it.

Good luck!
sorry to say but i need to learn working with apache only anyways thanks for the reply
Reputation Points: 10
Solved Threads: 0
Newbie Poster
fresher_php is offline Offline
2 posts
since Jan 2006

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: need help wid smtp server
Next Thread in PHP Forum Timeline: Update query (mysql)





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


Follow us on Twitter


© 2011 DaniWeb® LLC