Hi,
I want to login on 2 different sites at the same time but if i login at site one i want a function to login in the background on the second site is this possible with some function in php? Or is there a solution?
Best Regards
Kris
header function
Moderator: General Moderators
Hi,
If you're running PHP as a CLI (not web), you can check these functions out: http://www.php.net/manual/en/ref.pcntl.php and possibly create child processes to do the logins simultaneously. I've never tried doing this with PHP though, so I'm not sure if it would work.
Aside from that, I'm not sure of any way to get PHP to do 2 things at the same time. Maybe creating several frames and having each frame load a different script or creating a page that loads a couple zero pixel images that have the src pointed to seperate login scripts? I'm just pulling those out... Not sure if they would work.
~Scott
If you're running PHP as a CLI (not web), you can check these functions out: http://www.php.net/manual/en/ref.pcntl.php and possibly create child processes to do the logins simultaneously. I've never tried doing this with PHP though, so I'm not sure if it would work.
Aside from that, I'm not sure of any way to get PHP to do 2 things at the same time. Maybe creating several frames and having each frame load a different script or creating a page that loads a couple zero pixel images that have the src pointed to seperate login scripts? I'm just pulling those out... Not sure if they would work.
~Scott
- mydimension
- Moderator
- Posts: 531
- Joined: Tue Apr 23, 2002 6:00 pm
- Location: Lowell, MA USA
- Contact:
there is a way to simulate multitasking using tick functions: http://www.php.net/manual/en/control-st ... eclare.php
they are a bit confusing but used correctly they can produce very powerful results.
they are a bit confusing but used correctly they can produce very powerful results.