topical media & game development
lib-ch-example-ref-cgi-mapPath.cgi / cgi
#!/bin/ch
/* Copyright (c) 2001 by SoftIntegration, Inc. All Rights Reserved */
include <cgi.h>
int main() {
class CResponse Response;
class CRequest Request;
class CServer Server;
chchar *path_virtual;
Response.begin();
Response.title("The Result of Test of Server.mapPath");
printf("<H1> The Result of Test of Server.mapPath</H1><p>\n ");
path_virtual = Request.getForm("mapPath");
printf("the path of \"\%s\" is mapped to \"\%s\" <br>\n", path_virtual, Server.mapPath(path_virtual));
Response.end();
}
(C) Æliens
20/2/2008
You may not copy or print any of this material without explicit permission of the author or the publisher.
In case of other copyright issues, contact the author.