Re: [PHP] Silly question

2011-04-11 Thread Stuart Dallas
On Monday, 11 April 2011 at 02:12, Curtis Maurand wrote: nevermind. There is a function: fgetcsv(); Ewww! http://blog.ericlamb.net/2010/01/parse-apache-log-files-with-php/ -Stuart -- Stuart Dallas 3ft9 Ltd http://3ft9.com/ Curtis Maurand wrote: Hello, I'm trying to run through an

Re: [PHP] Silly question

2011-04-11 Thread Curtis Maurand
Stuart Dallas wrote: On Monday, 11 April 2011 at 02:12, Curtis Maurand wrote: nevermind. There is a function: fgetcsv(); Ewww! Say what you want, it works.  Your solution is way more elegant.  regex's are not my strong suit.  I have to have the regex pocket reference to understand that

Re: [PHP] Silly question

2011-04-11 Thread Stuart Dallas
On Monday, 11 April 2011 at 13:17, Curtis Maurand wrote: Stuart Dallas wrote: On Monday, 11 April 2011 at 02:12, Curtis Maurand wrote: nevermind. There is a function: fgetcsv(); Ewww! Say what you want, it works. Your solution is way more elegant. regex's are not my strong suit. I

Re: [PHP] Silly question

2011-04-11 Thread Richard Quadling
On 11 April 2011 13:23, Stuart Dallas stu...@3ft9.com wrote: On Monday, 11 April 2011 at 13:17, Curtis Maurand wrote: Stuart Dallas wrote: On Monday, 11 April 2011 at 02:12, Curtis Maurand wrote: nevermind. There is a function: fgetcsv(); Ewww! Say what you want, it works. Your

[PHP] Silly question

2011-04-10 Thread Curtis Maurand
Hello, I'm trying to run through an apache log file in an attempt to get all of the user agents. The question is how do I split the string?  I can't seem to find a workable delimiter.  Each section of the file is enclosed in quotes and that should be helpful, but it doesn't seem to be.  I can't

Re: [PHP] Silly question

2011-04-10 Thread Curtis Maurand
nevermind.  There is a function: fgetcsv(); Thanks, Curtis Curtis Maurand wrote: Hello, I'm trying to run through an apache log file in an attempt to get all of the user agents. The question is how do I split the string?  I can't seem to find a workable delimiter.  Each section of

Re: [PHP] Silly question - include vs. eval

2009-03-12 Thread Robert Cummings
On Wed, 2009-03-11 at 19:50 -0500, Shawn McKenzie wrote: Robert Cummings wrote: On Wed, 2009-03-11 at 16:16 -0500, Shawn McKenzie wrote: Shawn McKenzie wrote: Robert Cummings wrote: On Wed, 2009-03-11 at 13:20 -0500, Shawn McKenzie wrote: Robert Cummings wrote: On Wed, 2009-03-11 at

[PHP] Silly question - include vs. eval

2009-03-11 Thread HostWare Kft.
Hi, I wondering what is the difference between include(), and eval(' ?'.file_get_content().' ?php ')? If there is something I should be aware, please, let me know. Thanks, SanTa

Re: [PHP] Silly question - include vs. eval

2009-03-11 Thread Robert Cummings
On Wed, 2009-03-11 at 13:07 +0100, Sándor Tamás (HostWare Kft.) wrote: Hi, I wondering what is the difference between include(), and eval(' ?'.file_get_content().' ?php ')? If there is something I should be aware, please, let me know. Use include since it allows a cache like eAccelerator

Re: [PHP] Silly question - include vs. eval

2009-03-11 Thread Robert Cummings
On Wed, 2009-03-11 at 08:33 -0400, Robert Cummings wrote: On Wed, 2009-03-11 at 13:07 +0100, Sándor Tamás (HostWare Kft.) wrote: Hi, I wondering what is the difference between include(), and eval(' ?'.file_get_content().' ?php ')? If there is something I should be aware, please,

Re: [PHP] Silly question - include vs. eval

2009-03-11 Thread Virgilio Quilario
Hi, I wondering what is the difference between include(), and eval(' ?'.file_get_content().' ?php ')? If there is something I should be aware, please, let me know. Use include since it allows a cache like eAccelerator or APC to work. Eval never gets cached. Also, include let's the engine

Re: [PHP] Silly question - include vs. eval

2009-03-11 Thread Robert Cummings
On Wed, 2009-03-11 at 20:49 +0800, Virgilio Quilario wrote: Hi, I wondering what is the difference between include(), and eval(' ?'.file_get_content().' ?php ')? If there is something I should be aware, please, let me know. Use include since it allows a cache like eAccelerator or

Re: [PHP] Silly question - include vs. eval

2009-03-11 Thread HostWare Kft.
To: Virgilio Quilario virgilio.quila...@gmail.com Cc: Sándor Tamás (HostWare Kft.) sandorta...@hostware.hu; php-general@lists.php.net Sent: Wednesday, March 11, 2009 1:55 PM Subject: Re: [PHP] Silly question - include vs. eval On Wed, 2009-03-11 at 20:49 +0800, Virgilio Quilario wrote: Hi, I

Re: [PHP] Silly question - include vs. eval

2009-03-11 Thread Robert Cummings
On Wed, 2009-03-11 at 14:03 +0100, Sándor Tamás (HostWare Kft.) wrote: Yes, Rob is right. My original question is about the difference between the processing of a file-based site with include() OR eval(). In that case, if I understood it correctly, the results are the same. But! If the

Re: [PHP] Silly question - include vs. eval

2009-03-11 Thread Shawn McKenzie
Sándor Tamás (HostWare Kft . ) wrote: Yes, Rob is right. My original question is about the difference between the processing of a file-based site with include() OR eval(). In that case, if I understood it correctly, the results are the same. But! If the included pages contain functions,

Re: [PHP] Silly question - include vs. eval

2009-03-11 Thread Kyle Terry
On Wed, Mar 11, 2009 at 10:19 AM, Shawn McKenzie nos...@mckenzies.netwrote: Sándor Tamás (HostWare Kft . ) wrote: Yes, Rob is right. My original question is about the difference between the processing of a file-based site with include() OR eval(). In that case, if I understood it

Re: [PHP] Silly question - include vs. eval

2009-03-11 Thread Robert Cummings
On Wed, 2009-03-11 at 12:19 -0500, Shawn McKenzie wrote: Sándor Tamás (HostWare Kft . ) wrote: Yes, Rob is right. My original question is about the difference between the processing of a file-based site with include() OR eval(). In that case, if I understood it correctly, the results are

Re: [PHP] Silly question - include vs. eval

2009-03-11 Thread Shawn McKenzie
Robert Cummings wrote: On Wed, 2009-03-11 at 12:19 -0500, Shawn McKenzie wrote: Sándor Tamás (HostWare Kft . ) wrote: Yes, Rob is right. My original question is about the difference between the processing of a file-based site with include() OR eval(). In that case, if I understood it

Re: [PHP] Silly question - include vs. eval

2009-03-11 Thread Robert Cummings
On Wed, 2009-03-11 at 13:20 -0500, Shawn McKenzie wrote: Robert Cummings wrote: On Wed, 2009-03-11 at 12:19 -0500, Shawn McKenzie wrote: Sándor Tamás (HostWare Kft . ) wrote: Yes, Rob is right. My original question is about the difference between the processing of a file-based site with

Re: [PHP] Silly question - include vs. eval

2009-03-11 Thread Shawn McKenzie
Robert Cummings wrote: On Wed, 2009-03-11 at 13:20 -0500, Shawn McKenzie wrote: Robert Cummings wrote: On Wed, 2009-03-11 at 12:19 -0500, Shawn McKenzie wrote: Sándor Tamás (HostWare Kft . ) wrote: Yes, Rob is right. My original question is about the difference between the processing of a

Re: [PHP] Silly question - include vs. eval

2009-03-11 Thread Shawn McKenzie
Shawn McKenzie wrote: Robert Cummings wrote: On Wed, 2009-03-11 at 13:20 -0500, Shawn McKenzie wrote: Robert Cummings wrote: On Wed, 2009-03-11 at 12:19 -0500, Shawn McKenzie wrote: Sándor Tamás (HostWare Kft . ) wrote: Yes, Rob is right. My original question is about the difference between

Re: [PHP] Silly question - include vs. eval

2009-03-11 Thread Robert Cummings
On Wed, 2009-03-11 at 16:16 -0500, Shawn McKenzie wrote: Shawn McKenzie wrote: Robert Cummings wrote: On Wed, 2009-03-11 at 13:20 -0500, Shawn McKenzie wrote: Robert Cummings wrote: On Wed, 2009-03-11 at 12:19 -0500, Shawn McKenzie wrote: Sándor Tamás (HostWare Kft . ) wrote: Yes, Rob

Re: [PHP] Silly question - include vs. eval

2009-03-11 Thread Shawn McKenzie
Robert Cummings wrote: On Wed, 2009-03-11 at 16:16 -0500, Shawn McKenzie wrote: Shawn McKenzie wrote: Robert Cummings wrote: On Wed, 2009-03-11 at 13:20 -0500, Shawn McKenzie wrote: Robert Cummings wrote: On Wed, 2009-03-11 at 12:19 -0500, Shawn McKenzie wrote: Sándor Tamás (HostWare Kft .

[PHP] silly question - setting .php as default extension (Apache)

2004-11-09 Thread Brian A. Anderson
Uuuuh... Where do I set the default server extension type to .php in the apache config? Right now the page will execute on my server, but if there is an index.php the server won't automatically open it, but instead browses the directory. Thanks in advance, -Brian -- PHP General Mailing List

Re: [PHP] silly question - setting .php as default extension (Apache)

2004-11-09 Thread Marek Kilimajer
Brian A. Anderson wrote: Uuuuh... Where do I set the default server extension type to .php in the apache config? Right now the page will execute on my server, but if there is an index.php the server won't automatically open it, but instead browses the directory. DirectoryIndex index.html index.php

RE: [PHP] silly question - setting .php as default extension (Apache)

2004-11-09 Thread Graham Cossey
Uuuuh... Where do I set the default server extension type to .php in the apache config? Right now the page will execute on my server, but if there is an index.php the server won't automatically open it, but instead browses the directory. Thanks in advance, -Brian Look for

Re: [PHP] silly question - setting .php as default extension (Apache)

2004-11-09 Thread Brian A. Anderson
Coolbeans guys! :) Thanks, -Brian - Original Message - From: Marek Kilimajer [EMAIL PROTECTED] To: Brian A. Anderson [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Tuesday, November 09, 2004 4:07 PM Subject: Re: [PHP] silly question - setting .php as default extension (Apache) Brian

Re: [PHP] silly question - setting .php as default extension (Apache)

2004-11-09 Thread Ray
On Tuesday 09 November 2004 16:04, Brian A. Anderson wrote: Uuuuh... Where do I set the default server extension type to .php in the apache config? Right now the page will execute on my server, but if there is an index.php the server won't automatically open it, but instead browses the

Re: [PHP] silly question: an IDE for php?

2004-07-20 Thread Burhan Khalid
Zhang Weiwu wrote: Not to start flame. I have been writing php using just vim for some time, it is a waste of time to put 'echo' statement everywhere to track variable values. I wonder what do the experienced users on php.net use for php development? Do you use IDE? Do you use Zend? Is there

Re: [PHP] silly question: an IDE for php?

2004-07-20 Thread Lester Caine
Burhan Khalid wrote: Is there an alternative free (free as in 'beer') IDE rather than Zend that I can use to track variables, analize code and so like? I heard of bluefish, is it widely used? PHPEdit would be my recommendation. Although if you are serious about PHP, you should consider investing

[PHP] silly question: an IDE for php?

2004-07-18 Thread Zhang Weiwu
Not to start flame. I have been writing php using just vim for some time, it is a waste of time to put 'echo' statement everywhere to track variable values. I wonder what do the experienced users on php.net use for php development? Do you use IDE? Do you use Zend? Is there an alternative free

[PHP] silly question about zend

2003-10-27 Thread Manisha Sathe
I wanted some sort of IDE for PHP, so decided to use Zend (which i believe quite popular). I installed it on my redhat linux 8.0- both client and server components. Instructions was smooth and gave me success msg, but now I do not know how to open the IDE... so stupid question.. but still want

Re: [PHP] silly question about zend

2003-10-27 Thread Ryan Thompson
On Monday 27 October 2003 04:08, Manisha Sathe wrote: I wanted some sort of IDE for PHP, so decided to use Zend (which i believe quite popular). I installed it on my redhat linux 8.0- both client and server components. Instructions was smooth and gave me success msg, but now I do not know

Re: [PHP] silly question

2001-11-14 Thread Mike Eheler
I assume that you have input type=text name=field1 value=?= $field1 ? / or some variation thereof. In that case, just set $field1 = after you save the record, or remove the value= statement altogether. Mike Rodrigo Peres wrote: Hi list, I have PHP code to insert the result of a form into

[PHP] silly question

2001-11-13 Thread Rodrigo Peres
Hi list, I have PHP code to insert the result of a form into mysql. When I nedd to made an update, I pass an id in the url and use it to make the update query. The problem is after I click in the update button (input submit) my page refresh and came back in the same state, to see the changes I

RE: [PHP] silly question

2001-11-13 Thread Martin Towell
try adding the nocache header() calls to the page to force the broswer to refresh. See how that goes Martin T -Original Message- From: Rodrigo Peres [mailto:[EMAIL PROTECTED]] Sent: Wednesday, November 14, 2001 9:43 AM To: PHP Subject: [PHP] silly question Hi list, I have PHP code

[PHP] silly question cont...

2001-11-13 Thread Rodrigo Peres
Sorry all, just to add a little info, the inpu hidden i've mentioned in the other message is made if exist the id in the url!! it isn't all the time there :-) thks again Rodrigo -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional

Re: [PHP] silly question

2001-11-13 Thread sundogcurt
Take care to be sure that you make the update, before the rest of the page loads, things happen in order, so it's almost like creating your page backwards (I just had that problem). I can elaborate if you like. (C: [EMAIL PROTECTED] wrote: Hi list, I have PHP code to insert the result of a