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 <kranthi...@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



Reply via email to