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,

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 befo

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 i

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. Th

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 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 on another site it still works

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 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

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

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

[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'; } els

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] 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" 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 auto_increment fields in a tabl

[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 i

Re: [PHP] Re: PHP programming strategy

2009-08-09 Thread Eddie Drapkin
On Sun, Aug 9, 2009 at 6:33 PM, tedd 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 > > ted

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" wrote in message news:p06240801c6a4fe331...@[192.168.1.100]... > At 8:17 PM +0200 8/9/09, Ralph Deffke wr

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 http

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 older

[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 > change

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 Wilborn wrote: > You seem nice. I have my moments. -- 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 http://twitter.com/pilotpig -- PHP General

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] 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. The

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 li

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 n

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 wrote: > On Sat, Aug 8, 2009 at 11:08, Jerry Wilborn wrote: > > You're going to have to be more > > specific. There are very few problems where this is absolutely no > solution. > > And you're

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 wrote: > Hi all, > > I'm facing the fact that it seems that auto_increment fields in a table no

[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 me

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 Wilborn 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. It requires no more sp

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

2009-08-09 Thread Bastien Koert
On Sun, Aug 9, 2009 at 9:29 AM, Sudheer Satyanarayana 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] 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

[PHP] Re: Question: what are frameworks?

2009-08-09 Thread Tony Marston
""Parham Doustdar"" 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 not quite sur

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 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 u

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: > >> > >> > >> > >> Yanni Nx > >> Sally Riordan Sc

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: Yanni Nx Sally Riordan Scholarship, 2007- Except that line 2 is smaller than line 1. In my sche

[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. Can

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 want

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 an

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: htt

[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