Working with IIS and System Path

kennibc

Joined: 2008-05-19
Posts: 2
Posted: Wed, 2008-05-21 12:05

I am using Joomla 1.5 and have the bridge and everything working, however, I cannot get the G2 Image chooser working with JCE.

Here is the issue, in the config file I need to add the full path for the server which is:
$g2ic_gallery2_path = "d:\website\schoolshots\";

When this happens, it throws the following error:
PHP Parse error: syntax error, unexpected T_STRING in D:\WEBSite\schoolmatters\plugins\editors\jce\tiny_mce\plugins\g2image\config.php on line 86

Apparently the "\" may be the issue in the config file. The example in config points to using usr/etc/etc/website/

Any suggestions???
Thanks,
Chris

 
capt_kirk

Joined: 2006-01-24
Posts: 492
Posted: Tue, 2008-06-10 20:18

Chris,

Sorry for the delay. I think you need two backslashes at each of the backslashes, so that the PHP will see it as a backslash instead of an escape code.

Please let me know if that works, and I'll update the documentation. (I'll also see if I can add some smarts to the code so that it doesn't need the second backslash...)

Thanks,
Kirk
____________________________________
G2Image Documentation, G2Image Demo Page, My Family Website