Re: [nyphp-talk] Include vs Include_once

2007-11-29 Thread Rob Marscher
On Nov 30, 2007, at 12:13 AM, John Campbell wrote: include_once is a real performance drag. You should use better program logic to make it possible to use a regular include call. That is news to me. Why is include_once a performance drag? This is a pretty controversial topic. The theory

Re: [nyphp-talk] Error from PHP system function

2007-11-29 Thread John Campbell
> I am using a system function to execute a command via php. We have recently > changed servers and after the change, the system function started to fail > with an error return value of 126. > > I can execute the command that I'm passing to the function at the server > command line and everything

Re: [nyphp-talk] Error from PHP system function

2007-11-29 Thread Tom Melendez
> > I can execute the command that I'm passing to the function at the server > command line and everything runs successfully. Don't know what 126 is off-hand, but when you say run at the command line, are you running it as the same user as the web server? Tom http://www.liphp.org

Re: [nyphp-talk] Include vs Include_once

2007-11-29 Thread John Campbell
> include_once is a real performance drag. You should use better program > logic to make it possible to use a regular include call. That is news to me. Why is include_once a performance drag? What is the better programming logic, that doesn't just duplicate the behavior? I have always just use

Re: [nyphp-talk] Include vs Include_once

2007-11-29 Thread Daniel Convissor
Urb: On Thu, Nov 29, 2007 at 08:19:02AM -0500, Urb LeJeune wrote: > include_once() files are in the same directory as the application > but blows up if they files are not in the same directory but are > in /usr/local/include. What exactly happens when it "blows up?" Are your includes silenced by

[nyphp-talk] Error from PHP system function

2007-11-29 Thread Nelly Yusupova
Hello Everyone, I am using a system function to execute a command via php. We have recently changed servers and after the change, the system function started to fail with an error return value of 126. I can execute the command that I'm passing to the function at the server command line and ev

Re: [nyphp-talk] Is $_Cookie['original_url'] == $_Server['request_uri'] ?

2007-11-29 Thread csnyder
On Nov 29, 2007 2:43 PM, Cliff Hirsch <[EMAIL PROTECTED]> wrote: > > Is $_Cookie['original_url'] == $_Server['request_uri'], less the > http://domain.com stuff? > > Is one more reliable for getting the URI of a request? I'm pretty sure PHP doesn't auto-populate values in the $_COOKIE superglobal

Re: [nyphp-talk] Passing info entered into HTML FORMS intoSESSIONvariables.

2007-11-29 Thread PaulCheung
Thanks Micheal, Thanks to you it appears to be working now, the coding is true, the information is being passed Here is the coding for "tp_update_tr.php" which is being used to verify info passing (messy and not elegant but useful for testing) "); echo('' . "")

[nyphp-talk] Is $_Cookie['original_url'] == $_Server['request_uri'] ?

2007-11-29 Thread Cliff Hirsch
Is $_Cookie['original_url'] == $_Server['request_uri'], less the http://domain.com stuff? Is one more reliable for getting the URI of a request? Cliff ___ New York PHP Community Talk Mailing List http://lists.nyphp.org/mailman/listinfo/talk NYPHPCon 20

Re: [nyphp-talk] Konstrukt thoughts

2007-11-29 Thread Ben Sgro (ProjectSkyLine)
Funny you mention that, I was just browing the SVN repo, checking out the code. I am really most interested in the classes for redirect, request, & response, here: http://konstrukt.svn.sourceforge.net/viewvc/konstrukt/trunk/lib/k/http/ The source for Tonic looks really good too: http://tonic.

[nyphp-talk] Konstrukt thoughts

2007-11-29 Thread csnyder
On Nov 29, 2007 4:41 AM, Adrian Videnie <[EMAIL PROTECTED]> wrote: > > You might want to try http://www.konstrukt.dk/. > Konstrukt looks interesting. Have you used it? It claims to be lightweight and un-framework-y but I think it is just "different", rather than conceptually simpler. -- Chris S

Re: [nyphp-talk] RESTful PHP Frameworks/Libs

2007-11-29 Thread Ben Sgro (ProjectSkyLine)
Hello Adrian, Thanks, I'll check the links out today! - Ben - Original Message - From: "Adrian Videnie" <[EMAIL PROTECTED]> To: "NYPHP Talk" Sent: Thursday, November 29, 2007 4:41 AM Subject: Re: [nyphp-talk] RESTful PHP Frameworks/Libs Ben Sgro (ProjectSkyLine) wrote: Let me be

Re: [nyphp-talk] Include vs Include_once

2007-11-29 Thread Dan Cech
Urb LeJeune wrote: > My php.ini configuration is set to look for an include in the > currently accessed directory and then in /usr/local/include. A > contractor just delivered a program that works just fine if the > include_once() files are in the same directory as the application > but blows u

[nyphp-talk] Include vs Include_once

2007-11-29 Thread Urb LeJeune
My php.ini configuration is set to look for an include in the currently accessed directory and then in /usr/local/include. A contractor just delivered a program that works just fine if the include_once() files are in the same directory as the application but blows up if they files are not

Re: [nyphp-talk] RESTful PHP Frameworks/Libs

2007-11-29 Thread Adrian Videnie
Ben Sgro (ProjectSkyLine) wrote: Let me be more vague. I'm looking for php code for routing, request handling, response generation that I can use to see how others have done REST in php. You might want to try http://www.konstrukt.dk/. Also, take a look here: http://semwebdev.keithalexander.co