Re: Re: [PHP] Re: PHP, OOP and AJAX

From: Date: Thu, 28 May 2009 13:02:31 +0000
Subject: Re: Re: [PHP] Re: PHP, OOP and AJAX
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-293279@lists.php.net to get a copy of this message
Two things: 1. Try using the fully qualified path (ie /var/www/foo/bar.php instead of foo/bar.php) 2. Look at setting up autoloading so you don't need to manually include anyway. If you're going OOP, autoloading is a must! On May 28, 2009 8:49am, kranthi <kranthi117@gmail.com> wrote:
i never faced such a problem and i can assure you that it will never
happen. try...
main.php
require('second.php');
?>
second.php
test
call main.php via AJAX and see the responseText.
many things can go wrong in your coding. dont come to the conclusion
that this particular thing is not working.
i recommend you firebug firefox adddon (just go to the net tab and you
can see all the details of the communication between client and
server)
and i find it helpful to use a standard javascript(jQuery in my case)
library instead of highly limited plain javascript language
and for you case its difficult to comment without seeing your actual code.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


« previous php.general (#293279) next »