Hello all, I trust you are doing well.

Setup
XP Pro SP2 (installed in H:\WINDOWS)
MS IIS 5.1 (installed in H:\Inetpub\wwwroot)
MySql Server 5.0 (installed in H:\Program Files\MySQL\MySQL Server 5.0\bin)
PHP 5.1.1 (installed in H:\php)
Dreamweaver MX2004 (H:\Program Files\Macromedia\Dreamweaver MX 2004)

Background
All of the apps above work fine together. Using Firefox/IE I can run PHP scripts that sit on my IIS (i.e. http://localhost/i_rater/phpinfo.php). You see, I'm trying to get an I-Rater script running on my machine, but I'm not sure how to define the Base Path and Base URL fields on I-Rater's install.php tool.

Procedure
I run the I-Rater install script by typing http://localhost/i_rater/admin/install.php into my browser, and it prompts me for the following info:

Base path:/var/www/html/yourfolder <- default
Base URL: http://localhost/i_rater
DB Host Name: localhost
DB Name: swn
DB User Name: root
DB Password: ***********
Table Prefix: platinum_

Then I click on the Install button and get the following message:

All the tables were created successfully! Congratulations, you have sucessfully set up I-RATER PLATINUM 3.2.1!

Click Here To enter the admin control panel.Please remember to change your password!
Click Here To view your site. Please note that the "default" usertypes will be displayed until
you set up your desired usertypes and the featured users will be broken until you set them. ENJOY!

I verified that the swn database does indeed have the new tables setup by the install.php script. So next, I click on the link to enter the admin control panel, and these are the warnings and error I get:

Warning: include(/var/www/html/yourfolder/include/FastTemplate.php3) [function.include]: failed to open stream: No such file or directory in H:\Inetpub\wwwroot\i_rater\admin\config_settings.tpl.php on line 2

Warning: include() [function.include]: Failed opening '/var/www/html/yourfolder/include/FastTemplate.php3' for inclusion (include_path='.;H:\Inetpub\wwwroot\i_rater\include') in H:\Inetpub\wwwroot\i_rater\admin\config_settings.tpl.php on line 2

Fatal error: Class 'FastTemplate' not found in H:\Inetpub\wwwroot\i_rater\admin\config_settings.tpl.php on line 3

Comments
It is clear that the leaving the Base Path with its default value (see red above) is the problem. I'm just not sure which path I need to put in there.

Here is some more path info that might be useful
local root folder: D:\web\i_rater\
remote folder: H:\Inetpub\wwwroot\i_rater\
testing server folder: H:\Inetpub\wwwroot\i_rater\
URL prefix: http://localhost/i_rater

I appreciate any help or advice on this problem. Thanks.

Regards,

cauchyResidue

    I should note that include path in my php.ini file is set as follows:

    include_path = ".;H:\Inetpub\wwwroot\i_rater\include"

      After a little lookin' around on the Web I learned that the /var/www/html/yourfolder path is a Linux HTTP server type path. I would like to run this on MS IIS so I may be S.O.L.

      Do you guys know if PHP scripts are platform independent?

        i,

        I am assuming they use the basepath as a prefix to your locally stored files. the same for the base URL. This handy when using several scripts in differnt files, on different folder depths, I do this myself too.
        e.g.:

        $baseurl = "http://localhost/secure/test/necov/newsite/";
        $root = "D:\webroot/necov/newsite/";

        In your case, the base-path would probably be the folder in which the actual files reside, I guess that woudl be: local root folder: D:\web\i_rater\

        Hope it helps.

        The PhP in itself is not platform dependent, but path-formats are.

          Thanks, Leatherback.

          I'll give your suggestion a go once I get home from work.

          Regards,
          -cauchyResidue

            You are the man, leatherback, it worked like a charm.

            First I used d:\web\i_rater, but that didn't work as install script converted it to d:webirater (i.e. it got rid of the slashes).

            So then I tried d:\web/irater and it worked.

            I didn't realize that a path could use both types of slashes.

            Thanks again,
            -cR

              Write a Reply...