Page 1 of 1
Help to beginer
Posted: Fri Oct 21, 2011 10:23 am
by vselak
I am new in php world.I instaled php and Apasche.Wen I tiped:
<html>
<head></head>
<body>
Agent: So who do you think you are, anyhow?
<br />
<?php
// print output
echo 'Neo: I am Neo, but my people call me The One.';
?>
</body>
</html>
I get this response:
So who do you think you are, anyhow?
What is wrong?What's going on with the second line line ,where is it?
I am Neo, but my people call me The One.-The line I don't have.
What's going on with seco

Re: Help to beginer
Posted: Fri Oct 21, 2011 10:27 am
by Celauran
Sounds like something isn't configured properly. Check the page source in your browser. Do you see the PHP code displayed? Did you remember to give the file a .php extension?
Re: Help to beginer
Posted: Fri Oct 21, 2011 10:31 am
by vselak
I didn't forget to tipe php extension.
Re: Help to beginer
Posted: Fri Oct 21, 2011 10:33 am
by Celauran
Celauran wrote:Check the page source in your browser. Do you see the PHP code displayed?
Re: Help to beginer
Posted: Fri Oct 21, 2011 10:40 am
by vselak
This is the page sorce:
<html>
<head></head>
<body>
Agent: So who do you think you are, anyhow?
<br />
<?php
// print output
echo 'Neo: I am Neo, but my people call me The One.';
?>
</body>
</html>
Re: Help to beginer
Posted: Fri Oct 21, 2011 10:45 am
by Celauran
This is what displays in your browser's View Source window, right? Not when you open the file with an editor? If that's the case, then PHP isn't configured properly. Try restarting Apache. If that doesn't resolve the issue, check the installation instructions for your OS. You may have missed a step.
Re: Help to beginer
Posted: Fri Oct 21, 2011 11:00 am
by vselak
I tried to instal xammp also and I hed the same problem.When I tip right click and tip the sorce code I get what I posted.When I instaled Apasch I use msi.automatic instalation.
Re: Help to beginer
Posted: Fri Oct 21, 2011 11:02 am
by Celauran
Have you tried restarting Apache like I suggested?
Re: Help to beginer
Posted: Fri Oct 21, 2011 11:08 am
by vselak
I don't know how to do that.Sorry.
Re: Help to beginer
Posted: Fri Oct 21, 2011 11:17 am
by vselak
I maked to restart and I get the respons: No instlled sevice named "Apache2".How can I solve this problem?