Article View: pl.comp.lang.php
Article #230516Re: unexpected T_CONSTANT_ENCAPSED_STRING
From: jivanmukta
Date: Sun, 10 Aug 2014 06:24
Date: Sun, 10 Aug 2014 06:24
33 lines
2780 bytes
2780 bytes
Dla pliku localhost_constants.php o następującej treści:
<?php
define('MYSQL_SERVER', '...');
define('MYSQL_DATABASE', '...');
define('MYSQL_USER', '...');
define('MYSQL_PASSWORD', '...');
define('WEBSITE_PUNYCODE', '...');
define('WEBSITE_POLISH', '...');
define('EMAIL_SERVER', '...');
define('EMAIL_USERNAME', '...');
define('EMAIL_PASSWORD', '...');
define('EMAIL_FROM', '...');
define('FTP_BACKUPS', '...');
if (strtolower(substr(PHP_OS, 0, 3)) == 'win') {
define('TMP_DIR', 'C:\Users\Robert\rozgloszenia\application\tmp');
define('STATEMENTS_DIR', 'C:\Users\Robert\rozgloszenia\application\statements');
define('BACKUPS_DIR', 'C:\Users\Robert\rozgloszenia\application\backups');
define('PICTURES_DIR', 'C:\Users\Robert\rozgloszenia\application\pictures');
define('IMAGES_DIR', 'C:\Users\Robert\rozgloszenia\images');
} elseif (strtolower(substr(PHP_OS, 0, 5)) == 'linux') {
define('TMP_DIR', '/home/robert/public_html/application/tmp');
define('STATEMENTS_DIR', '/home/robert/public_html/application/statements');
define('BACKUPS_DIR', '/home/robert/public_html/application/backups');
define('PICTURES_DIR', '/home/robert/public_html/application/pictures');
define('IMAGES_DIR', '/home/robert/public_html/images');
}
mam przy wykonaniu php -l localhost_constants.php komunikat:
PHP Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING in public_html/application/config/localhost_constants.php on line 19
Używam PHP Version 5.3.10-1ubuntu3.13
Technical Details
Message-ID:
<00d9b151-2ef0-46ba-8c18-73f951567dd8@googlegroups.com>Path:
mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!agh.edu.pl!news.agh.edu.pl!news.cyf-kr.edu.pl!news.nask.pl!news.nask.org.pl!news.unit0.net!news.glorb.com!h18no10976165igc.0!news-out.google.com!j6ni34289qas.0!nntp.google.com!j15no5928832qaq.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mailReferences:
<9b4f23a5-2c8d-4112-b9cb-01b3e668759d@googlegroups.com> <ls61aq$5at$1@news.dialog.net.pl>Show Full Headers
Complete Article Headers
X-Received: by 10.182.125.68 with SMTP id mo4mr41631obb.49.1407651897600; Sat, 09 Aug 2014 23:24:57 -0700 (PDT) X-Received: by 10.140.85.5 with SMTP id m5mr5285qgd.9.1407651897539; Sat, 09 Aug 2014 23:24:57 -0700 (PDT) Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!agh.edu.pl!news.agh.edu.pl!news.cyf-kr.edu.pl!news.nask.pl!news.nask.org.pl!news.unit0.net!news.glorb.com!h18no10976165igc.0!news-out.google.com!j6ni34289qas.0!nntp.google.com!j15no5928832qaq.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: pl.comp.lang.php Date: Sat, 9 Aug 2014 23:24:57 -0700 (PDT) In-Reply-To: <ls61aq$5at$1@news.dialog.net.pl> Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=178.43.30.212; posting-account=Fd8BNwoAAACl8PCi6-fI0bkHGOgt6LMa NNTP-Posting-Host: 178.43.30.212 References: <9b4f23a5-2c8d-4112-b9cb-01b3e668759d@googlegroups.com> <ls61aq$5at$1@news.dialog.net.pl> User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: <00d9b151-2ef0-46ba-8c18-73f951567dd8@googlegroups.com> Subject: Re: unexpected T_CONSTANT_ENCAPSED_STRING From: jivanmukta@poczta.onet.pl Injection-Date: Sun, 10 Aug 2014 06:24:57 +0000 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit