Jump to content

Include Function


bugz-2849

Recommended Posts

I need help with an Include function.  I have a main directory with all my files in it.  I have another directory which uses most of the files in the first directory.

 

I am using this:  <?php include("../../mainDB/help.php"); ?>

 

For some reason, the favicon is not being shown on the tabs. On the mainDB, the favicon is shown but on the other files that uses the include function, the favicon is not shown.  Can anyone help?

Link to comment
https://forums.phpfreaks.com/topic/200911-include-function/
Share on other sites

Look at the page source, does the favicon <link> appear in <head> as it should, with the proper url to the icon file?

note: if no favicon.ico link is found AND if you put a file in the root directory named "favicon.ico" any newer browser will just automagically use it. must be 16xq16 or 32x32

note::note: when testing this you will have to clear the cache if the page has been cached without the favicon in the root, or it will drive you nuts as to why it does not work as expected.

 

 

HTH

Teamatomic

Link to comment
https://forums.phpfreaks.com/topic/200911-include-function/#findComment-1054312
Share on other sites

Yes. This is how it is shown:

 

<html>

<head>

                <link rel="icon" type="image/png" href="files/favicon.png">

 

 

I have just made a new directory called "test" and I copied ALL files from the "template" folder into it. The test url is showing the favicon but the template one isn't. The files in both directories are exactly the same.

Link to comment
https://forums.phpfreaks.com/topic/200911-include-function/#findComment-1054322
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.