March 1, 2012

How to count files in https?

Question by Jan-Dean Fajardo

Is it possible to count files under a directory when you’re only reading to https url? or only possible through ftp?

Answer by Starx

Only through ftp

http & https are protocols to view web applications. Features like directory listing are done from server, not through such protocols.

Explanation in case of php & apache server

When you are using commands like scandir() to read file and directory, its the server that does the reading for you. not any http or https link. The page you browse through such protocols will only deliver the output markup on the page.

Through these protocols, all files except server-side files can be delivered on their actual format.

Author: Nabin Nepal (Starx)

Hello, I am Nabin Nepal and you can call me Starx. This is my blog where write about my life and my involvements. I am a Software Developer, A Cyclist and a Realist. I hope you will find my blog interesting. Follow me on Google+

...

Please fill the form - I will response as fast as I can!