ACCESS PHP PAGE WITH IP ADDRESS

Ye' old general discussion board. Basically, for everything that isn't covered elsewhere. Come here to shoot the breeze, shoot your mouth off, or whatever suits your fancy.
This forum is not for asking programming related questions.

Moderator: General Moderators

Post Reply
priyanob
Forum Newbie
Posts: 6
Joined: Wed Dec 09, 2009 7:09 pm

ACCESS PHP PAGE WITH IP ADDRESS

Post by priyanob »

Hello guys...
Suppose there is a server and many clients connected to it. Imagine that there is a php file( that have access to Database ) within the server harddisk. Now how can we make or is there any technique to make the aforementioned php file accessible from any client by taking a webbrowser and typing the IP address like www.phpfilename.com..Please reply me...i am new to PHP...
User avatar
pickle
Briney Mod
Posts: 6445
Joined: Mon Jan 19, 2004 6:11 pm
Location: 53.01N x 112.48W
Contact:

Re: ACCESS PHP PAGE WITH IP ADDRESS

Post by pickle »

I really don't think so. You might be able to hack the heck out of your DNS, but I've never heard of anything like this.

Just so I'm clear, you're wanting someone to be able to go to: http://www.list.php.com and have them served up list.php from your server?
Real programmers don't comment their code. If it was hard to write, it should be hard to understand.
josh
DevNet Master
Posts: 4872
Joined: Wed Feb 11, 2004 3:23 pm
Location: Palm beach, Florida

Re: ACCESS PHP PAGE WITH IP ADDRESS

Post by josh »

Yes its possible, you can use wildcards in subdomains, just create a DNS entry for *.yourdomain.com (some DNS servers & web hosting companies will allow this, some will not). Then you can examine the $_SERVER array to find out which subdomain or domain was used to access the script. Zend Framework has build the concept right into the MVC Router
Post Reply