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!
Let's see if I can complicate my questions by one or two degrees.
What if the file is not on a web server, but is located on a LAN file server?
I know this can be done with HTML hyperlinks -- e.g. link to a particular folder on a LAN file server -- only works if you're on the LAN. The problem I'm having is that PHP seems to have its own include_path and the HTML path to the file server doesn't get referenced properly. Also, the LAN file server isn't a web box, so using http:// isn't going to work.
Perhaps now is a good time to better explain why I'm asking these questions...
I'm trying to create an intranet on a web server that can be accessed only by those on the LAN with the proper rights. Specifically speaking, the intranet is for the teachers at my school and I don't want students having access to that intranet. Creating yet another login name and password is far too objectionable, so I'm thinking of tying the access to a PHP required file that is located on our LAN file server, which may be accessed only by teachers when they log in to the network. Students who learn the address of the teacher's intranet won't have access to the required file because students accounts don't have rights to that server, so they'll be locked out.
The web server does have PHP version 4.2.4 installed, so that's why I'm looking for a PHP solution. Any other ideas how I might tackle this problem?
Why not implement a small loginsystem with multiple user? its so easy to implement this with php and mysql and sessions (php session funktion or selfmade). And when you implement this dont forget the autorissationssystem . I've done this and its a good solution for the normal web, and for the lan too.
Or (not a solution that i prefer) when you have static ips (or dhcp with mac table -> static ip) allow only these ip to view the pages.
This is very useful for a solution who provide all LAN user but no extern users...