FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » Imported messages » comp.lang.php » PHP server tag help
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
Re: PHP server tag help [message #172242 is a reply to message #172235] Mon, 07 February 2011 18:35 Go to previous message
richard is currently offline  richard   
Messages: 213
Registered: June 2013
Karma:
Senior Member
On Mon, 7 Feb 2011 06:08:45 -0800 (PST), Chee wrote:

> Hi everyone.
>
> I havent dont PHP much and my friend ask me to setup some PHP website
> locally using wamp server.
>
>
> I am really bad at this so hope someone can help me out.
>
>
> the website i got have tags like <? echo 'test' ?> however it seems
> like my version of PHP 5.3.3 is not working well with this syntax. Is
> there a way to config wamp server to accept this?!
>
>
> I do not want to modify so many pages just to fix this.
>
>
> Thanks guys!

In my layman's opinion, when I see a tag like that one, I call it a cheap
shot from someone trying to convert html to php without knowing what they
were doing.
Years ago I tried an html to php conversion program and all it did was
"echo" every line.

Learn to use PHP for what it is. Don't rely on it for every line of code.
In your given case, change to <div>test</div>. Without any reference to
php.

I looked at some code for a bulletin board and saw where they had coded
stuff like somelongstring$[100]="to".
IMO, that's abusing the server.
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Stats comp.lang.php (last 7 days)
Next Topic: String Replacement
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Tue Nov 26 08:46:38 GMT 2024

Total time taken to generate the page: 0.04144 seconds