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

News:

CPG Release 1.6.27
change DB IP storage fields to accommodate IPv6 addresses
remove use of E_STRICT (PHP 8.4 deprecated)
update README to reflect new website
align code with new .com CPG website
correct deprecation in captcha

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