Re: [PHP] MySQL auto_increment fields Server version: 5.1.32-community-log

2009-08-09 Thread Jerry Wilborn
ALTER TABLE T1 AUTO_INCREMENT=1; It's likely that you dropped every record and expected the auto_increment to reset. Jerry Wilborn jerrywilb...@gmail.com On Sun, Aug 9, 2009 at 1:17 PM, Ralph Deffke ralph_def...@yahoo.de wrote: Hi all, I'm facing the fact that it seems that auto_increment

Re: [PHP] Can php be cause a strain on a web server

2009-08-09 Thread Jerry Wilborn
You seem nice. Jerry Wilborn jerrywilb...@gmail.com On Sun, Aug 9, 2009 at 12:54 PM, Daniel Brown danbr...@php.net wrote: On Sat, Aug 8, 2009 at 11:08, Jerry Wilbornjerrywilb...@gmail.com wrote: You're going to have to be more specific. There are very few problems where this is absolutely

Re: [PHP] Server change affecting ability to send downloaded files???

2009-08-08 Thread Jerry Wilborn
to the browser. It might not hurt to move to a fread($fh, 8096) + print() to prevent the bug in the future. Jerry Wilborn jerrywilb...@gmail.com On Sat, Aug 8, 2009 at 9:00 AM, Brian Dunning br...@briandunning.comwrote: A Rackspace guy determined that php.ini was set to use 16MB of memory, and he

Re: [PHP] curl_exec not hit server

2009-08-07 Thread Jerry Wilborn
You could also try checking the SSL log. This may give hints about the problem; none of the HTTP conversation happens until after SSL has been negotiated. Jerry Wilborn jerrywilb...@gmail.com On Fri, Aug 7, 2009 at 1:16 PM, Tom Worster f...@thefsb.org wrote: On 8/6/09 2:33 PM, Ted Yu ted

Re: [PHP] Buffered Logging?

2009-08-07 Thread Jerry Wilborn
You don't mention what database you're using, but mySQL supports memory based tables. You can use this to insert your single page loads and then have a job that periodically inserts in bulk. Memory based tables: http://dev.mysql.com/doc/refman/5.0/en/memory-storage-engine.html Jerry Wilborn

Re: [PHP] Server change affecting ability to send downloaded files???

2009-08-07 Thread Jerry Wilborn
The 500 is the result of the missing content-type in the real header. Once you get a blank line in there, it thinks thats the content. The error log will likely say 'premature end of script headers'... Good mystery on why it's got the blank line though. Jerry Wilborn jerrywilb...@gmail.com

Re: [PHP] curl_exec not hit server

2009-08-06 Thread Jerry Wilborn
Can you tell us anything about the cert on the host? Is it self signed, is it expired, etc? A hip-shot: try turning off VERIFYPEER and VERIFYHOST. Jerry Wilborn jerrywilb...@gmail.com On Thu, Aug 6, 2009 at 1:33 PM, Ted Yu ted...@yahoo.com wrote: Hi, I use the following code to call third

Re: [PHP] navigation include not functioning

2009-08-05 Thread Jerry Wilborn
I'm having trouble understanding your description of the problem. Can you tell us what you're seeing and what you expect to see? Jerry Wilborn jerrywilb...@gmail.com On Wed, Aug 5, 2009 at 12:00 PM, Allen McCabe allenmcc...@gmail.com wrote: I am trying to generate pages by importing content

Re: [PHP] Time keeping in DB

2009-08-05 Thread Jerry Wilborn
You don't mention what DB you're using, but mySQL can be quite a pain when dealing with multiple time zones. Not impossible, but a hassle none the less. Be sure to set aside a place to store this (and another spot for user preferences to keep track of their TZ). Jerry Wilborn jerrywilb

Re: [PHP] dynamically naming PHP vars on the fly?

2009-08-05 Thread Jerry Wilborn
http://us2.php.net/manual/en/language.variables.variable.php Jerry Wilborn jerrywilb...@gmail.com On Wed, Aug 5, 2009 at 5:17 PM, Govinda govinda.webdnat...@gmail.comwrote: HI all One thing I have been working around but now would love to just do it finally (and save workaround/longer code

[PHP] socket_last_error() equiv

2009-08-04 Thread Jerry Wilborn
=34380), but the last movement on it is 2005. Jerry Wilborn jerrywilb...@gmail.com

Re: [PHP] Clean break.

2009-08-04 Thread Jerry Wilborn
Am I missing something? Can't this be done quickly/easily with preg_match()? if (preg_match('/\[(.*):(.*)\s/U', '[21/Jul/2009:00:00:47 -0300]', $matches)) { print date: {$matches[1]}, time: {$matches[2]}; } Jerry Wilborn jerrywilb...@gmail.com On Tue, Aug 4, 2009 at 5:36 AM, Wolf lonew

Re: [PHP] Multiple MySQL Queries

2009-08-04 Thread Jerry Wilborn
Keep in mind that you can use name=var[] value=value1, name=var[] value=value2 and php will create an array as $_REQUEST['var'] with each of your values. The keys are numbered and don't count on what order they'll come through. Jerry Wilborn jerrywilb...@gmail.com On Tue, Aug 4, 2009 at 10:47 AM

Re: [PHP] Multiple MySQL Queries

2009-08-04 Thread Jerry Wilborn
If the form method is POST then set the 'c' variable with a hidden value within the form: input type=hidden name=c value=viewcart.htm Jerry Wilborn jerrywilb...@gmail.com On Tue, Aug 4, 2009 at 1:50 PM, sono...@fannullone.us wrote: On Aug 4, 2009, at 9:43 AM, Jerry Wilborn wrote: Keep

Re: [PHP] Multiple MySQL Queries

2009-08-04 Thread Jerry Wilborn
unlikely to hit those. If you want to avoid JS, you're going to have to send the whole page and then sort out what needs to be updated on the server. Jerry Wilborn jerrywilb...@gmail.com On Tue, Aug 4, 2009 at 2:03 PM, sono...@fannullone.us wrote: Sorry... I'm using GET. I have used the code you