PHP Include from another IP

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
mwsmith
Forum Newbie
Posts: 1
Joined: Sat Nov 15, 2003 5:07 pm

PHP Include from another IP

Post by mwsmith »

I'm on a college network, running a server from my computer. The IP I have is internal though, so it cannot be accessed from outside the network. I do have space on the school's webserver.

I was hoping that I might be able to use an include to display the files from my computer on the server, but this doesn't seem to be working, at least with a simple PHP include().

Is there a way to include a file that isn't on the server, but is within the network?
User avatar
Weirdan
Moderator
Posts: 5978
Joined: Mon Nov 03, 2003 6:13 pm
Location: Odessa, Ukraine

Post by Weirdan »

include should do it over HTTP, so you should have local web-server listening on network interface (or you can try samba or nfs to mount remote folders to your external web-server, but that's another story).
Post Reply