Help "detect how many browser and Auto save page"

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
whchua2000
Forum Newbie
Posts: 4
Joined: Mon Apr 03, 2006 8:54 pm

Help "detect how many browser and Auto save page"

Post 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:
User avatar
RobertGonzalez
Site Administrator
Posts: 14293
Joined: Tue Sep 09, 2003 6:04 pm
Location: Fremont, CA, USA

Post by RobertGonzalez »

Can you try to clarify your question a little bit?
whchua2000
Forum Newbie
Posts: 4
Joined: Mon Apr 03, 2006 8:54 pm

Post 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...
User avatar
RobertGonzalez
Site Administrator
Posts: 14293
Joined: Tue Sep 09, 2003 6:04 pm
Location: Fremont, CA, USA

Post 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.
User avatar
Christopher
Site Administrator
Posts: 13596
Joined: Wed Aug 25, 2004 7:54 pm
Location: New York, NY, US

Post 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.
(#10850)
whchua2000
Forum Newbie
Posts: 4
Joined: Mon Apr 03, 2006 8:54 pm

Post 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...
whchua2000
Forum Newbie
Posts: 4
Joined: Mon Apr 03, 2006 8:54 pm

Post 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
User avatar
RobertGonzalez
Site Administrator
Posts: 14293
Joined: Tue Sep 09, 2003 6:04 pm
Location: Fremont, CA, USA

Post by RobertGonzalez »

Like I said before, I think this is a little beyond me.
Post Reply