[Cartoweb-users] php include

Oliver Christen oliver.christen at camptocamp.com
Thu Aug 30 03:31:10 EDT 2007


3DSiteHi

unless you are talking about a new plugin (for which there are auto-include functions), if you want to include some other kind of php file, simply use the standart php syntax by providing the path to the file.
you can use CARTOWEB_HOME as a constant to get the path till the cartroweb root point

regards
Oliver
  ----- Original Message ----- 
  From: Milo van der Linden 
  To: cartoweb-users at lists.maptools.org 
  Sent: Wednesday, August 29, 2007 2:06 PM
  Subject: [Cartoweb-users] php include


  Hello list!

  I have my own class. My common php knowledge tells me that it needs to be included. In a test file I did this with:
  -  include "filename.php";

  How is this done in Cartoweb?

  I decided that the file I want to use should be in the Cartoweb/Projects/Include directory.


  -- 


       Milo van der Linden 
        skype: milovanderlinden
        mlinden at zeelandnet.nl
        milovanderlinden at gmail.com
        milo at 3dsite.nl
        http://www.3dsite.nl

         De informatie in dit bericht reflecteert mijn persoonlijke mening en niet die van een bedrijf of instantie. Aan de informatie kunnen geen rechten worden ontleend. Indien dit bericht onderdeel is van een forum, mailing-list of community dan gelden automatisch de bij het betreffende medium behorende voorwaarden. The information in this message reflects my personal opinion and not that of a company or public body. All rights reserved.If this message is contained in a mailing-list or community, the rights on the medium are automatically adapted.
       



------------------------------------------------------------------------------


  _______________________________________________
  Cartoweb-users mailing list
  Cartoweb-users at lists.maptools.org
  http://lists.maptools.org/mailman/listinfo/cartoweb-users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.maptools.org/pipermail/cartoweb-users/attachments/20070830/2bafee75/attachment-0001.html


More information about the Cartoweb-users mailing list