PDA

View Full Version : How to make a Web server like WWC ?


vandamme
06-06-2005, 11:37 PM
I would like to make a web server (with Apache for instance) like WWC.
But I don't know how the server could process the parameters coming from the http request like :
http://myserver.com/?name=toto&format=gif
How could I tell the server to send me the image toto.gif ?

TomServo
06-07-2005, 05:36 PM
Whew.. your asking for a lot ;)

What you need is mapserver. (http://mapserver.gis.umn.edu/) so I would suggest start loking there.

vandamme
06-07-2005, 07:38 PM
Originally posted by TomServo@Jun 7 2005, 05:36 PM
Whew.. your asking for a lot ;)

What you need is mapserver. (http://mapserver.gis.umn.edu/) so I would suggest start loking there.
Quoted post



Thanks a lot for your answer.
I will look at the link ...

Guest_vandamme_*
06-08-2005, 09:46 AM
In fact, the only thing I want is to make a request like :
http//myserver.com?param1=a&param2=b
and to display (in Internet explorer for instance) an image stored in the
web server and whose name is :
ab.jpg

wais
06-12-2005, 01:04 AM
You would need a php / asp script for that. What would happen is that index.php / asp would be called, and the variables would be set from those params. I cant remmember how to do this in php right now. It would then use these variables, connect to an sql database and search it for the url of a file with that name by simply doing a (param1 & param2 & ".jpg").

Alternatively, if you have all the images in a single directory, you could just set the directory as the base folder, and then do (folder & "\" & param1 & param2 & ".jpg")

Hope that makes sense. You'll still have to turn that into proper php / asp.

Beansprout
06-12-2005, 01:08 AM
You could PM Nowak and see if he'll show you how WWC runs things.

He's quite busy though.

vandamme
06-12-2005, 11:29 AM
Thanks for all your answers.
I will experiment all these solutions soon.