Re: [PHP] Storing values in arrays

2007-01-17 Thread Robert Cummings
On Wed, 2007-01-17 at 13:14 -0500, tedd wrote: > At 7:15 AM -0800 1/17/07, Ryan A wrote: > >True, but thats not the most important part... I guess I wrote it > >wrong, I meant that it should not write to disk before 1 minute... > >anyway... about the "array saving" any ideas? > > > > Why? Why no

Re: [PHP] md5

2007-01-17 Thread Robert Cummings
On Wed, 2007-01-17 at 13:51 -0500, Oscar Gosdinski wrote: > Instead of hashing the password, i prefer to use the following procedure: > > $user = ... > $password = ... > $hash = md5($user . $password); > > Using this method, it will be very dificult guess the password if you > get the hash becaus

Re: [PHP] Re: What makes a PHP expert

2007-01-18 Thread Robert Cummings
On Thu, 2007-01-18 at 14:25 +, Colin Guthrie wrote: > Answer, "nothing", PHP doesn't need Makefiles as it's an interpreted > language :p Ummm, I build PHP from source. There is definitely a makefile :) > hahahaha > > Sorry, I'll get my coat. Don't let the door hit you on the way out ;) Chee

Re: [PHP] Scope of include

2007-01-18 Thread Robert Cummings
On Thu, 2007-01-18 at 10:29 -0500, tedd wrote: > At 9:49 PM -0800 1/17/07, jekillen wrote: > >Hello php list: > >If I include a php script inside a php function definition and then call the > >function in another script. What is the scope of variables in the included > >script? Are they local to th

Re: [PHP] Storing values in arrays

2007-01-18 Thread Robert Cummings
On Thu, 2007-01-18 at 10:33 -0500, tedd wrote: > At 1:55 PM -0500 1/17/07, Robert Cummings wrote: > >On Wed, 2007-01-17 at 13:14 -0500, tedd wrote: > >> At 7:15 AM -0800 1/17/07, Ryan A wrote: > >> >True, but thats not the most important part... I guess I wrote it

Re: [PHP] Beginner Question

2007-01-19 Thread Robert Cummings
On Fri, 2007-01-19 at 19:21 +0100, Delta Storm wrote: > Hi, > > I have learned as lot about PHP but I still dont know how do they build > PHP based web sites. Obviously you haven't learned enough ;) > I need to build a complete PHP site with a lot of content and integrate > CSS,javaScript and

Re: [PHP] most powerful php editor

2007-01-21 Thread Robert Cummings
On Sat, 2007-01-20 at 22:54 -0200, Vinicius C Silva wrote: > hi everyone! > > i'd like to ask something maybe commonly asked here. what is the most > powerful php editor? Everyone knows, everyone probably being me, that joe is the best: http://sourceforge.net/projects/joe-editor/ Cheers, Ro

Re: [PHP] Request for...

2007-01-21 Thread Robert Cummings
On Sat, 2007-01-20 at 14:42 +, Wikus Moller wrote: > Hi. > > Since this is a mailing list for web developers, Nope, you Sir are wrong. This is a mailing list for PHP web developers. Note the PHP part, it's quite important. HAND Cheers, Rob. -- .-

Re: [PHP] Request for...

2007-01-21 Thread Robert Cummings
On Sat, 2007-01-20 at 16:09 +, Stut wrote: > > 3) This is not a mailing list for web developers, it's a mailing list > for PHP developers. The fact that most PHP development happens in a web > context does not make it exclusively for web development. Not that this was directed at me, but I a

Re: [PHP] First Character In A String

2007-01-21 Thread Robert Cummings
On Sun, 2007-01-21 at 16:02 +0100, Jochem Maas wrote: > > > $initial = (is_string($forename) && strlen($forename) > 0) >? $forename[0] >: '' >; > > echo trim($initial.' '.$surname); > > ?> That sure is verbose Jochem... Cheers, Rob. -- .--

Re: [PHP] First Character In A String

2007-01-21 Thread Robert Cummings
On Sun, 2007-01-21 at 16:27 +0100, Jochem Maas wrote: > Robert Cummings wrote: > > On Sun, 2007-01-21 at 16:02 +0100, Jochem Maas wrote: > >> >> > >> $initial = (is_string($forename) && strlen($forename) > 0) > >> ? $forename[0]

Re: [PHP] First Character In A String

2007-01-21 Thread Robert Cummings
On Sun, 2007-01-21 at 16:49 +0100, Jochem Maas wrote: > now we can get on with having a flame war as to the 'best' way to style > your code, because obviously this is better ;-) ... Game on! :B > echo trim(substr((string)$forename, 0, 1).' '.$surname); Surely any fool can see that yours is infer

RE: [PHP] most powerful php editor

2007-01-21 Thread Robert Cummings
On Mon, 2007-01-22 at 01:22 +0200, Arno Kuhl wrote: > > For me the analogy goes something like this: if you type the occasional > letter or note then Wordpad is perfectly adequate, but if your livelihood is > churning out professional well-formatted heavy-weight documents then it pays > you to inve

RE: [PHP] most powerful php editor

2007-01-21 Thread Robert Cummings
On Mon, 2007-01-22 at 02:13 +0200, Arno Kuhl wrote: > -Original Message- > From: Robert Cummings [mailto:[EMAIL PROTECTED] > Sent: 22 January 2007 01:32 > To: [EMAIL PROTECTED] > Cc: php-general@lists.php.net > Subject: RE: [PHP] most powerful php editor > > >

Re: [PHP] Function returning but continues execution

2007-01-22 Thread Robert Cummings
On Mon, 2007-01-22 at 16:36 +, David Mytton wrote: > Yes, I know it looks like a bug in my code because I'm not able to write > a test case that can reproduce it simply enough to report as a bug - > hence why I am posting here. However, the behaviour I am describing > surely suggests some ki

Re: [PHP] Function returning but continues execution

2007-01-22 Thread Robert Cummings
On Tue, 2007-01-23 at 02:43 +0100, Jochem Maas wrote: > > there is no way in hell that [a released version of] php is so borked that > it's capable > returning a value from a function and then going on to running code that > occurs in the function > after the return statement that returned the va

Re: [PHP] Function returning but continues execution

2007-01-22 Thread Robert Cummings
On Tue, 2007-01-23 at 03:01 +0100, Jochem Maas wrote: > Robert Cummings wrote: > > On Tue, 2007-01-23 at 02:43 +0100, Jochem Maas wrote: > >> there is no way in hell that [a released version of] php is so borked that > >> it's capable > >> returning a v

Re: [PHP] OT - Leaving

2007-01-23 Thread Robert Cummings
Who's John Nichel? ;) FYI, for the noobs, the John and Jason referenced in the email are John Holmes and Jason Wong. Cheers, Rob. On Tue, 2007-01-23 at 14:45 -0500, John Nichel wrote: > Howdy ladies and gents: > >For the past 9 or so years, with one email account or another, I have > been

Re: [PHP] most powerful php editor

2007-01-24 Thread Robert Cummings
On Wed, 2007-01-24 at 10:31 +, Robin Vickery wrote: > On 21/01/07, Arno Kuhl <[EMAIL PROTECTED]> wrote: > > -Original Message- > > From: Vinicius C Silva [mailto:[EMAIL PROTECTED] > > Sent: 21 January 2007 02:54 > > To: php-general@lists.php.net > > Subject: [PHP] most powerful php edit

Re: [PHP] most powerful php editor

2007-01-24 Thread Robert Cummings
On Wed, 2007-01-24 at 13:41 +, Roman Neuhauser wrote: > # [EMAIL PROTECTED] / 2007-01-24 13:57:03 +0200: > > and also in these days I'm looking for 19 inch (or more) wide LCD > > sceerns to able to fit longer lines in my screen... > > Number of reading errors people make grows with line length

Re: [PHP] Debugging itpc

2007-01-24 Thread Robert Cummings
On Wed, 2007-01-24 at 14:07 -0500, Robert Cummings wrote: > On Wed, 2007-01-24 at 12:01 -0700, Skip Evans wrote: > > Hey all, > > > > I'm working on a site that allows users to build > > libraries of podcasts, and one of the calls to a > > PHP file is itpc,

Re: [PHP] Debugging itpc

2007-01-24 Thread Robert Cummings
On Wed, 2007-01-24 at 12:01 -0700, Skip Evans wrote: > Hey all, > > I'm working on a site that allows users to build > libraries of podcasts, and one of the calls to a > PHP file is itpc, not http. > > Hence I don't have the ability to echo data for > debugging, and I also don't have write acc

Re: [PHP] most powerful php editor

2007-01-24 Thread Robert Cummings
On Wed, 2007-01-24 at 18:23 -0600, Richard Lynch wrote: > On Wed, January 24, 2007 7:41 am, Roman Neuhauser wrote: > > # [EMAIL PROTECTED] / 2007-01-24 13:57:03 +0200: > >> and also in these days I'm looking for 19 inch (or more) wide LCD > >> sceerns to able to fit longer lines in my screen... >

Re: [PHP] most powerful php editor

2007-01-24 Thread Robert Cummings
On Wed, 2007-01-24 at 18:48 -0700, John Meyer wrote: > Jochem Maas wrote: > > Curt Zirzow wrote: > >> On 1/20/07, Vinicius C Silva <[EMAIL PROTECTED]> wrote: > >>> hi everyone! > >>> > >>> i'd like to ask something maybe commonly asked here. what is the most > >>> powerful php editor? > >> > >> So

Re: [PHP] most powerful php editor

2007-01-24 Thread Robert Cummings
On Wed, 2007-01-24 at 20:44 -0600, Larry Garfield wrote: > On Wednesday 24 January 2007 8:07 pm, Robert Cummings wrote: > > > There is no way in hell one long line of SQL is easier to read than > > formatted SQL that clearly delineates the clause structure. > > Sure t

Re: [PHP] most powerful php editor

2007-01-25 Thread Robert Cummings
On Thu, 2007-01-25 at 10:12 +, Roman Neuhauser wrote: > # [EMAIL PROTECTED] / 2007-01-25 11:06:22 +0200: > > On Wednesday 24 January 2007 15:41, Roman Neuhauser wrote: > > > # [EMAIL PROTECTED] / 2007-01-24 13:57:03 +0200: > > > > and also in these days I'm looking for 19 inch (or more) wide LC

Re: [PHP] Validating a link in php

2007-01-25 Thread Robert Porter
just did some experimenting and it looks promising. Here's the code that appears to work: $ch = curl_init("http://www.youtube.com/v/JqO8ZevPJNk";); if (curl_exec($ch)) //Do stuff for a valid URL else //Do stuff for an invalid URL Many thanks! I'm loving PHP, but I've got a

Re: [PHP] SQL Readability.. (was Re: most powerful php editor)

2007-01-26 Thread Robert Cummings
On Fri, 2007-01-26 at 16:30 +, Stut wrote: > [EMAIL PROTECTED] wrote: > > My contribution to the insanity.. INSERT statements made easy: > > > > $genericQY = "INSERT INTO MOD_LMGR_Leads ("; $genericQYvalues = " VALUES > > ("; > > $genericQY .= " FirstName,"; $genericQYva

Re: [PHP] SQL Readability.. (was Re: most powerful php editor)

2007-01-26 Thread Robert Cummings
On Fri, 2007-01-26 at 12:25 -0500, [EMAIL PROTECTED] wrote: > Strangely enough, Stut and Jochem, I DO find this more readable. Hah. I know, > I'm insane. I have done it the way you guys proposed, using an associative > array and using the keys and values as the columns and insert values. While

Re: [PHP] Multi lingual pages

2007-01-26 Thread Robert Cummings
On Fri, 2007-01-26 at 21:25 +0100, Otto Wyss wrote: > Paul Novitski wrote: > > I formulated my question in general since I couldn't find an other > message here about supporting multiple languages. > > > http://www.w3.org/International/articles/ > > > > http://www.w3.org/TR/i18n-html-tech-lang/

Re: [PHP] Creating an array as a property of an object

2007-01-26 Thread Robert Cummings
On Fri, 2007-01-26 at 15:09 -0600, Ken Kixmoeller -- reply to [EMAIL PROTECTED] wrote: > Hello, folks -- lurking for a while, first post -- > > I'm relatively new to PHP but doing database design work for nearly > 20 years. > > I've RTFM'ed (+ books + other resources) a bunch of times but I hav

Re: [PHP] SQL Readability.. (was Re: most powerful php editor)

2007-01-27 Thread Robert Cummings
On Sat, 2007-01-27 at 14:43 +0100, Jochem Maas wrote: > > also I don't really agree with the sentiment that SQL syntax is nasty, Hear, hear :) Cheers, Rob. -- .. | InterJinn Application Framework - http://www.interjinn.com | :--

Re: [PHP] Select record by ID

2007-01-29 Thread Robert Cummings
On Sun, 2007-01-28 at 21:12 -0500, Craige Leeder wrote: > As someone else already stated, my best guess according to that error > is that $user_id has a null, or inappropriate value. The error occurs > at the last character of the query, so it has to be something like > hat. Echo the query and let

Re: [PHP] What search algorithm does in_array() use?

2007-01-29 Thread Robert Cummings
On Mon, 2007-01-29 at 17:12 -0600, Richard Lynch wrote: > On Mon, January 29, 2007 11:20 am, Ken Dozier wrote: > > Does in_array() use a search algorithm (i.e., binary search), or does > > it > > check sequentially each element in the array? > > Since there is no guarantee that the elements are in

Re: [PHP] What search algorithm does in_array() use?

2007-01-29 Thread Robert Cummings
On Mon, 2007-01-29 at 19:14 -0600, Richard Lynch wrote: > On Mon, January 29, 2007 7:03 pm, Robert Cummings wrote: > > > > Only perfect hashes have O(1) lookup, and in practice there are very > > few > > perfect hashes set up in reality since the cost to produce a per

Re: [PHP] Suggestions of GPL plugin-system?

2007-01-29 Thread Robert Cummings
On Mon, 2007-01-29 at 20:02 -0600, Larry Garfield wrote: > I was looking for a similar good-example about 2 years ago. What I found was > Drupal (http://drupal.org/), and it's hook system. I have since given up on > writing my own plugin system and became a small fry Drupal developer. :-) > >

Re: [PHP] TR: Manipulating "categories" in a php database

2007-01-30 Thread Robert Cummings
On Tue, 2007-01-30 at 19:29 +0100, Tim wrote: > Hello all, > > This is more of a conceptional question rather then a technical one. > > I am developping an online catalog, the catalog is a standard > categorie/subcat/subsubcat system using the following logic in my database: > > cat_id cat_name

Re: [PHP] Who uses PHP

2007-02-01 Thread Robert Cummings
On Thu, 2007-02-01 at 10:19 -0500, Eric Gorr wrote: > > Well, if you do not know the answer to my particular question, I'm > curious how might you respond to someone who says: > > PHP has to many security issues and should not be used with a > user authentication system. > We shoul

Re: [PHP] nested, referenced foreach & implicit current array pointer issues

2007-02-01 Thread Robert Cummings
On Thu, 2007-02-01 at 16:42 +0100, Roman Neuhauser wrote: > > If PHP was statically typed, global variables would still be a bad > smell. They are bad smell in C++ and Java, for example. It's too easy > to call getfoo() before you have set up $foo. The risk grows > exponentially: as soon as you

Re: [PHP] OT - PHP Code Search

2007-02-01 Thread Robert Cummings
On Thu, 2007-02-01 at 22:51 +0200, WeberSites LTD wrote: > www.php-cod-search.com/ Why? Is this a new site you've set up with disgusting amounts of advertising? Cheers, Rob. -- .. | InterJinn Application Framework - http://www.interjinn

Re: [PHP] OT - PHP Code Search

2007-02-01 Thread Robert Cummings
On Thu, 2007-02-01 at 16:18 -0500, [EMAIL PROTECTED] wrote: > Not too many ads on the pages after you find what you're searching for, and > mostly just some "ads by google" type stuff. > > Speaking of Google.. you can also go here for PHP code searching.. I do all > my "cod" (sic) searching ther

RE: [PHP] OT - PHP Code Search

2007-02-01 Thread Robert Cummings
On Thu, 2007-02-01 at 23:51 +0200, WeberSites LTD wrote: > I guess you have no real use for advertising cause no one really comes to > your site. > Go get a life instead of sending idiotic emails to the list. *lol* That's not what you said when you tried to recruit me as a forum moderator for the

Re: [PHP] Year

2007-02-02 Thread Robert Cummings
On Fri, 2007-02-02 at 10:11 -0500, Dan Shirah wrote: > Hello all, > > I am trying to populate a dropdown list to contain the current year to 10 > years in the future. Below is the code I'm using: > >for ($y=0;$y<=10;$y++) { > $years=date ('Y')+$y; > $short_years=date

Re: [PHP] Year

2007-02-02 Thread Robert Cummings
On Fri, 2007-02-02 at 10:21 -0500, Robert Cummings wrote: > On Fri, 2007-02-02 at 10:11 -0500, Dan Shirah wrote: > > Hello all, > > > > I am trying to populate a dropdown list to contain the current year to 10 > > years in the future. Below is the code I'm using

Re: [PHP] Year

2007-02-02 Thread Robert Cummings
On Fri, 2007-02-02 at 19:02 -0600, Richard Lynch wrote: > On Fri, February 2, 2007 9:11 am, Dan Shirah wrote: > > I am trying to populate a dropdown list to contain the current year to > > 10 > > years in the future. Below is the code I'm using: > > > > > for ($y=0;$y<=10;$y++) { > > $years=d

Re: [PHP] Year

2007-02-02 Thread Robert Cummings
On Fri, 2007-02-02 at 20:08 -0600, Richard Lynch wrote: > On Fri, February 2, 2007 7:41 pm, Robert Cummings wrote: > > function 10 times by embedding it in the loop's terminate condition? > > Because 10 calls to date() is chump-change. 10 chumps here, 10 there, 100 there,

Re: [PHP] Regex Mixtake

2007-02-03 Thread Robert Cummings
On Sat, 2007-02-03 at 13:58 -0500, Manolet Gmail wrote: > 2007/2/3, Steffen Ebermann <[EMAIL PROTECTED]>: > > You have to use preg_match_all() > > > > if (preg_match_all("!\"(.+)\"!sU", $var, $match)) > > > > > > oh wow! works very well... but... i take 2 days reading about ereg ='( > there is

Re: [PHP] include file identifier

2007-02-03 Thread Robert Cummings
On Sun, 2007-02-04 at 03:05 +0200, Eli wrote: > Hello, > > Does any included file in PHP have a unique identifier? (like a stack of > includes identifier). > > If the files names are different, then __FILE__ can be used as an > identifier. But if a file was included by itself, then __FILE__ is

Re: [PHP] include file identifier

2007-02-03 Thread Robert Cummings
On Sun, 2007-02-04 at 03:27 +0200, Eli wrote: > Robert Cummings wrote: > > Looking at the code above... it would seem you want: > > > > include_once() > It's not the idea.. > > I'm not trying to make that code work, I want to know which exact

Re: [PHP] Hello list

2007-02-05 Thread Robert Cummings
On Mon, 2007-02-05 at 11:01 -0500, tedd wrote: > At 4:27 PM -0700 2/4/07, PHP Fusebox wrote: > >I've tried subscribing 3 times now. > >This is a test. > > For the third time -- we didn't get this. Didn't get what? :B Cheers, Rob. -- .

Re: [PHP] PHP book reviewers wanted

2007-02-05 Thread Robert Cummings
On Mon, 2007-02-05 at 11:09 -0500, tedd wrote: > At 1:05 AM -0200 2/5/07, Manuel Lemos wrote: > >Demonstrating good English writing skills and having published good book > >reviews in the past gets me preference. > > "gets me preference" ??? > > Me get any money for this? No money you get! Tingl

[PHP] Image upload

2007-02-05 Thread Robert Fitzpatrick
after the script finishes. Can someone suggest what my problem may be? if (!getimagesize($_FILES['filPhoto']['tmp_name'])) { die('The file you are attempting to upload is not an image file.'); } else { -- Robert -- PHP General Mailing List (http://www.php.net

Re: [PHP] PHP5 & Commercial Development

2007-02-05 Thread Robert Cummings
On Mon, 2007-02-05 at 22:00 +0100, Keryx Web wrote: > Eric Gorr skrev: > > I haven't tracked this particular issue, but I know when PHP5 was first > > released is wasn't recommended in a commercial/production environment. > > However, a lot of time has passed and we're at v5.2 now...have things

Re: [PHP] Image upload

2007-02-05 Thread Robert Fitzpatrick
Jochem Maas wrote: Robert Fitzpatrick wrote: I have a small application that ran on one server and now gives me a problem with uploading images on a new server. I am running PHP 4.4.4 now on this server and hoping it is just something that needs adjusted in php.ini, but cannot seem to find

Re: [PHP] Open pop-up stylish window

2007-02-06 Thread Robert Cummings
On Tue, 2007-02-06 at 10:09 -0800, Jim Lucas wrote: > Chris Carter wrote: > > Hi, > > > > I am looking for a way to open a preview window. This should be a seperate > > pop-up but within the same page. The moment the user clicks for say "more > > details »" .. this should not open a next page or a

Re: [PHP] Open pop-up stylish window

2007-02-06 Thread Robert Cummings
On Tue, 2007-02-06 at 13:05 -0800, Jim Lucas wrote: > Robert Cummings wrote: > > On Tue, 2007-02-06 at 10:09 -0800, Jim Lucas wrote: > >> Chris Carter wrote: > >>> Hi, > >>> > >>> I am looking for a way to open a preview window. This should be

Re: [PHP] Open pop-up stylish window

2007-02-06 Thread Robert Cummings
On Tue, 2007-02-06 at 13:16 -0800, Jim Lucas wrote: > Robert Cummings wrote: > > On Tue, 2007-02-06 at 13:05 -0800, Jim Lucas wrote: > >> Robert Cummings wrote: > >>> On Tue, 2007-02-06 at 10:09 -0800, Jim Lucas wrote: > >>>> Chris Carter wrote: >

Re: [PHP] PHP5 & Commercial Development

2007-02-06 Thread Robert Cummings
On Tue, 2007-02-06 at 23:45 +0100, Keryx Web wrote: > > The question PHP 4 or PHP 5: If you stay with 4 you are bound to a one > size fits all solution. In PHP 5 you can use DB-specific drivers or PDO > or a PHP-based abstraction layer. That's *more* choice, not less! > > To summarize: With PDO

Re: [PHP] All-in-one PHP Classes

2007-02-06 Thread Robert Cummings
On Wed, 2007-02-07 at 09:59 +1100, Chris wrote: > Roman Neuhauser wrote: > > # [EMAIL PROTECTED] / 2007-02-06 12:47:47 +0100: > >> Have been reading posts daily for two months now on the list, and am very > >> pleased at how informative these can be. > >> I have noticed, many examples where one is

Re: [PHP] Apache asks to save php file?

2007-02-06 Thread Robert Cummings
On Tue, 2007-02-06 at 16:15 -0700, Skip Evans wrote: > Hey all, > > Just did a new install on FreeBSD 6.0 of Apache 2, > PHP4 and MySQL, but the browser asks to save a PHP > file rather than execute it. I do have the > following in httpd.conf, however. > > LoadModule php4_module libexec/apache

Re: [PHP] Apache asks to save php file?

2007-02-06 Thread Robert Cummings
On Tue, 2007-02-06 at 15:59 -0800, Greg Maruszeczka wrote: > On Tue, 06 Feb 2007 16:42:03 -0700 > Skip Evans <[EMAIL PROTECTED]> wrote: > > > Nothing in the log file. Did restart the web > > server, and yes, I'm compiling this myself. > > > > The log file is actually not being touched. I > > th

Re: [PHP] Opera advice needed!

2007-02-07 Thread Robert Cummings
On Wed, 2007-02-07 at 12:16 +0200, William Stokes wrote: > ShitSHitSHIT!!! > > I had javascript disabled in Opera. The browsed just ignored it's own > settings while brosing my server??? Feeling stopid. While it works fine, I get a slew of warnings for your sloppy css since you don't give un

Re: [PHP] PHP5 & Commercial Development

2007-02-07 Thread Robert Cummings
On Wed, 2007-02-07 at 09:47 +0100, Lars Gunther wrote: > Robert Cummings skrev: > > On Tue, 2007-02-06 at 23:45 +0100, Keryx Web wrote: > > Could you point out to me where exactly the discussion became about PHP4 > > versus PHP5? I seem to be smelling the red herring techniqu

Re: [PHP] Opera advice needed!

2007-02-07 Thread Robert Cummings
On Wed, 2007-02-07 at 16:19 +0100, Jochem Maas wrote: > Robert Cummings wrote: > > On Wed, 2007-02-07 at 12:16 +0200, William Stokes wrote: > >> ShitSHitSHIT!!! > >> > >> I had javascript disabled in Opera. The browsed just ignored it's own > &g

Re: [PHP] base64-encoding in cookies?

2007-02-07 Thread Robert Cummings
On Wed, 2007-02-07 at 13:49 -0600, Fletcher Mattox wrote: > I wrote: > > > A campus web server (not under my control) returns an authentication > > string in a cookie named AUTH. The cookie's value is an encrypted, > > base64 encoded string. Unfortunately, when I examine $_COOKIE['AUTH'], > > it

Re: [PHP] Re: [DOC-LICENSE] Release phpexplorator

2007-02-08 Thread Robert Cummings
On Thu, 2007-02-08 at 10:13 +0100, Derick Rethans wrote: > Hello, > > please do not spam our mailinglists with release announcements. Release announcements have always been allowed, the preferable method is to prefix the subject with [Release] and not to send it twice as was the case with phpexpl

Re: [PHP] Javascript and $_POST

2007-02-08 Thread Robert Cummings
On Thu, 2007-02-08 at 10:21 -0500, Dan Shirah wrote: > You guys are going to kill me! I found my problemand it's one of those > "What the hell were you thinking" issues. Nah, probably lots of us have been bitten by that. I know I have been in the past, so now I always name my submit buttons "

Re: [PHP] Question on virus/worms

2007-02-08 Thread Robert Cummings
On Thu, 2007-02-08 at 18:44 +0100, Seak, Teng-Fong wrote: > My company's got a web site using PHP. But the server is actually > an IIS 5 sitting inside a Win2K server. So naturally, I'm using php dll > filter. (Please don't tell me to use Apache because we need IIS for > other services). Th

Re: [PHP] Boolean-cast and arrays

2007-02-08 Thread Robert Cummings
On Thu, 2007-02-08 at 18:36 +0100, Youri LACAN-BARTLEY wrote: > Tim wrote: > > First thank you all for your input on "all-in-one" classes. > > > > Reading the php manual on boolean types and casts, and came accros the > > following: > > > > > > When converting to boolean, the following values ar

Re: [PHP] keep SESSION using wget?

2007-02-08 Thread Robert Cummings
On Thu, 2007-02-08 at 19:28 +0100, RalfGesellensetter wrote: > Dear list, > > I wrote a php script to keep track of a remote server. This script is > called every 10 minutes via http by a cronjob using wget. The cronjob > calls (from the remote server) open a new session each time. > > This wa

Re: [PHP] keep SESSION using wget?

2007-02-08 Thread Robert Cummings
On Thu, 2007-02-08 at 19:56 +0100, RalfGesellensetter wrote: > Hi Rob, thanks for your quick reply! > > Am Donnerstag 08 Februar 2007 19:22 schrieb Robert Cummings: > > I don't suppose you checked the man page for wget did you? > > shame on me: I didn't RTFM ;) &g

Re: [PHP] base64-encoding in cookies?

2007-02-08 Thread Robert Cummings
On Thu, 2007-02-08 at 13:51 -0600, Fletcher Mattox wrote: > Jon Anderson writes: > > > Cookies must be encoded somehow: Because a raw cookie will contain > > "var=val; expires=time; path=/path/" type stuff, PHP would *have* to > > encode it. > > I don't mean to be thick, Jon, but I don't under

Re: [PHP] base64-encoding in cookies?

2007-02-08 Thread Robert Cummings
On Thu, 2007-02-08 at 15:23 -0600, Fletcher Mattox wrote: > Robert Cummings writes: > > > On Thu, 2007-02-08 at 13:51 -0600, Fletcher Mattox wrote: > > > Jon Anderson writes: > > > > > > > Cookies must be encoded somehow: Because a raw cookie will con

RE: [PHP] what do i need to disable

2007-02-08 Thread Robert Cummings
On Thu, 2007-02-08 at 15:32 -0700, Don wrote: > > I asked this question awhile ago and never really visited the issue till > > now. The response I got showed me how to disable everything, but I want to > > allow basic html tags. > > > http://us3.php.net/strip_tags > > You can use the optional se

Re: [PHP] Multi lingual pages

2007-02-09 Thread Robert Cummings
On Fri, 2007-02-09 at 09:03 +0100, Frank Arensmeier wrote: > Anyone? If you use top level domains like that then if someone wants to swith between languages you won't be able to share session information without employing session propogation tricks. Cheers, Rob. > > //frank > 8 feb 2007 kl. 11.

Re: [PHP] OT - Regular Expression

2007-02-09 Thread Robert Cummings
On Fri, 2007-02-09 at 14:13 +0200, Peter Lauri wrote: > Best group member, > > > > I want to match a four digit number. I allow user to enter with * syntax. So > 8* would match anything that starts with 8 and is 4 digit long so: > > > > /^8[0-9]{3}$/ > > > > That was easy. Ok then my ot

Re: [PHP] Multi lingual pages

2007-02-09 Thread Robert Cummings
On Fri, 2007-02-09 at 07:23 -0500, Robert Cummings wrote: > On Fri, 2007-02-09 at 09:03 +0100, Frank Arensmeier wrote: > > Anyone? > > If you use top level domains like that then if someone wants to swith Oh no, I've developed a l

RE: [PHP] OT - Regular Expression

2007-02-09 Thread Robert Cummings
On Fri, 2007-02-09 at 12:56 +, Edward Kay wrote: > > [snip] > > > > Why not use two checks? One that checks for 4 digits, the other checks > > for existence of 8 anywhere in the string? > > > > Cheers, > > Rob. > > [/snip] > > > > Of course that is a possibility. But I wonder if there is a way

Re: [PHP] Multi lingual pages

2007-02-09 Thread Robert Cummings
On Fri, 2007-02-09 at 19:21 +0100, Frank Arensmeier wrote: > 9 feb 2007 kl. 15.38 skrev Tim: > > > > > > >> -Message d'origine- > >> De : Frank Arensmeier [mailto:[EMAIL PROTECTED] > >> Envoyé : vendredi 9 février 2007 14:51 > >>

RE: [PHP] OT - Regular Expression

2007-02-09 Thread Robert Cummings
On Fri, 2007-02-09 at 15:16 +, Edward Kay wrote: > > > As Rob suggested, why not just use two checks? e.g. > > > > > > if ( (strlen($input) == 4) && (strpos($input, '8') !== FALSE ) ) { > > > // OK > > > } else { > > > // Not OK > > > } > > > > > > Not only is this logic much easier to unde

Re: [PHP] keep SESSION using wget?

2007-02-09 Thread Robert Cummings
On Fri, 2007-02-09 at 16:50 +0100, RalfGesellensetter wrote: > Am Donnerstag 08 Februar 2007 20:36 schrieb Robert Cummings: > > Or... > > > > wget --save-cookies cookies.txt --load-cookies cookies.txt > > --keep-session-cookies http://my.domain/tracker.php > > >

Re: [PHP] When are headers sent? (headers_sent function)

2007-02-09 Thread Robert Cummings
On Fri, 2007-02-09 at 11:24 -0800, Philippe Piernot wrote: > I understand that the headers_sent() function will tell me whether headers > have been sent or not. > What I do not understand is what triggers the headers to be sent to the > browser in the first place. > Does this happen as soon as the

Re: [PHP] base64-encoding in cookies?

2007-02-09 Thread Robert Cummings
On Fri, 2007-02-09 at 20:38 -0600, Fletcher Mattox wrote: > Robert Cummings writes: > > > Dear numnutz, get off your lazy arse and read the doc for yourself: > > > > http://wp.netscape.com/newsref/std/cookie_spec.html > > > > It clearly states: > >

Re: [PHP] base64-encoding in cookies?

2007-02-10 Thread Robert Cummings
On Sat, 2007-02-10 at 17:01 -0600, Fletcher Mattox wrote: > Robert Cummings writes: > > > But isn't the sender and receiver usually one and the same. I mean your > > PHP application is usually what set the cookie in the first place. Then > > you receive it in

RE: [PHP] insert html into php variable

2007-02-12 Thread Robert Cummings
On Mon, 2007-02-12 at 12:27 +, Edward Kay wrote: > > I am using phpmailer for a rich html mailer and I have been using > > lines like > > this to build up the mailbody > > > > $mail_body .= " > src=\"http://www.myurl.org/mylogo.gif\";; > > > > Is there a build in function to assign html code t

Re: [PHP] insert html into php variable

2007-02-12 Thread Robert Cummings
On Mon, 2007-02-12 at 14:52 +0200, clive wrote: > > > > > ob_start(); > > include( 'someFile.php' ); > > $content = ob_get_contents(); > > ob_end_clean(); > > > > ?> > > no I think he needs file_get_contents(); While that will certainly read PHP into a variable, it won't evalua

RE: [PHP] insert html into php variable

2007-02-12 Thread Robert Cummings
On Mon, 2007-02-12 at 13:20 +, Edward Kay wrote: > > > > I am using phpmailer for a rich html mailer and I have been using > > > > lines like > > > > this to build up the mailbody > > > > > > > > $mail_body .= " > > > src=\"http://www.myurl.org/mylogo.gif\";; > > > > > > > > Is there a build i

Re: [PHP] insert html into php variable

2007-02-12 Thread Robert Cummings
On Mon, 2007-02-12 at 15:20 +0200, clive wrote: > Robert Cummings wrote: > > On Mon, 2007-02-12 at 14:52 +0200, clive wrote: > >>> >>> > >>> ob_start(); > >>> include( 'someFile.php' ); > >>> $content = ob

Re: [PHP] round to nearest 500?

2007-02-12 Thread Robert Cummings
On Mon, 2007-02-12 at 11:52 -0500, blackwater dev wrote: > Is there an easy way in php to round to the nearest 500? > > So if I have 600, I 500 and if I have 800 I want 1000? This should work: Cheers, Rob. -- .. | InterJinn Applicati

Re: [PHP] round to nearest 500?

2007-02-12 Thread Robert Cummings
On Mon, 2007-02-12 at 11:59 -0500, Jon Anderson wrote: > blackwater dev wrote: > > Is there an easy way in php to round to the nearest 500? > > > > So if I have 600, I 500 and if I have 800 I want 1000? > Multiply by 2, round to 1000, divide by 2. Maybe there's an easier way, > but that's what I

Re: [PHP] Filtering _REQUEST.. Why is this bad?

2007-02-12 Thread Robert Cummings
On Mon, 2007-02-12 at 21:20 -0500, Travis Doherty wrote: > Hello. > > Came across some code that startled me. Mostly because it goes against > the generally accepted idea of detecting and rejecting bad input instead > of trying to escape it, secondly because "it just feels wrong." > > The only t

Re: [PHP] print() or echo

2007-02-13 Thread Robert Cummings
On Tue, 2007-02-13 at 19:19 +0330, Danial Rahmanzadeh wrote: > is it true that echo is a bit faster than print()? in general, when we don't > need a return value, which one is better to choose? Yes, echo is faster than print. I would suggest echo over print since it is shorter and faster :) Cheer

Re: [PHP] Getting mysql_query results into an array

2007-02-13 Thread Robert Cummings
On Tue, 2007-02-13 at 18:22 -0600, Richard Lynch wrote: > #2 > loop through mysql result set to build $array > perform some kind of calculation upon $array > > In this case, it's USUALLY much more efficient to write an SQL query > to perform the calculation. > > Databases are highly optimized for

Re: [PHP] How to upload files up to 40MB with a html post form?

2007-02-14 Thread Robert Cummings
On Wed, 2007-02-14 at 13:54 +0100, David Blanco wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > Hola! > > Mauricio Muriel escribió: > > > How can I upload files up to 40MB with a html post form? (without a ftp > > client) > > > > Please, remember > > > > 1. My hosting provider ha

Re: [PHP] PHP/PEAR

2007-02-14 Thread Robert Cummings
On Wed, 2007-02-14 at 13:29 +0100, Malcolm Pickering wrote: > Hello there, > > As a new user of PHP I am finding it extremely useful, very fast, and > rewarding. I was also delighted to find the already proven and maintained > extensions in PEAR. > > I have recently downloaded one of these ext

Re: [PHP] PHP/PEAR

2007-02-14 Thread Robert Cummings
On Wed, 2007-02-14 at 15:02 +0100, Jochem Maas wrote: > Malcolm Pickering wrote: > > Hello there, > > > > As a new user of PHP I am finding it extremely useful, very fast, and > > rewarding. I was also delighted to find the already proven and maintained > > extensions in PEAR. > > > > I have r

Re: [PHP] Re: How to upload files up to 40MB with a html post form?

2007-02-14 Thread Robert Cummings
On Wed, 2007-02-14 at 14:05 +, Colin Guthrie wrote: > Robert Cummings wrote: > > On Wed, 2007-02-14 at 13:54 +0100, David Blanco wrote: > >> -BEGIN PGP SIGNED MESSAGE- > >> Hash: SHA1 > >> > >> Hola! > >> > >> Mauricio Mur

Re: [PHP] Re: How to upload files up to 40MB with a html post form?

2007-02-14 Thread Robert Cummings
On Wed, 2007-02-14 at 14:22 +, Colin Guthrie wrote: > Robert Cummings wrote: > > On Wed, 2007-02-14 at 14:05 +, Colin Guthrie wrote: > >> Robert Cummings wrote: > >>> On Wed, 2007-02-14 at 13:54 +0100, David Blanco wrote: > >>>> -BE

Re: [PHP] Re: How to upload files up to 40MB with a html post form?

2007-02-14 Thread Robert Cummings
On Wed, 2007-02-14 at 16:51 +0200, Andrei wrote: > LOL. You got lost in details... > To answer the question... You cannot upload files bigger than 10Mb > unless your provider changes the values from php.ini (regarding upload > file size, form max size and memory max size) and you cannot upl

Re: [PHP] How to upload files up to 40MB with a html post form?

2007-02-14 Thread Robert Cummings
On Wed, 2007-02-14 at 16:46 +0100, David Blanco wrote: > Hi! > > Robert Cummings wrote: > > > ... Upload sizes are not a PHP limitation. If a limitation at all > > then it's a limitation imposed by the service provider. As such > > Perl won't solve t

<    11   12   13   14   15   16   17   18   19   20   >