I've put together a rather simple PHP application from one of the books I've read. The problem is that the book uses Pear DB script in the PHP procedures yet the GoDaddy account I have doesn't have Pear DB. (At least I believe this is the problem)
Is there any easy way of rewriting scripts so it's just plain PHP/MySQL instead of with the Pear DB?
For example, at the outset of loading the PHP application, I'm getting an error here:
'dsn'=>"mysql://$db_username:$db_password@$db_host/$db_database"
There's nothing wrong with the script, the whole script up to that point is the following:
<?php
// Example of Auth_HTTP the also returns additional information about the user
require_once('config.php');
require_once('db_login.php');
require_once('Auth/HTTP.php');
//We use the same connection string as the pear db functions
$AuthOptions = arrary(
'dsn'=>"mysql://$db_username:$db_password@$db_host/$db_database",
There error states:
Parse error: syntax error, unexpected T_DOUBLE_ARROW in /html/ACA/SA/index.php on line 8
Would anyone have an idea on what the problem could be? Thanks in advance.