note 60998 deleted from function.require-once by nlopess
| From: | nlopess@php.net | Date: | Mon, 23 Jan 2006 11:28:49 +0000 |
| Subject: | note 60998 deleted from function.require-once by nlopess | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-102283@lists.php.net to get a copy of this message | ||
Note Submitter: Rob Cluett
----
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.