Got error on visual phonebook
-
Hi, I'mt getting this error on visual phonebook:
Parse error: syntax error, unexpected T_STRING, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' in /var/www/htdocs/fop2/lib/dblib.php on line 4
Find in forum but not found nothing.
FOP 2.10Thanks
-
-
-
-
I followed these instructions
The visual phonebook requires php and mysql to be installed and running. You need to create a database and a table and give proper mysql credentials to the php application so it can read and write to the table. You also have to configure the language for the php application. In order to start, be sure to create a database for mysql using the proper password (replace XXXXX with your mysql root password):
#> cd /var/www/html/fop2
#> mysqladmin -u root -pXXXXX create fop2
#> mysql -u root -pXXXXX fop2 < mysql.db
After creating a database and the table, you might want to create a special mysql user for FOP2:#> mysql -u root -pXXXXX -e
"grant all privileges on fop2.* to fop2@'localhost'
identified by 'myPassw0rd'"
Finally you have to edit the configuration file and set the language and proper mysql credentials:/var/www/html/fop2/config.php
<?
// Database connection details
$DBHOST = 'localhost';
$DBNAME = 'fop2';
$DBUSER = 'fop2';
$DBPASS = 'myPassw0rd';$language="en";
// ---------------------------------------------------------
// Do not modify below this line
// ---------------------------------------------------------
..I'm using pbxinaflash
Gary -
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login