php do not function?
Posted by: larshgf (---.k89.webspeed.dk)
Date: October 29, 2006 10:53AM

Just installed Wamp5 and want to try out a little script "test.php3" .......

<h2>How does PHP function?</h2>
<p>This line is written with HTML</p>
<?php echo "But this line is written with PHP"; ?>

When I try this in my IE browser I third line is not shown. All I see is this:

How does PHP function?
This line is written with HTML

Is it an installation problem or syntax problem or some other kind of problem??

BR
Lars


Re: php do not function?
Posted by: yfastud (---.cable.mindspring.com)
Date: October 29, 2006 01:20PM

Put it in wamp/www/your_new_folder and run like this:

[localhost]

However, wampserver now comes with php 5, so I'm not sure if your php3 would work properly.

Hope this help

Re: php do not function?
Posted by: larshgf (---.k89.webspeed.dk)
Date: October 29, 2006 01:54PM

PLEASE HELP HERE......

Have tried this, but it's the same: no php result in my IE browser.
What I have done so far is this:
1. Installed the newest version of wamp5 following the default settings
2. I'm sure that Alle Services (apache and mysql) is running
3. To see the script I use my Internest Explorer ver 6.0
4. No Skype is running to disturb anything. I have tried to turn off my firewall (did not help)
5. My script is looking like this.....

<H2>How does PHP function?</h2>
<p>This line is written with HTML</p>
<?php echo "But this line is written with PHP"; ?>

The thirs line with php-code is not processed!!

DO I HAVE TO MAKE SOME SMALL CORRECTIONS AFTER INSTALLING WAMP5 ????

Hope somebody can help!


Re: php do not function?
Posted by: yfastud (---.cable.mindspring.com)
Date: October 29, 2006 02:51PM

Does it work when try this?

[localhost]

Re: php do not function?
Posted by: larshgf (---.k89.webspeed.dk)
Date: October 29, 2006 05:34PM

Yes,

When I just write [localhost] I get the Wamp5 overview page. And when I - on this page - select "phpmyadmin" then this page comes up as expected.
Hope this can give you a hint concerning how to solve my problem....

BR
Lars

Re: php do not function?
Posted by: yfastud (---.cable.mindspring.com)
Date: October 29, 2006 08:37PM

Something must be wrong since I try it and it works just fine as you can see here:

[test.jlbn.com]

and the code as follows:

<!-- Programmer : yfastud -->
<!-- Date : October 29, 2006 -->
<!-- File : test.php3 -->
<html>
<head>
<title>
Test
</title>
</head>
<body>
<p>
<img src="jlbn.gif">
</p>
<H2>How does PHP function?</h2>
<p>
This line is written with HTML
</p>
<?php echo "But this line is written with PHP"; ?>
</body>
</html>

Check to see if you missing anything in your code?

Hope this help

Re: php do not function?
Posted by: CyberSpatium (71.237.217.---)
Date: October 30, 2006 10:45PM

apache is not setup to parse php files with the extension .php3 change your extension to .php and you will be fine.

CyberSpatium
WAMP English Forum Administrator

Sorry, only registered users may post in this forum.