[Cartoweb-users] Browse in between the folders

Oliver Christen oliver.christen at camptocamp.com
Thu Jul 31 02:43:01 EDT 2008


in your code, add:
print __FILE__;
this will output the current script path as it is seen from the script point of view. 
based on the result you should be able to correct the relative path you must use in the parse_ini_file command to access the agroGeo.conf file.

regards
Oliver
  ----- Original Message ----- 
  From: Albert Casanovas 
  To: Oliver Christen ; cartoweb-users at lists.maptools.org 
  Sent: Wednesday, July 30, 2008 4:22 PM
  Subject: Re: [Cartoweb-users] Browse in between the folders


  Hi,

  I wrote wrong it is exactly like this that I am trying and the message I get is:

Class : CartocommonExceptionMessage : Error [2, parse_ini_file(../../../htdocs/agroGeo.conf) [function.parse-ini-file]: failed to open stream: No such file or directory, C:\ms4w\apps\cartoweb3\projects\agroGeo\plugins\recentering\client\ClientRecentering.php, 69]
Backtrace:

Regards,Albert ----- Original Message ----- 
    From: Oliver Christen 
    To: Albert Casanovas ; cartoweb-users at lists.maptools.org 
    Sent: Wednesday, July 30, 2008 3:37 AM
    Subject: Re: [Cartoweb-users] Browse in between the folders


    Hi

    do not start a relative path with a "/", 
    try ('../../../htdocs/myConf.conf');

    regards
    Oliver
      ----- Original Message ----- 
      From: Albert Casanovas 
      To: cartoweb-users at lists.maptools.org 
      Sent: Tuesday, July 29, 2008 10:26 PM
      Subject: [Cartoweb-users] Browse in between the folders


      Hi,

      I do need to parse a config filewhich is in myProject/htdocs from the ClientGeostat.php file which is in the myProject/plugins/geostat/client. I tried like this:

      $configure = parse_ini_file('/../../../htdocs/myConf.conf');

      But it does not find the file.

      Any help please?

      Thanks a lot,
      Albert




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


      _______________________________________________
      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/20080731/dc4ee7a6/attachment.html


More information about the Cartoweb-users mailing list