Is there a way to get web page size using php or javascript ? I want to do this for 100s of domain.
Edit I am not sure what it means Thanks
Is there a way to get web page size using php or javascript ? I want to do this for 100s of domain.
Edit I am not sure what it means Thanks
You could use
file_get_contents()
and then simply read the byte size of the result. There are also online tools which you can make a use of their APIs.Also note, file_get_content() will simply get the content of the webpage as string, that is being said, if you are wanting to get the size including images and etc then you can use something like http://php.net/manual/en/function.stream-get-contents.php