member Posted September 11, 2006 Share Posted September 11, 2006 Hi,I got an error like this: Parse error: parse error, unexpected T_STRING in http://hanmia8.freehostia.com/index.php?option=com_content&task=view&id=12&Itemid=27 on line 7On this page:http://islamcentre.awardspace.com/includetest/index.phpWhat is wrong?Here is the php code which Is on that page: <head><meta http-equiv="Content-Type" content="text/html; charset=windows-1256" /></head><?php include('http://hanmia8.freehostia.com/index.php?option=com_content&task=view&id=12&Itemid=27'); ?><html><title>CodeAve.com (JavaScript: Print This Page)</title><body bgcolor="#FFFFFF">If anyone knows how to fix this please let me know here.Thank You, your help is most appreciated. Quote Link to comment https://forums.phpfreaks.com/topic/20427-php-include-help-parse-error/ Share on other sites More sharing options...
mazman13 Posted September 11, 2006 Share Posted September 11, 2006 Looks like the error is in the file you are including. Quote Link to comment https://forums.phpfreaks.com/topic/20427-php-include-help-parse-error/#findComment-90009 Share on other sites More sharing options...
member Posted September 11, 2006 Author Share Posted September 11, 2006 I don't really see any probs with the file I am including, just paste the url into the browser, of the include, it work's.Anyone else know? Quote Link to comment https://forums.phpfreaks.com/topic/20427-php-include-help-parse-error/#findComment-90011 Share on other sites More sharing options...
newb Posted September 11, 2006 Share Posted September 11, 2006 why r u including a non-local file......................................anyway mazman is right Quote Link to comment https://forums.phpfreaks.com/topic/20427-php-include-help-parse-error/#findComment-90015 Share on other sites More sharing options...
Nomax5 Posted September 11, 2006 Share Posted September 11, 2006 when ever I get them I've usually forgot to put a ; on the end of the line above. Quote Link to comment https://forums.phpfreaks.com/topic/20427-php-include-help-parse-error/#findComment-90018 Share on other sites More sharing options...
member Posted September 11, 2006 Author Share Posted September 11, 2006 i am Including a non-local file becuase, that is a prayer Time module Created for Joomla CMS Which cannot be installed on Non CMS sites. I use that site so that I can embed the times using an iframe or preferably php include.I also have other Joomla Modules and COmponent which I want to use to be embedded into my main site. [quote author=newb link=topic=107686.msg432310#msg432310 date=1158008560]why r u including a non-local file......................................anyway mazman is right[/quote] Quote Link to comment https://forums.phpfreaks.com/topic/20427-php-include-help-parse-error/#findComment-90025 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.