Forum Moderators: coopster
I surely hope that someone can help me out with this rather (for me) challenging task I’m facing:
I have a site running on a LAN that includes several servers that have each of their own permission configuration. PHP (v4.2.2) is running on a simple WinNT with FoxServ, and it’s doing a great job – but now I need to control the user access, based on the configuration of another server (that can’t be setup to run PHP).
My idea is to put some lines of code into the index file, pointing to a file located on the access controlled server. See: “client can’t connect to the file = redirected to another site / client can connect to the file = the site continues as if nothing ever happened.
The problem here is, that the server running PHP do always have access to this server, so the returned information has to be based on the clients access permission.
Since I’m newbie in this, I happily believe that this can be done – I just don’t know how.
I tried with 'include' and 'request', but i learned that this can only be done with http and ftp (+local of course).
Can anyone give me a hint please?
You are right - the other server needs to run some kind of serverside scripts. I think i've found a usable solution. A pretty strange (read: homemade :-)) one, but indeet usable:
The links from the PHP server redirects to a webspace controlled by the proper access rights. This is done on the client side, because it is the client that are being redirected. And belive it or not.... then it redirects back to the PHP server, using asp.
Thank you for your time.