Hi All, i'm new here but hoping someone can give me some much needed help! :)
I'm new to PHP Completely, the script i currently use to pull pages for this website is something i borrowed from a freind.
I Kinda understand this one script, but the rest is unknown to me... so heres my issue.
This script pulls the pages when a user clicks a link
if (file_exists("./pages/$_GET[act].php")) { if (!preg_match("/^(http|https|ftp)\:\/\//i", $_GET[act])) { require("./pages/$_GET[act].php"); } } else { require("./pages/home.php"); }
Now, i specify the page title in the main index.php file, but that then means i can't change the page title by what page the user is going on :(
Example, on home.php (default) the page title is set to Home. If i put it on about, its still home even if in the about.php i set the title to About.
Please help if you can, i'd be very greatful! :)