Page 1 of 1

ACCESS PHP PAGE WITH IP ADDRESS

Posted: Wed Dec 09, 2009 7:14 pm
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...

Re: ACCESS PHP PAGE WITH IP ADDRESS

Posted: Thu Dec 10, 2009 11:14 am
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?

Re: ACCESS PHP PAGE WITH IP ADDRESS

Posted: Fri Dec 11, 2009 10:13 pm
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