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

2009-05-28 Thread Nathan Nobbe
On Thu, May 28, 2009 at 2:42 PM, Eddie Drapkin wrote: > autoloading doesn't do anything but follow a set of logic rules to decide > what file to require, so it doesn't mess with opcode caches at all. umm.., right, but what do you think happens at the center of that logic ? require / include ca

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

2009-05-28 Thread Eddie Drapkin
autoloading doesn't do anything but follow a set of logic rules to decide what file to require, so it doesn't mess with opcode caches at all. On Thu, May 28, 2009 at 4:02 PM, Nathan Nobbe wrote: > On Thu, May 28, 2009 at 9:25 AM, Tony Marston < > t...@marston-home.demon.co.uk > > wrote: > > > > >

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

2009-05-28 Thread Nathan Nobbe
On Thu, May 28, 2009 at 9:25 AM, Tony Marston wrote: > > "Eddie Drapkin" wrote in message > news:68de37340905280801m6964d355l2d6d8ef773f3b...@mail.gmail.com... > > There's a huge difference between laziness and opting in to use an > > incredibly useful (and easy to properly deploy) feature to sa

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

2009-05-28 Thread Ashley Sheridan
On Thu, 2009-05-28 at 16:17 +0300, Olexandr Heneralov wrote: > Hi! > Do not use low-level AJAX. > There are many frameworks for ajax (JQUERY). > Try to use PHP frameworks like symfony, zend framework. They simplify your > work. > > > 2009/5/28 Lenin > > > 2009/5/28 kranthi > > > > > > > > > >

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

2009-05-28 Thread Tony Marston
"Eddie Drapkin" wrote in message news:68de37340905280801m6964d355l2d6d8ef773f3b...@mail.gmail.com... > There's a huge difference between laziness and opting in to use an > incredibly useful (and easy to properly deploy) feature to save myself > time > so that I can spend more time writing that

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

2009-05-28 Thread Eddie Drapkin
There's a huge difference between laziness and opting in to use an incredibly useful (and easy to properly deploy) feature to save myself time so that I can spend more time writing that structured and efficient code of which you speak. And the problem with what you're saying is that you still have

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

2009-05-28 Thread Tony Marston
"Eddie Drapkin" wrote in message news:68de37340905280737t3e1ad844y188ab8fa08f17...@mail.gmail.com... > Your code might not, but you sure do! Spending all that time writing > require statements = :( If you are too lazy to write "require" statements then you are probably too lazy to write readab

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

2009-05-28 Thread Eddie Drapkin
Your code might not, but you sure do! Spending all that time writing require statements = :( On Thu, May 28, 2009 at 9:49 AM, Tony Marston wrote: > > wrote in message > news:000e0cd6ad1a9f7d3d046af89...@google.com... > > Two things: > > > > 1. Try using the fully qualified path (ie /var/www/fo

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

2009-05-28 Thread Tony Marston
wrote in message news:000e0cd6ad1a9f7d3d046af89...@google.com... > 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 mu

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

2009-05-28 Thread Luke
2009/5/28 Olexandr Heneralov > Hi! > Do not use low-level AJAX. > There are many frameworks for ajax (JQUERY). > Try to use PHP frameworks like symfony, zend framework. They simplify your > work. > > > 2009/5/28 Lenin > > > 2009/5/28 kranthi > > > > > > > > > > > i recommend you firebug firefox

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

2009-05-28 Thread Olexandr Heneralov
Hi! Do not use low-level AJAX. There are many frameworks for ajax (JQUERY). Try to use PHP frameworks like symfony, zend framework. They simplify your work. 2009/5/28 Lenin > 2009/5/28 kranthi > > > > > > > i recommend you firebug firefox adddon (just go to the net tab and you > > can see all

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

2009-05-28 Thread Lenin
2009/5/28 kranthi > > > 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

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

2009-05-28 Thread oorza2k5
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 wrote: i never faced such a proble

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

2009-05-28 Thread kranthi
i never faced such a problem and i can assure you that it will never happen. try... main.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