PDA

View Full Version : PHP Include & FireFox Problem


Uzair
04-15-2006, 03:33 PM
I'm using PHP Include metjod in my site for showing some external files. Everything is going well on Internet Explorer, but when I try to brows the site through FireFox, it dont show me the Include files. Whats the prob ???
its a XHTML Compliant PHP page.

I used this PHP code for including external files...

<?php include("external_file.php"); ?>

drhowarddrfine
04-15-2006, 03:47 PM
Perhaps you should ask in the PHP forum.

Uzair
04-15-2006, 03:52 PM
I 1st posted there but they replied back this is not a PHP problem. It must be a Browser or FireFox problem, then I again posted here.

kewlceo
04-15-2006, 04:41 PM
Since include is a statement and not a function, syntax should be: include 'myfile.php' (NOT: include('myfile.php')).

harbingerOTV
04-15-2006, 04:53 PM
no that include looks right to me. It's how I do it and works fine for me. Maybe there is some html/css problem surrounding the include. Is it in a div of somekind? what is the code around your include? Have you checked the page in anything else besides FF and IE?

drhowarddrfine
04-15-2006, 06:57 PM
Need a link or all the code.

Nightfire
04-16-2006, 01:43 AM
Code's posted here: http://www.codingforums.com/showpost.php?p=433860&postcount=3

To me the error looks like you've not closed off the header tag.

<title>Apna Jaranwala</title>
head>

drhowarddrfine
04-16-2006, 03:29 AM
That would do it.

oracleguy
04-17-2006, 05:27 PM
Yeah if it was a PHP problem then it wouldn't work at all since its all done before its sent to the browser.