Did he say perl and less server load ? I don't know about the second quote but PHP is AND less resource intensive AND ALOT faster than perl.
Ah, now I see what is meant with the second method. He means that determinating from which link is clicked, the same page loads different text files.
If for instance you would have links called 'about', 'products', 'prices'. And you would click on the about link, it would keep you on the index.php page, but with an argument like index.php?page=about.
Then a small piece of php =>
(not sure this is entirly correct as I don't use includes that often)Code:if $page = "about" { include("about.txt"); } elseif $page = "products" { include("products.txt"); } elseif $page = "prices" { include("prices"); }
And the content of the about.txt would be included at the place you call it.
Hope if this was of any help to you.




Bookmarks