I'm new to this board as well as PHP/mySQL itself. I'm building one of my first dynamic websites for a local used car dealership. What I attempted to do was write a script that would allow each car on the dealership's lot to be listed along with the details of each specific model; I learned quickly that I am not able to write a script as elaborate as I'd like at my current skill level
I ended up purchasing this script. After following the initial unpacking/chmod777 requirements, I go to run the setup.php page as instructed and receive this (very vague) error: Parse error: parse error in C:\wamp\www\cars\AutoClassifiedScript\setup.php on line 190. I've checked at line 190 and this is the code (starting at line 188):
Code: Select all
fwrite ($fp, '<?php
');
fwrite ($fp, '$dbhost = \'' . $_POST[dbhost] . '\';
');
fwrite ($fp, '$dbuser = \'' . $_POST[dbuser] . '\';
');
fwrite ($fp, '$dbpass = \'' . $_POST[dbpass] . '\';
');
fwrite ($fp, '$session_path = \'' . $_POST[session_path] . '\';
');
fwrite ($fp, '// To turn ON demo mode change the value below to 1
');
fwrite ($fp, '// To turn OFF demo mode change the value below to 0
');
fwrite ($fp, '$demo = 0;
');
fwrite ($fp, '// To disable the style overrides used by the Color Options
');
fwrite ($fp, '// feature in the control panel set the value below to 1
');
fwrite ($fp, '$override = 0;
');
fwrite ($fp, '?>As I said, I'm very new to PHP and I hope that I'm not asking a very dumb question, please forgive me if I am