[PHP] PHP LICENCE

2002-06-15 Thread Kevin Waterson
Just how much can the php name be used in applications? The license says 3. The name PHP must not be used to endorse or promote products derived from this software without prior permission from the PHP Group. This does not apply to add-on libraries or tools that work in

Re: [PHP] DOCUMENT_ROOT disappeared on me!

2002-07-02 Thread Kevin Waterson
On Mon, 1 Jul 2002 22:01:27 -0700 David E. Weekly [EMAIL PROTECTED] wrote: All, I upgraded from PHP 4.1.2 to 4.2.1 today along with revving Apache to 1.3.26 from 1.3.22, and, woe is me, my $DOCUMENT_ROOT now evaluates to on all of my PHP pages! $_SERVER['DOCUMENT_ROOT'] Kevin -- Kevin

[PHP] PHP 4.3.0-dev and gd

2002-07-11 Thread Kevin Waterson
trying to get the built in gd to work without luck I am using redhat and it has gd 1.8.4(or something) but the newer compiled version does not seem to install. I check with phpinfo and it just says 1.6.2 or higher but none of the 2.* functions work so I assume the new gd did not install. my

Re: [PHP] PHP 4.3.0-dev and gd

2002-07-11 Thread Kevin Waterson
On Thu, 11 Jul 2002 17:19:07 +0100 Danny Shepherd [EMAIL PROTECTED] wrote: You need to compile with GD2 if you want to use any of the 2.* functions in PHP - phpinfo will say 'GD 2.0 or higher' I tried --with-gd2 but then I get no gd at all? the included gd version is 2.0.1 but does not seem

Re: [PHP] Re: PHP 4.3.0-dev and gd

2002-07-11 Thread Kevin Waterson
On Thu, 11 Jul 2002 15:32:30 -0700 Ricky Dhatt [EMAIL PROTECTED] wrote: You need to use --with-gd=php to use the built-in gd library. yep, that got over that hurdle, I used the config line ./configure --with-apxs=/usr/sbin/apxs --with-mysql=/usr --with-ttf=/usr --enable-track-vars

[PHP] ob_start

2002-07-14 Thread Kevin Waterson
I wish to compress some data using ob_start(ob_gzhandler); I use if(strstr($_SERVER['HTTP_ACCEPT_ENCODING'],gzip)) { ob_start(ob_gzhandler); } else { ob_start(); } but the compression is never used.. obstart is always used withouth the gz_handler is there a way around this? or am I

Re: [PHP] ob_start

2002-07-14 Thread Kevin Waterson
On Sun, 14 Jul 2002 10:35:13 -0400 John Holmes [EMAIL PROTECTED] wrote: Shouldn't gzip be in quotes, here?? The second argument to strstr... indeed, that fixes that.. thanks now, I have a problem with mozilla and netscape. Although they both accept the ob_start(ob_gzhandler); netscape gives

Re: [PHP] Can someone check this mysql code

2002-05-19 Thread Kevin Waterson
On Mon, 20 May 2002 08:57:16 +1200 PhilipNZ Staff [EMAIL PROTECTED] wrote: My code below don't want to insert the code into the database what am I doing wrong? ?php $answers=$band, $middlename, $pot; $date=date (l dS of F Y h:i:s A); $sql = INSERT INTO `prizeline` (`id`, `email`,

Re: [PHP] Function

2002-05-21 Thread Kevin Waterson
On Wed, 22 May 2002 00:48:24 -0300 Rodrigo [EMAIL PROTECTED] wrote: Hi guys I_m trying to use a function on na .inc file, how should I do? How should I write the function and what should I write on the file so that the function file is _Included_ to be used on a function call on the php

[PHP] RecursiveArrayIterator

2007-07-22 Thread Kevin Waterson
When I run the code below, I get an output of the array which is good. But the first member of the array output is 0=Array. Is there a way to prevent this? eg: 0 -- Array name -- butch sex -- m breed -- boxer name -- fido sex -- m breed -- doberman name -- girly sex -- f breed -- poodle ?php

Re: [PHP] RecursiveArrayIterator

2007-07-22 Thread Kevin Waterson
This one time, at band camp, Nathan Nobbe [EMAIL PROTECTED] wrote: Thanks for the response. I was hoping to avoid this sort of recursion within userspace and keep it at a lower level. Should not the recursive iterator recurse so we dont need to be using user defined functions?

Re: [PHP] RecursiveArrayIterator

2007-07-22 Thread Kevin Waterson
This is what I have so far.. ?php $array = array( array('name'='butch', 'sex'='m', 'breed'='boxer'), array('name'='fido', 'sex'='m', 'breed'='doberman'), array('name'='girly','sex'='f', 'breed'='poodle') ); $iterator = new RecursiveIteratorIterator(new

Re: [PHP] RecursiveArrayIterator

2007-07-23 Thread Kevin Waterson
This one time, at band camp, Jim Lucas [EMAIL PROTECTED] wrote: I don't get it, why not do this? foreach ( $array AS $row ) { foreach ( $row AS $k = $v ) { if ( ! is_array($v) ) { echo {$k} -- {$v}br/\n; } } } Maybe I am

Re: Re[2]: [PHP] Better way to store data in memory?

2007-07-23 Thread Kevin Waterson
This one time, at band camp, Richard Davey [EMAIL PROTECTED] wrote: Afraid not, I'm performing deformation on the data that requires a temporary location before rendering to the final image. you could use the pixel iterator in imagack extension Kevin -- Democracy is two wolves and a lamb

[PHP] get domain component from email

2007-08-07 Thread Kevin Waterson
Hi all. Im looking for a way to get the domain from an email address. Not sub domains, just the domain, so [EMAIL PROTECTED] would return example.com.mn similarly, the address [EMAIL PROTECTED] would return example.com perhaps an array of tld's, then strip the tld off the end and anything

Re: [PHP] Re: get domain component from email

2007-08-07 Thread Kevin Waterson
This one time, at band camp, Stut [EMAIL PROTECTED] wrote: Which brings me back to my earlier question of why would you want to do this? I can't think of any reason, but then again it is getting late. I would like to prevent registration of emails from certain domains that abuse a forum. eg:

[PHP] results to html table

2007-08-11 Thread Kevin Waterson
I wish to get a result set into a html table. normally this is not a problem. But I wish to use one of the results as a heading. Here is the data... ASCII art warning ++--+-+---+ | forum_group_id | forum_group_name | forum_type_name |

Re: [PHP] Reg.Photo Upload Tool

2007-09-07 Thread Kevin Waterson
This one time, at band camp, Ramesh.b [EMAIL PROTECTED] wrote: Hello, Any opensource or PHP applicaiton is available for Photo upload tool?. http://phpro.org/examples/Multiple-file-upload.html Kevin -- Democracy is two wolves and a lamb voting on what to have for lunch. Liberty is a

Re: [PHP] Re: html2png

2007-09-08 Thread Kevin Waterson
This one time, at band camp, Al [EMAIL PROTECTED] wrote: The Imagick php extension is at RC2 and like all beta ware, should not be considered for a production environment. Imagick PHP extension, easiest, or Imagemagick command line using exec(). Imagick to read a pdf and output it as a jpeg:

Re: [PHP] Image Conversion...

2007-09-08 Thread Kevin Waterson
This one time, at band camp, Tony Di Croce [EMAIL PROTECTED] wrote: I need to convert (resize, and store as blob's in a mysql db) images my users can upload. I'm wondering what the best conversion tool is... I'm considering ImageMagick... Is this the best? Is their anything that is

Re: [PHP] Buxa Coding Guidelines

2007-09-08 Thread Kevin Waterson
This one time, at band camp, tedd [EMAIL PROTECTED] wrote: At 12:17 AM +0200 9/9/07, magoo wrote: Hi NG! Just wanted to see what you think of the strictness of Buxa, according to their PHP guidelines: http://www.buxaprojects.com/en/php_coding_guidelines.htm In their oppinion stuff like

[PHP] str_replace oddity

2007-09-21 Thread Kevin Waterson
I am using str_replace to strip double quotes. $string = 'This string has quotes in it'; $string = str_replace('', '', $string); this seems to work, yet when I put the $string into mysql, it uses backslashes to escape where the quotes were. The double-quotes are gone, yet it still escapes the

Re: [PHP] GD to database directly

2006-07-11 Thread Kevin Waterson
This one time, at band camp, Jay Blanchard [EMAIL PROTECTED] wrote: 1. Do not store images in a database, it is just a bad idea from a performance perspective (as has been covered many times heretofore). rubbish, has been proven other wise, you are quoting old wives tales Please provide

Re: [PHP] GD to database directly

2006-07-11 Thread Kevin Waterson
This one time, at band camp, Austin Denyer [EMAIL PROTECTED] wrote: It is generally accepted that storing things like that in a database is a Bad Thing. Much better to store the images as files and store the path in the database. Storing paths and databases in slower than just storing

Re: [PHP] GD to database directly

2006-07-11 Thread Kevin Waterson
This one time, at band camp, Larry Garfield [EMAIL PROTECTED] wrote: There may be other reasons you'd want to store binary data in an SQL database, but it will always be a performance hit over just passing a normal file that can be streamed right off the disk to the server's NIC. How

Re: [PHP] Startinga shell process with a life of its own

2006-07-11 Thread Kevin Waterson
This one time, at band camp, Daevid Vincent [EMAIL PROTECTED] wrote: I wish PHP would add threading. We write enterprise level products with PHP, and we end up using DBUS and letting Ruby do all the real work. submit patch Kevin -- Democracy is two wolves and a lamb voting on what to have

Re: [PHP] GD to database directly

2006-07-13 Thread Kevin Waterson
This one time, at band camp, Richard Lynch [EMAIL PROTECTED] wrote: It's coming FROM THE FILE SYSTEM. databases can be stored on RAW partitions, thus eliminating FILE SYSTEM overhead Kevin -- Democracy is two wolves and a lamb voting on what to have for lunch. Liberty is a well-armed lamb

Re: [PHP] GD to database directly

2006-07-13 Thread Kevin Waterson
This one time, at band camp, Richard Lynch [EMAIL PROTECTED] wrote: You really need to TEST your assumption about the DB being faster. Do you _really_ think I am speaking without testing any of this?? I once wrote an article on this very topic in PHP mag and published the benchmarks. Kevin

Re: [PHP] GD to database directly

2006-07-13 Thread Kevin Waterson
This one time, at band camp, Richard Lynch [EMAIL PROTECTED] wrote: If you've benchmarked on YOUR hardware and have a proven savings, fine, post your tests and output. Already done in previous threads. nowhere do I say the db is faster than file system. Just that various methods of db

Re: [PHP] GD to database directly

2006-07-14 Thread Kevin Waterson
This one time, at band camp, Richard Lynch [EMAIL PROTECTED] wrote: I'm more concerned about the disaster recovery of a DB from a crashed hard drive, which has been cluttered up with binary data, making data recovery. One of the greatest benifits of binary DB storage is a single point of

Re: [PHP] Zend Studio, phpMyAdmin, and mysql.sock

2006-07-15 Thread Kevin Waterson
This one time, at band camp, Dave M G [EMAIL PROTECTED] wrote: Please understand that I was *hoping* for advice here, as Zend and PHP are surely highly correlated. But I apologize if I came across as if I *expected* answers. You raise an interesting point. Whilst PHP uses the Zend Engine

Re: [PHP] Zend Studio, phpMyAdmin, and mysql.sock

2006-07-16 Thread Kevin Waterson
This one time, at band camp, Richard Lynch [EMAIL PROTECTED] wrote: Zend has provided a great deal to the PHP community -- Zend basically pays Ze'ev and Andi (and more) to work about half their time on improving PHP Open Source code. As an ex-Zend employee I find that they are maybe the only

Re: [PHP] GD to database directly

2006-07-16 Thread Kevin Waterson
This one time, at band camp, Richard Lynch [EMAIL PROTECTED] wrote: Assume, for the sake of argument, that your hard drive crashed. And your backup tape was invalid. And the weekly backup tape is also invalid. And, for good measuere, the monthly tape is just so out-of-date, that

Re: [PHP] xml v php question

2006-07-25 Thread Kevin Waterson
This one time, at band camp, Larry Garfield [EMAIL PROTECTED] wrote: The correct answer is (b). (PHP 6 won't even have short tags, so get used to not having them.) ummm, I think it was decided to stay in php6. I could be mildly/wildly mistaken Kevin -- Democracy is two wolves and a

Re: [PHP] PHP Frameworks - Opinion

2006-08-01 Thread Kevin Waterson
This one time, at band camp, Gabe [EMAIL PROTECTED] wrote: What's the common consensus as to a solid PHP framework to use for application development? There seems to be a number of them out there, but I'm not sure which one's are the most robust, actively developed, secure, etc etc. If

Re: [PHP] Help converting C to PHP

2006-09-21 Thread Kevin Waterson
This one time, at band camp, Tom Atkinson [EMAIL PROTECTED] wrote: Hello, I am attempting to convert this code for generating the digits of pi from the original C (below) to PHP. is this for codegolf? Kevin -- Democracy is two wolves and a lamb voting on what to have for lunch. Liberty

Re: [PHP] Help converting C to PHP

2006-09-21 Thread Kevin Waterson
This one time, at band camp, Curt Zirzow [EMAIL PROTECTED] wrote: what about using: php.net/pi note the precision description. or are we talking about a different pi. The goal of the codegolf.com challenge is to print pi to 1000 places. The programmer to do it in the least keystrokes

Re: [PHP] Retrieving values from array on a class

2006-10-14 Thread Kevin Waterson
This one time, at band camp, Roman Neuhauser wrote: BTW, here is my class: class returnConfigParams { var $a; var $b; var $c; var $d; function getMySQLParams() { include($_SERVER['DOCUMENT_ROOT']./properties.php); $values = array(0 = $a, 1 = $b, 2 = $c, 3 =

Re: [PHP] Job Opening

2006-10-26 Thread Kevin Waterson
This one time, at band camp, Larry Garfield [EMAIL PROTECTED] wrote: My company is looking for a few good PHP programmers. 8--- snip - As a follow-up, since several people have asked: ---8 --- snip - How much?? Kevin -- Democracy is two wolves and a

Re: [PHP] Microsoft Partners With Zend

2006-11-01 Thread Kevin Waterson
This one time, at band camp, Ed Lazor [EMAIL PROTECTED] wrote: ps... I wonder if .NET will ever support PHP *GRIN* or perhaps something to counter php-gtk... win32php that would would be interesting Kevin -- Democracy is two wolves and a lamb voting on what to have for lunch. Liberty is a

Re: [PHP] OO website/program doubt

2006-11-01 Thread Kevin Waterson
This one time, at band camp, bruce [EMAIL PROTECTED] wrote: does php provide the ability to store objects in a session var yes http://phpro.org/tutorials/Introduction-to-PHP-Sessions.html#8 Kevin -- Democracy is two wolves and a lamb voting on what to have for lunch. Liberty is a

Re: [PHP] Problem with PHP 5.2.0

2006-11-13 Thread Kevin Waterson
This one time, at band camp, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Hi. I just installed PHP 5.2.0 and I'm running into some strange problems. xdebug Kevin -- Democracy is two wolves and a lamb voting on what to have for lunch. Liberty is a well-armed lamb contesting the vote. -- PHP

Re: [PHP] Hide Warnings

2006-11-17 Thread Kevin Waterson
This one time, at band camp, Stein Ivar Johnsen [EMAIL PROTECTED] wrote: Hi.. How can I hide Warning messages so they are not shown on screen..: code properly... -- Democracy is two wolves and a lamb voting on what to have for lunch. Liberty is a well-armed lamb contesting the vote. --

Re: [PHP] PHP Programmers

2006-11-18 Thread Kevin Waterson
This one time, at band camp, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Does anyone know of a good website, which rates PHP programmers? or Does anyone know of a good, trustworthy, reliable, and reasonably price programmer(s)? You get to choose any two of the above only. enjoy --

Re: [PHP] multiple upload files?

2006-11-21 Thread Kevin Waterson
This one time, at band camp, Stut [EMAIL PROTECTED] wrote: Does anybody know if yes/no? Quick example here... http://phpro.org/examples/Mulitple-file-upload.html Kevin -- Democracy is two wolves and a lamb voting on what to have for lunch. Liberty is a well-armed lamb contesting the vote.

Re: [PHP] Please hack my app

2006-11-22 Thread Kevin Waterson
This one time, at band camp, Ivo F.A.C. Fokkema [EMAIL PROTECTED] wrote: *** THIS IS NOT ABOUT HACKING THE SERVER *** But about getting in the application when you're not allowed to! So, basically, you want _us_ to do _your_ bug checking?? Kevin -- Democracy is two wolves and a lamb voting

Re: [PHP] Please hack my app

2006-11-22 Thread Kevin Waterson
This one time, at band camp, Rory Browne [EMAIL PROTECTED] wrote: you can hire - Chris Shiflett. BWAHAHAHAHAHAHAHH I actually did laugh... -- Democracy is two wolves and a lamb voting on what to have for lunch. Liberty is a well-armed lamb contesting the vote. -- PHP General Mailing

[PHP] New ImageMagick Extension

2006-12-24 Thread Kevin Waterson
Just what all long suffering image folks have been needing http://phpro.org/phpdev/New-ImageMagick-Extension.html When finished, this should be alot of fun. K -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] MS purchase Yahoo

2008-03-31 Thread Kevin Waterson
Did they finally do it or is April fools com early? http://digg.com/business_finance/Microsoft_Purchase_Yahoo_For_62_Billion K -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] MS purchase Yahoo

2008-03-31 Thread Kevin Waterson
On Mon, 2008-03-31 at 17:05 -0700, mike wrote: You are pathetic. Spamming your own fake digg article to your own fake news story and didn't even take the effort to host it on another domain? BWHAHAHAHHAA Thanks, nice reaction, made my day, do you have more? Kev -- PHP General Mailing

Re: [PHP] Dynamic dropdown lists (select)

2008-04-06 Thread Kevin Waterson
On Fri, 2008-04-04 at 12:51 +0200, Angelo Zanetti wrote: So there will be 2 dropdown lists. First one say gets (for example) a list of cars, Then once the car is choosen the second list is populated with the list of models for the car choosen. Try something like this-

Re: [PHP] objects stored in sessions

2008-04-06 Thread Kevin Waterson
On Sun, 2008-04-06 at 11:02 -0400, Mark Weaver wrote: So, if I create a user object, set the properties of said user object and store that object in the user session will that object be available throughout the application from the session?

Re: [PHP] IPv6 validation

2008-07-12 Thread Kevin Waterson
This one time, at band camp, Yeti [EMAIL PROTECTED] wrote: Now i was wondering of what there might be the best way to validate an IPv6 address. from this url.. http://phpro.org/tutorials/Filtering-Data-with-PHP.html#9 ?php /*** an IP address ***/ $ip =

Re: [PHP] IPv6 validation

2008-07-12 Thread Kevin Waterson
This one time, at band camp, Yeti [EMAIL PROTECTED] wrote: It will still take some time until every provider has PHP5 running, at least where I am from. I have many customers who want me to get their sites running on some cheap webspace they got along with their internet connection. Then you

Re: [PHP] PDO Question. Number of rows returned

2008-07-12 Thread Kevin Waterson
This one time, at band camp, Stephen [EMAIL PROTECTED] wrote: I am switching to PDO and can't find an equivalent to mysql_num_rows. Am I missing something silly? Or is there a change of thinking needed for PDO? How should I determine how many rows a query returned? PDO returns an

Re: [PHP] IPv6 validation

2008-07-13 Thread Kevin Waterson
This one time, at band camp, Per Jessen [EMAIL PROTECTED] wrote: No, it's a simple matter of need. People also run apache 1.x, mysql 3.x etc. There are still Linux 2.2 and 2.4 systems out there too. 4 years its been, thats incompetence. Kevin -- PHP General Mailing List

Re: [PHP] OpenID

2008-07-17 Thread Kevin Waterson
This one time, at band camp, Alex Chamberlain [EMAIL PROTECTED] wrote: Has anybody had any success implementing an OpenID server in PHP?? Sure, I had mine all set up on oceania.net and then the domain got stolen. So, all my OpenID info went with it.. not as good an idea as it first seems.

Re: [PHP] OpenID

2008-07-18 Thread Kevin Waterson
This one time, at band camp, Per Jessen [EMAIL PROTECTED] wrote: I'm curious, how does a domain get stolen ? This is a process I am now looking in to. The domain was registered via a reseller who I also had an email address with. The reseller had access to to both my domain registration

Re: [PHP] Why PHP4?

2008-07-30 Thread Kevin Waterson
This one time, at band camp, Richard Heyes [EMAIL PROTECTED] wrote: I'm interested - why are people still using PHP4? It's been over 4 years (I think) - plenty of time to upgrade to five. I asked that question and was called a troll... Kevin -- PHP General Mailing List (http://www.php.net/)

Re: [PHP] Web2.0 style tags - where to start?

2008-07-30 Thread Kevin Waterson
This one time, at band camp, Paul Jinks [EMAIL PROTECTED] wrote: Does anyone know of any good resources on building a tagging system? The video for now will be held on a normal LAMP machine as will everything else. Tagging... http://phpro.org/tutorials/Tagging-With-PHP-And-MySQL.html Kevin

Re: [PHP] Using Ajax to populate a drop-down list

2008-08-08 Thread Kevin Waterson
This one time, at band camp, Don [EMAIL PROTECTED] wrote: Does anyone have an example of how to do this? http://phpro.org/tutorials/Creating-Dropdowns-with-PHP-and-Xajax.html enjoy, Kevin -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Semi-ADVERT, not really spam, sorry for it

2008-08-20 Thread Kevin Waterson
This one time, at band camp, V S Rawat [EMAIL PROTECTED] wrote: Sorry for bothering the rest of you. I hope you wouldn't really mind if some of our colleagues who are doing such a lovely volunteer work here get to earn some money for a bottle of beer and more. Rest assured that it is no

Re: [PHP] Semi-ADVERT, not really spam, sorry for it

2008-08-21 Thread Kevin Waterson
This one time, at band camp, Robert Cummings [EMAIL PROTECTED] wrote: Your assumption that this will occur is clearly based on false presumptions. For instance you assume that what has happened before will happen again. Secondly, your assertion that there are pedants waiting to pick apart

Re: [PHP] Regex for email validation

2008-08-27 Thread Kevin Waterson
This one time, at band camp, Yeti [EMAIL PROTECTED] wrote: ?php # this one worked fine for me, but it does not cover the full RFC like: name [EMAIL PROTECTED] OR name [EMAIL PROTECTED] $regex = ^[a-z0-9,!#\$%'\*\+/=\?\^_`\{\|}~-]+(\.[a-z0-9,!#\$%'\*\+/=\?\^_`\{\|}~-]+)[EMAIL

Re: [PHP] Recursive Iteration over a collection of objects

2008-09-08 Thread Kevin Waterson
This one time, at band camp, David Lidstone [EMAIL PROTECTED] wrote: which with hindsight is completely illogical! I also wasn't aware of the constants. Is there a simple tutorial / docs you know of for SPL? http://www.phpro.org/tutorials/Introduction-to-SPL.html Kevin -- PHP General

Re: [PHP] ASCII Captcha

2008-09-14 Thread Kevin Waterson
This one time, at band camp, tedd [EMAIL PROTECTED] wrote: I fixed the errors you spoke about except I could never get the Graphic CAPTCHA to fail. Also, you're supposed to click the accessibility icon to get the page to speak the number. What if the user is deaf and blind? they are

Re: [PHP] question about google maps

2008-11-09 Thread Kevin Waterson
This one time, at band camp, Sudhakar [EMAIL PROTECTED] wrote: hi how do i go about displaying an address which appears on google maps for a business on a web page. what are the steps. if some one knows about this please let me know. http://www.phpro.org/classes/Phproogle.html and

Re: [PHP] Days until Easter and Christmas

2008-11-18 Thread Kevin Waterson
This one time, at band camp, tedd [EMAIL PROTECTED] wrote: Easter lands on different dates depending upon several different factors. For example in Canada it's the day after it is in the USA -- I guess Canadians are slower, eh? :-) Also, in some religions the date is the full-moon after

Re: [PHP] store class zithin session

2008-11-20 Thread Kevin Waterson
This one time, at band camp, Alain Roger [EMAIL PROTECTED] wrote: Hi, i have a class and i would like to store it zithin session. i was thinking to use serialize/unserialize but it does not work. http://www.phpro.org/tutorials/Introduction-To-PHP-Sessions.html#8 Kevin -- PHP General

Re: [PHP] Job opportunity in Denver, CO - Jr. PHP developer needed

2008-12-05 Thread Kevin Waterson
This one time, at band camp, Nick Gasparro [EMAIL PROTECTED] wrote: The perfect candidate will possess the following skills: * Serious OO design background * PHP5 (this will be your primary language, though you can learn it on the job ) * Strong database design skills (MySql

Re: [PHP] A MySQL Question

2008-12-07 Thread Kevin Waterson
This one time, at band camp, tedd [EMAIL PROTECTED] wrote: In any event, the interviewer asked me how long I've been using MySQL and I replied several years. After which she asked a single question, which was What does EXIST mean? I only ever use it in rollbacks to check if a table exists.

Re: [PHP] Dates and Mysql

2008-12-10 Thread Kevin Waterson
This one time, at band camp, VamVan [EMAIL PROTECTED] wrote: I was wondering how is it possible for me to query the table to retrieve all the records that are one week less than the time stamp? SELECT DATE_SUB(date_time_column, INTERVAL 1 WEEK) FROM your_table;

Re: [PHP] First PHP program

2008-12-13 Thread Kevin Waterson
This one time, at band camp, Anwarulhaq anwarulha...@gmail.com wrote: I am working on MS.net.But now i days i want to work on PHP. I dont know the basis of PHP. Can any one guide me how i have to start with PHP and which editor i should use. Also the links of useful sites for help in PHP. I

Re: [PHP] Image Resizing

2008-12-21 Thread Kevin Waterson
This one time, at band camp, Stephen Alistoun stephenalist...@gmail.com wrote: I want all the images to resize to 100px width but the height adjusts automatically. Two ways, GD or Imagick http://www.phpro.org/examples/GD-Thumbnail-Based-On-Image-Type.html

Re: [PHP] RSS Feed on my PHP site

2009-01-06 Thread Kevin Waterson
This one time, at band camp, DanBarker85 danbarke...@hotmail.co.uk wrote: Hi i'm new to RSS Feeds, but how would it be possible to have a BBC News Feed added to my website? I've searched for some kind of tutorial but haven't found anything. http://www.phpro.org/classes/Rss-Class.html

Re: [PHP] Zend (or other) Framework...where to start?

2009-01-15 Thread Kevin Waterson
WRT Frameworks.. before I rant, I should declare myself as an ex-consultant to Zend. I have used most of the more popular frameworks, and in my current employment am using Zend Framework. All of the frameworks I have used, have had some good features, and some poorly implemented ones. This, I

Re: [PHP] print a to z

2009-01-15 Thread Kevin Waterson
This one time, at band camp, Leon du Plessis l...@dsgnit.com wrote: I used that notation before, and it did not work 100%. Adapt as follows: for ($i = 'a'; $i = 'z'; $i++) if ($i == aa) break; else echo $i; foreach(range('a', 'z') as $letter ) { echo $letter; } Kevin -- PHP

Re: [PHP] Parsing HTML href-Attribute

2009-01-16 Thread Kevin Waterson
This one time, at band camp, mike mike...@gmail.com wrote: On Fri, Jan 16, 2009 at 10:58 AM, mike mike...@gmail.com wrote: only if it's parseable xml :) Or not! Ignore me. Supposedly this can handle HTML too. I'll have to try it next time. Normally I wind up having to use tidy to scrub

Re: [PHP] Parsing HTML href-Attribute

2009-01-16 Thread Kevin Waterson
This one time, at band camp, Eric Butera eric.but...@gmail.com wrote: You could also use DOM for this. http://us2.php.net/manual/en/domdocument.getelementsbytagname.php http://www.phpro.org/examples/Get-Links-With-DOM.html Kevin -- PHP General Mailing List (http://www.php.net/) To

Re: [PHP] What's the best way to rotate, resize, and thumbnail?

2009-01-17 Thread Kevin Waterson
This one time, at band camp, Al n...@ridersite.org wrote: Imagick class. Has more image manipulating functions than you'll ever use. You name, and there's function to do it. http://www.phpro.org/examples/Create-Thumbnail-With-GD.html

Re: [PHP] New PHP User with a simple question

2009-01-25 Thread Kevin Waterson
Sorry, I am also new to the etiquette of these mail lists. Hope this will get you started, http://www.phpro.org/tutorials/Introduction-to-PHP-templating.html Kevin http://phpro.org -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: frameworks

2009-01-30 Thread Kevin Waterson
On Fri, 2009-01-30 at 18:03 -0600, Shawn McKenzie wrote: From what I could tell, this was the best RAD, however if you prefer to lay everything out your own way and do things your own way then probably CI or Zend. I use Zend every day in my current employ. It is like pulling teeth and its

Re: [PHP] paging

2009-02-09 Thread Kevin Waterson
On Tue, 2009-02-10 at 03:26 +, Jim Douglas wrote: http://phpro.org/tutorials/Pagination-with-PHP-and-PDO.html Does anyone have a link to any examples of paging? Kevin http://phpro.org -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] Re: Automated Numerical Filenames for Directory

2005-07-30 Thread Kevin Waterson
This one time, at band camp, Smittie [EMAIL PROTECTED] wrote: Okay - figured it out and have it working now What was your solution? Kevin -- Democracy is two wolves and a lamb voting on what to have for lunch. Liberty is a well-armed lamb contesting the vote. -- PHP General Mailing List

Re: [PHP] How to show complete exception text?

2005-08-19 Thread Kevin Waterson
This one time, at band camp, Christopher J. Bottaro [EMAIL PROTECTED] wrote: Hi, When an exception propagates all the way up the stack frame and splatters itself on my webpage, most of the text is cut off! This is completely useless. I can see that there is an error, but I can't read the

Re: [PHP] Super globals ?

2005-08-20 Thread Kevin Waterson
This one time, at band camp, Jasper Bryant-Greene [EMAIL PROTECTED] wrote: Wong HoWang wrote: Hello, I want to know that is there any way to create a super global in PHP? Only with the runkit extension. Take a look: http://www.php.net/runkit This is exactly what $_GLOBALS is for, why

Re: [PHP] Super globals ?

2005-08-20 Thread Kevin Waterson
This one time, at band camp, Jasper Bryant-Greene [EMAIL PROTECTED] wrote: Because he asked for superglobals, not globals. $GLOBALS (not $_GLOBALS) meh, force of habit happens to be an example of a superglobal. and variable can be set within its scope, so why not use it? As we see in the

Re: [PHP] Files passing through

2005-08-22 Thread Kevin Waterson
This one time, at band camp, Evert | Rooftop [EMAIL PROTECTED] wrote: What is the fastest way to do this? I know echo(file_get_contents('myfile')); is not a good idea ;) Why not? Kevin -- Democracy is two wolves and a lamb voting on what to have for lunch. Liberty is a well-armed lamb

Re: [PHP] Files passing through

2005-08-22 Thread Kevin Waterson
This one time, at band camp, Philip Hallstrom [EMAIL PROTECTED] wrote: My guess would be because file_get_contents returns the contents as a string. So if 'myfile' is 100mb, you're going to have to allocate 100mb of memory to store that string while echo() spits it back out. But I'm just

Re: [PHP] how to divide string

2005-09-05 Thread Kevin Waterson
This one time, at band camp, Adi Zebic [EMAIL PROTECTED] wrote: is there any magic function who can give me from: $string = abcdefghijklmnopqrstuwvxyz; somthing like this: abcd efgh ijkl mnop qrst uwvx yz $newstring=chunk_split($string, 4, 'br /'); Kevin -- Democracy is two

[PHP] SPL array filter

2005-09-08 Thread Kevin Waterson
Want to filter out cats from this array using SPL FilterIterator $arr = array('koala', 'dingo', 'cat', 'Steve Irwin', 'fish'); kind regrards Kevin -- Democracy is two wolves and a lamb voting on what to have for lunch. Liberty is a well-armed lamb contesting the vote. -- PHP General Mailing

Re: [PHP] IS the list broken, or have I botched up somehow?

2005-09-09 Thread Kevin Waterson
This one time, at band camp, Jay Blanchard [EMAIL PROTECTED] wrote: I haven't seen a message for a week, since I changed jobs and e-mail addresses. I got a subscription confirmation. Can someone reply off-list to let me know if they have seen this? THanks! -- PHP General Mailing List

Re: [PHP] Convert a timestamp to RFC822??

2005-09-11 Thread Kevin Waterson
This one time, at band camp, Brian Dunning [EMAIL PROTECTED] wrote: I get my timestamp from the db in this format (I don't have control over this): 2004-05-14 13:24:48 I need to convert it to RFC822 to make it a valid RSS pubDate field like this: Wed, 02 Oct 2002 13:00:00 GMT

Re: [PHP] linux embedded no db which way

2005-09-14 Thread Kevin Waterson
This one time, at band camp, adriano ghezzi [EMAIL PROTECTED] wrote: guys hi all, quite new in this list I'm involved in a project with php in a linux embedded environment, it's impossibile to use a db server, any suggestion on how to handle few hundreds of simple records ? sqlite.org SQLite

Re: [PHP] PDO for PHP 4 (was Re: Quick Poll: PHP 4 / 5)

2005-09-15 Thread Kevin Waterson
This one time, at band camp, Manuel Lemos [EMAIL PROTECTED] wrote: The matter is that PDO does not offer real database independence, so application developers that want to not have to deal with the important aspects that are different among databases will still have to deal them in their

Re: [PHP] email validation regex

2005-09-16 Thread Kevin Waterson
This one time, at band camp, bruce [EMAIL PROTECTED] wrote: hi.. looking for a good/working/tested php email validation regex that conforms to the rfc2822 standard. This will be fun, everybody has their own which is always best. No two people will agree what is correct method and will

Re: [PHP] pulling in template file in var and populating vars?

2006-03-23 Thread Kevin Waterson
This one time, at band camp, clive [EMAIL PROTECTED] wrote: You could also look at using a templating engine like Smarty for instance. BHAHAHAHAHAHAHAAA 1000 lines of code for hello world -- Democracy is two wolves and a lamb voting on what to have for lunch. Liberty is a well-armed lamb

Re: [PHP] PHP Links

2006-03-25 Thread Kevin Waterson
This one time, at band camp, Thomas Bonham [EMAIL PROTECTED] wrote: I'm trying to find out how make following happen Example: http://www.example.com/test.php?id=20 in test.php put this code ?php echo $_GET['id']; ? Kevin -- Democracy is two wolves and a lamb voting on what to have for

Re: [PHP] microsoft PHP ?

2006-04-02 Thread Kevin Waterson
This one time, at band camp, Matt Richards [EMAIL PROTECTED] wrote: Zouari Fourat: lol, bet you feel silly now :) Of course, the real give away in the original article on www.phpro.org was the MS CEO Al Porfoli is an anagram of April Fool Kevin -- Democracy is two wolves and a lamb voting

[PHP] GD to move to php.net

2006-04-04 Thread Kevin Waterson
This can only mean good things for PHP and GD development. Hope to see some real improvements to the lib now http://phpro.org/phpdev/GD-moving-home-to-PHP.html K -- Democracy is two wolves and a lamb voting on what to have for lunch. Liberty is a well-armed lamb contesting the vote. -- PHP

  1   2   >