This is a discussion on php syntax problem - need help within the alt.comp.lang.php forums, part of the PHP Programming Forums category; given I have in main.php : <?php require_once 'breadcrumbs.php'; ?> and in breadcrumbs.php I have: <? class ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
given I have in main.php :
<?php require_once 'breadcrumbs.php'; ?> and in breadcrumbs.php I have: <? class breadcrumb { echo '1234'; } ?> I get an error message: Parse error: parse error, unexpected T_ECHO, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' in /mnt/web_j/d02/s44/a00071yw/www/breadcrumbs.php on line 3 I'm doing this on my remote host. breadcrumbs.php is in the same dir as main.php. What could the problem be? Thanks |
|
|||
|
"Ken Chau" <gizzar@gmail.com> wrote in message news:1137996575.404042.276700@o13g2000cwo.googlegr oups.com... > that's just the oddest thing... if you're trying to require_once a PHP > file that has the text "1234" in it, you don't even need to put in the > <?php ?> at all... just have this for breadcrumbs.php > > 1234 > Just a test to get it working... |
![]() |
| Thread Tools | |
| Display Modes | |
|
|