Hi,
I am just starting to learn php and using some of it's functions to update a webpage using php. Because i always needed to update a table on 100+ pages, i wrote a little php thinggie using the include() function. It would load the webpage i wanted inside a table of all my pages, so i would only need to update a single html page to update all the +100 pages. Here it is :
<?php include("tabela1.htm"); ?>
Yeah it's simple, but it works wonderfully. Err..kinda! When i have this 'tabela1.htm file inside the same directory the php file that's using this function, it works. If it's in another directory, even if i write the full root of the file, this doesn't work.
example:
File tabela1.htm is on the / (root) directory
file example.php is on the /example directory and has this php line : <?php include("example"); ?>, where example can be /tabela1.htm or http://host/tabela1.htm.
What is the problem ? Php only reads files from the same directory ? What can i do without fully changing my code ( 'cus i would have to do that on a LOT of pages...).
Thanks,
Ivan Jangoux