Good day excuse me only speak spanish you can do this INCLUDE "../file_conecta.map"
content of file_conecta.map CONNECTIONTYPE POSTGIS CONNECTION 'host=127.0.0.1 port=5433 user=postgres password=qawse234*. dbname=sedalib34 options=\'--client_encoding=UTF8\' ' My application still uses ms4w 4.0 with php 5 If you could send me an example of your application with php 7 to see how I could migrate mine, I would be very grateful. have a nice day Greetings from Trujillo - Peru sorry for the writing I do it with google translate El vie, 4 mar 2022 a las 10:16, Andrew Tegenkamp via MS4W-Users (< [email protected]>) escribió: > We have MS4W 4.0.5 and are using PostGIS that interacts with a PHP web > application. > > We're using standard Mapfiles and MapScript, and I have the "CONNECTIONTYPE > postgis" and "CONNECTION "host=..." lines in a bunch of map files and am > working to clean up and consolidate my code at the moment. > > I'd like to find a way to make that a global variable so it's easier to > update and change. For convenience I'd prefer to store some of the MAP > files inside the web root but don't want to expose the database connection > so I'm keeping it outside the web root for now. > > My first thought was to set a .htaccess file to process .map files like > .php and add my own PHP, but of course the mapfile location is a local file > c:\ms4w\ so it does not process any PHP in a MAP file and tells me "First > token must be MAP, this doesn't look like a mapfile" which makes sense. > > Does anyone have a good strategy for organizing multiple Mapfiles and > making a more global CONNECTION line that I'm missing? > > None of this is a requirement and I can do global find and replace > operations, but it seemed there may be a better way, so I wanted to reach > out and see if anyone had a better way than I did! > > Thanks, > Andrew > > _______________________________________________ > MS4W-Users mailing list > [email protected] > https://lists.ms4w.com/mailman/listinfo/ms4w-users > -- José Mercedes Venegas Acevedo cel 955725384
_______________________________________________ MS4W-Users mailing list [email protected] https://lists.ms4w.com/mailman/listinfo/ms4w-users
