[Cartoweb-users] Run makemaps.php in php script
yves.bolognini at camptocamp.com
Tue Jun 6 10:22:09 EDT 2006
Just a precision about this script.
You must keep in mind that this use of function cleanFiles() has not
been tested. Scripts cw3setup.php and makemaps.php were written to be
called separately and not during runtime. So it might work, but it also
may cause some problems (especially if you have many visitors).
BTW, function cleanFiles is a single function, not an InstallException's
On mar, 2006-06-06 at 16:00 +0200, Jacolin Yves wrote:
> I answer to me for 'history' :
> It is possible to run makemaps.php easily by:
> define('CW3_SETUP_INCLUDED',''); //May be not useful (?)
> include("/var/www/html/cartoweb3/scripts/makemaps.php"); //to create
> auto.layer.default.map, ...
> InstallException::cleanFiles(); //to clean file
> Le Mardi 6 Juin 2006 11:54, Jacolin Yves a écrit :
> > Hi,
> > I am writing a plugin to allow user auth to create new postgis layer. I
> > need to create map file from myproject.map.php. Do you think to include
> > include("/var/www/html/cartoweb3/scripts/makemaps.php");
> > and run "makeProjectMaps($project);" after is a good way ? I don't know how
> > to use it ! Do you think it is possible or is it a bad thing to use
> > directly in php code ?
> > Regards,
> > Y.
More information about the Cartoweb-users