This topic is locked
[SOLVED]

 Parse Error

6/18/2020 10:41:32 AM
PHPRunner General questions
W
william_teale author

I am setting up a new site, using phprunner.php to connect. It connects fine, and creates my pages, but after I upload them via ftp I am getting the following error...
Parse error: syntax error, unexpected '.', expecting ';' in /hermes/bosnacweb02/bosnacweb02bz/b228/ipg.info73162/hara/employees/private/include/phpfunctions.php on line 968
I have no idea why. It looks like it may be something to do with my image upload fields? I upload my files to ../pdf and ../images and do not have the absolute path set.
Any thoughts?

Admin 6/18/2020

Open you include/phpfunctions.php file in a text editor and post the code from lines 960-980 here.

W
william_teale author 6/18/2020



Open you include/phpfunctions.php file in a text editor and post the code from lines 960-980 here.


/**

  • @intellisense

    */

    function GetDefaultValue($field, $ptype, $table="")

    {

    global $strTableName;

    if(!$table)

    $table=$strTableName;

    if($table=="employees_only" && $field=="ID")

    {

    return strtotime("now");

    }

    if($table=="employees_only" && $field=="SHOW_DATE")

    {

    return now();

    }

    if($table=="employees_only" && $field=="PDF_LINK")

    {

    return ../pdf;

    }

    if($table=="show_your_do" && $field=="DATE_SENT")

    {

    return now();

    }

    if($table=="show_your_do" && $field=="PHOTO")

    {

    return ../;

    }

    return "";

    }
    /**
  • @intellisense

    */

    function GetAutoUpdateValue($field, $ptype, $table="")

    {

    global $strTableName;

    if(!$table)

    $table=$strTableName;

    return "";

    }
    /**
  • @intellisense

    */

    function GetUploadFolderExpression($field, $file, $table )

    {

    return "";

    }
    /**

Admin 6/18/2020

Some of your default values miss double quotes around it.
Wrong:

../pdf
Right:

"../pdf"

W
william_teale author 6/18/2020

thanks for coming back so quickly, that was exactly the problem!