Jump to content

Return the size of a PHP file


 Share

Recommended Posts

Well as you can tell by the title and description INetGetSize doesn't return the size of a php file, I have no idea why but it doesn't lol, is there any other way to get the size of a php file?? any help would be appreciated.

If you wanna see why im asking just click the Link in my signature

Thanks,

Z

A great place to start Autoit 1-2-3

Link to comment
Share on other sites

Maybe you could solve it with this code:

#include <Inet.au3>
$size = StringLen(_INetGetSource($url))

Programming today is a race between software engineers striving to
build bigger and better idiot-proof programs, and the Universe
trying to produce bigger and better idiots.
So far, the Universe is winning.

Link to comment
Share on other sites

Because the actual PHP is on the server, you are only getting the output which would be smaller.

but when you think about it there has to be and actual .php file which has something in it to call the other functions... so wouldnt there still be a file?? because when i web design with php i still end up with a file size...

@funkey ill give it a try but i gotta wake up in an hour for class so ill do it while im in class lol

A great place to start Autoit 1-2-3

Link to comment
Share on other sites

but when you think about it there has to be and actual .php file which has something in it to call the other functions... so wouldnt there still be a file?? because when i web design with php i still end up with a file size...

You're not allowed to view the original source of a PHP file because that is executed on the server. What you see is the output of whatever the PHP file does, HTML/JS/CSS etc wise. You will never see the original file.

Almost every server denies access to the source so you will only ever get the size of the html sent to your browser.

Correct.
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...