I have always had problems with PHP's include function. I'm making a shop website and i've created a shopping cart. I want it in each the sidebar of a few pages so i'm using include.
in the file /public_html/product/index.php on line 37:
include("converter.php");
the file converter.php is at /public_html/include/converter.php
At times it seems to work but most of the time it displays:
Warning: include(converter.php) [function.include]: failed to open stream: No such file or directory in /public_html/product/index.php on line 37
and then
Warning: include() [function.include]: Failed opening 'converter.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/a3371827/public_html/product/index.php on line 37
Am I missing something about include??