php-general Digest 9 Aug 2009 10:06:11 -0000 Issue 6275

2009-08-09 Thread php-general-digest-help
php-general Digest 9 Aug 2009 10:06:11 - Issue 6275 Topics (messages 296493 through 296504): Re: ZCE Question 296493 by: Eddie Drapkin 296503 by: Richard Heyes Re: PHP programming strategy 296494 by: Clancy Readline Thread Safety Question 296495 by: MIke

php-general Digest 9 Aug 2009 22:31:48 -0000 Issue 6276

2009-08-09 Thread php-general-digest-help
php-general Digest 9 Aug 2009 22:31:48 - Issue 6276 Topics (messages 296505 through 296524): Re: Displaying user data and picture 296505 by: tedd Question: what are frameworks? 296506 by: Parham Doustdar 296509 by: Ralph Deffke 296510 by: Michael A. Peters

Re: [PHP] use preg_replace to nix and line with display: none

2009-08-09 Thread Rob Gould
I wish I could say this works, but I'm not having success with this pattern. All the lines with display: none are still in the $bl string. On Aug 9, 2009, at 1:50 AM, LinuxManMikeC wrote: li id=bullet_ug1_col2_9 style=display: list-item;Reserved Frontstretch Tower Ticket to the

Re: [PHP] use preg_replace to nix and line with display: none

2009-08-09 Thread Rob Gould
Yay! That worked. Thanks! On Aug 9, 2009, at 1:53 AM, Michael A. Peters wrote: Rob Gould wrote: I have a bunch of bullets in a list coming from a previous post, and I need to eliminate any line from this string that contains display: none li id=bullet_ug1_col2_9 style=display:

Re: [PHP] use preg_replace to nix and line with display: none

2009-08-09 Thread LinuxManMikeC
On Sun, Aug 9, 2009 at 12:17 AM, Rob Gouldgould...@mac.com wrote: I wish I could say this works, but I'm not having success with this pattern.  All the lines with display: none are still in the $bl string. On Aug 9, 2009, at 1:50 AM, LinuxManMikeC wrote: li id=bullet_ug1_col2_9

[PHP] APC optimization in CLI

2009-08-09 Thread Matic Meznar
Hi, When running a PHP script from CLI, does APC optimize it before execution, or does APC only provide the apc_*() functions when runing in CLI mode? Happy day, Matic -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] ZCE Question

2009-08-09 Thread Richard Heyes
Hi, Looks like XMLRPC to me. Agreed - it's not gibberish so it can't be SOAP... -- Richard Heyes HTML5 graphing: RGraph - www.rgraph.net (updated 8th August) Lots of PHP and Javascript code - http://www.phpguru.org -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] APC optimization in CLI

2009-08-09 Thread Robert Cummings
Matic Meznar wrote: Hi, When running a PHP script from CLI, does APC optimize it before execution, or does APC only provide the apc_*() functions when runing in CLI mode? If I recall correctly, none of the accelerators work in CLI mode. Cheers, Rob. -- http://www.interjinn.com Application

RE: [PHP] Displaying user data and picture

2009-08-09 Thread tedd
At 9:00 AM -0400 8/7/09, Bob McConnell wrote: From: Ralph Deffke however there are some reasonable reasons to store a image in the database. 1. if u have no access to write files to the disk this is the case in most free hosting services they give u php and mysql and thats it 2. if u

[PHP] Question: what are frameworks?

2009-08-09 Thread Parham Doustdar
Hi there, I've heard of frameworks, but I don't quite know what they are used for. I've done a little search on the internet, but even though I've been able to find different PHP frameworks, I'm not quite sure what they offer, or in what they differ, or why I shouldn't just use PHP as it is.

Re: [PHP] Re: PHP programming strategy

2009-08-09 Thread tedd
At 10:54 AM +1000 8/9/09, Clancy wrote: On Sat, 8 Aug 2009 07:53:42 -0400, tedd.sperl...@gmail.com (tedd) wrote: Also, if you use first-child, it could be taken down to: div class=pfm img src=Images/Nx.jpg pYanni Nx /p pSally Riordan Scholarship, 2007- /p /div Except

Re: [PHP] Re: PHP programming strategy

2009-08-09 Thread Ashley Sheridan
On Sun, 2009-08-09 at 07:55 -0400, tedd wrote: At 10:54 AM +1000 8/9/09, Clancy wrote: On Sat, 8 Aug 2009 07:53:42 -0400, tedd.sperl...@gmail.com (tedd) wrote: Also, if you use first-child, it could be taken down to: div class=pfm img src=Images/Nx.jpg pYanni Nx /p

[PHP] Re: Question: what are frameworks?

2009-08-09 Thread Ralph Deffke
good question !! I think the word framework is modern fashion term in the first case. in former days we used to say library C comes with a standard library, in modern words C comes with a standard framework. I use my own framework, means I reuse my code written for similar things before, so I use

Re: [PHP] Re: Question: what are frameworks?

2009-08-09 Thread Michael A. Peters
Ralph Deffke wrote: good question !! I think the word framework is modern fashion term in the first case. in former days we used to say library C comes with a standard library, in modern words C comes with a standard framework. I use my own framework, means I reuse my code written for similar

[PHP] Re: Question: what are frameworks?

2009-08-09 Thread Tony Marston
Parham Doustdar parha...@gmail.com wrote in message news:5c.b0.05105.f18be...@pb1.pair.com... Hi there, I I've heard of frameworks, but I don't quite know what they are used for. I've done a little search on the internet, but even though I've been able to find different PHP frameworks, I'm

Re: [PHP] Re: Question: what are frameworks?

2009-08-09 Thread Sudheer Satyanarayana
Michael A. Peters wrote: Ralph Deffke wrote: good question !! I think the word framework is modern fashion term in the first case. in former days we used to say library C comes with a standard library, in modern words C comes with a standard framework. I use my own framework, means I reuse my

Re: [PHP] Re: Question: what are frameworks?

2009-08-09 Thread Bastien Koert
On Sun, Aug 9, 2009 at 9:29 AM, Sudheer Satyanarayanasudhee...@binaryvibes.co.in wrote: Michael A. Peters wrote: Ralph Deffke wrote: good question !! I think the word framework is modern fashion term in the first case. in former days we used to say library C comes with a standard library,

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

2009-08-09 Thread Daniel Brown
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 no solution. And you're going to have to read what he said again and understand the context of the question and answer.

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

2009-08-09 Thread Ralph Deffke
Hi all, I'm facing the fact that it seems that auto_increment fields in a table not start at 1 like it was in earlier versions even if I install mySQL brand new creating all tables new. it seems to me that auto_increments handling has changed to older version. is somebody out there who can give

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] APC optimization in CLI

2009-08-09 Thread Mattias Thorslund
Robert Cummings wrote: Matic Meznar wrote: Hi, When running a PHP script from CLI, does APC optimize it before execution, or does APC only provide the apc_*() functions when runing in CLI mode? If I recall correctly, none of the accelerators work in CLI mode. There is a php.ini setting

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

2009-08-09 Thread Ralph Deffke
no this is not the point ! if I do this, the next auto_increment is still 10720 i can do what I want however the is defined long unsigned unique auto_increment, what happens is in t1 the value is set to 10720 in t2 the next value ist set to 10721 while the next record in t1 gets 10721. it seems

Re: [PHP] APC optimization in CLI

2009-08-09 Thread Robert Cummings
Mattias Thorslund wrote: Robert Cummings wrote: Matic Meznar wrote: Hi, When running a PHP script from CLI, does APC optimize it before execution, or does APC only provide the apc_*() functions when runing in CLI mode? If I recall correctly, none of the accelerators work in CLI mode.

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

2009-08-09 Thread Ralph Deffke
no this is not the point ! if I do this, the next auto_increment is still 10720 i can do what I want however the field is defined long unsigned unique auto_increment, what happens is in t1 the value is set to 10720 in t2 the next value ist set to 10721 while the next record in t1 gets 10722.

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

2009-08-09 Thread Daniel Brown
On Sun, Aug 9, 2009 at 15:03, Jerry Wilbornjerrywilb...@gmail.com wrote: You seem nice. I have my moments. -- /Daniel P. Brown daniel.br...@parasane.net || danbr...@php.net http://www.parasane.net/ || http://www.pilotpig.net/ Check out our great hosting and dedicated server deals at

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

2009-08-09 Thread Nisse Engström
On Sun, 9 Aug 2009 20:17:15 +0200, Ralph Deffke wrote: I'm facing the fact that it seems that auto_increment fields in a table not start at 1 like it was in earlier versions even if I install mySQL brand new creating all tables new. it seems to me that auto_increments handling has changed to

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

2009-08-09 Thread tedd
At 8:17 PM +0200 8/9/09, Ralph Deffke wrote: Hi all, I'm facing the fact that it seems that auto_increment fields in a table not start at 1 like it was in earlier versions even if I install mySQL brand new creating all tables new. it seems to me that auto_increments handling has changed to

Re: [PHP] Re: PHP programming strategy

2009-08-09 Thread tedd
At 1:05 PM +0100 8/9/09, Ashley Sheridan wrote: On Sun, 2009-08-09 at 07:55 -0400, tedd wrote: But, as it was said, IE's have problems with first-child rules. How does IE8 fare with selectors in CSS? Thanks, Ash tedd = clue-- or tedd clue tedd -- --- http://sperling.com

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

2009-08-09 Thread Ralph Deffke
I would like to have a KNOWN status of my database after a NEW installation of the application, because the further installation relais on information stored in record 1 of each table. tedd tedd.sperl...@gmail.com wrote in message news:p06240801c6a4fe331...@[192.168.1.100]... At 8:17 PM +0200

Re: [PHP] Re: PHP programming strategy

2009-08-09 Thread Eddie Drapkin
On Sun, Aug 9, 2009 at 6:33 PM, teddtedd.sperl...@gmail.com wrote: At 1:05 PM +0100 8/9/09, Ashley Sheridan wrote: On Sun, 2009-08-09 at 07:55 -0400, tedd wrote:   But, as it was said, IE's have problems with first-child rules. How does IE8 fare with selectors in CSS? Thanks, Ash tedd

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

2009-08-09 Thread Ralph Deffke
this is a very good startup for the issue. now the question is where does it get the value if there is no max(ai) or when I do an insert in an empty table with the ai field set to 1 where does the innoDB get the next ai value 10720 ? I assume that the SELECT MAX(ai_col) FROM t FOR UPDATE; return

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

2009-08-09 Thread Ralph Deffke
I should mention that I use MyISAM as storage engine what makes it even more wiered. Nisse Engström news.nospam.0ixbt...@luden.se wrote in message news:91.f7.55947.dc74f...@pb1.pair.com... On Sun, 9 Aug 2009 20:17:15 +0200, Ralph Deffke wrote: I'm facing the fact that it seems that

Re: [PHP] use preg_replace to nix and line with display: none

2009-08-09 Thread Ben Dunlap
$pattern = '|^.+?display:none.+?$|mi'; [8] I found your use of ? rather... creative...  Anyway, just add the You mean the non-greedy flag? I think that's necessary the way the regex was originally formulated -- without it, .+display would gobble up all of the list-items until the last one.

[PHP] reason for a Notice:.. on one site but not another? (Same code.)

2009-08-09 Thread John Butler
Hi sunday coders, I've been using this kind of logic on one PHP site I work on to display one thing or another depending on whether the form was submitted or not: if($_POST['UserWishesDateRange']) { //--line 79 echo'submitted'; }

Re: [PHP] reason for a Notice:.. on one site but not another? (Same code.)

2009-08-09 Thread Mari Masuda
On Aug 9, 2009, at 16:43, John Butler wrote: Hi sunday coders, I've been using this kind of logic on one PHP site I work on to display one thing or another depending on whether the form was submitted or not: if($_POST['UserWishesDateRange']) { //--line 79

Re: [PHP] reason for a Notice:.. on one site but not another? (Same code.)

2009-08-09 Thread James Colannino
John Butler wrote: if($_POST['UserWishesDateRange']) { //--line 79 echo'submitted'; } else { echo'NOT submitted'; } Try this instead: if (isset('UserWishesDateRange'])) { // [...stuff goes here...] } James -- Black holes are where God

Re: [PHP] reason for a Notice:.. on one site but not another? (Same code.)

2009-08-09 Thread Ben Dunlap
But on another site it still works, but gives this error: Notice: Undefined index: UserWishesDateRange in /home/vs/site/phvs/bl/7solarsecrets/admin/trackingcode.html on line 79 I assume that is because the error display settings are set to a more rigorous level in this latter site. Is this

Re: [PHP] reason for a Notice:.. on one site but not another? (Same code.)

2009-08-09 Thread Bastien Koert
Bastien Sent from my iPod -- Bastien Cat, the other other white meat -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] reason for a Notice:.. on one site but not another? (Same code.)

2009-08-09 Thread Phpster
On Aug 9, 2009, at 7:43 PM, John Butler govinda.webdnat...@gmail.com wrote: Hi sunday coders, I've been using this kind of logic on one PHP site I work on to display one thing or another depending on whether the form was submitted or not: and it works great on that site. But

Re: [PHP] reason for a Notice:.. on one site but not another? (Same code.)

2009-08-09 Thread John Butler
http://us3.php.net/manual/en/errorfunc.configuration.php#ini.error-reporting Thank you guys for the isset() heads up. And Ben, for this good explanation of error reporting! As others have pointed out, it's a good idea to call isset() on a POST-variable before trying to get at its value.

Re: [PHP] Question: what are frameworks?

2009-08-09 Thread Sancar Saran
On Sunday 09 August 2009 02:47:37 pm Parham Doustdar wrote: Hi there, I've heard of frameworks, but I don't quite know what they are used for. I've done a little search on the internet, but even though I've been able to find different PHP frameworks, I'm not quite sure what they offer, or in

Re: [PHP] reason for a Notice:.. on one site but not another? (Same code.)

2009-08-09 Thread Shawn McKenzie
John Butler wrote: http://us3.php.net/manual/en/errorfunc.configuration.php#ini.error-reporting Thank you guys for the isset() heads up. And Ben, for this good explanation of error reporting! As others have pointed out, it's a good idea to call isset() on a POST-variable before trying

Re: [PHP] reason for a Notice:.. on one site but not another? (Same code.)

2009-08-09 Thread John Butler
if(isset($_POST['UserWishesDateRange']) $_POST['UserWishesDateRange'] == 'T') { Thought I tried that. Apparently not exactly; it works now! Thanks. I know it is clunky but I wanted to see how compact it could be done. -- PHP General Mailing List (http://www.php.net/) To unsubscribe,