Page 1 of 1

Help "detect how many browser and Auto save page"

Posted: Mon Apr 03, 2006 10:06 pm
by whchua2000
How to detect how many browers I open and I want to write a script Save the page (like 'Save pages as' function in firefox browser)?

what is the fuction can do for me?

Thanks a lot... :oops:

Posted: Mon Apr 03, 2006 10:20 pm
by RobertGonzalez
Can you try to clarify your question a little bit?

Posted: Mon Apr 03, 2006 11:13 pm
by whchua2000
for example,

I open 3 browsers, and surf http://www.example1.com, http://www.example2.com and http://www.example3.com.

I would like to write a php script to detect how many browsers I open, include the name of http address show.

second question is:
I would like to write a php script to save the 3 browers contents, like "Save page as" function in manually to save.

I hope can understand i explain...

Posted: Mon Apr 03, 2006 11:21 pm
by RobertGonzalez
Sorry, this is beyond me.

It sounds like you want to use PHP as a client-side language. I am not sure that PHP can tell you what browsers are open without the PHP script getting called. As far as a save as, I know you can use cURL to fetch pages, but I am not sure how you would go about tying these two processes together.

Posted: Mon Apr 03, 2006 11:27 pm
by Christopher
You couldn't do that server side unless the three domains shared the same session system. Then you could track the domains/URLs in the session and determine from that how many had been accessed.

Posted: Mon Apr 03, 2006 11:28 pm
by whchua2000
thanks Everah fast reply me, if php can not run clients-side services. Can you suggest me what program or other script, html technique to Save the pages. thanks a lot...

Posted: Tue Apr 04, 2006 1:03 am
by whchua2000
To Everah,

I know how to fetch pages. but the webpage is not static page(dynamic page, written in Jaya script).
I would not like to save the webpage source code, I want to save the page already process in my browser (in clients side) in my hard disk.

To arborint,
I can access one domains in the one session.


thanks a lots

Posted: Tue Apr 04, 2006 1:24 am
by RobertGonzalez
Like I said before, I think this is a little beyond me.