ERROR !!!! Help me !!!! ERROR !!!! Help me !!!!
 

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Main Menu

ERROR !!!! Help me !!!!

Started by totoki, June 04, 2004, 08:35:15 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

totoki

I get an error everytime i want to call the install.php


Parse error: parse error in /srv/www/htdocs/web37/html/photo/install.php on line 430

using confixx... apache1.3 ........

the part in the install.php is quite weird:

...

// ------------------------- SQL QUERIES TO CREATE TABLES ------------------ //
function create_tables()
{
    global $HTTP_POST_VARS, $HTTP_SERVER_VARS, $errors;

    $PHP_SELF = $HTTP_SERVER_VARS['PHP_SELF'];
    $gallery_dir = strtr(dirname($PHP_SELF), '\\', '/');
    $gallery_url_prefix = 'http://' . $HTTP_SERVER_VARS['HTTP_HOST'] . $gallery_dir . (substr($gallery_dir, -1) == '/' ? '' : '/');

    $db_schema = 'sql/schema.sql';
    $sql_query = fread(fopen($db_schema, 'r'), filesize($db_schema));

reate_tables()
<- this is line 430. the line where my error is caused!!!!!
    global $HTTP_POST_VARS, $HTTP_SERVER_VARS, $errors;

    $PHP_SELF = $HTTP_SERVER_VARS['PHP_SELF'];
    $gallery_dir = strtr(dirname($PHP_SELF), '\\', '/');
    $gallery_url_prefix = 'http://' . $HTTP_SERVER_VARS['HTTP_HOST'] . $gallery_dir . (substr($gallery_dir, -1) == '/' ? '' : '/');

    $db_schema = 'sql/schema.sql';
...

Casper

It looks like your file is corrupt.  It also looks like the 1.3beta4 version, which is out of date, and unsupported.
It is not recommended you install this version.  Wait just a couple more days for the stable 1.3 release, or change to version 1.2.1.
It has been a long time now since I did my little bit here, and have done no coding or any other such stuff since. I'm back to being a noob here