i am using raspberry-pi in my project which required some n/w config. so that i want to setup ip-address of Rpi for that i have written a php script which will do changes in network script /etc/network/interfaces & successfully configuration is done from a php page [using php as per gui friendly environment for user ] this php page simply asking for which n/w configuration like wireless / LAN and also for mode like DHCP/Static for that one i have done correctly

but after that i have disabled the gui from rpi as per requirement and i want to setup ip from another system from here problem is actually came into picture.
when i have gui with me on raspi i have done simply /local/my_script.php on midori
but if i don't have gui mode so how should i have done this ?
can we setup default ip-address just like a router ?
so my simple question is can we set default ip-address as like router ......finally can we made our rpi as a router with default ip