PDA

View Full Version : Installation Issue



entropy
08-21-2004, 11:04 PM
I have installed the counter and associated files and am running into issues when I try to complete the configuration of the counter. When I run the counter.php in my browser all I get is the code of the file. I am using it in a web blog written in php and have selected to use the File DB. What have I done wrong during the installation process?

thanks

Patrick
08-22-2004, 11:38 AM
If you are seeing the code of the counter then it is likely that your website is not properly parsing php.

Things to ensure:
1) You didn't remove the <?php from the first line of the counter.php file.
2) Your website is correctly handling php.

You say you have a php web blog which of course requires php as well. Thus, I am not positive what may be your problem. If you could give me a link perhaps I could see about it myself?

entropy
08-24-2004, 09:48 PM
My blog can be found at www.entropyadvisor.com. I will double check to see if I have everything lined up like you suggested.

thanks

OK I reviewed all my code and corrected the PHP. I believe that I first opened the file in a word editor and not note pad..... by doing this it inserted line brakes in the code and it messed it all up. Now I have a new problem or a different one. When I run the counter.php I get a new error. Which again is probably something simple.


Parse error: parse error in /home/entropya/public_html/counter/counter.php on line 1

Any ideas,

:D Ok I got it working after some reviewing of the code. I wanted to use file as a database and had it set to use MySQL. It is miss leading in the documentation, it states to use 0 for files and 1 for MySQL... I believe that is back wards. I am using files and have a 1 not a zero. Line 17 of the counter.php file.
thanks