Page 1 of 1

autorun application with XAMP start

Posted: Tue Apr 14, 2009 6:05 am
by pulkit
Hi,
Does any one know how to autorun my php application when i start XAMP package on windows XP(I want my php appllication start as i start XAMP on my computer as default appication :( :? :teach: )

Re: autorun application with XAMP start

Posted: Tue Apr 14, 2009 3:29 pm
by greyhoundcode
Does placing a shortcut in the Start > All Programs > Startup folder work? 8O :crazy: :mrgreen: :o :dubious:

Re: autorun application with XAMP start

Posted: Thu Apr 16, 2009 1:08 am
by McInfo
pulkit wrote:Does any one know how to autorun my php application when i start XAMP package on windows XP(I want my php appllication start as i start XAMP on my computer as default appication
By "XAMP package" do you mean Apache Friends XAMPP or something else?

By "php application" do you mean a PHP editor, an executable written in PHP, or a site written in PHP that you view in your browser?

Assuming you want to run Apache Friends XAMPP and the Eclipse editor, create a batch file that looks something like this:

start_eclipse_xampp.bat

Code: Select all

cd C:\dev\eclipse
start eclipse.exe
cd C:\dev\xampp
start xampp-control.exe
exit
If you want to start Eclipse maximized, write

Code: Select all

start /max eclipse.exe
If you want to start XAMPP minimized, write

Code: Select all

start /min xampp-control.exe
If you also want to open your default browser and navigate to localhost, write

Code: Select all

start http://localhost/
There isn't really a point to that, though, since Apache isn't running yet.

You can store the batch file in a convenient location or store it in a safe place and put a shortcut to it in a convenient location.

Edit: This post was recovered from search engine cache.

Re: autorun application with XAMP start

Posted: Thu Apr 16, 2009 5:02 am
by pulkit
Thanks for the replying,
But my question is that i have developed my application name for example xyz
now my first page name is a.php
Now when i start my xamp for the developing any application in XAMP for that i need to start XAMP and also Apache 2.2 upto this point r u clear???
now when i start XAMP my old application which i had made xyz it start when i run xamp_start.exe or on duoble click on xamp_start.exe
i hope now u got the what i want to do.

This is like in java in Java if u configure any web.xml on startup of tomcat application runs if u write http://localhost:8080

i want the same in php

thanking you,
pulkit

Re: autorun application with XAMP start

Posted: Thu Apr 16, 2009 11:27 am
by McInfo
m i clr? ! rly

I've searched but haven't found any evidence of a program called XAMP that is associated with Apache. I do know of and use XAMPP, though.

New file: start_xampp.bat

Code: Select all

cd C:\xampp
start /min xampp_start.exe
start http://localhost/xyz/a.php
exit
If you double-click on start_xampp.bat, xampp_start.exe will start minimized, then your default browser will open and automatically navigate to your "application" at http://localhost/xyz/a.php. Your browser will have to wait for Apache and MySQL to start, so there will be a little delay before your site comes up.

If that doesn't answer your question, your question might be "Where do I change the start page?". The answer to that is in the XAMPP FAQ.

Edit: This post was recovered from search engine cache.