bugz-2849 Posted May 6, 2010 Share Posted May 6, 2010 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 More sharing options...
teamatomic Posted May 6, 2010 Share Posted May 6, 2010 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 More sharing options...
bugz-2849 Posted May 6, 2010 Author Share Posted May 6, 2010 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 More sharing options...
iblood Posted May 6, 2010 Share Posted May 6, 2010 I have same problems like that before... But When I transferred the favicon on my root directory.. it worked, may be you could try it..,I just dont know what is happening on that case though, so I cant explain... Link to comment https://forums.phpfreaks.com/topic/200911-include-function/#findComment-1054327 Share on other sites More sharing options...
bugz-2849 Posted May 6, 2010 Author Share Posted May 6, 2010 I've tried moving it. Each directory has a copy of the files folder. I just don't see why it shows up on 1 and not the other when both have EXACTLY the same files. Link to comment https://forums.phpfreaks.com/topic/200911-include-function/#findComment-1054331 Share on other sites More sharing options...
seniramsu Posted May 6, 2010 Share Posted May 6, 2010 try omitting the <?php include("../../mainDB/help.php"); ?> Link to comment https://forums.phpfreaks.com/topic/200911-include-function/#findComment-1054347 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.