From:             balakrishnan at swathigroup dot com
Operating system: Windows
PHP version:      4.3.10
PHP Bug Type:     IIS related
Bug description:  Not able to run our PHP application

Description:
------------
We purchased a product which was developed under PHP and Mysql
environment. We are new to php environment. The purchased product said to
run under PHP version 4.1.0 or above. When we running the application it
generates lots of warnings and notice as below. Kindly help us to come out
from this flaw.

Reproduce code:
---------------
<?PHP
#############################################################
## iDevAffiliate Version 4.0 - Copyright by iDevDirect.com
## Site: http://www.idevdirect.com/
## Support: http://www.idevdirect.com/support/
## Email: [EMAIL PROTECTED]
#############################################################

        $install_directory_name = "idevaffiliate";

######################################################################

// Leave the following settings alone unless you experience errors.  
// Before adjusting, see step #3 in README.txt.

// AUTOMATIC PATH SETTING - Do Not Adjust!
// If This Doesn't Work Use The Manual Path Setting Below
$path = $_SERVER['DOCUMENT_ROOT'] . "/" . "$install_directory_name";

// MANUAL PATH SETTING
// Comment The Above PATH and UN-Comment The Below PATH
//$path = "D:\sss projects\idevaffiliate";

// ################### DO NOT EDIT BELOW THIS LINE ###################
include("$path/config/database.php");
if ($_REQUEST['cfg']) { include("$path/config/updates.php"); }
$color_sheet_data=mysql_query("select * from idevaff_colors");
$color_sheet=mysql_fetch_array($color_sheet_data);
?>

Expected result:
----------------
It should show a User name and password controls and a login button.

Actual result:
--------------
Notice: Undefined index: DOCUMENT_ROOT in D:\SSS
Projects\LRBIKEscom\www\idevaffiliate\config\config.php on line 18

Warning: main(/lrbikescom/www/idevaffiliate/config/database.php): failed
to open stream: No such file or directory in D:\SSS
Projects\LRBIKEscom\www\idevaffiliate\config\config.php on line 26

Warning: main(): Failed opening
'/lrbikescom/www/idevaffiliate/config/database.php' for inclusion
(include_path='.;c:\php4\pear') in D:\SSS
Projects\LRBIKEscom\www\idevaffiliate\config\config.php on line 26



-- 
Edit bug report at http://bugs.php.net/?id=32855&edit=1
-- 
Try a CVS snapshot (php4):   http://bugs.php.net/fix.php?id=32855&r=trysnapshot4
Try a CVS snapshot (php5.0): 
http://bugs.php.net/fix.php?id=32855&r=trysnapshot50
Try a CVS snapshot (php5.1): 
http://bugs.php.net/fix.php?id=32855&r=trysnapshot51
Fixed in CVS:                http://bugs.php.net/fix.php?id=32855&r=fixedcvs
Fixed in release:            http://bugs.php.net/fix.php?id=32855&r=alreadyfixed
Need backtrace:              http://bugs.php.net/fix.php?id=32855&r=needtrace
Need Reproduce Script:       http://bugs.php.net/fix.php?id=32855&r=needscript
Try newer version:           http://bugs.php.net/fix.php?id=32855&r=oldversion
Not developer issue:         http://bugs.php.net/fix.php?id=32855&r=support
Expected behavior:           http://bugs.php.net/fix.php?id=32855&r=notwrong
Not enough info:             
http://bugs.php.net/fix.php?id=32855&r=notenoughinfo
Submitted twice:             
http://bugs.php.net/fix.php?id=32855&r=submittedtwice
register_globals:            http://bugs.php.net/fix.php?id=32855&r=globals
PHP 3 support discontinued:  http://bugs.php.net/fix.php?id=32855&r=php3
Daylight Savings:            http://bugs.php.net/fix.php?id=32855&r=dst
IIS Stability:               http://bugs.php.net/fix.php?id=32855&r=isapi
Install GNU Sed:             http://bugs.php.net/fix.php?id=32855&r=gnused
Floating point limitations:  http://bugs.php.net/fix.php?id=32855&r=float
No Zend Extensions:          http://bugs.php.net/fix.php?id=32855&r=nozend
MySQL Configuration Error:   http://bugs.php.net/fix.php?id=32855&r=mysqlcfg

Reply via email to