i want to include a file in the header file which is in this directory :
wp-content/themes/themename/header.php
the code i used for inclusion is :
include("../../plugins/booking/informationform.php");
while the file which i want to include is in this directory :
wp-content/plugins/booking/informationform.php
so this gives me an error like this :
Warning: include(../../plugins/booking/informationform.php) [function.include]: failed to open stream: No such file or directory in /home/zapptv/domains/tvworkshop.com/public_html/wp-content/themes/tvworkshop/header.php on line 100
Warning: include(../../plugins/booking/informationform.php) [function.include]: failed to open stream: No such file or directory in /home/zapptv/domains/tvworkshop.com/public_html/wp-content/themes/tvworkshop/header.php on line 100
Warning: include() [function.include]: Failed opening '../../plugins/booking/informationform.php' for inclusion (include_path='.:/usr/local/lib/php') in /home/zapptv/domains/tvworkshop.com/public_html/wp-content/themes/tvworkshop/header.php on line 100
but when i copy the file in the same directory where the header is and include it with filename only then it s not giving any error and including successfully.