php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #32855 Not able to run our PHP application
Submitted: 2005-04-27 13:25 UTC Modified: 2005-04-27 13:29 UTC
From: balakrishnan at swathigroup dot com Assigned:
Status: Not a bug Package: IIS related
PHP Version: 4.3.10 OS: Windows
Private report: No CVE-ID: None
 [2005-04-27 13:25 UTC] balakrishnan at swathigroup dot com
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: support@idevdirect.com
#############################################################

	$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



Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2005-04-27 13:29 UTC] derick@php.net
Sorry, but your problem does not imply a bug in PHP itself.  For a
list of more appropriate places to ask for help using PHP, please
visit http://www.php.net/support.php as this bug system is not the
appropriate forum for asking support questions.  Due to the volume
of reports we can not explain in detail here why your report is not
a bug.  The support channels will be able to provide an explanation
for you.

Thank you for your interest in PHP.

We\'re not here to fix your stuff.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Dec 26 12:01:30 2024 UTC