Re: PHP, OOP and AJAX
| From: | Tom Worster | Date: | Thu, 28 May 2009 17:33:58 +0000 |
| Subject: | Re: PHP, OOP and AJAX | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-293310@lists.php.net to get a copy of this message | ||
On 5/28/09 7:31 AM, "Julian Muscat Doublesin" <opensourcekb@gmail.com>
wrote:
> I had been programming in ASP.NET for years using Object Oriented
> Princeliness but decided to walk away from that. I am now researching and
> specialising in the open source world.
yay!
> I have started to develop a project using MySQL, PHP and OOP.
oh. not walking away from oop after all? sad ;-)
> So far I have
> succeed. However I got stuck once I started implement AJAX using the AJAX
> tutorial from w3schools.com.
if using ajax, i recommend you take a look at jquery. i'm really quite taken
with it. it makes browser-independent ajax much easier.
> What I have discovered is: for some reason when you call a file that
> requires other fies using the REQUIRE or INCLUDE it just does not work. I
> can conform this as I have tested with out the the functions.
i can't imagine a reason why an include would fail because the script was
invoked via XHR. my ajax back-end php scripts use included files. are you
sure this isn't a problem with the include path? to debug you could try
writing ini_get('include_path') to your log file.