mysql password and php problem
Posted by: passworder (---.29-1-64736c11.cust.bredbandsbolaget.se)
Date: December 09, 2006 12:04PM

PHP code doesn't work if I don't put <?php before I start a code block and that is really unefficient and looks clumsy. Is there any way to remove this so I can use normal code blocks like this:

<?
echo "like this";
?>

The other problem I have is that I don't have the root password for the mysql db. When I try to log in as root in the console or phpmyadmin it says wrong password. I have tried blank and "root".

Options: ReplyQuote
Re: mysql password and php problem
Posted by: blah (---.bmly.cable.ntl.com)
Date: December 09, 2006 12:37PM

The <?php problem thingy can be changed using some file (i can't remeber which) in wherever you installed wamp. Here, there is an option to allow you to use <?

Options: ReplyQuote
Re: mysql password and php problem
Posted by: Mark Jones (---.buckeyecom.net)
Date: December 09, 2006 04:33PM

Using <? instead of <?php makes your code non-standard and it will NOT work on many severs.

The flag is in php.ini:
short_open_tag = off / on

Options: ReplyQuote


Sorry, only registered users may post in this forum.