note 93858 added to function.include

From: Date: Sun, 04 Oct 2009 03:17:39 +0000
Subject: note 93858 added to function.include
Groups: php.notes 
Request: Send a blank email to php-notes+get-161255@lists.php.net to get a copy of this message
I am finishing a php install of an open source web based helpdesk app and it is directing me to do the following and I am not sure how. Change permission of include/settings.php to remove write access I tried www.mydomain.com/helpdesk/inlcude/settings.php and it is a restricted area. I use my ftp to download the file and open it in notebook and I do not see any reference to write access. Here is what the settings.php code looks like... <?php /******************************************************* setttings.php Static helpdesk configuration file. Mainly useful for mysql login info. Created during installation process and shouldn't change even on upgrades. Big Bird <bigbird@seasamestreet.com> Copyright (c) 2006,2007,2008,2009 helpdesk http://www.seasamestreet.com Released under the GNU General Public License WITHOUT ANY WARRANTY. See LICENSE.TXT for details. vim: expandtab sw=4 ts=4 sts=4: $Id: $ **************************************************/ #Disable direct access. if(!strcasecmp(basename($_SERVER['SCRIPT_NAME']), basename(__FILE__)) || !defined('ROOT_PATH')) die('kwaheri rafiki!'); #Install flag define('OSTINSTALLED',FALSE); if(OSTINSTALLED!=TRUE){ if(!file_exists(ROOT_PATH.'setup/install.php')) die('Error: Contact system admin.'); //Something is really wrong! //Invoke the installer. header('Location: '.ROOT_PATH.'setup/install.php'); exit; } # Encrypt/Decrypt secret key - randomly generated during installation. define('SECRET_SALT','%CONFIG-SIRI'); #Default admin email. Used only on db connection issues and related alerts. define('ADMIN_EMAIL','%ADMIN-EMAIL'); #Mysql Login info define('DBTYPE','mysql'); define('DBHOST','%CONFIG-DBHOST'); define('DBNAME','%CONFIG-DBNAME'); define('DBUSER','%CONFIG-DBUSER'); define('DBPASS','%CONFIG-DBPASS'); #Table prefix define('TABLE_PREFIX','%CONFIG-PREFIX'); ?> I am not a php programmer, but I thought this change should be easy...any ideas on how to do this??? ---- Server IP: 64.71.164.2 Probable Submitter: 72.138.14.197 ---- Manual Page -- http://www.php.net/manual/en/function.include.php Edit -- https://master.php.net/note/edit/93858 Del: integrated -- https://master.php.net/note/delete/93858/integrated Del: useless -- https://master.php.net/note/delete/93858/useless Del: bad code -- https://master.php.net/note/delete/93858/bad+code Del: spam -- https://master.php.net/note/delete/93858/spam Del: non-english -- https://master.php.net/note/delete/93858/non-english Del: in docs -- https://master.php.net/note/delete/93858/in+docs Del: other reasons-- https://master.php.net/note/delete/93858 Reject -- https://master.php.net/note/reject/93858 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#161255) next »