PHP Tutorials: Dynamic pages (Part 1)
Creating a standard webpage template, only the content changes when a link is clicked. Saves time duplicating each file, and makes it a lot easier if something needs to be changed, like a menu item, header, or footer.
Duration : 0:8:29
Just a question…. …
Just a question….
Scenario;
- I am currently on the home page
- Click the TUTORIAL Link
- this appears:
HOME PAGE CONTENT
TUTORIAL PAGE CONTENT
It doesnt hide the HOME PAGE CONTENT, can anybody help please?
Thanks heaps!
Still using tables …
Still using tables for layout?
Not too friendly, …
Not too friendly, but you can always use rewrite.
It’s not vulnerable …
It’s not vulnerable to an RFI attack, however it’s not a very secure code.
Thanks alot!
Thanks alot!
Nice Video… …
Nice Video… PEople this code isnt vulnerable
This code isn’t …
This code isn’t vulnerable to RFI or LFI
I like the tutorial …
I like the tutorial, but you talk way way way way too fast. I had to pause the video several times. Please improve this!
what bout RFI
!
!
what bout RFI
Interesting! Keep …
Interesting! Keep the good work up Alex …
I think they should …
I think they should be yeah, since lots of websites work this way. The other way to do this is to have:
include(“header.php”);
echo “content”;
include(“footer.php”);
if this doesnt make sense message me.
Are pages SEO …
Are pages SEO friendly using this dynamic method?
you should create a …
you should create a switch statement to check the page var so no one hacks your site using LFI or RFI
When I call …
When I call index.php without any “GET” parameter I have this notice showing on the page:
“Notice: Undefined index: page in C:\wamp…”
Is not an error but just a notice that tells that there’s no $_GET array. Depends on the php.ini config if the browser shows it or not.
To avoid having this message I included an “@” before $page = $_GET['page']; line:
@$page = $_GET['page'];