PHP is not parsing when I change default WWW directory
Posted by: cospefogo (---.smace701.dsl.brasiltelecom.net.br)
Date: December 29, 2006 06:10PM

Gentlemen,

What a incredible piece of gold is this Wampserver!
I loved it! However I noticed that PHP code is not parsing
at all when I install (or change by hand inside the HTTPD.CONF)
the default root directory.

I use to have a entire partition (D:/) for my local websites
and I can use it now, due to this problem.

Anyone experienced this same problem?
Is there a solution for it?

I really prefer to use "D:/Server" instead of "C:/Wamp/www"

Regards,
And happy holidays!

Cospefogo,
Santa Maria,
Brazil.

Options: ReplyQuote
Re: PHP is not parsing when I change default WWW directory
Posted by: cospefogo (---.smace701.dsl.brasiltelecom.net.br)
Date: December 29, 2006 06:39PM

Fellas,

Forget it.
I found the problem.

All my code was wrote using <? tags.
For default, Wamp parses only <?php tags.

I went to the PHP.INI and turned it off!
Here:

; Allow the <? tag. Otherwise, only <?php and <script> tags are recognized.
; NOTE: Using short tags should be avoided when developing applications or
; libraries that are meant for redistribution, or deployment on PHP
; servers which are not under your control, because short tags may not
; be supported on the target server. For portable, redistributable code,
; be sure not to use short tags.
short_open_tag = On

Cheers,
Cospefogo.

PS. It was really NOT A PROBLEM of Default Document Directory.

Options: ReplyQuote
Re: PHP is not parsing when I change default WWW directory
Posted by: Rivernet1 (---.du.volcano.net)
Date: December 30, 2006 02:52AM

Nice catch!!

Options: ReplyQuote


Sorry, only registered users may post in this forum.