[PHP] Re: php-general Digest 20 Sep 2013 17:33:26 -0000 Issue 8369

2013-09-20 Thread Bill Guion
On Sep 20, 2013, at 1:33 PM, php-general-digest-h...@lists.php.net wrote: Friday's Question 322111 by: Tedd Sperling -- From: Tedd Sperling t...@sperling.com Subject: Friday's Question Date: September 20, 2013

[PHP] RE: php-general Digest 9 Dec 2011 20:09:28 -0000 Issue 7604

2011-12-12 Thread David Savage
I thought I posted this in the php.net web site under the ksort user notes, but I don't know if it would be approved to be placed in the web site. Would ksort($sortarr,SORT_STRING) on a 1 dimensional array with a key comprised of a person's name, -, and time stamp I..E. (key: david

Re: [PHP] RE: php-general Digest 9 Dec 2011 20:09:28 -0000 Issue 7604

2011-12-12 Thread Daniel P. Brown
On Mon, Dec 12, 2011 at 16:06, David Savage dsav...@cytelcom.com wrote: I thought I posted this in the php.net web site under the ksort user notes, but I don't know if it would be approved to be placed in the web site. Would ksort($sortarr,SORT_STRING) on a 1 dimensional array with a key

Re: [PHP] RE: php-general Digest 9 Dec 2011 20:09:28 -0000 Issue 7604

2011-12-12 Thread David Harkness
On Mon, Dec 12, 2011 at 1:06 PM, David Savage dsav...@cytelcom.com wrote: Would ksort($sortarr,SORT_STRING) on a 1 dimensional array with a key comprised of a person's name, -, and time stamp I..E. (key: david savage-2011-12-12 14:43:00) actually delete duplicate keys from the array, if

[PHP] Re: php-general Digest 5 May 2011 21:55:09 -0000 Issue 7299

2011-05-06 Thread e-letter
Readers, Looking through the mail lists archives, only the following message seems to advise about the possibility to use gnuplot: http://marc.info/?l=php-generalm=96248542218029w=2 Is it possible to start gnuplot using php, to plot a graph from postgresql data. For example, a table is created

[PHP] Re: php-general Digest 5 May 2011 21:55:09 -0000 Issue 7299

2011-05-06 Thread David Robley
e-letter wrote: Readers, Looking through the mail lists archives, only the following message seems to advise about the possibility to use gnuplot: http://marc.info/?l=php-generalm=96248542218029w=2 Is it possible to start gnuplot using php, to plot a graph from postgresql data. For

Re: [PHP] Re: php-general Digest 14 Feb 2011 03:32:02 -0000 Issue 7180

2011-02-14 Thread Thijs Lensselink
On 02/14/2011 05:53 AM, Florin Jurcovici wrote: Hi. Me stupid, my bad. Turns out the bug isn't in my code, but in the debugger. I'm working with the trial version of Zend Studio. When inside the call to the static method, everything is undefined. If I look at variables using the

[PHP] Re: php-general Digest 14 Feb 2011 03:32:02 -0000 Issue 7180

2011-02-13 Thread Florin Jurcovici
Hi. Me stupid, my bad. Turns out the bug isn't in my code, but in the debugger. I'm working with the trial version of Zend Studio. When inside the call to the static method, everything is undefined. If I look at variables using the Expressions view, I can see their values, and they _are_

Re: [PHP] General Web Development Editor/IDE

2009-05-25 Thread Raymond Irving
I'm looking for a nice, user (i.e. me) friendly general-purpose IDE, where most of my work will be done in PHP. I'm considering using Dreamweaver CS4 as my IDE, where I will disable most of the WYSIWYG elements and use all of the other features that I need/want (contextual syntax coloring

Re: [PHP] General Web Development Editor/IDE

2009-05-24 Thread Nathan Rixham
Lester Caine wrote: Casey wrote: Hi list, I'm looking for a nice, user (i.e. me) friendly general-purpose IDE, where most of my work will be done in PHP. I'm considering using Dreamweaver CS4 as my IDE, where I will disable most of the WYSIWYG elements and use all of the other features that I

Re: [PHP] General Mysql Connect

2008-10-30 Thread Ashley Sheridan
On Wed, 2008-10-29 at 20:28 -0500, Micah Gersten wrote: Ashley Sheridan wrote: On Wed, 2008-10-29 at 20:12 -0500, Micah Gersten wrote: Waynn Lue wrote: With MySQL, you can change the DB from query to query with mysql_select_db. The alternative as I stated in my last post is

Re: [PHP] General Mysql Connect

2008-10-30 Thread Jochem Maas
Ashley Sheridan schreef: On Wed, 2008-10-29 at 20:28 -0500, Micah Gersten wrote: Ashley Sheridan wrote: On Wed, 2008-10-29 at 20:12 -0500, Micah Gersten wrote: Waynn Lue wrote: With MySQL, you can change the DB from query to query with mysql_select_db. The alternative as I stated

RE: [PHP] General Mysql Connect

2008-10-30 Thread Jay Blanchard
[snip] a new connection, but in terms of op codes, a new connection is created. no idea why your going on about op codes, and no a new connection is not made - there is merely switching between DBs on a single connection. it's the same as connecting with the mysql cmdline util and being able to

Re: [PHP] General Mysql Connect

2008-10-29 Thread Chris
Waynn Lue wrote: I sent an email to the mysql list, but it reminded me of a question I had for people structuring their PHP code. What's the general way that people structure their connections? Right now, I spawn off two mysql_connect calls at the top of the file that includes my database

Re: [PHP] General Mysql Connect

2008-10-29 Thread Ashley Sheridan
On Thu, 2008-10-30 at 08:55 +1100, Chris wrote: Waynn Lue wrote: I sent an email to the mysql list, but it reminded me of a question I had for people structuring their PHP code. What's the general way that people structure their connections? Right now, I spawn off two mysql_connect calls

Re: [PHP] General Mysql Connect

2008-10-29 Thread Micah Gersten
Ashley Sheridan wrote: On Thu, 2008-10-30 at 08:55 +1100, Chris wrote: Waynn Lue wrote: I sent an email to the mysql list, but it reminded me of a question I had for people structuring their PHP code. What's the general way that people structure their connections? Right now, I

Re: [PHP] General Mysql Connect

2008-10-29 Thread Ashley Sheridan
On Wed, 2008-10-29 at 19:25 -0500, Micah Gersten wrote: Ashley Sheridan wrote: On Thu, 2008-10-30 at 08:55 +1100, Chris wrote: Waynn Lue wrote: I sent an email to the mysql list, but it reminded me of a question I had for people structuring their PHP code. What's the general

Re: [PHP] General Mysql Connect

2008-10-29 Thread Micah Gersten
Ashley Sheridan wrote: On Wed, 2008-10-29 at 19:25 -0500, Micah Gersten wrote: Ashley Sheridan wrote: On Thu, 2008-10-30 at 08:55 +1100, Chris wrote: Waynn Lue wrote: I sent an email to the mysql list, but it reminded me of a question I had for people

Re: [PHP] General Mysql Connect

2008-10-29 Thread Ashley Sheridan
On Wed, 2008-10-29 at 19:43 -0500, Micah Gersten wrote: Ashley Sheridan wrote: On Wed, 2008-10-29 at 19:25 -0500, Micah Gersten wrote: Ashley Sheridan wrote: On Thu, 2008-10-30 at 08:55 +1100, Chris wrote: Waynn Lue wrote: I sent an email to

Re: [PHP] General Mysql Connect

2008-10-29 Thread Micah Gersten
Ashley Sheridan wrote: On Wed, 2008-10-29 at 19:43 -0500, Micah Gersten wrote: Ashley Sheridan wrote: On Wed, 2008-10-29 at 19:25 -0500, Micah Gersten wrote: Ashley Sheridan wrote: On Thu, 2008-10-30 at 08:55 +1100, Chris wrote:

Re: [PHP] General Mysql Connect

2008-10-29 Thread Ashley Sheridan
On Wed, 2008-10-29 at 19:49 -0500, Micah Gersten wrote: Ashley Sheridan wrote: On Wed, 2008-10-29 at 19:43 -0500, Micah Gersten wrote: Ashley Sheridan wrote: On Wed, 2008-10-29 at 19:25 -0500, Micah Gersten wrote: Ashley Sheridan wrote: On

Re: [PHP] General Mysql Connect

2008-10-29 Thread Micah Gersten
Ashley Sheridan wrote: On Wed, 2008-10-29 at 19:49 -0500, Micah Gersten wrote: Ashley Sheridan wrote: On Wed, 2008-10-29 at 19:43 -0500, Micah Gersten wrote: Ashley Sheridan wrote: On Wed, 2008-10-29 at 19:25 -0500, Micah Gersten wrote:

Re: [PHP] General Mysql Connect

2008-10-29 Thread Ashley Sheridan
On Wed, 2008-10-29 at 19:57 -0500, Micah Gersten wrote: Ashley Sheridan wrote: On Wed, 2008-10-29 at 19:49 -0500, Micah Gersten wrote: Ashley Sheridan wrote: On Wed, 2008-10-29 at 19:43 -0500, Micah Gersten wrote: Ashley Sheridan wrote: On

Re: [PHP] General Mysql Connect

2008-10-29 Thread Waynn Lue
With MySQL, you can change the DB from query to query with mysql_select_db. The alternative as I stated in my last post is to use the fully qualified table name (database.table) in your query. MySQL doesn't care which DB you have open if you do that. In both of these cases, the same

Re: [PHP] General Mysql Connect

2008-10-29 Thread Chris
The answer in your case is not to combine the DBs necessarily, but consolidate the connections used. Like I said, you can use 2 MySQL DBs on the same connection in PHP. There's no reason to sacrifice separation of data. Forgot about this one until now.. mysql also supports the extended

Re: [PHP] General Mysql Connect

2008-10-29 Thread Micah Gersten
Ashley Sheridan wrote: On Wed, 2008-10-29 at 19:57 -0500, Micah Gersten wrote: Ashley Sheridan wrote: On Wed, 2008-10-29 at 19:49 -0500, Micah Gersten wrote: Ashley Sheridan wrote: On Wed, 2008-10-29 at 19:43 -0500, Micah Gersten wrote:

Re: [PHP] General Mysql Connect

2008-10-29 Thread Micah Gersten
Waynn Lue wrote: With MySQL, you can change the DB from query to query with mysql_select_db. The alternative as I stated in my last post is to use the fully qualified table name (database.table) in your query. MySQL doesn't care which DB you have open if you do that. In both of these

Re: [PHP] General Mysql Connect

2008-10-29 Thread Ashley Sheridan
On Wed, 2008-10-29 at 20:12 -0500, Micah Gersten wrote: Waynn Lue wrote: With MySQL, you can change the DB from query to query with mysql_select_db. The alternative as I stated in my last post is to use the fully qualified table name (database.table) in your query. MySQL doesn't care

Re: [PHP] General Mysql Connect

2008-10-29 Thread Micah Gersten
Ashley Sheridan wrote: On Wed, 2008-10-29 at 20:12 -0500, Micah Gersten wrote: Waynn Lue wrote: With MySQL, you can change the DB from query to query with mysql_select_db. The alternative as I stated in my last post is to use the fully qualified table name (database.table) in your

Re: [PHP] RE: php-general Digest 19 Aug 2008 20:38:46 -0000 Issue 5633

2008-08-20 Thread Philip Thompson
On Aug 19, 2008, at 4:18 PM, Cox, Chris wrote: Does anyone know why the unsubscribe email address is bouncing. Are there any other ways to unsubscribe? In case you haven't figured it out and you know how to read. To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General

Re: [PHP] RE: php-general Digest 19 Aug 2008 20:38:46 -0000 Issue 5633

2008-08-20 Thread Ashley Sheridan
Are you definately using the correct unsubscribe email? This is the one given in the message headers: list-unsubscribe: mailto:[EMAIL PROTECTED] Ash www.ashleysheridan.co.uk ---BeginMessage--- On Aug 19, 2008, at 4:18 PM, Cox, Chris wrote: Does anyone know why the unsubscribe email address is

[PHP] RE: php-general Digest 19 Aug 2008 20:38:46 -0000 Issue 5633

2008-08-19 Thread Cox, Chris
Does anyone know why the unsubscribe email address is bouncing. Are there any other ways to unsubscribe? Chris Cox 415.681.3665 (direct/fax) Candidate Generation Recruiter http://www.intuit.com/careers View Sailen Saha's profile on LinkedIn -Original Message- From: [EMAIL

Re: [PHP] General use of rewrite / redirect

2008-03-19 Thread Per Jessen
Nathan Nobbe wrote: im sorry i havent read through all the replies, but i have read through several of them. i essentially agree w/ Aschwin here. I'm still having difficulties understanding Aschwins main point, as well as how you can work (properly) with forms without using a 303 redirect.

Re: [PHP] General use of rewrite / redirect

2008-03-19 Thread Per Jessen
Larry Garfield wrote: True, but bear in mind that the browser has to make a HEAD request for every such file in order to determine if it needs to download it again. That's a non-small amount of HTTP traffic if you have a lot of images or CSS files. True - although I rarely see HEAD

Re: [PHP] General use of rewrite / redirect

2008-03-19 Thread Stut
On 19 Mar 2008, at 09:54, Per Jessen wrote: Larry Garfield wrote: True, but bear in mind that the browser has to make a HEAD request for every such file in order to determine if it needs to download it again. That's a non-small amount of HTTP traffic if you have a lot of images or CSS

Re: [PHP] General use of rewrite / redirect

2008-03-19 Thread Per Jessen
Stut wrote: On 19 Mar 2008, at 09:54, Per Jessen wrote: BTW, why does the browser do this for objects it has already cached? (assuming they're fresh/not expired) Because by default most web servers don't add expiry headers, so it's up to the browser. My server does add expire headers -

Re: [PHP] General use of rewrite / redirect

2008-03-19 Thread Stut
On 19 Mar 2008, at 10:11, Per Jessen wrote: Stut wrote: On 19 Mar 2008, at 09:54, Per Jessen wrote: BTW, why does the browser do this for objects it has already cached? (assuming they're fresh/not expired) Because by default most web servers don't add expiry headers, so it's up to the

Re: [PHP] General use of rewrite / redirect

2008-03-18 Thread Per Jessen
Aschwin Wesselius wrote: I've seen form processing being done, when finished it gets a header redirect to a 'succes' page. Yes, that's a very typical setup. When the form is processed, you send a 303 redirect to the Thank you page. That way, if the user hits the back arrow, he's taken back

Re: [PHP] General use of rewrite / redirect

2008-03-18 Thread Aschwin Wesselius
Per Jessen wrote: Yes, that's a very typical setup. When the form is processed, you send a 303 redirect to the Thank you page. That way, if the user hits the back arrow, he's taken back to the form URL, not the post URL. (which would then warn him about re-submitting etc.) Ok, fine. But why

Re: [PHP] General use of rewrite / redirect

2008-03-18 Thread Thijs Lensselink
Quoting Aschwin Wesselius [EMAIL PROTECTED]: Per Jessen wrote: Yes, that's a very typical setup. When the form is processed, you send a 303 redirect to the Thank you page. That way, if the user hits the back arrow, he's taken back to the form URL, not the post URL. (which would then warn him

Re: [PHP] General use of rewrite / redirect

2008-03-18 Thread Børge Holen
On Tuesday 18 March 2008 14:22:26 Aschwin Wesselius wrote: Per Jessen wrote: Yes, that's a very typical setup. When the form is processed, you send a 303 redirect to the Thank you page. That way, if the user hits the back arrow, he's taken back to the form URL, not the post URL. (which

Re: [PHP] General use of rewrite / redirect

2008-03-18 Thread jeffry s
On Tue, Mar 18, 2008 at 9:22 PM, Aschwin Wesselius [EMAIL PROTECTED] wrote: Per Jessen wrote: Yes, that's a very typical setup. When the form is processed, you send a 303 redirect to the Thank you page. That way, if the user hits the back arrow, he's taken back to the form URL, not the

Re: [PHP] General use of rewrite / redirect

2008-03-18 Thread Aschwin Wesselius
jeffry s wrote: Requests are reinitialised, libraries loaded (again), DB connections setup/checked again, session lookups are being done, log write for another request etc. i don't see anything wrong with this since that is the way it is. whether you redirect or not, the script will do DB

Re: [PHP] General use of rewrite / redirect

2008-03-18 Thread Per Jessen
Aschwin Wesselius wrote: Per Jessen wrote: Yes, that's a very typical setup. When the form is processed, you send a 303 redirect to the Thank you page. That way, if the user hits the back arrow, he's taken back to the form URL, not the post URL. (which would then warn him about

Re: [PHP] General use of rewrite / redirect

2008-03-18 Thread Per Jessen
Aschwin Wesselius wrote: Ok, let me point it out with an example: include(this); include(that); connect(db); session check That is what normally could exist on a script for every page hit. Yep, that looks common enough. If you have a page that only does this: if (GET || POST) {

Re: [PHP] General use of rewrite / redirect

2008-03-18 Thread Per Jessen
Aschwin Wesselius wrote: Per Jessen wrote: I'm having difficulties following you - a plain 303 redirect to a Thank you page shouldn't cause all of that. It's an HTTP reply with the 303 and the new URL, followed by a single URL request from the browser. OK. I think I know how other

Re: [PHP] General use of rewrite / redirect

2008-03-18 Thread Aschwin Wesselius
Per Jessen wrote: header(location) mechanisms do come with a very huge disadvantage if you don't use them with caution. Requests are reinitialised, libraries loaded (again), DB connections setup/checked again, session lookups are being done, log write for another request etc. That's quite an

Re: [PHP] General use of rewrite / redirect

2008-03-18 Thread Jason Pruim
On Mar 18, 2008, at 10:11 AM, Per Jessen wrote: Per Jessen wrote: My typical setup for a form-page probably looks like this: if ( $_POST ) { // do POST processing header(303 thankyou.html). exit } If I wanted the user back on the same form page, but still with a

Re: [PHP] General use of rewrite / redirect

2008-03-18 Thread Per Jessen
Per Jessen wrote: My typical setup for a form-page probably looks like this: if ( $_POST ) { // do POST processing header(303 thankyou.html). exit } If I wanted the user back on the same form page, but still with a thank you message, I'd still do a 303, but use

Re: [PHP] General use of rewrite / redirect

2008-03-18 Thread Jason Pruim
On Mar 18, 2008, at 10:08 AM, Aschwin Wesselius wrote: Per Jessen wrote: header(location) mechanisms do come with a very huge disadvantage if you don't use them with caution. Requests are reinitialised, libraries loaded (again), DB connections setup/checked again, session lookups are

Re: [PHP] General use of rewrite / redirect

2008-03-18 Thread Stut
On 18 Mar 2008, at 14:08, Aschwin Wesselius wrote: Per Jessen wrote: header(location) mechanisms do come with a very huge disadvantage if you don't use them with caution. Requests are reinitialised, libraries loaded (again), DB connections setup/checked again, session lookups are being

Re: [PHP] General use of rewrite / redirect

2008-03-18 Thread Stut
On 18 Mar 2008, at 14:49, Jason Pruim wrote: On Mar 18, 2008, at 10:11 AM, Per Jessen wrote: Per Jessen wrote: My typical setup for a form-page probably looks like this: if ( $_POST ) { // do POST processing header(303 thankyou.html). exit } If I wanted the user back on

Re: [PHP] General use of rewrite / redirect

2008-03-18 Thread Thijs Lensselink
Quoting Aschwin Wesselius [EMAIL PROTECTED]: Per Jessen wrote: header(location) mechanisms do come with a very huge disadvantage if you don't use them with caution. Requests are reinitialised, libraries loaded (again), DB connections setup/checked again, session lookups are being done, log

Re: [PHP] General use of rewrite / redirect

2008-03-18 Thread Per Jessen
Stut wrote: One minor thing... a 303 redirect is permanent. In this situation you want to use a 302 otherwise you could potentially cause problems with proxies. A redirect following a POST really should be a 303 - RFC 2616 : 10.3.4 303 See Other The response to the request can be found

Re: [PHP] General use of rewrite / redirect

2008-03-18 Thread Stut
On 18 Mar 2008, at 15:33, Per Jessen wrote: Stut wrote: One minor thing... a 303 redirect is permanent. In this situation you want to use a 302 otherwise you could potentially cause problems with proxies. A redirect following a POST really should be a 303 - RFC 2616 : 10.3.4 303 See Other

Re: [PHP] General use of rewrite / redirect

2008-03-18 Thread Nathan Nobbe
im sorry i havent read through all the replies, but i have read through several of them. i essentially agree w/ Aschwin here. redirects have been the bane of my existence in several source bases ive worked on. to borrow a phrase (read in closures article mentioned in another thread) they really

Re: [PHP] General use of rewrite / redirect

2008-03-18 Thread Larry Garfield
On Tuesday 18 March 2008, Aschwin Wesselius wrote: Point is: why hitting you webserver with multiple requests per user, just after submitting a form or whatever caused the redirect? If you have 2 users per day, that won't hurt. But if you have 30.000 concurrent users a minute, that could be

Re: [PHP] General use of rewrite / redirect

2008-03-18 Thread Larry Garfield
On Tuesday 18 March 2008, Jason Pruim wrote: I don't know much about the actual load stuff... but I do know unless you specifically set it, the CSS should be cached unless you refresh it and the date has changed on the file. I assume the same with the images as well. True, but bear in mind

Re: [PHP] General use of rewrite / redirect

2008-03-18 Thread Nathan Nobbe
On Tue, Mar 18, 2008 at 9:45 PM, Larry Garfield [EMAIL PROTECTED] wrote: Take for instance Drupal (which I use as an example because I'm a core dev for it). thats pretty cool. I will say in general you should not ever have more than one redirect chained together. While there may be

[PHP] Re: php-general Digest 25 Jan 2008 07:59:28 -0000 Issue 5255

2008-01-25 Thread Emil Edeholt
Hi! I have a website where people can upload photos and it creates previews. My problem is with pictures with big dimensions like 12000px height for example where the script times out. I've seen other sites that seems do be able to do this faster. I use gd to scale the image. Is there a

Re: [PHP] Re: php-general Digest 25 Jan 2008 07:59:28 -0000 Issue 5255

2008-01-25 Thread Per Jessen
Emil Edeholt wrote: Hi! I have a website where people can upload photos and it creates previews. My problem is with pictures with big dimensions like 12000px height for example where the script times out. I've seen other sites that seems do be able to do this faster. I use gd to scale the

Re: [PHP] Re: php-general Digest 25 Jan 2008 07:59:28 -0000 Issue 5255

2008-01-25 Thread Richard Lynch
On Fri, January 25, 2008 7:27 am, Eric Butera wrote: I think the memory size can (sort of) be determined by width * height * bits * channels / 8. I've never found anything better than that. There are a few comments on the php site in the gd section about such things but I've never seen it

Re: [PHP] Re: php-general Digest 25 Jan 2008 07:59:28 -0000 Issue 5255

2008-01-25 Thread Eric Butera
On Jan 25, 2008 1:39 PM, Richard Lynch [EMAIL PROTECTED] wrote: On Fri, January 25, 2008 7:27 am, Eric Butera wrote: I think the memory size can (sort of) be determined by width * height * bits * channels / 8. I've never found anything better than that. There are a few comments on the php

Re: [PHP] Re: php-general Digest 25 Jan 2008 07:59:28 -0000 Issue 5255

2008-01-25 Thread Richard Lynch
On Fri, January 25, 2008 2:43 am, Emil Edeholt wrote: I have a website where people can upload photos and it creates previews. My problem is with pictures with big dimensions like 12000px height for example where the script times out. I've seen other sites that seems do be able to do this

Re: [PHP] Re: php-general Digest 25 Jan 2008 07:59:28 -0000 Issue 5255

2008-01-25 Thread Eric Butera
On Jan 25, 2008 3:43 AM, Emil Edeholt [EMAIL PROTECTED] wrote: Hi! I have a website where people can upload photos and it creates previews. My problem is with pictures with big dimensions like 12000px height for example where the script times out. I've seen other sites that seems do be able

Re: [PHP] Re: php-general Digest 25 Jan 2008 07:59:28 -0000 Issue 5255

2008-01-25 Thread Richard Lynch
On Fri, January 25, 2008 12:59 pm, Eric Butera wrote: On Jan 25, 2008 1:39 PM, Richard Lynch [EMAIL PROTECTED] wrote: On Fri, January 25, 2008 7:27 am, Eric Butera wrote: I think the memory size can (sort of) be determined by width * height * bits * channels / 8. I've never found anything

Re: [PHP] general time question

2008-01-22 Thread Richard Lynch
On Sun, January 20, 2008 5:30 pm, jekillen wrote: I am developing an application that uses php with Apache. A user requests a script file from a web site and the server takes such things as $_SERVER['REMOTE_ADDRESS'] You *DO* understand that large-scale ISP's users will change their IP address

Re: [PHP] general time question

2008-01-21 Thread Daniel Brown
On Jan 20, 2008 8:36 PM, Jochem Maas [EMAIL PROTECTED] wrote: now for the juicy bit - you have *no* garantee that the system clock and/or the timezone setting on the client machine is anything like correct. actually the chances that it is not are quite high - disregarding idiots, just think of

Re: [PHP] general time question

2008-01-20 Thread Jochem Maas
jekillen schreef: Hello again; I am developing an application that uses php with Apache. A user requests a script file from a web site and the server takes such things as $_SERVER['REMOTE_ADDRESS'] $_SERVER['REMOTE_ADDRESS'] is a pretty useless value for the age old reason that, for instance,

[PHP] Re: php-general Digest 31 Aug 2007 16:34:36 -0000 Issue 4992

2007-09-03 Thread Michael Williams
Are you sure that Apache is running and accepting connections to / ~michwill? Does a regular HTML page show up ok? Yeah, static pages, and regular php pages load fine. It's only when I bring MySQL into the mix that things go awry. Have you checked the server error log? If by server you

[PHP] Re: php-general Digest 1 Jan 2007 20:15:42 -0000 Issue 4545

2007-01-01 Thread Fahad Pervaiz
-- Forwarded message -- From: Philip W. [EMAIL PROTECTED] To: php-general@lists.php.net Date: Mon, 01 Jan 2007 15:15:07 -0500 Subject: Writing Binary Hello Everyone, I'm trying to write a PHP script that opens a binary file, reads the binary in chunks, checks those chunks for

[PHP] Re: php-general mailing list active?

2006-08-25 Thread Michelle Konzack
Am 2006-08-22 23:05:27, schrieb Colin Guthrie: [EMAIL PROTECTED] wrote: I don't have a clue why my gmail account hasn't started to get traffic. But it's funny how we get accustomed to the exchange of ideas and cyber-contact with others. I guess I 'm having some withdrawal. ;-) Why not use

[PHP] Re: php-general mailing list active?

2006-08-22 Thread Colin Guthrie
[EMAIL PROTECTED] wrote: I don't have a clue why my gmail account hasn't started to get traffic. But it's funny how we get accustomed to the exchange of ideas and cyber-contact with others. I guess I 'm having some withdrawal. ;-) Why not use gmane? I subscribe to the vast majority of my

[PHP] RE: php-general Digest 17 Oct 2005 10:35:46 -0000 Issue 3742

2005-10-17 Thread Aftab Alam
hi, any one can help me i want to generate Pdf file using php. how can i what tools is required for this. Regards, _ Aftab Alam -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Monday, October 17, 2005 4:06 PM To: php-general@lists.php.net

Re: [PHP] RE: php-general Digest 17 Oct 2005 10:35:46 -0000 Issue 3742

2005-10-17 Thread Ravi
I just had a small doubt..Is it possible to write JavaScript through PHP??? On 10/17/05, Aftab Alam [EMAIL PROTECTED] wrote: hi, any one can help me i want to generate Pdf file using php. how can i what tools is required for this. Regards, _ Aftab Alam -Original

Re: [PHP] RE: php-general Digest 17 Oct 2005 10:35:46 -0000 Issue 3742

2005-10-17 Thread Jordan Miller
if you have compiled php with pdflib support, you can do this fairly easily. see the manual: http://www.php.net/pdf Jordan On Oct 17, 2005, at 6:06 AM, Aftab Alam wrote: hi, any one can help me i want to generate Pdf file using php. how can i what tools is required for this.

Re: [PHP] RE: php-general Digest 17 Oct 2005 10:35:46 -0000 Issue 3742

2005-10-17 Thread Richard Lynch
On Mon, October 17, 2005 6:06 am, Aftab Alam wrote: i want to generate Pdf file using php. how can i what tools is required for this. One way is to start here: http://php.net/pdf -- Like Music? http://l-i-e.com/artists.htm -- PHP General Mailing List (http://www.php.net/) To unsubscribe,

Re: [PHP] RE: php-general Digest 17 Oct 2005 10:35:46 -0000 Issue 3742

2005-10-17 Thread Ben
Richard Lynch said the following on 10/17/05 13:14: On Mon, October 17, 2005 6:06 am, Aftab Alam wrote: i want to generate Pdf file using php. how can i what tools is required for this. One way is to start here: http://php.net/pdf When reading the above link note the last sentence

[PHP] Re: php-general Digest 18 Apr 2005 08:44:11 -0000 Issue 3404

2005-04-18 Thread DuSTiN KRySaK
check out amfphp (opensource php/flash remoting): http://www.amfphp.org/ good tutorials here: http://www.sephiroth.it/tutorials.php AMFPHP allows you to return info from PHP classes as an actionscript object in flash. d On 18-Apr-05, at 1:44 AM, [EMAIL PROTECTED] wrote: From: Matt Babineau

Re: [PHP] General question: packaging in PHP

2005-02-03 Thread Terje Sletteb
From: Vivian Steller [EMAIL PROTECTED] Are there any thoughts about that in future releases? What do other developers think about this issue? How do organize multiple used classnames? The common answer is: Use a prefix... but i really dislike using cryptic and long prefixes to ensure

Re: [PHP] General question: packaging in PHP

2005-01-31 Thread Jason Barnett
Vivian Steller wrote: ... Thanks for metioning this issue! This is another point where I think OO is done the half way in PHP: Why do we need some implicit type check, like public method(Type $type) if we then loose the optional parameter advantage? I don't know *the* answer. So far as I

Re: [PHP] General question: packaging in PHP

2005-01-30 Thread Terje Slettebø
From: Vivian Steller [EMAIL PROTECTED] i've a general question concerning PHP's architecture. Why isn't there a native packaging concept in PHP? This was also suggested on comp.lang.php, recently (the nested class thread), called namespaces, but there wasn't a lot of enthusiasm for it.

Re: [PHP] General question: packaging in PHP

2005-01-30 Thread Vivian Steller
verffentlicht per Mail versendet Thanks for your answer! Terje Sletteb wrote: From: Vivian Steller [EMAIL PROTECTED] i've a general question concerning PHP's architecture. Why isn't there a native packaging concept in PHP? This was also suggested on comp.lang.php, recently (the nested

Re: [PHP] general organization question

2004-10-12 Thread Robert Cummings
On Tue, 2004-10-12 at 16:19, lists wrote: Hi List, Im wondering what factors are at play in deciding to use require, include, file_get_contents and such when laying out a site. Like require() generates a fatal error if the target file doesn't exist. This means your script will not attempt

Re: [PHP] general organization question

2004-10-12 Thread Greg Donald
On Tue, 12 Oct 2004 13:19:37 -0700, lists [EMAIL PROTECTED] wrote: Im wondering what factors are at play in deciding to use require, include, This dictates the level of error reporting you desire when pulling in a file. On failure, include() won't stop your script execution, while require()

Re: [PHP] general organization question

2004-10-12 Thread lists
This is helpful, thanks. But I understand most of the pieces. I'm interested in efficient and organizational factors to consider in using them. But after sending this, I thought, maybe my question is more of a general structural web design question rather than PHP. I've checked google, (I'm

Re: [PHP] general organization question

2004-10-12 Thread Greg Donald
On Tue, 12 Oct 2004 14:38:21 -0700, lists [EMAIL PROTECTED] wrote: This is helpful, thanks. But I understand most of the pieces. I'm interested in efficient and organizational factors to consider in using them. But after sending this, I thought, maybe my question is more of a general

Re: [PHP] general organization question

2004-10-12 Thread Robert Cummings
On Tue, 2004-10-12 at 18:18, Greg Donald wrote: We use Mojavi, and it works very well: http://mojavi.org http://www.peterrobins.co.uk/it/mojavi/tutorial.htm It's way more than just templates, it's display and logic seperation, modularization, filter chains, the works. In fact we use

Re: [PHP] general organization question

2004-10-12 Thread Michal Migurski
It'll make a small project seem huge in no time flat, but that's the price you pay for 'organization' and stuff. But frameworks can also make a huge project seem medium which is the advantage of organization. Also, it's quite often the case that a small project grows and slowly becomes a big

Re: [PHP] general organization question

2004-10-12 Thread Matthew Weier O'Phinney
* Greg Donald [EMAIL PROTECTED]: why use one template, or many - why use different pages rather than relying on variables. I scoff at template engines like Smarty and frameworks like Mojavi. But that's just me. I work with both of those technologies everyday but would never include them

Re: [PHP] general organization question

2004-10-12 Thread Lists
On Oct 12, 2004, at 6:52 PM, Matthew Weier O'Phinney wrote: I haven't had much luck with PHP books when it comes to efficient coding techniques and site/application architecture. It's a niche that needs to be filled. Another thing you might want to research is the MVC pattern

Re: [PHP] general research question (maybe a little OT, sorry)

2004-10-07 Thread Matthew Sims
Hi List, My boss recently called PHP good for hobbyists but REAL sites have to be done with Microsoft technologies. He wants to use Sharepoint for a wiki type site because of versioning. Can anyone point me to resources about versioning and inherent strengths and reliability of PHP?

Re: [PHP] general research question (maybe a little OT, sorry)

2004-10-07 Thread Matthew Sims
Hi List, My boss recently called PHP good for hobbyists but REAL sites have to be done with Microsoft technologies. He wants to use Sharepoint for a wiki type site because of versioning. Can anyone point me to resources about versioning and inherent strengths and reliability of PHP?

Re: [PHP] general research question (maybe a little OT, sorry)

2004-10-07 Thread Greg Donald
On Thu, 7 Oct 2004 11:44:32 -0700, lists [EMAIL PROTECTED] wrote: My boss recently called PHP good for hobbyists but REAL sites have to be done with Microsoft technologies. He wants to use Sharepoint for a wiki type site because of versioning. Well, I can't dispute a person's opinion as far

Re: [PHP] general research question (maybe a little OT, sorry)

2004-10-07 Thread Matt M.
My boss recently called PHP good for hobbyists but REAL sites have to be done with Microsoft technologies. He wants to use Sharepoint for a wiki type site because of versioning. :) real sites use iis -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] general research question (maybe a little OT, sorry)

2004-10-07 Thread John Nichel
lists wrote: Hi List, My boss recently called PHP good for hobbyists but REAL sites have to be done with Microsoft technologies. He wants to use Sharepoint for a wiki type site because of versioning. Can anyone point me to resources about versioning and inherent strengths and reliability of

Re: [PHP] general research question (maybe a little OT, sorry)

2004-10-07 Thread John Nichel
Matthew Sims wrote: snip The following sites have been known to use PHP: snip www.insight.com (is a publicly traded fortune 1000 company. The site is 90% PHP) snip Insight now uses CF. It was a political change, not one agreed on by the techies. -- John C. Nichel ÜberGeek KegWorks.com

Re: [PHP] general research question (maybe a little OT, sorry)

2004-10-07 Thread Matthew Sims
lists wrote: Hi List, My boss recently called PHP good for hobbyists but REAL sites have to be done with Microsoft technologies. He wants to use Sharepoint for a wiki type site because of versioning. Can anyone point me to resources about versioning and inherent strengths and reliability

Re: [PHP] general research question (maybe a little OT, sorry)

2004-10-07 Thread Gareth Williams
Oh please. Not even as a joke. On 7 Oct 2004, at 21:07, Matt M. wrote: My boss recently called PHP good for hobbyists but REAL sites have to be done with Microsoft technologies. He wants to use Sharepoint for a wiki type site because of versioning. :) real sites use iis -- PHP General Mailing

Re: [PHP] general research question (maybe a little OT, sorry)

2004-10-07 Thread Greg Donald
On Thu, 07 Oct 2004 15:16:51 -0400, John Nichel [EMAIL PROTECTED] wrote: Insight now uses CF. It was a political change, not one agreed on by the techies. I don't know much about CF at all. Was it because of the shopping cart capabilities of CF? I read somewhere that was a top reason to use

  1   2   >