Jump to content


Photo

php include help, Parse Error


  • Please log in to reply
5 replies to this topic

#1 member

member
  • Members
  • PipPipPip
  • Advanced Member
  • 58 posts

Posted 11 September 2006 - 08:43 PM

Hi,

I got an error like this: Parse error: parse error, unexpected T_STRING in http://hanmia8.freeh...id=12&Itemid=27 on line 7

On this page:http://islamcentre.awardspace.com/includetest/index.php

What 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.freeh...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.

#2 mazman13

mazman13
  • Members
  • PipPipPip
  • Advanced Member
  • 156 posts

Posted 11 September 2006 - 08:48 PM

Looks like the error is in the file you are including.

#3 member

member
  • Members
  • PipPipPip
  • Advanced Member
  • 58 posts

Posted 11 September 2006 - 08:51 PM

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?

#4 newb

newb
  • Members
  • PipPipPip
  • Advanced Member
  • 454 posts

Posted 11 September 2006 - 09:02 PM

why r u including a non-local file......................................


anyway mazman is right

#5 Nomax5

Nomax5
  • Members
  • PipPipPip
  • Advanced Member
  • 62 posts
  • LocationYork England

Posted 11 September 2006 - 09:05 PM

when ever I get them I've usually forgot to put a ; on the end of the line above.


#6 member

member
  • Members
  • PipPipPip
  • Advanced Member
  • 58 posts

Posted 11 September 2006 - 09:28 PM

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.

why r u including a non-local file......................................


anyway mazman is right






0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users