PHP don't work
Posted by: hans83 (---.adsl.wanadoo.nl)
Date: January 23, 2007 09:41PM

hello.

i install wamp 1.6.6
but php don't work.

this is a test

<html>
<head>
<title>Untitled Document</title>
</head>

<body>
test up <br>
<br>
<? if ($action=='hoi'){ ?>

test php ?action=hoi<br><br>

<? }?>

test
</body>
</html>

but i see this:

test up

test php ?action=hoi

test

and with another script from this page [forum.wampserver.com]
he get a error 403

Forbidden

You don't have permission to access /< on this server.
Apache/2.0.59 (Win32) PHP/5.2.0 Server at 10.0.0.165 Port 80

i am not so good in English. but i don't get it

greets hans


Options: ReplyQuote
Re: PHP don't work
Posted by: yfastud (72.236.169.---)
Date: January 23, 2007 10:08PM

Change <? to <?php and try again

Have fun

[www.jlbn.com] (testing web server)
[test.jlbn.com] (testing codes)
[forum.jlbn.com] (testing phpBB2)
[forums.jlbn.com] (testing phpBB3)
[mail.jlbn.com] (testing mailserver)
[ftp.jlbn.com] (testing ftp server)
[www.jlbn.com] (testing flashes)
[www.jlbn.com] (testing images)
[joomla.jlbn.com] (testing Joomla 1.0.10)
[fusion.jlbn.com] (testing phpFusion 6.01.6)
[nuke.jlbn.com] (testing phpNuke 7.9)
[nukep.jlbn.com] (testing phpNuke Platinum 7.6.b.4v2)
[pnuke.jlbn.com] (testing PostNuke 0.800-MS2)
[nukevo.jlbn.com] (testing phpNuke Evolution 2.0.1)



Post Edited (01-24-07 02:34)

Have fun,

FREE One A Day
FREE Photo
FREE Games
FREE Websites
FREE Portable GPS
FREE WAMP Guides

Options: ReplyQuote
Re: PHP don't work
Posted by: hans83 (---.adsl.wanadoo.nl)
Date: January 23, 2007 10:30PM

do you mean it sow

,/php if ($action=='hoi'){ \,

testphp ?action=hoi<br><br>

,/php }\,

greets hans

Options: ReplyQuote
Re: PHP don't work
Posted by: TwistedChaos (---.rochester.res.rr.com)
Date: January 23, 2007 11:25PM

no
change <? to <?php

because <? is called a short tag and their not enabled by default



A Massive Heart Attack = Computer Crash sad smiley

I am a member of CAF -&gt; Computer Addicts Forever smiling smiley

Options: ReplyQuote
Re: PHP don't work
Posted by: yfastud (---.cable.mindspring.com)
Date: January 24, 2007 02:36AM

I'm sorry, it's typo because the shift key stuck.

Have fun

[www.jlbn.com] (testing web server)
[test.jlbn.com] (testing codes)
[forum.jlbn.com] (testing phpBB2)
[forums.jlbn.com] (testing phpBB3)
[mail.jlbn.com] (testing mailserver)
[ftp.jlbn.com] (testing ftp server)
[www.jlbn.com] (testing flashes)
[www.jlbn.com] (testing images)
[joomla.jlbn.com] (testing Joomla 1.0.10)
[fusion.jlbn.com] (testing phpFusion 6.01.6)
[nuke.jlbn.com] (testing phpNuke 7.9)
[nukep.jlbn.com] (testing phpNuke Platinum 7.6.b.4v2)
[pnuke.jlbn.com] (testing PostNuke 0.800-MS2)
[nukevo.jlbn.com] (testing phpNuke Evolution 2.0.1)

Options: ReplyQuote
Re: PHP don't work
Posted by: hans83 (---.adsl.wanadoo.nl)
Date: January 24, 2007 04:11PM

i see now this

test up

test

is good but when i use this link

test.php?action=hoi

i see this

test up

test

and not testphp ?action=hoi

something is wrong wit php i think

this is a coppy of my phpinfo

link remove



Post Edited (01-26-07 17:49)

Options: ReplyQuote
Re: PHP don't work
Posted by: henkie55 (---.groni1.gr.home.nl)
Date: January 26, 2007 01:16PM

hans83 wrote:

> test.php?action=hoi
>
> i see this
>
> test up
>
> test
>
> and not testphp ?action=hoi

You sent the value of $action with an URL. In the script you will have to get this value out of the URL and give it to $action. In PHP:
<?php
$action=$_GET['action'];
if($action=='hoi'){
?>
test php ?action=hoi<br><br>
<?php
} ?>



Henkie

Options: ReplyQuote
Re: PHP don't work
Posted by: hans83 (---.adsl.wanadoo.nl)
Date: January 26, 2007 05:43PM

thanks it works now

Options: ReplyQuote


Sorry, only registered users may post in this forum.