One script/session, one socket?

Not for 'how-to' coding questions but PHP theory instead, this forum is here for those of us who wish to learn about design aspects of programming with PHP.

Moderator: General Moderators

Post Reply
alfmarius
Forum Newbie
Posts: 16
Joined: Thu Jul 10, 2008 5:14 am

One script/session, one socket?

Post by alfmarius »

I'm curious to the details around how PHP works when it comes to scripts/sessions and open sockets.
My scenario:

I have a script that uses sessions. This script is a admin script that can do many things, one of them copying files from one server to local backup directory. This copy takes time, and i noticed that when the copying is running i cant runt the same script in another tab, it just hangs. though if i run the script with a different session_name it will run.

Is there some limitations on fopen/sockets in php?

Thanks for any info or links on the subject!

:)
User avatar
ghurtado
Forum Contributor
Posts: 334
Joined: Wed Jul 23, 2008 12:19 pm

Re: One script/session, one socket?

Post by ghurtado »

Your problem probably has nothing to do with sessions or sockets, and likely everything to do with the server being busy while it processes the first command, so it cant run again until it is done.
Post Reply