Wow, this is the most convoluted way of going about this I think I've ever seen. The point of it is maintaining fewer files to create multiple pages. This is somewhat backward.
hi im new to this need help im understanding the logic bu i have named my files same as your with the php on the end but the icons are not the same they are all php file and how are you getting to brows them im lost there can you help please
while i understand the elegance of using dynamic pages, is it seo friendly is the real question. I won't shoot myself in the foot just to be able to do a pretty and nerdy trick.
Wow, this is the most convoluted way of going about this I think I've ever seen. The point of it is maintaining fewer files to create multiple pages. This is somewhat backward.
ssolomon1215 2 months ago
hi im new to this need help im understanding the logic bu i have named my files same as your with the php on the end but the icons are not the same they are all php file and how are you getting to brows them im lost there can you help please
servehome 4 months ago
This has been flagged as spam show
Thanks alex, My personal thanks in a video for phpacademy!
watch?v=DTSooY8fqpw
SilverMagics 8 months ago
I coming to understand this tutorial here. :)
Good job phpacademy. I just hate confusing.
eminemchu43 8 months ago
while i understand the elegance of using dynamic pages, is it seo friendly is the real question. I won't shoot myself in the foot just to be able to do a pretty and nerdy trick.
yes that was a question.
shakaama 9 months ago
can i do it with content from a database
yvens47 9 months ago
I keep getting Empty Arrays I put in scandir() and it isn't working, then I used the glob()
and my arrays are empty
Blankityblank27 9 months ago
glob() is more efficient than scandir()
n1tr0b 10 months ago
What's the difference between .php and .inc.php?
ribly102 10 months ago
@ribly102 no difference.
upiz 10 months ago
@upiz Just wondering if there's any difference between them.
ribly102 10 months ago
@ribly102 difference is only in file name, you can call it as u want, between.php, between.inc.php, between.whatever.php
upiz 10 months ago
Thanks for the unset(); that would have help along time ago!
good tutorials as always though, may restructure the site now :)
DeVon898989 10 months ago
Comment removed
navgamingtk 10 months ago
@navgamingtk I agree, using file_exists() and basename() would probably be a better solution.
eg:
$file = $pages_dir . '/' . basename($p) . '.inc.php';
if (file_exists($file))
...
basename will strip any path from the name and just return the filename.
rawmonkno1 10 months ago