error parsing php code

Reply

Join Date: Jan 2006
Posts: 2
Reputation: fresher_php is an unknown quantity at this point 
Solved Threads: 0
fresher_php fresher_php is offline Offline
Newbie Poster

error parsing php code

 
0
  #1
Jan 20th, 2006
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
Reply With Quote Quick reply to this message  
Join Date: Jan 2006
Posts: 29
Reputation: rcasinillo_s is an unknown quantity at this point 
Solved Threads: 0
rcasinillo_s rcasinillo_s is offline Offline
Light Poster

Re: error parsing php code

 
0
  #2
Jan 21st, 2006
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!
Reply With Quote Quick reply to this message  
Join Date: Jan 2006
Posts: 2
Reputation: fresher_php is an unknown quantity at this point 
Solved Threads: 0
fresher_php fresher_php is offline Offline
Newbie Poster

Re: error parsing php code

 
0
  #3
Jan 23rd, 2006
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
Reply With Quote Quick reply to this message  
Reply

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


Thread Tools Search this Thread



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

©2003 - 2009 DaniWeb® LLC