Re: [PHP] Upgrade to PHP5 and having issues with mysql

2008-01-21 Thread Robert Cummings
On Mon, 2008-01-21 at 18:01 -0500, Tom Ray [Lists] wrote: > Hey- > > I'm trying to install PHP5 with mysql support and I keep running into > the same problem over and over again. I run the configuration with this: > --with-mysql=/usr/local/mysql and without fail I get this every time: > > ext/m

Re: [PHP] forms class

2008-01-21 Thread Robert Cummings
On Mon, 2008-01-21 at 23:15 -0500, nihilism machine wrote: > Why isnt this cleaning my form $_POST's > > class forms { > > var $UserInputClean; > > // Forms to variables > function forms() { > if (count($_POST) > 0) { > foreach($_POST

Re: [PHP] form cleaning class

2008-01-21 Thread Robert Cummings
On Mon, 2008-01-21 at 23:39 -0500, nihilism machine wrote: > now my debug shows that with the following code, all of the > $_POST['whatever'] values are blank. > > > class forms { > > var $UserInput; > > // Forms to variables > function forms() { > if (c

Re: [PHP] Tool for programmer team

2008-01-22 Thread Robert Cummings
On Tue, 2008-01-22 at 08:52 +0100, Sándor Tamás (HostWare Kft.) wrote: > It depends. If the project built up of slightly different modules, putting > the coders on a big, white table seems to be a good idea. But if the modules > are completely different, you should separate them, so each of them

Re: [PHP] scandir() in automount/autofs

2008-01-22 Thread Robert Cummings
On Tue, 2008-01-22 at 09:10 +0100, Zoltán Németh wrote: > 2008. 01. 21, hétfő keltezéssel 20.23-kor shiplu ezt írta: > > I configured autofs in my fedora so that when I plug any usb stick in > > /dev/sda1 it automatically mounts in /mnt/auto/usb0 > > > > There is two lines where the problem arise

Re: [PHP] scandir() in automount/autofs

2008-01-22 Thread Robert Cummings
On Tue, 2008-01-22 at 09:20 +0100, Zoltán Németh wrote: > 2008. 01. 22, kedd keltezéssel 03.15-kor Robert Cummings ezt írta: > > On Tue, 2008-01-22 at 09:10 +0100, Zoltán Németh wrote: > > > 2008. 01. 21, hétfő keltezéssel 20.23-kor shiplu ezt írta: > > > > I con

Re: [PHP] Upgrade to PHP5 and having issues with mysql

2008-01-22 Thread Robert Cummings
On Tue, 2008-01-22 at 12:42 -0500, Tom Ray [Lists] wrote: > Robert Cummings wrote: > > On Mon, 2008-01-21 at 18:01 -0500, Tom Ray [Lists] wrote: > > > >> Hey- > >> > >> I'm trying to install PHP5 with mysql support and I keep running into >

Re: [PHP] Upgrade to PHP5 and having issues with mysql

2008-01-22 Thread Robert Cummings
On Tue, 2008-01-22 at 16:47 -0500, Tom Ray [Lists] wrote: > > > > This is how I setup mysql: > #upgrades: cd mysql > tar -zxf mysql-version-x.tar.gz > cp -R * /usr/local/mysql > cd /usr/local/mysql > chown -R mysql:mysql * > scripts/mysql_install_db --user=mysql > /usr/local/mysql/bin/mysqld_sa

Re: [PHP] password hashing and crypt()

2008-01-22 Thread Robert Cummings
On Wed, 2008-01-23 at 00:40 -0500, Nathan Nobbe wrote: > alright, so you guys have responded and im really appreciative. > you have me thinking now.. > so what are the real issues here? > >1. portability >2. security (obviously) > > im wondering now if crypt() is really even so practical

Re: [PHP] String Issue

2008-01-23 Thread Robert Cummings
On Wed, 2008-01-23 at 23:30 -0600, Johny Burns wrote: > I have the following string on the address line > > HTMLFiles/MenuDisplay.php?var=Thai%20Image&Item=1797&Action=add > > I am trying to delete or replace the '&Item=1797&Action=add' (it is at the > end of the string) > > I am not familiar

Re: [PHP] Posting Summary for Week Ending 25 January, 2008: php-general@lists.php.net

2008-01-24 Thread Robert Cummings
On Thu, 2008-01-24 at 09:10 +0100, Zoltán Németh wrote: > 2008. 01. 24, csütörtök keltezéssel 02.45-kor Wolf ezt írta: > > Jochem Maas wrote: > > > > > > Posting Summary for PHP-General List > > > Week Ending: Friday, 25 January, 2008 > > > > > > Messages| Bytes | S

Re: [PHP] are email address could be spammed

2008-01-24 Thread Robert Cummings
On Thu, 2008-01-24 at 10:42 -0500, Eric Butera wrote: > On Jan 24, 2008 10:36 AM, Nathan Nobbe <[EMAIL PROTECTED]> wrote: > > On Jan 24, 2008 10:26 AM, Jochem Maas <[EMAIL PROTECTED]> wrote: > > > > > like a charm for the marketing, ad-shovelling sales whores at google you. > > > > > > i dont know

Re: [PHP] Rename

2008-01-24 Thread Robert Cummings
On Thu, 2008-01-24 at 16:18 -0500, Al wrote: > First get an array of all the files, e.g., That's useful for debugging, but once you know what you're doing, it's a waste of resources to accumulate the array unless you have a good reason for doing so :) Cheers, Rob. -- ...

Re: [PHP] Rename

2008-01-24 Thread Robert Cummings
On Thu, 2008-01-24 at 18:05 -0500, Al wrote: > You obviously missed my last sentence. "Once you get this working, you can > put > the rename() in the first foreach() loop. Don't forget to take care of > exceptions. " Yep, sorry :) Cheers, Rob. -- ...

Re: [PHP] Posting Summary for Week Ending 25 January, 2008: php-general@lists.php.net

2008-01-24 Thread Robert Cummings
On Thu, 2008-01-24 at 23:11 -0500, Wolf wrote: > Jay Blanchard wrote: > > [snip] > >> Dude, I laughed so loud that it echoed in the halls of the > >> Engineering Wing over here. What makes it so funny? That it's not > >> much of an exaggeration! ;-D > >> > > > > very glad to raise a laugh :

Re: [PHP] Printing Question

2008-01-26 Thread Robert Cummings
On Sat, 2008-01-26 at 15:19 +0100, Floor Terra wrote: > On Jan 26, 2008 1:03 PM, Peter Jackson <[EMAIL PROTECTED]> wrote: > > > Whats the best way to do formatted printing via php? > > You could try PDFlib(). > Draw your reports to landscape formated pdf's and print them. > > > Oh and I'm aimin

Re: [PHP] htmlentities() does not remove escape

2008-01-27 Thread Robert Cummings
On Sun, 2008-01-27 at 10:27 -0800, jekillen wrote: > Hello: > I have a form that has a textarea and I do not want to > disallow the use of single quote as apostrophe, or > for any other normal stylization. So I am using html > entities to change these characters into html entities. > But the funct

Re: [PHP] Framed & Linked Content

2008-01-29 Thread Robert Cummings
On Tue, 2008-01-29 at 11:12 -0500, Jason Pruim wrote: > On Jan 29, 2008, at 10:58 AM, Robert Cummings wrote: > > > > > On Tue, 2008-01-29 at 10:21 -0500, Mike Potter wrote: > >> There is JavaScript out there, to make a page break out of frames if > >> some

Re: [PHP] Framed & Linked Content

2008-01-29 Thread Robert Cummings
On Tue, 2008-01-29 at 10:21 -0500, Mike Potter wrote: > There is JavaScript out there, to make a page break out of frames if > someone else has your page in a frame of theirs. > Is it possible to do this with PHP or is that the wrong side of > Server/Client-side operations? PHP can echo the JavaS

Re: [PHP] Re: disable referer ? (was: Framed & Linked Content)

2008-01-29 Thread Robert Cummings
On Tue, 2008-01-29 at 17:55 +0100, Per Jessen wrote: > Robert Cummings wrote: > > > Referer value is completely worthless. Many people completely disable > > it-- such as myself :) > > But most people probably don't - 'coz most don't know how to edit e

Re: [PHP] Framed & Linked Content

2008-01-29 Thread Robert Cummings
On Tue, 2008-01-29 at 17:50 +0100, Per Jessen wrote: > Robert Cummings wrote: > > > > > On Tue, 2008-01-29 at 17:32 +0100, Per Jessen wrote: > >> Robert Cummings wrote: > >> > >> > The only remedy agaonst remote linking is to embed some kind of

Re: [PHP] Re: disable referer ? (was: Framed & Linked Content)

2008-01-29 Thread Robert Cummings
On Tue, 2008-01-29 at 13:01 -0500, Robert Cummings wrote: > On Tue, 2008-01-29 at 17:55 +0100, Per Jessen wrote: > > Robert Cummings wrote: > > > > > Referer value is completely worthless. Many people completely disable > > > it-- such as myself :) > > &g

Re: [PHP] Framed & Linked Content

2008-01-29 Thread Robert Cummings
On Tue, 2008-01-29 at 17:32 +0100, Per Jessen wrote: > Robert Cummings wrote: > > > The only remedy agaonst remote linking is to embed some kind of > > expiration in the link that accesses the document. > > Wouldn't a check of the REFERER field be enough to dis

Re: [PHP] Re: disable referer ? (was: Framed & Linked Content)

2008-01-29 Thread Robert Cummings
On Tue, 2008-01-29 at 19:48 +0100, Per Jessen wrote: > Robert Cummings wrote: > > > Actually, now you made me think on it... the primary reason I disable > > referrer logging is because it will also pass along lovely information > > such as any session ID embedded in the

Re: [PHP] PEAR website and MSIE 6

2008-01-31 Thread Robert Cummings
On Thu, 2008-01-31 at 14:35 +, Richard Heyes wrote: > > firefox not an option? > > Nope. > > > or anything else that resembles a proper browser ;-) > > Strange, IE has been working fine for me for the last eight years... I can see your point. If all you know is subpar then subpar works fi

Re: [PHP] PEAR website and MSIE 6

2008-01-31 Thread Robert Cummings
On Thu, 2008-01-31 at 17:14 +0100, Jochem Maas wrote: > let's not forget that nobody outside of IT actually uses Opera Please back up that st-ass-tistic please. Methinks you reached around and pulled it out of your lightless nether regions. Cheers, Rob. -- .-

Re: [PHP] PEAR website and MSIE 6

2008-01-31 Thread Robert Cummings
On Thu, 2008-01-31 at 18:02 +0100, Jochem Maas wrote: > Robert Cummings schreef: > > On Thu, 2008-01-31 at 17:14 +0100, Jochem Maas wrote: > >> let's not forget that nobody outside of IT actually uses Opera > > > > Please back up that st-ass-tistic please.

Re: [PHP] PEAR website and MSIE 6

2008-01-31 Thread Robert Cummings
On Thu, 2008-01-31 at 18:18 +0100, Jochem Maas wrote: > Eric Butera schreef: > > On Jan 31, 2008 12:02 PM, Jochem Maas <[EMAIL PROTECTED]> wrote: > >> Robert Cummings schreef: > >>> On Thu, 2008-01-31 at 17:14 +0100, Jochem Maas wrote: > >>>>

Re: [PHP] PEAR website and MSIE 6

2008-01-31 Thread Robert Cummings
On Thu, 2008-01-31 at 18:42 +0100, Jochem Maas wrote: > Nathan Nobbe schreef: > > i like opera for 4 reasons, > > 1. it renders fast > > 2. when i have 50 tabs open, its still responsive > > 3. it supports ctrl+z, wicked feature :> > > undo? undo what? What you just typed into a form, or erased

Re: [PHP] PEAR website and MSIE 6

2008-01-31 Thread Robert Cummings
On Thu, 2008-01-31 at 12:25 -0500, Eric Butera wrote: > On Jan 31, 2008 12:16 PM, Jochem Maas <[EMAIL PROTECTED]> wrote: > > you didn't state anything of the sort until just then. > > and you do realise that Acid2 is not actually a standard AND that there > > are plenty of differences of opinion r

Re: [PHP] PEAR website and MSIE 6

2008-01-31 Thread Robert Cummings
On Thu, 2008-01-31 at 19:06 +0100, Jochem Maas wrote: > Robert Cummings schreef: > > On Thu, 2008-01-31 at 18:02 +0100, Jochem Maas wrote: > > ... > > > Would you believe me if I said I wasn't in IT? ;) My wife isn't in IT, > > but she uses Opera regula

Re: [PHP] PEAR website and MSIE 6

2008-01-31 Thread Robert Cummings
On Thu, 2008-01-31 at 19:03 +0100, Jochem Maas wrote: > Robert Cummings schreef: > > On Thu, 2008-01-31 at 18:42 +0100, Jochem Maas wrote: > >> Nathan Nobbe schreef: > >>> i like opera for 4 reasons, > >>> 1. it renders fast > >>> 2. when

Re: [PHP] Re: disable referer ? (was: Framed & Linked Content)

2008-01-31 Thread Robert Cummings
On Thu, 2008-01-31 at 20:24 +0100, Per Jessen wrote: > Richard Lynch wrote: > > >>> It CANNOT be tied to the IP address, because most users' IP > >>> addresses are not static. > >> > >> I think it is for the duration of the session. Mine certainly is. > > > > Yours might be. > > AOL users are *NO

Re: [PHP] Re: disable referer ? (was: Framed & Linked Content)

2008-01-31 Thread Robert Cummings
On Thu, 2008-01-31 at 20:49 +0100, Per Jessen wrote: > Robert Cummings wrote: > > > Information leakage is a security issue. IMHO referer logging should > > need to be turned on, not off. > > Rob, I appreciate your opinion, but like I said - when Firefox (or MSIE) &

Re: [PHP] Re: disable referer ? (was: Framed & Linked Content)

2008-01-31 Thread Robert Cummings
On Thu, 2008-01-31 at 15:10 -0500, Robert Cummings wrote: > On Thu, 2008-01-31 at 20:49 +0100, Per Jessen wrote: > > Robert Cummings wrote: > > > > > Information leakage is a security issue. IMHO referer logging should > > > need to be turned on, not off. > &

Re: [PHP] Re: disable referer ? (was: Framed & Linked Content)

2008-01-31 Thread Robert Cummings
On Thu, 2008-01-31 at 21:32 +0100, Per Jessen wrote: > Robert Cummings wrote: > > > On Thu, 2008-01-31 at 15:10 -0500, Robert Cummings wrote: > >> On Thu, 2008-01-31 at 20:49 +0100, Per Jessen wrote: > >> > Robert Cummings wrote: > >> > > >

Re: [PHP] Re: disable referer ? (was: Framed & Linked Content)

2008-01-31 Thread Robert Cummings
On Thu, 2008-01-31 at 22:36 +0100, Per Jessen wrote: > Robert Cummings wrote: > > Anyway, thanks for some interesting points, Rob - I like an intelligent > response. Quoting the HTTP spec to me was good - I'll have to be a > little wary of you in the future :-) I was just pa

Re: [PHP] mysqli_embedded_server_start

2008-02-01 Thread Robert Cummings
On Fri, 2008-02-01 at 09:13 +0100, Per Jessen wrote: > Kyohere Luke wrote: > > > Has anyone tried to use this function? Does php actually support mysql > > embedded server or is this just a stub for future use? I'm trying to > > convert a mysql-based web app to a desktop app and rather than > > r

Re: [PHP] PEAR website and MSIE 6

2008-02-01 Thread Robert Cummings
On Fri, 2008-02-01 at 10:11 +0100, Zoltán Németh wrote: > 2008. 01. 31, csütörtök keltezéssel 12.47-kor Robert Cummings ezt írta: > > On Thu, 2008-01-31 at 18:18 +0100, Jochem Maas wrote: > > > Eric Butera schreef: > > > > On Jan 31, 2008 12:02 PM, Jochem

Re: [PHP] php competion

2008-02-03 Thread Robert Cummings
On Sun, 2008-02-03 at 18:15 +0200, Paul Scott wrote: > On Sun, 2008-02-03 at 20:10 +1100, doc wrote: > > come on people try you skills at > > > > http://www.rhwebhosting.com/comp/index.php > > Reworded as: > > Redesign our complete web presence and give us a couple of apps that we can > flog

Re: [PHP] php competion

2008-02-03 Thread Robert Cummings
On Sun, 2008-02-03 at 20:48 -0600, Richard Lynch wrote: > > On Sun, February 3, 2008 11:51 am, Robert Cummings wrote: > > > > On Sun, 2008-02-03 at 18:15 +0200, Paul Scott wrote: > >> On Sun, 2008-02-03 at 20:10 +1100, doc wrote: > >> > come on peop

Re: [PHP] Effecient mass mailings

2008-02-04 Thread Robert Fitzpatrick
is a private > thing, > make them log in. Thanks Jim and Daniel. Not sure why I was stuck on duplicating the existing apps efforts :/ I talked to my client and this it the way we're going... -- Robert -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Effecient mass mailings

2008-02-04 Thread Robert Fitzpatrick
inters at how I may want to approach such mass mailings? Thanks in advance! -- Robert -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: New search related question

2008-02-04 Thread Robert Cummings
and the grep. Then the only major diff is the > maintainability, which the grep wins. > > -Shawn > > Robert Cummings wrote: > > On Mon, 2008-02-04 at 14:13 -0600, Shawn McKenzie wrote: > >> If there aren't many files and you don't intend to grow this site much >

Re: [PHP] Re: New search related question

2008-02-04 Thread Robert Cummings
On Mon, 2008-02-04 at 14:13 -0600, Shawn McKenzie wrote: > If there aren't many files and you don't intend to grow this site much > larger and intend to always have static HTML, any easy implementation > would be to read each file and search for the terms either in the > keywords tag or in the ent

Re: [PHP] php competion

2008-02-04 Thread Robert Cummings
On Mon, 2008-02-04 at 15:26 -0600, Shawn McKenzie wrote: > I hardly think this one is a scam, I mean all you have to do is write a > PHP app that converts between PHP, Python, C and Perl and you get: > "not only bragging rights will come your way, but it will sure look good > on your resume"! > >

RE: [PHP] php competion

2008-02-04 Thread Robert Cummings
gt; Sent: Monday, February 04, 2008 5:32 PM > > To: php-general@lists.php.net > > Subject: Re: [PHP] php competion > > > > And a newer adage, maybe from grade school, "takes one to know one". :-) > > > > Robert Cummings wrote: > > > On Mon, 2008-

Re: [PHP] PHP setup

2008-02-07 Thread Robert Cummings
On Thu, 2008-02-07 at 09:52 -0500, Nathan Nobbe wrote: > On Feb 7, 2008 8:47 AM, Dare Williams <[EMAIL PROTECTED]> wrote: > > > WAMP means WINDOWS(os) - APACHE(webserver) - MYSQL(db) - PHP(platform). > > > you know if youre running iis and mysql or mssql, its actually called the > WIMP stack ;)

Re: [PHP] Name of variable to string [SOLVED]

2008-02-08 Thread Robert Cummings
On Fri, 2008-02-08 at 16:51 -0500, tedd wrote: > At 10:42 PM +0100 2/8/08, Jochem Maas wrote: > >$post_var = @sessionize_post('post_var'); > > > >so why exactly is that not an option (or good idea)? > > It IS an option -- and that's what I was doing (except for the > suppress error) via this: >

Re: [PHP] Better DB Class MySQL

2008-02-09 Thread Robert Cummings
On Sat, 2008-02-09 at 18:39 -0600, Larry Garfield wrote: > http://www.php.net/pdo > > All the cool kids are doing it. I always told the cool kids to kiss my buttocks. You too can set yourself apart from the sheeple >:) Cheers, Rob. -- .--

Re: [PHP] urgent !!! Please Help preg_replace !!!!!!!!!!!!!!!!!!!!!

2008-02-09 Thread Robert Cummings
On Sun, 2008-02-10 at 14:33 +0800, LKSunny wrote: > //please run this script, you can get what problem i got > > $html = << aaa > > cfdfd > > sfs > sfsrbbb > sfds > > cc > gd > c > > ddd > 123 > eof; > > /* > i want replace any ||, like > cfdfd > > sfs > sfsrbbb > sfds > */ > '##Uims',

Re: [PHP] urgent !!! Please Help preg_replace !!!!!!!!!!!!!!!!!!!!!

2008-02-10 Thread Robert Cummings
. a side note of how much time you wasted would be most informative too. Cheers, Rob. > "Robert Cummings" <[EMAIL PROTECTED]> glsD:[EMAIL PROTECTED] > > > > On Sun, 2008-02-10 at 14:33 +0800, LKSunny wrote: > >> //please run this script, you can get wha

Re: [PHP] urgent !!! Please Help preg_replace !!!!!!!!!!!!!!!!!!!!!

2008-02-10 Thread Robert Cummings
On Sun, 2008-02-10 at 12:55 -0500, tedd wrote: > At 12:38 PM -0500 2/10/08, Robert Cummings wrote: > >On Sun, 2008-02-10 at 16:46 +0800, LKSunny wrote: > > > this i know already, but i think can do it single regex > > > >Considering you marked the email as u

[PHP] Trouble with PHP server script

2008-02-10 Thread Robert Cox
Is it possible to use the "$_SERVER['PHP_AUTH_USER'];" construct in a URL forwarded site? I am trying to find the authorised user id so that I can access an SQL database with it. Anyone got some ideas? PHP looks like this

Re: [PHP] urgent !!! Please Help preg_replace !!!!!!!!!!!!!!!!!!!!!

2008-02-10 Thread Robert Cummings
On Mon, 2008-02-11 at 13:42 +0900, Michael Moyle wrote: > Rob, > > > > $reps = array > > ( > > array > > ( > > 'match' => '##Uims', > > Can you explain what the 'U' from #Uims does? Does it have to do with > Unicode? I can't find it anywhere (preg_match doc, man perlre, man >

Re: [PHP] Template system in PHP

2008-02-12 Thread Robert Cummings
On Tue, 2008-02-12 at 14:22 -0600, Shawn McKenzie wrote: > Ryan A wrote: > > Add my vote too for Smarty > > > > HTH, > > -R > > > > > > > > > > > > Looking for last minute shopping deals? > > Fin

Re: [PHP] Template system in PHP

2008-02-12 Thread Robert Cummings
On Tue, 2008-02-12 at 15:02 -0600, Greg Donald wrote: > On Feb 12, 2008 2:57 PM, Robert Cummings <[EMAIL PROTECTED]> wrote: > > I prefer content formatting encapsulation as provided by custom tags. > > Decorators? Custom tags (XML style ones anyways) provide support for a

Re: [PHP] Template system in PHP

2008-02-12 Thread Robert Cummings
On Tue, 2008-02-12 at 16:37 -0500, Nathan Nobbe wrote: > On Feb 12, 2008 4:18 PM, Greg Donald <[EMAIL PROTECTED]> wrote: > > > On Feb 12, 2008 3:15 PM, Robert Cummings <[EMAIL PROTECTED]> wrote: > > > Custom tags (XML style ones anyways) provide support for arbi

Re: [PHP] Template system in PHP

2008-02-12 Thread Robert Cummings
On Tue, 2008-02-12 at 21:19 +, Nathan Rixham wrote: > Are you creating custom DTD's or 1.1 XHTML Mods then? I'd like to see > that, it's something I'd toyed with a few times in the past but found it > far too time consuming (even for me), and opted for the ol' redefine > everything in CSS >

Re: [PHP] Template system in PHP

2008-02-12 Thread Robert Cummings
On Tue, 2008-02-12 at 15:18 -0600, Greg Donald wrote: > On Feb 12, 2008 3:15 PM, Robert Cummings <[EMAIL PROTECTED]> wrote: > > Custom tags (XML style ones anyways) provide support for arbitrary > > ordering and omission of optional attributes. They nest nicer than > &g

Re: [PHP] Template system in PHP

2008-02-13 Thread Robert Cummings
On Wed, 2008-02-13 at 11:26 +, Richard Heyes wrote: > > ... > > You won't find many solutions (if any) faster than require(). Mine is faster. Compiling to the requested page removes cache overhead and file access overhead since the content is already p

RE: [PHP] Template system in PHP

2008-02-13 Thread Robert Cummings
On Thu, 2008-02-14 at 08:58 +0400, Xavier de Lapeyre wrote: > Sounds interesting... > Are your XML predefined or generated on the run? From say a DB? >From a compiler script that extends a base tag class... all it needs to do is register the tag namespace, tag name, and the function that will han

Re: [PHP] Static variable in a class method

2008-02-14 Thread Robert Cummings
On Thu, 2008-02-14 at 15:21 -0500, Eric Butera wrote: > On Thu, Feb 14, 2008 at 3:07 PM, Richard Lynch <[EMAIL PROTECTED]> wrote: > > On Thu, February 14, 2008 11:10 am, Eric Butera wrote: > > > Just FYI the static keyword was quite popular in PHP4 for the > > > singleton pattern. You could do

Re: [PHP] question about database field-types and special characters

2008-02-14 Thread Robert Cummings
On Thu, 2008-02-14 at 18:47 -0800, Rob Gould wrote: > I've got a PHP application that pulls in data from a mySQL database. The > data is a series of wine producers, and many of them have special foreign > characters over the a's and o's. > > When I go and view the data from my database using

Re: [PHP] question about database field-types and special characters

2008-02-14 Thread Robert Cummings
On Thu, 2008-02-14 at 23:59 -0500, Robert Cummings wrote: > On Thu, 2008-02-14 at 18:47 -0800, Rob Gould wrote: > > I've got a PHP application that pulls in data from a mySQL database. The > > data is a series of wine producers, and many of them have special foreign > &g

Re: [PHP] https forced redirect question

2008-02-15 Thread Robert Cummings
On Fri, 2008-02-15 at 14:58 -0500, nihilism machine wrote: > why isnt this redirecting my page to https://www.mydomain.com instead > the page stays at my domain.com > > class URL { > > // Public Variables > public $HTTPS; > public $ServerName; > public $WWW; > >

Re: [PHP] https forced redirect question

2008-02-15 Thread Robert Cummings
On Fri, 2008-02-15 at 15:05 -0500, Robert Cummings wrote: > On Fri, 2008-02-15 at 14:58 -0500, nihilism machine wrote: > > why isnt this redirecting my page to https://www.mydomain.com instead > > the page stays at my domain.com > > > > > class URL { &g

Re: [PHP] Converting tab delimited file to CSV

2008-02-18 Thread Robert Cummings
On Mon, 2008-02-18 at 05:20 -0800, Hiep Nguyen wrote: > On Mon, 18 Feb 2008, Graham Cossey wrote: > > > I was wondering if someone could offer some advice please. > > > > I'm being sent data in tab delimited files which I'm trying to split > > into smaller files and convert to comma delimited usi

Re: [PHP] Converting tab delimited file to CSV

2008-02-18 Thread Robert Cummings
On Mon, 2008-02-18 at 13:24 -0500, Andrew Ballard wrote: > On Feb 18, 2008 1:08 PM, Graham Cossey <[EMAIL PROTECTED]> wrote: > > > My biggest gripe with tab delimited files is > > that they are quite a bit bigger than comma delimited files so I may > > have to split the large files I receive into

Re: [PHP] More than one values returned?

2008-02-18 Thread Robert Cummings
On Mon, 2008-02-18 at 18:06 -0800, Nick Stinemates wrote: > C.R.Vegelin wrote: > > > $in = 4; > > calcpows($in, $pow2, $pow4); > > echo "in = $in pow2=$pow2 pow4=$pow4"; > > > > // define return fields as &$... > > function calcpows($in, &$pow2, &$pow4) > > { > > $pow2 = $in * $in; > > $pow4

Re: [PHP] More than one values returned?

2008-02-18 Thread Robert Cummings
On Mon, 2008-02-18 at 18:29 -0800, Nick Stinemates wrote: > Robert Cummings wrote: > > On Mon, 2008-02-18 at 18:06 -0800, Nick Stinemates wrote: > > > >> C.R.Vegelin wrote: > >> > >>> >>> $in = 4; > >>> calcp

Re: [PHP] More than one values returned?

2008-02-18 Thread Robert Cummings
On Mon, 2008-02-18 at 21:09 -0600, Larry Garfield wrote: > On Monday 18 February 2008, Nick Stinemates wrote: > > > >> I have found, however, that if I ever need to return /multiple/ values, > > >> it's usually because of bad design and/or the lack of proper > > >> encapsulation. > > > > > > You

Re: [PHP] mysql input

2008-02-18 Thread Robert Cummings
On Mon, 2008-02-18 at 23:05 -0500, nihilism machine wrote: > I have a user saving a VARCHAR(255) field in a mysql db which has > single quotes in the text, how can i replace them so that they dont > fuck up my mysql command? mysql_real_escape_string() Cheers, Rob. -- .--

RE: [PHP] mysql input

2008-02-18 Thread Robert Cummings
On Mon, 2008-02-18 at 23:19 -0500, Bastien Koert wrote: > mysql_real_escape_string() > addslashes() > htmlentities() > > take your pick That's a bad answer. If he's using MySQL then he SHOULD use mysql_real_escape_string(). None of the other functions will fully protect him from malicious input

Re: [PHP] More than one values returned?

2008-02-19 Thread Robert Cummings
On Tue, 2008-02-19 at 21:24 -0800, Nick Stinemates wrote: > > I said, simply, returning an array of objects was usually an indication > of poor design. Please elaborate as to the "why" of it being an indication of poor design. Cheers, Rob. -- .---

Re: [PHP] More than one values returned?

2008-02-19 Thread Robert Cummings
On Tue, 2008-02-19 at 21:51 -0800, Nick Stinemates wrote: > Robert Cummings wrote: > > On Tue, 2008-02-19 at 21:24 -0800, Nick Stinemates wrote: > > > >> I said, simply, returning an array of objects was usually an indication > >> of poor design. > >&g

Re: [PHP] More than one values returned?

2008-02-19 Thread Robert Cummings
On Tue, 2008-02-19 at 22:26 -0800, Nick Stinemates wrote: > Robert Cummings wrote: > > On Tue, 2008-02-19 at 21:51 -0800, Nick Stinemates wrote: > > > >> Robert Cummings wrote: > >> > >>> On Tue, 2008-02-19 at 21:24 -0800, Nick Stinemates wrote

Re: [PHP] www. not working

2008-02-20 Thread Robert Cummings
On Wed, 2008-02-20 at 17:07 +, Stut wrote: > Richard Heyes wrote: > >> "A form" of the web existing long before that depending on your > >> definition of the web. To me it's a way for people to share > >> information. That would cover the BBS world which pre-dates LANs by > >> some distance

Re: [PHP] Re: temporary error

2008-02-21 Thread Robert Cummings
On Thu, 2008-02-21 at 09:35 -0600, Shawn McKenzie wrote: > Mirco Soderi wrote: > > In my opinion, variable names are a personal choice, I think the time > > you loose when writing the name (about a second is long less than the > > time you gain when, months later, you go and modify the code and you

Re: [PHP] All Survey leading to PHP

2008-02-22 Thread Robert Cummings
On Fri, 2008-02-22 at 09:33 -0500, tedd wrote: > At 3:43 AM +0530 2/22/08, Allan Fernandes wrote: > >I am aware that reverse engineering can be done to every program, and no one > >may bother to really take too much trouble to reverse engineer it. All the > >same I do not want it to be as simple a

Re: [PHP] Re: temporary error

2008-02-22 Thread Robert Cummings
On Fri, 2008-02-22 at 09:49 -0500, tedd wrote: > >If you wan to shorten a bit you can use a constant as the counter > >increment like so: > > > >define('Increment_Super_Cala_Fraga_Listic_Ex_Peal_Ado_Tio_Us_Counter', 1); > > > >$Super_Cala_Fraga_Listic_Ex_Peal_Ado_Tio_Us_Counter = > >$Super_Cala_Fr

Re: [PHP] All Survey leading to PHP

2008-02-22 Thread Robert Cummings
On Fri, 2008-02-22 at 09:57 -0500, tedd wrote: > >> > >> So, my advice -- write good code, pick up your check, and move one to > >> the next client. Stop worrying about protecting your code and hope > >> that you get good enough that someone wants to steal it. > > > >BAD IDEA BUSTER!!! Always b

Re: [PHP] All Survey leading to PHP

2008-02-22 Thread Robert Cummings
On Fri, 2008-02-22 at 15:49 +, Nathan Rixham wrote: > One further point: > I develop on a windows server 2003 machine I think Mr. T. said it best... "I pity da fool!" Cheers, Rob. -- .. | InterJinn Application Framework - http://ww

Re: [PHP] More than one values returned?

2008-02-22 Thread Robert Cummings
On Fri, 2008-02-22 at 09:50 -0600, Greg Donald wrote: > On 2/21/08, Nick Stinemates <[EMAIL PROTECTED]> wrote: > > I'm glad you're literate enough to understand what *indication* and > > *usually* mean. > > I know perfectly well what they mean, both words in fact. > > What I, and many others I c

Re: [PHP] All Survey leading to PHP

2008-02-22 Thread Robert Cummings
On Fri, 2008-02-22 at 10:01 -0500, Daniel Brown wrote: > On Fri, Feb 22, 2008 at 9:42 AM, Robert Cummings <[EMAIL PROTECTED]> wrote: > > BAD IDEA BUSTER!!! Always backup your code so it's protected from > > crashes!! > > And here, I thought that backups w

Re: [PHP] All Survey leading to PHP

2008-02-22 Thread Robert Cummings
On Fri, 2008-02-22 at 16:04 +, Nathan Rixham wrote: > Robert Cummings wrote: > > On Fri, 2008-02-22 at 15:49 +, Nathan Rixham wrote: > >> One further point: > >> I develop on a windows server 2003 machine > > > > I think Mr. T. said it best... &qu

Re: [PHP] More than one values returned?

2008-02-22 Thread Robert Cummings
On Fri, 2008-02-22 at 13:09 -0500, tedd wrote: > At 9:50 AM -0600 2/22/08, Greg Donald wrote: > >On 2/21/08, Nick Stinemates <[EMAIL PROTECTED]> wrote: > >-snip- for no importance > > > >I am indeed waiting, where's your code? When, and under what > >circumstances exactly, is getting back an arra

Re: [PHP] More than one values returned?

2008-02-22 Thread Robert Cummings
On Fri, 2008-02-22 at 15:11 -0500, Daniel Brown wrote: > On Fri, Feb 22, 2008 at 3:05 PM, Robert Cummings <[EMAIL PROTECTED]> wrote: > > I for 1 think you're full of it :) > > Don't be a 0. ;-P

Re: [PHP] More than one values returned?

2008-02-22 Thread Robert Cummings
On Fri, 2008-02-22 at 15:29 -0500, Daniel Brown wrote: > On Fri, Feb 22, 2008 at 3:27 PM, Robert Cummings <[EMAIL PROTECTED]> wrote: > > > > On Fri, 2008-02-22 at 15:11 -0500, Daniel Brown wrote: > > > On Fri, Feb 22, 2008 at 3:05 PM, Robert Cummings <[EMAIL PR

Re: [PHP] More than one values returned?

2008-02-22 Thread Robert Cummings
On Fri, 2008-02-22 at 15:36 -0500, Daniel Brown wrote: > On Fri, Feb 22, 2008 at 3:36 PM, Robert Cummings <[EMAIL PROTECTED]> wrote: > > > > On Fri, 2008-02-22 at 15:11 -0500, Daniel Brown wrote: > > > And I'm an L7. > > > > With 0 percent su

Re: [PHP] Re: temporary error

2008-02-22 Thread Robert Cummings
On Fri, 2008-02-22 at 14:49 -0600, Greg Donald wrote: > On 2/22/08, Daniel Brown <[EMAIL PROTECTED]> wrote: > > So help me God > > Speaking of imaginary things, check out this new site I built few weeks back: > > http://rewriteproject.com/ > > I do believe I am the first person to ever "tag clo

Re: [PHP] More than one values returned?

2008-02-22 Thread Robert Cummings
On Fri, 2008-02-22 at 17:04 -0500, Nathan Nobbe wrote: > i for one have mixed feelings on this issue. > im tempted to agree w/ nick, but not entirely. > my stance is this; implementing the iterator or > related interfaces is transparent to client code; > namely you can still use for each to traver

Re: [PHP] More than one values returned?

2008-02-23 Thread Robert Cummings
On Fri, 2008-02-22 at 18:13 -0500, tedd wrote: > At 5:27 PM -0500 2/22/08, Robert Cummings wrote: > >On Fri, 2008-02-22 at 17:04 -0500, Nathan Nobbe wrote: > > > and btw; your narratives are are just damned hilarious rob ;) > > > >Take that Ted... I'm qui

Re: [PHP] Re: temporary error

2008-02-23 Thread Robert Cummings
On Fri, 2008-02-22 at 18:44 -0500, tedd wrote: > At 3:58 PM -0500 2/22/08, Robert Cummings wrote: > >On Fri, 2008-02-22 at 14:49 -0600, Greg Donald wrote: > >> On 2/22/08, Daniel Brown <[EMAIL PROTECTED]> wrote: > >> > So help me God > >> > >

Re: [PHP] Re: temporary error

2008-02-23 Thread Robert Cummings
On Sat, 2008-02-23 at 00:14 +, Nathan Rixham wrote: > Going to reply anyways.. > > I think grass is proof, as in blades of grass - there are billions per > square foot, and they are all grass, not half baked weird > grass/*something else* mixes, but all grass - to me thats proof of > creat

RE: [PHP] Re: temporary error

2008-02-23 Thread Robert Cummings
On Fri, 2008-02-22 at 20:29 -0500, Bastien Koert wrote: > > I think the existance of god is more like the MS interoperability > proposals...everyone talks about it, but no one has any real proof ;-) Well, this reality certainly seems closed source :( Cheers, Rob. -- .

Re: [PHP] When to use design patterns?

2008-02-23 Thread Robert Cummings
On Sat, 2008-02-23 at 18:16 +0800, skylark wrote: > Hi all, > > Design patterns are really hot today. > And I am really interested when and how often they are used. > > It is said that 99% of the projects don't need them. > > Any opinion appreciated. First you need to know of them, and underst

Re: [PHP] Re: temporary error

2008-02-23 Thread Robert Cummings
On Sat, 2008-02-23 at 09:22 -0500, tedd wrote: > At 6:33 AM -0500 2/23/08, Robert Cummings wrote: > >We would still be asking from whence do we exist. God is merely a hocus > >pocus answer to the question. Why delve when you can wave your hands in > >the air and say "

RE: [PHP] Re: temporary error

2008-02-23 Thread Robert Cummings
On Sat, 2008-02-23 at 20:11 -0500, Andrés Robinet wrote: > > -Original Message- > > From: Greg Donald [mailto:[EMAIL PROTECTED] > > Sent: Saturday, February 23, 2008 1:33 PM > > To: php-general@lists.php.net > > Subject: Re: [PHP] Re: temporary error > > > > On 2/23/08, tedd <[EMAIL PROTE

Re: [PHP] Question about PHP Licence and it's future!

2008-02-23 Thread Robert Cummings
On Sun, 2008-02-24 at 06:50 +0200, Tamer Higazi wrote: > Hi! > I have asked myself a question. After I saw, that SAP will no more > release future Versions of their open source Database MaxDB under the > GPL License, I have asked myself either if this could happen with PHP. > > Who owns PHP? Is

<    24   25   26   27   28   29   30   31   32   33   >