Webiter
12-21-2011, 02:25 PM
At this test position (http://www.newtest.webitry.net/popcard.php) I have installed PopCard (http://www.pixaria.com/popcard/) script. It needs to be altered for use on Windows.
To progress this in respect of the location of the temp folder I have changed line 61 in config.php from
define("POPC_TEMP_DIR","/var/tmp/");
to
define("POPC_TEMP_DIR","C:\Windows\Temp\");
However this now gives me a
Parse error: syntax error, unexpected T_STRING in C:\CustomerData\webspaces\webspace_00159712\wwwroot\newtest.webitry.net\resources\includes\popcard.config.php on line 72
see construction of line 72 in attached image. Why might line 72 be presenting a Parse error and is there a fix?
The following is the complete script of the config.php
<?php
/*
*
* PopCard 3.0
* Copyright 2002 - 2008 Jamie Longstaff
*
*/
// Prevent this script being executed outside of the PopCard scope
if (POPCARD != "ON") { print("Direct access to this script is not allowed."); exit; }
/*
*
* This file contains all the system settings that are specific to your webserver
*
*/
/*
*
* Initialise the configuration information array
* DO NOT REMOVE THESE LINES!
*
*/
$cfg = array();
$lang = array();
$style = array();
/*
*
* The system path to the folder or directory containing all your scripts
* You should NOT need to manually set this value
*
*/
define("POPC_BASE_PATH",dirname(dirname(dirname(__FILE__)))."/");
/*
*
* The length of time users have to pick and send a card
* Avoid making this calue longer than 1800 seconds to help prevent spam
*
*/
define("POPC_TIMEOUT",600);
/*
*
* Enter an e-mail address between the second pair of quote marks to send a copy of every card to:
*
* e.g. define("POPC_TIMEOUT","myemail@domain.com");
*
*/
define("POPC_COPY_TO","");
/*
*
* Set the location of the temp folder
*
*/
define("POPC_TEMP_DIR","/var/tmp/");
/*
*
* Set whether you have GD 2.0+ on your server (produces better results)
* The variable GD2 can be either "TRUE" or "FALSE"
*
*/
define("POPC_GD2",true);
/*
*
* Choose whether or not you want to enable postcards from remote images
*
* Can be either true or false
*
*/
define("POPC_REMOTE_IMAGES",true);
/*
*
* To restrict remote image access to one URL, enter it between the two
* quote marks or else leave blank to allow images from any URL to be used.
*
*/
define("POPC_REMOTE_URL","");
/*
*
* Quality of the JPEG file to be displayed as a preview when the
* user creates their custom message. The lowest quality setting is
* 0, the highest quality setting, 100, will output much larger files
*
*/
define("POPC_JPEG_QUALITY",90);
/*
* Distance (in pixels) from top edge of card to where text box starts
* Adjust this value to leave space for larger or smaller postmark images
*/
define("POPC_TEXT_OFFSET_TOP",75);
/*
*
* You can change the language by editing this constant and replacing it with
* one of the language codes specified below. If you translate PopCard into
* another language, why not e-mail it to info@pixaria.com to be included.
*
* de_DE Deutsch German
* dk_DK Dansk Danish
* en_GB British English
* es_ES Castellano (Español) Spanish
* fi_FI Suomi Finnish
* fr_FR Français French
* id_ID Bahasa Indonesian
* nl_NL Nederlands Netherlands Dutch
* no_NO Norsk (Nynorsk) Norwegian - Nynorsk
* pt_BR Português Brazilian Portuguese
* ro_RO Română Romanian
*
*/
define("POPC_LOCALISATION","en_GB");
?>
To progress this in respect of the location of the temp folder I have changed line 61 in config.php from
define("POPC_TEMP_DIR","/var/tmp/");
to
define("POPC_TEMP_DIR","C:\Windows\Temp\");
However this now gives me a
Parse error: syntax error, unexpected T_STRING in C:\CustomerData\webspaces\webspace_00159712\wwwroot\newtest.webitry.net\resources\includes\popcard.config.php on line 72
see construction of line 72 in attached image. Why might line 72 be presenting a Parse error and is there a fix?
The following is the complete script of the config.php
<?php
/*
*
* PopCard 3.0
* Copyright 2002 - 2008 Jamie Longstaff
*
*/
// Prevent this script being executed outside of the PopCard scope
if (POPCARD != "ON") { print("Direct access to this script is not allowed."); exit; }
/*
*
* This file contains all the system settings that are specific to your webserver
*
*/
/*
*
* Initialise the configuration information array
* DO NOT REMOVE THESE LINES!
*
*/
$cfg = array();
$lang = array();
$style = array();
/*
*
* The system path to the folder or directory containing all your scripts
* You should NOT need to manually set this value
*
*/
define("POPC_BASE_PATH",dirname(dirname(dirname(__FILE__)))."/");
/*
*
* The length of time users have to pick and send a card
* Avoid making this calue longer than 1800 seconds to help prevent spam
*
*/
define("POPC_TIMEOUT",600);
/*
*
* Enter an e-mail address between the second pair of quote marks to send a copy of every card to:
*
* e.g. define("POPC_TIMEOUT","myemail@domain.com");
*
*/
define("POPC_COPY_TO","");
/*
*
* Set the location of the temp folder
*
*/
define("POPC_TEMP_DIR","/var/tmp/");
/*
*
* Set whether you have GD 2.0+ on your server (produces better results)
* The variable GD2 can be either "TRUE" or "FALSE"
*
*/
define("POPC_GD2",true);
/*
*
* Choose whether or not you want to enable postcards from remote images
*
* Can be either true or false
*
*/
define("POPC_REMOTE_IMAGES",true);
/*
*
* To restrict remote image access to one URL, enter it between the two
* quote marks or else leave blank to allow images from any URL to be used.
*
*/
define("POPC_REMOTE_URL","");
/*
*
* Quality of the JPEG file to be displayed as a preview when the
* user creates their custom message. The lowest quality setting is
* 0, the highest quality setting, 100, will output much larger files
*
*/
define("POPC_JPEG_QUALITY",90);
/*
* Distance (in pixels) from top edge of card to where text box starts
* Adjust this value to leave space for larger or smaller postmark images
*/
define("POPC_TEXT_OFFSET_TOP",75);
/*
*
* You can change the language by editing this constant and replacing it with
* one of the language codes specified below. If you translate PopCard into
* another language, why not e-mail it to info@pixaria.com to be included.
*
* de_DE Deutsch German
* dk_DK Dansk Danish
* en_GB British English
* es_ES Castellano (Español) Spanish
* fi_FI Suomi Finnish
* fr_FR Français French
* id_ID Bahasa Indonesian
* nl_NL Nederlands Netherlands Dutch
* no_NO Norsk (Nynorsk) Norwegian - Nynorsk
* pt_BR Português Brazilian Portuguese
* ro_RO Română Romanian
*
*/
define("POPC_LOCALISATION","en_GB");
?>