Execute my php program from another computer

Hello Friends,

   I want to execute my php program from another computer using host name not ip address. So, the following steps I have tried.

   1.  I have changed my host name in host file like 
               
             127.0.0.1            welcome
   2.  I have added virtual host and directory root in my apache's config file

   3. My folder structure like this.

         www/test/test1.php

  4. virtual host is like this:
    <VirtualHost 127.0.0.1>
         DocumentRoot "c:/wamp/www/test"
         ServerName test
    </VirtualHost>

  5. My Directory root is like this:
  <Directory "c:/wamp/www/test">
 Options Indexes MultiViews FollowSymLinks
 AllowOverride All
 Order allow,deny
 Allow from all
</Directory>

6. I restarted the server and I tried.  But it is not working for me.  Plz help to go further.

Thanks a lot!

  1. On another computer add to hosts file:
    x.x.x.x welcome

x.x.x.x is your local network ip.

  1. Virtual host:
    <VirtualHost *>
    DocumentRoot “c:/wamp/www/test”
    ServerName test
    </VirtualHost>

  2. Restart and try.

Hi Sir,

     Thanks a lot for ur immediate response.  I did not try the above code too. I will try the code at the same time Please explain my doubt here.

     For ex: I have 5 friends.  All of them want to access my php. Then I need to tell them to change their apache conf and host file.  Isn't? 

If its so, my requirement is different. Whatever may be the changes those should be in my system not in their system. They simply click the url and access it like ip address. This is what i want.

Change: I have wrongly typed ServerName test. That is ServerName welcome.

Please help me out.

Once again thank u so much.