php still will not parse
Posted by: mbriggs (---.mia.bellsouth.net)
Date: November 23, 2006 04:55AM

I used the default web root ie. wamp5/www i put a simple php script in there to test but i get nothing? can anyone push me in the right direction?

Options: ReplyQuote
Re: php still will not parse
Posted by: yfastud (---.mia.bellsouth.net)
Date: November 23, 2006 05:00AM

so you access it like this?

[localhost]

hope this help

Options: ReplyQuote
Re: php still will not parse
Posted by: mbriggs (---.mia.bellsouth.net)
Date: November 23, 2006 05:07AM

yeah i even checked the apache config file to see where its pointing and I putting it where is supposed to go. it will show an html file but if you mix a few lines of php and save it as simple.php it still only shows the html. its weird. now i am using explorer 7. this is really wierd. i have configured this set up no less then 70 times and i wanted to try this all in one process. this is the only problem but its a big one.

So i will keep playing with it. hopfully someone else has had the same problem.

Options: ReplyQuote
Re: php still will not parse
Posted by: mbriggs (---.mia.bellsouth.net)
Date: November 23, 2006 05:11AM

Man that is wierd. It's still not parsing this script

<?

echo "Hello test script";

?>

i don't get it.

Options: ReplyQuote
Re: php still will not parse
Posted by: yfastud (---.mia.bellsouth.net)
Date: November 23, 2006 05:48AM

replace

<?

with

<?php

Hope this help

Options: ReplyQuote
Re: php still will not parse
Posted by: mbriggs (---.mia.bellsouth.net)
Date: November 23, 2006 06:35AM

That was it thanks. So i forgot where that line is where the you can set it up so you don't have to have <?php it can just be <?

but thanks very much. i missed that big time.

Options: ReplyQuote
Re: php still will not parse
Posted by: CyberSpatium (71.237.217.---)
Date: November 23, 2006 12:31PM

do not change your php.ini file to allow short style tags. if you move your scripts to another host, they will not work because most hosts have short tags disabled. also it is customary php coding practice to use full php tags.



CyberSpatium
WAMP English Forum Admin

PS: Happy Turkey Day smiling smiley

Options: ReplyQuote
Re: php still will not parse
Posted by: mbriggs (---.mia.bellsouth.net)
Date: November 23, 2006 01:33PM

ahh thats a good point. I am lazy so thats why i am not in the habbit to do the log form smiling smiley THnaks for the quick response. Have a great Turkey Day smiling smiley

Options: ReplyQuote
Re: php still will not parse
Posted by: CyberSpatium (71.237.217.---)
Date: November 23, 2006 04:14PM

damn, you have to be really, really, really, really, lazy to not type 3 extra measly characters.

CyberSpatium
WAMP English Forum Admin

Options: ReplyQuote
Re: php still will not parse
Posted by: maquinadigital (---.telepac.pt)
Date: December 14, 2006 02:15AM

greetings

I'm having exactly the same problem.

Having a considerable platform developed using short tags, should I replace everything? Any know problems that may occur?

And <?=$any_variable?> It should be <?php=$any_variable?>

I'm teaching PHP now and I usually use PHP4 with Linux. Now, I've decided to install WAMP in the students PCs and I came across the problem of short tags compatibility.

The major problem is that I've tried to alter open_short_tag to On and the result was the same. No changes and short tags still won't work.

The PHP.INI file is on c:\wamp\php


Any hints on this one?

Best regards
daniel


Options: ReplyQuote
Re: php still will not parse
Posted by: yfastud (---.cable.mindspring.com)
Date: December 14, 2006 03:39AM

so wampserver "go to school" now

there are 2 php.ini, to edit the correct one, access it through tray icon and remember to restart wampserver to take effect

Options: ReplyQuote


Sorry, only registered users may post in this forum.