PHP doesn't work
Posted by: passworder (---.29-1-64736c11.cust.bredbandsbolaget.se)
Date: October 10, 2007 06:56PM

Hi
Everything works fine expect that PHP code isn't executed. PhpMyAdmin works fine as well, so do the other built-in stuff. The code is shown in the source of the docs.

Any idea what problem this could be? Thankful for help.

Options: ReplyQuote
Re: PHP doesn't work
Posted by: yfastud (72.236.169.---)
Date: October 10, 2007 07:33PM

By default, short_open_tag in c:/wamp/apache2/bin/php.ini is off, and you MUST restart your wamp if you switch it to on in order to use short tag <? instead full tag <?php. Also, you MUST access your php/html files through your document_root which by default is c:/wamp/www, so if you save your_file.php in c:/wamp/www/your_folder, then access it as follows:

[localhost]

It seems you're new to this wamp, so check my site for other setups

Have fun,

[www.jlbn.net]

Options: ReplyQuote
Re: PHP doesn't work
Posted by: toivo (---.nsw.bigpond.net.au)
Date: October 10, 2007 10:31PM

Hi,

Here is my 2c worth: The short open tags "... are less portable, and generally not recommended", see [php.net].

Regards,



toivo
Sydney, Australia

Options: ReplyQuote
Re: PHP doesn't work
Posted by: yfastud (72.236.169.---)
Date: October 10, 2007 10:48PM

You're right, it 's not recommended and I've always use full tag, but I just post it here since a lot of free scripts nowadays use it, which causes problem for some people.

Have fun,

[www.jlbn.net] (Basic Guide for WAMP & Add-ons)

Options: ReplyQuote


Sorry, only registered users may post in this forum.