Syntax Problem PHP
Morgen ich habe hier ein kleines PHP Syntax problem zumindest sagt eclipse mir das:
Description | Resource | Path | Location | Type |
syntax error, unexpected 'F' | 020.php | /php | line 7 | DLTK Problem |
meiner meinung hat es irgendwas mit den Gänsefüßen zu tun, aber ersetze ich die " durch ' in zeile 5 und 7 bekomme ich stattdessen
Description | Resource | Path | Location | Type |
syntax error, unexpected ')' | 020.php | /php | line 19 | DLTK Problem |
syntax error, unexpected 'F' | 020.php | /php | line 7 | DLTK Problem |
will mich nur eclipse ärgern oder ist wirklich nen fehler hier (btw ich habe es noch nicht geschaft smarty zum laufen zu bringen)
MfG Martin
<?php
include ('Smarty.class.php');
$strSmartyTemplateDir = "F:\PortableApps\eclipse moves jdk\php5\smarty\templates\";
$strSmartyCompileDir = "F:\PortableApps\eclipse moves jdk\php5\smarty\compile\";
$smarty = new Smarty();
$smarty->template_dir = $strSmartyTemplateDir;
$smarty->compile_dir = $strSmartyCompileDir;
$smarty->assign('name', 'Max Muster');
$smarty->assign('address', 'Blumenstraße 12');
$smarty->display('sdemo1.tpl');
?>
Please also mark the comments that contributed to the solution of the article
Kommentar vom Moderator Mitchell am Dec 08, 2009 um 08:06:13 Uhr
Überschrift geändert
Content-Key: 131183
Url: https://administrator.de/contentid/131183
Printed on: April 20, 2024 at 02:04 o'clock
6 Comments
Latest comment
Zitat von @s7mahess:
> $strSmartyTemplateDir = "F:\PortableApps\eclipse moves jdk\php5\smarty\templates\";
>
> $strSmartyCompileDir = "F:\PortableApps\eclipse moves jdk\php5\smarty\compile\";
>
Durch den Backslash werden deine Gänsefüßchen escaped (\").
Mfg
Mitchell