Samples dosn't work with Mac / Mamp

14 views
Skip to first unread message

mb

unread,
Apr 17, 2008, 3:53:10 AM4/17/08
to PHP-Ext
you must set the path to:

set_include_path(realpath('../../library'));

in all PHP files..

Sergei Walter Guerra

unread,
Apr 17, 2008, 12:14:28 PM4/17/08
to php...@googlegroups.com
I must apologize for this.  I used the statement:

set_include_path(get_include_path().';'.realpath('../../library'));

but it happens to be that this doesn't work in all operating systems, I forgot to use the PATH_SEPARATOR constant.  If you are having trouble with this, you must replace that line with

set_include_path(get_include_path().PATH_SEPARATOR.realpath('../../library'));

Unfortunately, this must be done in the php file for every sample, and in the index.php on the examples folder.  Please let me know if this really works for your OS.  This will be fixed in the SVN trunk and should be release in the next version.
--
Sergei Walter
ser...@gmail.com

mb

unread,
Apr 18, 2008, 4:29:29 AM4/18/08
to PHP-Ext
i test it now, and it works fine ;)

browser-info: firefox
os: MacOsX 10.5.2
MAMP-Version: 1.7.1

so you can add the changes in the svn..

thx
> serg...@gmail.com

mb

unread,
Apr 18, 2008, 4:57:03 AM4/18/08
to PHP-Ext
add for last post ;)

in the index.php
set_include_path(get_include_path().PATH_SEPARATOR.realpath('../
library'));
in the exampels php-files:

set_include_path(get_include_path().PATH_SEPARATOR.realpath('../../
library'));
Reply all
Reply to author
Forward
0 new messages