note 60998 added to function.require-once

From: Date: Mon, 23 Jan 2006 03:26:27 +0000
Subject: note 60998 added to function.require-once
Groups: php.notes 
Request: Send a blank email to php-notes+get-102260@lists.php.net to get a copy of this message
You'll find this useful when implementing the new AJAX methods being touted across the web. I originally had each portion of my website contained in include files (external scripts) to better allow me to manage the growing size of all my scripts. I then decided to use an AJAX solution which means I had to call the same external script through javascript rather than an include. So when calling a php function to be passed through a javascript call and implanted between a <div id> tag you have to include the scripts containing the database connections, functions, etc again. The external script can no longer see the includes that it could when it was part of the original script. ---- Server IP: 64.71.164.2 Probable Submitter: 198.23.5.10 ---- Manual Page -- http://www.php.net/manual/en/function.require-once.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+60998 Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+60998&report=yes&reason=added+to+the+manual Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+60998&report=yes&reason=bad+code Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+60998&report=yes&reason=spam Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+60998&report=yes&reason=useless Delete: non-english -- http://master.php.net/manage/user-notes.php?action=delete+60998&report=yes&reason=non-english Delete: already in docs -- http://master.php.net/manage/user-notes.php?action=delete+60998&report=yes&reason=already+in+docs Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+60998&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+60998&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#102260) next »