jac.kock Posted April 27, 2012 Share Posted April 27, 2012 hi all, i have made a counter as a module for my website. when i directly go to de module and start de counter i see the picure en he does his work, butt wen i call it in de index.php by include('modules/counter/counter.php') then i see een not loaded picturebox and i dont know why it doesnt works ? you can see the counter and the problem on: http://nieuw.pc-hulp-online.nl/index.php can someone help me to make it als work with include()?? thnx Quote Link to comment https://forums.phpfreaks.com/topic/261733-cant-seem-to-get-counter-in-the-index/ Share on other sites More sharing options...
Drummin Posted April 27, 2012 Share Posted April 27, 2012 Just a guess as I'm not sure what the problem is. Include the page instead of link to it. include("http://nieuw.pc-hulp-online.nl/modules/counter/counter.php"); Quote Link to comment https://forums.phpfreaks.com/topic/261733-cant-seem-to-get-counter-in-the-index/#findComment-1341267 Share on other sites More sharing options...
jac.kock Posted April 28, 2012 Author Share Posted April 28, 2012 Just a guess as I'm not sure what the problem is. Include the page instead of link to it. include("http://nieuw.pc-hulp-online.nl/modules/counter/counter.php"); hi drummin, whwn i use: include("http://nieuw.pc-hulp-online.nl/modules/counter/counter.php"); than i see nothing and also no misloaded picture???? i will show you the code so please tell me why it doesnt work? <!-- start spacer --> <tr> <td class="spacer"> </td> </tr> <!-- end spacer --> <!-- start copyrights / about / sitemap / ect. --> <tr> <td class="copyrights" align="center"> <!-- counter call --> || <?php include("modules/counter/counter.php"); ?> <!-- end counter call --> || <?php echo $OwnerCopyright; ?> || <a href="?topic=Contact" title="Contact weergeven">Contact</a> || <a href="?topic=Copyrights" title="Copyright info">Copyrights</a> || <a href="?topic=Disclamer" title="Disclamer algemene voorwaardens!">Disclamer</a> || <a href="?topic=Sitemap" title="Sitemap weergeven">Sitemap</a> <!--|| Designed By: <a href="http://pc-hulp-online.nl" target="new" title="Design By:">pc-hulp-online</a>--> || <!-- deze is voor nette afsluiting balkje --> </td> </tr> <!-- end copyrights / about / sitemap / ect. --> </table> <!-- end table for website desige --> </td> </tr> </table> <!-- end main table --> <!-- end webpage design like tables --> <a href="modules/counter/counter.php" target="new" >see here the counter working!!</a> take a look and please help me!! thnxs Quote Link to comment https://forums.phpfreaks.com/topic/261733-cant-seem-to-get-counter-in-the-index/#findComment-1341324 Share on other sites More sharing options...
kicken Posted April 28, 2012 Share Posted April 28, 2012 Since your counter.php file seems to output an image when you browse to it, you want to set it as the src to an image on your page, not include() it in the php file. <img src="/modules/counter/counter.php"> Quote Link to comment https://forums.phpfreaks.com/topic/261733-cant-seem-to-get-counter-in-the-index/#findComment-1341329 Share on other sites More sharing options...
jac.kock Posted April 28, 2012 Author Share Posted April 28, 2012 hi kicken, thnx it works now !! greets, Quote Link to comment https://forums.phpfreaks.com/topic/261733-cant-seem-to-get-counter-in-the-index/#findComment-1341330 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.