Hello,
I am new to the php world. My first post was met with a quick question. Thank you to those that responded to it.
My question this time is in reference to include files.
I have a file form.php that loks like:
include("/Include Files/Common.php"); // Header and footer functions.
html_header("Card Information"); //Load the html header information.
echo '<form name="CardInfo" method="POST" action="CardInfo.php">';
echo "<p>";
echo 'First Name:<input type="text" name="FirstName" size="10" maxlength="15">';
echo 'Last Name:<input type="text" name="LastName" size="15" maxlength="15">';
echo "</p><p>";
echo 'Card Number:<input type="text" name="CardNumber" size="5" maxlength="5">';
echo "</p>";
html_footer();
when it is called I am getting the following response in my browser.
Warning: Failed opening '/Include Files/Common.php' for inclusion (include_path='.:/php/includes:/usr/share/php') in /var/www/html/form.php on line 3
Fatal error: Call to undefined function: html_header() in /var/www/html/form.php on line 5
The fatal error is quite explanatory. I have no issues with this. MY question is where am I suppose to place my include files? Are they suppose to sit inside of the "/usr/share/php" directory? That seems like a pain in the but. Is it possible to have the include files reside and work from a directory structure such as:
/dir
/dir/include
/dir/pictures
If so how what changes to what files will have to be made?
As always any help is always appreciated.
Shaun