[Geoprisma-users] Tutorial Problems
Stephen Woodbridge
woodbri at swoodbridge.com
Sun Nov 29 20:52:58 EST 2009
Alexandre Dube wrote:
> Stephen Woodbridge wrote:
>>> 5. sample.xml –> config
>>>
>> Also I think you have a typo on number 5. it should be:
>> 5. config.xml -> config
>
> It could be anything.xml. I'll make the correction.
>
>
>> Warning: require_once(com/borealis/Autoload.php)
>> [function.require-once]: failed to open stream: No such file or
>> directory in /u/geoprisma/projects/myproj/config/common.php on line 15
>
> Check your $strGeoprismaRoot. Use a direct path if needed, like :
> "/u/geoprisma"; Tell me if that works for you.
>
I finally have time to report that I got bdga sample to work from its
own directory, but I'm not sure if it is using the bdga-config.xml or my
copy of that. Below is my directory layout and the diff of the files I
had to change (assuming I'm remembering everything. So next I plan to
start swapping in my WMS layers and comment out the other stuff.
-Steve
woodbri at mappy:/u/geoprisma/projects$ ls
lib/ myproj/
woodbri at mappy:/u/geoprisma/projects/myproj$ ls -R
.:
config/ config.php htdocs/
./config:
common.php config.xml
./htdocs:
css/ img/ index.php js/ proxy.php xslt/
./htdocs/css:
./htdocs/img:
./htdocs/js:
./htdocs/xslt:
woodbri at mappy:/u/geoprisma/projects/myproj$ diff -w ./htdocs/index.php
/var/www/geoprisma-r728/samples/bdga/index.php
5c5
< require_once '../config/common.php';
---
> require_once 'common.php';
woodbri at mappy:/u/geoprisma/projects/myproj$ diff -w ./htdocs/proxy.php
/var/www/geoprisma-r728/samples/bdga/proxy.php
3c3
< require_once '../config/common.php';
---
> require_once 'common.php';
woodbri at mappy:/u/geoprisma/projects/myproj$ diff config/config.xml
/var/www/geoprisma-r728/config/config-bdga.xml
woodbri at mappy:/u/geoprisma/projects/myproj$ diff -w config.php
/var/www/geoprisma-r728/samples/config.php
4d3
< #echo "g_strCurrentDir=$g_strCurrentDir<br>\n";
6,7d4
< #echo "g_strUrlPrefix=$g_strUrlPrefix<br>\n";
< $g_strUrlPrefix = '';
10d6
< #echo "g_strGeoprisma=$g_strGeoprisma<br>\n";
21,22c17
< $g_strConfigDir = "$g_strCurrentDir/config";
< #echo "g_strConfigDir=$g_strConfigDir<br>\n";
---
> $g_strConfigDir = "$g_strCurrentDir/../config";
25d19
< #echo "g_strLibUrl=$g_strLibUrl<br>\n";
More information about the Geoprisma-users
mailing list