mattpooch Posted January 1, 2010 Share Posted January 1, 2010 Trying to display two random banners on the page, the issue seems to be with this code: <?php require_once("microADRotator.php"; "microBannerRotator.php"); ?> because the page is saying Parse error: syntax error, unexpected ';' in /homepages/6/d229350418/htdocs/Wallace/2010site/video_random_test.php on line 2 what am I doing wrong? I got this from this tutorial: http://www.phptoys.com/e107_plugins/content/content.php?content.49 Link to comment https://forums.phpfreaks.com/topic/186851-getting-parse-error-syntax-error/ Share on other sites More sharing options...
FuThAr Posted January 1, 2010 Share Posted January 1, 2010 include just one file or use __autoload for multiple inclusions Link to comment https://forums.phpfreaks.com/topic/186851-getting-parse-error-syntax-error/#findComment-986761 Share on other sites More sharing options...
salathe Posted January 1, 2010 Share Posted January 1, 2010 You can't require_once a list of files like that. Each file needs to be 'required' individually, e.g. require_once("microADRotator.php"); require_once("microBannerRotator.php"); Link to comment https://forums.phpfreaks.com/topic/186851-getting-parse-error-syntax-error/#findComment-986767 Share on other sites More sharing options...
mattpooch Posted January 1, 2010 Author Share Posted January 1, 2010 Thanks for the help, problem solved! Happy New Year! Link to comment https://forums.phpfreaks.com/topic/186851-getting-parse-error-syntax-error/#findComment-986775 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.