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...
ACCESS PHP PAGE WITH IP ADDRESS
Moderator: General Moderators
Re: ACCESS PHP PAGE WITH IP ADDRESS
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?
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.
Re: ACCESS PHP PAGE WITH IP ADDRESS
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