php-general Digest 12 Jan 2009 14:00:39 -0000 Issue 5897

2009-01-12 Thread php-general-digest-help
php-general Digest 12 Jan 2009 14:00:39 - Issue 5897 Topics (messages 286062 through 286084): Re: Couple of beginner questions 286062 by: John Corry 286063 by: Paul M Foster 286065 by: Peter Ford 286066 by: Peter Ford 286067 by: Nathan Rixham

[PHP] php_value error_log realtive path in 5.2.8

2009-01-12 Thread Andre Hübner
Hi, please can someone try to add a logging with .htaccess and use a relative path to logfile? I always get an open_basedir error... open_basedir and document_root of domain points to: /path/path/ In /path/path/ is located the .htaccess with: php_flag log_errors on php_value error_log

Re: [PHP] Couple of beginner questions

2009-01-12 Thread Peter Ford
Paul M Foster wrote: (snip) But here's a question for those of you who work in a collaborative environment-- are you really ever in a situation where some HTML weenie is coding HTML pages and you're somewhere else doing the PHP work? Or is that some academic's view of the way things *should*

Re: [PHP] Couple of beginner questions

2009-01-12 Thread Nathan Rixham
Paul M Foster wrote: But here's a question for those of you who work in a collaborative environment-- are you really ever in a situation where some HTML weenie is coding HTML pages and you're somewhere else doing the PHP work? Or is that some academic's view of the way things *should* be done?

Re: [PHP] Couple of beginner questions

2009-01-12 Thread Nathan Rixham
Peter Ford wrote: Paul M Foster wrote: (snip) But here's a question for those of you who work in a collaborative environment-- are you really ever in a situation where some HTML weenie is coding HTML pages and you're somewhere else doing the PHP work? Or is that some academic's view of the way

[PHP] Re: php_value error_log realtive path in 5.2.8

2009-01-12 Thread Nathan Rixham
Andre Hübner wrote: Hi, please can someone try to add a logging with .htaccess and use a relative path to logfile? I always get an open_basedir error... open_basedir and document_root of domain points to: /path/path/ In /path/path/ is located the .htaccess with: php_flag log_errors on

[PHP] Re: php_value error_log realtive path in 5.2.8

2009-01-12 Thread Nathan Rixham
Andre Hübner wrote: - Original Message - From: Nathan Rixham nrix...@gmail.com To: Andre Hübner andre.hueb...@gmx.de Cc: php-general@lists.php.net Sent: Monday, January 12, 2009 11:19 AM Subject: Re: php_value error_log realtive path in 5.2.8 Andre Hübner wrote: Hi, please can

Re: [PHP] RSS feeder in PHP5?

2009-01-12 Thread Richard Heyes
Is there something in PHP5 which can generate the RSS feed? You don't need an extension to help you generate an XML feed. You dimply output XML data instead of HTML and send an appropriate content type header, eg: header('Content-Type: text/xml'); And the actual data: ?xml version=1.0

Re: [PHP] RSS feeder in PHP5?

2009-01-12 Thread Richard Heyes
item title!-- The title of your feed --/title Oops, that should be the title of the individual article. -- Richard Heyes HTML5 Graphing for Firefox, Chrome, Opera and Safari: http://www.rgraph.org (Updated January 4th) -- PHP General Mailing List

Re: [PHP] RSS feeder in PHP5?

2009-01-12 Thread clive
Richard Heyes wrote: Is there something in PHP5 which can generate the RSS feed? You don't need an extension to help you generate an XML feed. You dimply output XML data instead of HTML and send an appropriate content type header, eg: header('Content-Type: text/xml'); I was just

Re: [PHP] RSS feeder in PHP5?

2009-01-12 Thread Craig Whitmore
On Mon, 2009-01-12 at 11:02 +, Richard Heyes wrote: Is there something in PHP5 which can generate the RSS feed? You don't need an extension to help you generate an XML feed. You dimply output XML data instead of HTML and send an appropriate content type header, eg:

Re: [PHP] RSS feeder in PHP5?

2009-01-12 Thread Nathan Rixham
Craig Whitmore wrote: On Mon, 2009-01-12 at 11:02 +, Richard Heyes wrote: Is there something in PHP5 which can generate the RSS feed? You don't need an extension to help you generate an XML feed. You dimply output XML data instead of HTML and send an appropriate content type header, eg:

Re: [PHP] RSS feeder in PHP5?

2009-01-12 Thread Nathan Rixham
Nathan Rixham wrote: here's an example / test code: $title = stripJunkSimple(stripslashes(htmlentities($item['title']))); there are a couple of custom functions in this script i forgot to pull out so stripJunkSimple can be removed and the db lookup replaced with you're own - just sample

Re: [PHP] RSS feeder in PHP5?

2009-01-12 Thread Richard Heyes
header('Content-Type: text/xml'); You actually mean application/xml not text/xml Well, no. I use text/xml and have done for nearly 5 years, and it works fine. And its alot better to use DOMDocument in PHP5 for XML Creation rather than hardcode everything. DOMDocument would be overkill.

Re: [PHP] RSS feeder in PHP5?

2009-01-12 Thread Nathan Rixham
Richard Heyes wrote: header('Content-Type: text/xml'); You actually mean application/xml not text/xml Well, no. I use text/xml and have done for nearly 5 years, and it works fine. it does, but in 2006 it was upgraded to application/rss+xml for all rss versions; all the

Re: [PHP] RSS feeder in PHP5?

2009-01-12 Thread Richard Heyes
... Suppose I should change my feed then. At some point... :-) -- Richard Heyes HTML5 Graphing for Firefox, Chrome, Opera and Safari: http://www.rgraph.org (Updated January 4th) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: php_value error_log realtive path in 5.2.8

2009-01-12 Thread Nathan Rixham
Andre Hübner wrote: - Original Message - From: Nathan Rixham nrix...@gmail.com To: Andre Hübner andre.hueb...@gmx.de Sent: Monday, January 12, 2009 12:18 PM Subject: Re: php_value error_log realtive path in 5.2.8 Andre Hübner wrote: - Original Message - From: Nathan Rixham

[PHP] Re: RSS feeder in PHP5?

2009-01-12 Thread Michelle Konzack
Hello Richard, Am 2009-01-12 11:02:39, schrieb Richard Heyes: Is there something in PHP5 which can generate the RSS feed? You don't need an extension to help you generate an XML feed. You dimply output XML data instead of HTML and send an appropriate content type header, eg: snip Thanks

Re: [PHP] Couple of beginner questions

2009-01-12 Thread tedd
At 3:36 PM + 1/11/09, Ashley Sheridan wrote: I was thinking more along the lines of this: [1] echo img src=\$url\ alt=\$alt\ title=\$alt\ class=\$imgclass \/; which looks like this otherwise: [2] img src=?php echo($url);? alt=?php echo($alt);? title=?php echo($alt);? class=?php

[PHP] Re: RSS feeder in PHP5?

2009-01-12 Thread Michelle Konzack
Hello Nathan, Am 2009-01-12 11:25:57, schrieb Nathan Rixham: header(Content-type: application/rss+xml; charset=utf-8) OK And its alot better to use DOMDocument in PHP5 for XML Creation rather than hardcode everything. agreed in principle; and I can't belive i'm saying this.. but with the

Re: [PHP] Re: redoing website after 7 years

2009-01-12 Thread Andrew Ballard
On Sun, Jan 11, 2009 at 5:09 PM, Robert Cummings rob...@interjinn.com wrote: On Mon, 2009-01-12 at 09:00 +1100, Chris wrote: Robert Cummings wrote: On Fri, 2009-01-09 at 08:56 -0500, Andrew Ballard wrote: On Fri, Jan 9, 2009 at 2:09 AM, Robert Cummings rob...@interjinn.com wrote: On

Re: [PHP] RSS feeder in PHP5?

2009-01-12 Thread Richard Heyes
hope you're well today Well, I have a bit of runny nose, and as usual it's frickin' freezing (the joys of rat poison). But other than that fine thanks. You? -- Richard Heyes HTML5 Graphing for Firefox, Chrome, Opera and Safari: http://www.rgraph.org (Updated January 4th) -- PHP General

Re: [PHP] Couple of beginner questions

2009-01-12 Thread tedd
At 5:01 PM + 1/11/09, Nathan Rixham wrote: i love these discussions on pedantics and semantics! [and] keep the layers as seperate as possible That's the main topic of this thread. But you missed the point of the debate. I was claiming that one should not have any html within an echo,

Re: [PHP] Couple of beginner questions

2009-01-12 Thread ceo
$ mv hello-world.php hello-world.html Isn't this backwards?... :-) 39% seems awfully high overhead for what is essentially an extra readfile. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Couple of beginner questions

2009-01-12 Thread tedd
At 12:25 PM -0500 1/11/09, Robert Cummings wrote: Although, to be honest I tend to vertically spread my tags/attributes: $imgHTML = 'img' .' src='.$url.'' .' alt='.$alt.'' .' title='.$alt.'' .' class='.$imgclass.'' .' /'; This makes it easy to see at a glance what is there

Re: [PHP] Couple of beginner questions

2009-01-12 Thread Eric Butera
On Mon, Jan 12, 2009 at 10:16 AM, c...@l-i-e.com wrote: $ mv hello-world.php hello-world.html Isn't this backwards?... :-) 39% seems awfully high overhead for what is essentially an extra readfile. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] Couple of beginner questions

2009-01-12 Thread Paul M Foster
On Sun, Jan 11, 2009 at 11:28:49PM -0800, Lars Torben Wilson wrote: 2009/1/11 Paul M Foster pa...@quillandmouse.com: snip But here's a question for those of you who work in a collaborative environment-- are you really ever in a situation where some HTML weenie is coding HTML pages and

Re: [PHP] is_readable() returns 1 if file is still uploading

2009-01-12 Thread ceo
You should be able to fairly quickly fopen/fread/fseek/fread and compare the opening/ending XML tags. If it's well-formed XML, it should be trivial to detect an incomplete file versus a complete one. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] Editing in a text area field

2009-01-12 Thread ceo
Google for BBCode. It's just str_replace(array('[b]','[/b]'),array('b','/b'),$text) in the end. And it's not really going to be any better than just letting them type b and /b if that is needed. Your sanitization process will be the same no matter what, and will have the same

Re: [PHP] Editing in a text area field

2009-01-12 Thread Eric Butera
On Mon, Jan 12, 2009 at 10:42 AM, c...@l-i-e.com wrote: Google for BBCode. It's just str_replace(array('[b]','[/b]'),array('b','/b'),$text) in the end. And it's not really going to be any better than just letting them type b and /b if that is needed. Your sanitization process will be

Re: [PHP] RSS feeder in PHP5?

2009-01-12 Thread ceo
You actually mean application/xml not text/xml That depends on if you want the Userland RSS standard or the Other [blanking on name] RSS standard. Unfortunately, the RSS camps are still at war over syntax and required elements, and there are 9 mutually-incompatible often-used versions of

Re: [PHP] Couple of beginner questions

2009-01-12 Thread ceo
are you really ever in a situation where some HTML weenie is coding HTML pages and you're somewhere else doing the PHP work? Yes. I have been there several times, and am there now. In a well-run organization with good communication and a decent framework, it works out well.

Re: [PHP] Couple of beginner questions

2009-01-12 Thread Jason Pruim
On Jan 12, 2009, at 1:43 AM, Paul M Foster wrote: On Mon, Jan 12, 2009 at 12:04:15AM -0500, John Corry wrote: But here's a question for those of you who work in a collaborative environment-- are you really ever in a situation where some HTML weenie is coding HTML pages and you're somewhere

[PHP] Php and CSS where to put it

2009-01-12 Thread Terion Miller
I have this code and the css seems to not work in IE at all, do I need to put it somewhere different on the page maybe? link rel=stylesheet type=text/css href=inc/styles.css ?php include 'inc/dbconnOpen.php' ; ini_set('error_reporting', E_ALL); ini_set('display_errors', true); $sql = SELECT *

RE: [PHP] Re: Adding extension to an existing PHP install

2009-01-12 Thread Tim Donnelly
I seem to recall reading something about Apache modules that you can do a configure, then make, but not the make install and just move the newly compiled module by hand. Is that possible with PHP? If so, where would the newly complied extension be, and where would it need to be moved? Thanks I

Re: [PHP] RSS feeder in PHP5?

2009-01-12 Thread Eric Butera
On Mon, Jan 12, 2009 at 11:02 AM, c...@l-i-e.com wrote: You actually mean application/xml not text/xml That depends on if you want the Userland RSS standard or the Other [blanking on name] RSS standard. Unfortunately, the RSS camps are still at war over syntax and required elements, and

Re: Re: [PHP] Couple of beginner questions

2009-01-12 Thread jcorry
On Jan 12, 2009 11:20am, Jason Pruim japr...@raoset.com wrote: It's actually pretty normal and can work really well. Especially if the HTML person also did the graphic design and KNOWS how to make it work as a web page. We let them build HTML files, which are then turned into Smarty

Re: [PHP] Couple of beginner questions

2009-01-12 Thread Frank Stanovcak
Ashley Sheridan wrote in message news:1231681793.3527.2.ca...@localhost.localdomain... On Sun, 2009-01-11 at 08:08 -0500, tedd wrote: At 4:16 PM -0500 1/10/09, Paul M Foster wrote: And let me present an alternative perspective. Never do something like: ?php echo 'Hellow world'; ? Let

[PHP] Data trasfer between PHP pages

2009-01-12 Thread Chris Carter
Hi, I have one form where user fills data using radio buttons. Only one answer goes from here to another page. FORM 1 form action=form2.php method=post input type=radio name=myname value=Answer 5 id=1 / label for=15/label br / input type=radio name=myname value=Answer 1 id=2 / label

RE: [PHP] Data trasfer between PHP pages

2009-01-12 Thread Boyd, Todd M.
-Original Message- From: Chris Carter [mailto:chandan9sha...@yahoo.com] Sent: Monday, January 12, 2009 11:00 AM To: php-general@lists.php.net Subject: [PHP] Data trasfer between PHP pages Hi, I have one form where user fills data using radio buttons. Only one answer goes

Re: [PHP] Php and CSS where to put it

2009-01-12 Thread Stephen
Terion Miller wrote: I have this code and the css seems to not work in IE at all, do I need to put it somewhere different on the page maybe? link rel=stylesheet type=text/css href=inc/styles.css ?php include 'inc/dbconnOpen.php' ; I don't see the html headers. Nor a body. Get that fixed

Re: [PHP] Php and CSS where to put it

2009-01-12 Thread VamVan
-- link rel=stylesheet type=text/css href=inc/styles.css link rel=stylesheet type=text/css href=inc/styles.css should be placed in between head/head Thanks, V

Re: [PHP] Re: Adding extension to an existing PHP install

2009-01-12 Thread Shawn McKenzie
Tim Donnelly wrote: I seem to recall reading something about Apache modules that you can do a configure, then make, but not the make install and just move the newly compiled module by hand. Is that possible with PHP? If so, where would the newly complied extension be, and where would it

Re: [PHP] Data trasfer between PHP pages

2009-01-12 Thread Dan Shirah
Hi, I have one form where user fills data using radio buttons. Only one answer goes from here to another page. FORM 1 form action=form2.php method=post input type=radio name=myname value=Answer 5 id=1 / label for=15/label br / input type=radio name=myname value=Answer 1 id=2 / label

[PHP] RewriteRules

2009-01-12 Thread Jason Pruim
Hi Everyone, I know it's not a php question... But I know alot of you use rewrite rules and regular expressions and so I thought maybe you would be able to help me. The site: HTTP://purl.raoset.com/test112 test112 doesn't exist.. It's driven by the database using this rewrite rule:

Re: [PHP] Data trasfer between PHP pages

2009-01-12 Thread VamVan
If the 2 forms exist on the same server. Use Sessions. thats would solve lot of problems managing hidden fields and everything. Thanks, V

Re: [PHP] Data trasfer between PHP pages

2009-01-12 Thread tedd
At 8:59 AM -0800 1/12/09, Chris Carter wrote: Hi, I have one form where user fills data using radio buttons. Only one answer goes from here to another page. FORM 1 form action=form2.php method=post input type=radio name=myname value=Answer 5 id=1 / label for=15/label br / input type=radio

Re: [PHP] RewriteRules

2009-01-12 Thread Robert Cummings
On Mon, 2009-01-12 at 13:20 -0500, Jason Pruim wrote: Hi Everyone, I know it's not a php question... But I know alot of you use rewrite rules and regular expressions and so I thought maybe you would be able to help me. The site: HTTP://purl.raoset.com/test112 test112 doesn't

Re: [PHP] Data trasfer between PHP pages

2009-01-12 Thread Robert Cummings
On Mon, 2009-01-12 at 13:37 -0500, tedd wrote: At 8:59 AM -0800 1/12/09, Chris Carter wrote: Hi, I have one form where user fills data using radio buttons. Only one answer goes from here to another page. FORM 1 form action=form2.php method=post input type=radio name=myname

Re: [PHP] RewriteRules

2009-01-12 Thread Marc Steinert
Jason Pruim schrieb: Now, on that site I have a few links... right now the likes are in the format of: HTTP://purl.raoset.com/design.php?purl=test112 What I would like is to have it read: HTTP://purl.raoset.com/test112/design Try the following rule (dunno, if it works for you, but you should

[PHP] Re: Php and CSS where to put it

2009-01-12 Thread Michelle Konzack
Hello Terion, Am 2009-01-12 10:42:10, schrieb Terion Miller: I have this code and the css seems to not work in IE at all, do I need to put it somewhere different on the page maybe? The CSS must be in the HTML Header like html head titleCSS Example/title link rel=stylesheet type=text/css

Re: [PHP] Re: Php and CSS where to put it

2009-01-12 Thread Terion Miller
Resolved! Thanks! On Mon, Jan 12, 2009 at 12:38 PM, Michelle Konzack linux4miche...@tamay-dogan.net wrote: Hello Terion, Am 2009-01-12 10:42:10, schrieb Terion Miller: I have this code and the css seems to not work in IE at all, do I need to put it somewhere different on the page maybe?

Re: [PHP] RSS feeder in PHP5?

2009-01-12 Thread Richard Heyes
Unfortunately, the RSS camps are still at war over syntax and required elements, and there are 9 mutually-incompatible often-used versions of the RSS standard over the years, with TWO current 2.0 standards You have to try to hit the lowest common denominator and test in many RSS

[PHP] downloading xls files corrupts them

2009-01-12 Thread Chris Ditty
I am using php to download xls files on my server. When I download them, excel is saying they are corrupted. They are not corrupted on the server itself. These are simple xls spreadsheets with no formatting in them. Here is the headers that I am using for the download. This is happening in

[PHP] Re: RewriteRules

2009-01-12 Thread Nathan Rixham
Jason Pruim wrote: Hi Everyone, I know it's not a php question... But I know alot of you use rewrite rules and regular expressions and so I thought maybe you would be able to help me. The site: HTTP://purl.raoset.com/test112 test112 doesn't exist.. It's driven by the database using this

[PHP] Re: downloading xls files corrupts them

2009-01-12 Thread Nathan Rixham
Chris Ditty wrote: I am using php to download xls files on my server. When I download them, excel is saying they are corrupted. They are not corrupted on the server itself. These are simple xls spreadsheets with no formatting in them. Here is the headers that I am using for the download.

[PHP] Holy crap

2009-01-12 Thread Richard Heyes
Chrome 2.0? http://www.trustedreviews.com/software/news/2009/01/12/Google-Chrome-Hitting-Macs--Linux-By-July/p1 So much for long beta periods! -- Richard Heyes HTML5 Graphing for Firefox, Chrome, Opera and Safari: http://www.rgraph.org (Updated January 4th) -- PHP General Mailing List

Re: [PHP] downloading xls files corrupts them

2009-01-12 Thread ceo
For starters, three calls to header(Content-type: ); is just plain silly :-) Read this for sure: http://php.net/header You may find this interesting, or not, to pick the right Content-type http://richardlynch.blogspot.com/2006/06/php-downloads-content-disposition.html -- PHP General

Re: [PHP] Holy crap

2009-01-12 Thread Robert Cummings
On Mon, 2009-01-12 at 19:27 +, Richard Heyes wrote: Chrome 2.0? http://www.trustedreviews.com/software/news/2009/01/12/Google-Chrome-Hitting-Macs--Linux-By-July/p1 So much for long beta periods! 2.0 is the new beta... what did you think Web 2.0 was all about? Cheers, Rob. --

[PHP] Re: downloading xls files corrupts them

2009-01-12 Thread Nathan Rixham
Chris Ditty wrote: I am using php to download xls files on my server. When I download them, excel is saying they are corrupted. They are not corrupted on the server itself. These are simple xls spreadsheets with no formatting in them. Here is the headers that I am using for the download.

Re: [PHP] Couple of beginner questions

2009-01-12 Thread Ashley Sheridan
On Mon, 2009-01-12 at 11:20 -0500, Jason Pruim wrote: On Jan 12, 2009, at 1:43 AM, Paul M Foster wrote: On Mon, Jan 12, 2009 at 12:04:15AM -0500, John Corry wrote: But here's a question for those of you who work in a collaborative environment-- are you really ever in a situation where

Re: [PHP] Couple of beginner questions

2009-01-12 Thread Ashley Sheridan
On Mon, 2009-01-12 at 11:51 -0500, Frank Stanovcak wrote: Ashley Sheridan wrote in message news:1231681793.3527.2.ca...@localhost.localdomain... On Sun, 2009-01-11 at 08:08 -0500, tedd wrote: At 4:16 PM -0500 1/10/09, Paul M Foster wrote: And let me present an alternative perspective.

Re: [PHP] Couple of beginner questions

2009-01-12 Thread Nathan Rixham
Ashley Sheridan wrote: On Mon, 2009-01-12 at 11:51 -0500, Frank Stanovcak wrote: Ashley Sheridan wrote in message news:1231681793.3527.2.ca...@localhost.localdomain... On Sun, 2009-01-11 at 08:08 -0500, tedd wrote: At 4:16 PM -0500 1/10/09, Paul M Foster wrote: And let me present an

Re: [PHP] Data trasfer between PHP pages

2009-01-12 Thread Ashley Sheridan
On Mon, 2009-01-12 at 13:40 -0500, Robert Cummings wrote: On Mon, 2009-01-12 at 13:37 -0500, tedd wrote: At 8:59 AM -0800 1/12/09, Chris Carter wrote: Hi, I have one form where user fills data using radio buttons. Only one answer goes from here to another page. FORM 1 form

Re: [PHP] Couple of beginner questions

2009-01-12 Thread Ashley Sheridan
On Mon, 2009-01-12 at 19:43 +, Nathan Rixham wrote: Ashley Sheridan wrote: On Mon, 2009-01-12 at 11:51 -0500, Frank Stanovcak wrote: Ashley Sheridan wrote in message news:1231681793.3527.2.ca...@localhost.localdomain... On Sun, 2009-01-11 at 08:08 -0500, tedd wrote: At 4:16 PM

Re: [PHP] Data trasfer between PHP pages

2009-01-12 Thread Eric Butera
On Mon, Jan 12, 2009 at 3:03 PM, Ashley Sheridan a...@ashleysheridan.co.uk wrote: I tend to use $_REQUEST to capture a lot of my data, as I end up mixing get and post a lot throughout my code. $_REQUEST is an amalgamate of $_COOKIE, $_GET and $_POST (in that order I believe, with $_GET

Re: [PHP] Data trasfer between PHP pages

2009-01-12 Thread Robert Cummings
On Mon, 2009-01-12 at 15:15 -0500, Eric Butera wrote: On Mon, Jan 12, 2009 at 3:03 PM, Ashley Sheridan a...@ashleysheridan.co.uk wrote: I tend to use $_REQUEST to capture a lot of my data, as I end up mixing get and post a lot throughout my code. $_REQUEST is an amalgamate of $_COOKIE,

[PHP] switch vs elseif

2009-01-12 Thread Frank Stanovcak
I've googled, and found some confusing answers. I've tried searching the history of the news group, and only found info on switch or elseif seperately. :( Strictly from a performance stand point, not preference or anything else, is there a benefit of one over the other? for($i=0;$i3;$i++){

[PHP] switch vs elseif

2009-01-12 Thread Frank Stanovcak
I've googled, and found some confusing answers. I've tried searching the history of the news group, and only found info on switch or elseif seperately. :( Strictly from a performance stand point, not preference or anything else, is there a benefit of one over the other? for($i=0;$i3;$i++){

Re: [PHP] Data trasfer between PHP pages

2009-01-12 Thread Eric Butera
On Mon, Jan 12, 2009 at 3:21 PM, Robert Cummings rob...@interjinn.com wrote: On Mon, 2009-01-12 at 15:15 -0500, Eric Butera wrote: On Mon, Jan 12, 2009 at 3:03 PM, Ashley Sheridan a...@ashleysheridan.co.uk wrote: I tend to use $_REQUEST to capture a lot of my data, as I end up mixing get

Re: [PHP] switch vs elseif

2009-01-12 Thread Eric Butera
On Mon, Jan 12, 2009 at 3:15 PM, Frank Stanovcak blindspot...@comcast.net wrote: I've googled, and found some confusing answers. I've tried searching the history of the news group, and only found info on switch or elseif seperately. :( Strictly from a performance stand point, not preference

Re: [PHP] switch vs elseif

2009-01-12 Thread Robert Cummings
On Mon, 2009-01-12 at 15:15 -0500, Frank Stanovcak wrote: I've googled, and found some confusing answers. I've tried searching the history of the news group, and only found info on switch or elseif seperately. :( Strictly from a performance stand point, not preference or anything else, is

Re: [PHP] Data trasfer between PHP pages

2009-01-12 Thread Nathan Rixham
Eric Butera wrote: On Mon, Jan 12, 2009 at 3:21 PM, Robert Cummings rob...@interjinn.com wrote: On Mon, 2009-01-12 at 15:15 -0500, Eric Butera wrote: On Mon, Jan 12, 2009 at 3:03 PM, Ashley Sheridan a...@ashleysheridan.co.uk wrote: I tend to use $_REQUEST to capture a lot of my data, as I end

Re: [PHP] Data trasfer between PHP pages

2009-01-12 Thread Robert Cummings
On Mon, 2009-01-12 at 15:29 -0500, Eric Butera wrote: On Mon, Jan 12, 2009 at 3:21 PM, Robert Cummings rob...@interjinn.com wrote: On Mon, 2009-01-12 at 15:15 -0500, Eric Butera wrote: On Mon, Jan 12, 2009 at 3:03 PM, Ashley Sheridan a...@ashleysheridan.co.uk wrote: I tend to use

Re: [PHP] Data trasfer between PHP pages

2009-01-12 Thread Ashley Sheridan
On Mon, 2009-01-12 at 15:15 -0500, Eric Butera wrote: On Mon, Jan 12, 2009 at 3:03 PM, Ashley Sheridan a...@ashleysheridan.co.uk wrote: I tend to use $_REQUEST to capture a lot of my data, as I end up mixing get and post a lot throughout my code. $_REQUEST is an amalgamate of $_COOKIE,

Re: [PHP] switch vs elseif

2009-01-12 Thread Ashley Sheridan
On Mon, 2009-01-12 at 15:15 -0500, Frank Stanovcak wrote: I've googled, and found some confusing answers. I've tried searching the history of the news group, and only found info on switch or elseif seperately. :( Strictly from a performance stand point, not preference or anything else, is

Re: [PHP] Data trasfer between PHP pages

2009-01-12 Thread Eric Butera
On Mon, Jan 12, 2009 at 3:34 PM, Robert Cummings rob...@interjinn.com wrote: On Mon, 2009-01-12 at 15:29 -0500, Eric Butera wrote: On Mon, Jan 12, 2009 at 3:21 PM, Robert Cummings rob...@interjinn.com wrote: On Mon, 2009-01-12 at 15:15 -0500, Eric Butera wrote: On Mon, Jan 12, 2009 at 3:03

Re: [PHP] switch vs elseif

2009-01-12 Thread Frank Stanovcak
Ashley Sheridan a...@ashleysheridan.co.uk wrote in message news:1231793310.3558.55.ca...@localhost.localdomain... On Mon, 2009-01-12 at 15:15 -0500, Frank Stanovcak wrote: I've googled, and found some confusing answers. I've tried searching the history of the news group, and only found info

Re: [PHP] switch vs elseif

2009-01-12 Thread Frank Stanovcak
Eric Butera eric.but...@gmail.com wrote in message news:6a8639eb0901121231r253eed48xe1974d8ef44ab...@mail.gmail.com... On Mon, Jan 12, 2009 at 3:15 PM, Frank Stanovcak blindspot...@comcast.net wrote: I've googled, and found some confusing answers. I've tried searching the history of the news

Re: [PHP] switch vs elseif

2009-01-12 Thread Eric Butera
On Mon, Jan 12, 2009 at 3:58 PM, Frank Stanovcak blindspot...@comcast.net wrote: Eric Butera eric.but...@gmail.com wrote in message news:6a8639eb0901121231r253eed48xe1974d8ef44ab...@mail.gmail.com... On Mon, Jan 12, 2009 at 3:15 PM, Frank Stanovcak blindspot...@comcast.net wrote: I've

Re: [PHP] switch vs elseif -- switchtable

2009-01-12 Thread Daevid Vincent
On Mon, 2009-01-12 at 15:31 -0500, Eric Butera wrote: On Mon, Jan 12, 2009 at 3:15 PM, Frank Stanovcak blindspot...@comcast.net wrote: I've googled, and found some confusing answers. I've tried searching the history of the news group, and only found info on switch or elseif seperately.

Re: [PHP] Couple of beginner questions

2009-01-12 Thread tedd
At 7:47 PM + 1/12/09, Ashley Sheridan wrote: Ehat's what I do do, but the 'odd' has to come from PHP, as unfortunately, numerical selectors in CSS aren't supported by (AFAIK) any browsers at the moment. So for example, if I was coding for alternate rows in a table, I might do: for($i=0;

Re: [PHP] switch vs elseif -- switchtable

2009-01-12 Thread Eric Butera
On Mon, Jan 12, 2009 at 4:00 PM, Daevid Vincent dae...@daevid.com wrote: On Mon, 2009-01-12 at 15:31 -0500, Eric Butera wrote: On Mon, Jan 12, 2009 at 3:15 PM, Frank Stanovcak blindspot...@comcast.net wrote: I've googled, and found some confusing answers. I've tried searching the history

[PHP] variable probe revision

2009-01-12 Thread Frank Stanovcak
I posted this once before, and then tried to use it multiple times in a script. As you can guess I got a bunch of func already defined errors. Here is a revision incase anyone decided to use it that will work multiple times in the same script for variable watching. ---Code follows---

Re: [PHP] Couple of beginner questions

2009-01-12 Thread Robert Cummings
On Mon, 2009-01-12 at 16:02 -0500, tedd wrote: True, css does not allow numeric classes (like sessions). But, I never need them anyway. As I provided before: http://webbytedd.com/b/color-rows/ this is my solution for alternating row style. tr class=row?php echo($i++ 1 );? td

Re: [PHP] Data trasfer between PHP pages

2009-01-12 Thread tedd
At 8:03 PM + 1/12/09, Ashley Sheridan wrote: I tend to use $_REQUEST to capture a lot of my data, as I end up mixing get and post a lot throughout my code. $_REQUEST is an amalgamate of $_COOKIE, $_GET and $_POST (in that order I believe, with $_GET overwritting $_COOKIE, and $_POST

Re: [PHP] Data trasfer between PHP pages

2009-01-12 Thread Robert Cummings
On Mon, 2009-01-12 at 16:18 -0500, tedd wrote: At 8:03 PM + 1/12/09, Ashley Sheridan wrote: I tend to use $_REQUEST to capture a lot of my data, as I end up mixing get and post a lot throughout my code. $_REQUEST is an amalgamate of $_COOKIE, $_GET and $_POST (in that order I believe,

Re: [PHP] Data trasfer between PHP pages

2009-01-12 Thread Eric Butera
On Mon, Jan 12, 2009 at 4:18 PM, tedd tedd.sperl...@gmail.com wrote: At 8:03 PM + 1/12/09, Ashley Sheridan wrote: I tend to use $_REQUEST to capture a lot of my data, as I end up mixing get and post a lot throughout my code. $_REQUEST is an amalgamate of $_COOKIE, $_GET and $_POST (in

Re: [PHP] Data trasfer between PHP pages

2009-01-12 Thread Ashley Sheridan
On Mon, 2009-01-12 at 16:18 -0500, tedd wrote: At 8:03 PM + 1/12/09, Ashley Sheridan wrote: I tend to use $_REQUEST to capture a lot of my data, as I end up mixing get and post a lot throughout my code. $_REQUEST is an amalgamate of $_COOKIE, $_GET and $_POST (in that order I believe,

Re: [PHP] Couple of beginner questions

2009-01-12 Thread Eric Butera
On Mon, Jan 12, 2009 at 4:17 PM, Robert Cummings rob...@interjinn.com wrote: On Mon, 2009-01-12 at 16:02 -0500, tedd wrote: True, css does not allow numeric classes (like sessions). But, I never need them anyway. As I provided before: http://webbytedd.com/b/color-rows/ this is my

[PHP] Re: Php and CSS where to put it

2009-01-12 Thread tedd
At 7:38 PM +0100 1/12/09, Michelle Konzack wrote: Hello Terion, Am 2009-01-12 10:42:10, schrieb Terion Miller: I have this code and the css seems to not work in IE at all, do I need to put it somewhere different on the page maybe? The CSS must be in the HTML Header like html head

Re: [PHP] Couple of beginner questions

2009-01-12 Thread Ashley Sheridan
On Mon, 2009-01-12 at 16:17 -0500, Robert Cummings wrote: On Mon, 2009-01-12 at 16:02 -0500, tedd wrote: True, css does not allow numeric classes (like sessions). But, I never need them anyway. As I provided before: http://webbytedd.com/b/color-rows/ this is my solution for

Re: [PHP] variable probe revision

2009-01-12 Thread Ashley Sheridan
On Mon, 2009-01-12 at 16:11 -0500, Frank Stanovcak wrote: I posted this once before, and then tried to use it multiple times in a script. As you can guess I got a bunch of func already defined errors. Here is a revision incase anyone decided to use it that will work multiple times in the

Re: [PHP] Couple of beginner questions

2009-01-12 Thread Nathan Rixham
Robert Cummings wrote: On Mon, 2009-01-12 at 16:02 -0500, tedd wrote: True, css does not allow numeric classes (like sessions). But, I never need them anyway. As I provided before: http://webbytedd.com/b/color-rows/ this is my solution for alternating row style. tr class=row?php echo($i++

Re: [PHP] switch vs elseif

2009-01-12 Thread tedd
At 3:15 PM -0500 1/12/09, Frank Stanovcak wrote: I've googled, and found some confusing answers. I've tried searching the history of the news group, and only found info on switch or elseif seperately. :( Strictly from a performance stand point, not preference or anything else, is there a

Re: [PHP] Couple of beginner questions

2009-01-12 Thread Robert Cummings
On Mon, 2009-01-12 at 16:26 -0500, Eric Butera wrote: On Mon, Jan 12, 2009 at 4:17 PM, Robert Cummings tr class=row?php echo( $i ^= 1 );? td abc/td td abc/td td abc/td /tr Cheers, Rob. -- http://www.interjinn.com Application and Templating Framework for PHP

Re: [PHP] Re: Php and CSS where to put it

2009-01-12 Thread Robert Cummings
On Mon, 2009-01-12 at 16:27 -0500, tedd wrote: At 7:38 PM +0100 1/12/09, Michelle Konzack wrote: Hello Terion, Am 2009-01-12 10:42:10, schrieb Terion Miller: I have this code and the css seems to not work in IE at all, do I need to put it somewhere different on the page maybe? The

Re: [PHP] Couple of beginner questions

2009-01-12 Thread Robert Cummings
On Mon, 2009-01-12 at 21:36 +, Nathan Rixham wrote: Robert Cummings wrote: On Mon, 2009-01-12 at 16:02 -0500, tedd wrote: True, css does not allow numeric classes (like sessions). But, I never need them anyway. As I provided before: http://webbytedd.com/b/color-rows/ this

Re: [PHP] Couple of beginner questions

2009-01-12 Thread Nathan Rixham
Robert Cummings wrote: On Mon, 2009-01-12 at 21:36 +, Nathan Rixham wrote: Robert Cummings wrote: On Mon, 2009-01-12 at 16:02 -0500, tedd wrote: True, css does not allow numeric classes (like sessions). But, I never need them anyway. As I provided before:

Re: [PHP] Couple of beginner questions

2009-01-12 Thread Robert Cummings
On Mon, 2009-01-12 at 21:45 +, Nathan Rixham wrote: Robert Cummings wrote: On Mon, 2009-01-12 at 21:36 +, Nathan Rixham wrote: Robert Cummings wrote: On Mon, 2009-01-12 at 16:02 -0500, tedd wrote: True, css does not allow numeric classes (like sessions). But,

  1   2   >