For Programmers: Free Programming Magazines  


Home > Archive > PHP Language > August 2005 > Hide PHP









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Hide PHP
Phil McKraken

2005-08-12, 8:59 am

I have a php file browser/manager that works great BUT

how do I stop it from displaying any file types except images ? In
other words it puts itself in the files list which means it can be
remaned or deleted by this php file manager and I would like to
eliminate that possibility by restricting the program to NO display
the files with php extension.

Any way to do this ?

Thanks
Tyrone Slothrop

2005-08-12, 5:00 pm

On Fri, 12 Aug 2005 13:17:46 GMT, Phil McKraken <tingtejs@hotmail.com>
wrote:

> I have a php file browser/manager that works great BUT
>
>how do I stop it from displaying any file types except images ? In
>other words it puts itself in the files list which means it can be
>remaned or deleted by this php file manager and I would like to
>eliminate that possibility by restricting the program to NO display
>the files with php extension.
>
>Any way to do this ?
>
>Thanks


if (substr(strrchr($filename, "."), 1) != 'php') {
# display
}
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com