Re: [PHP] Been staring at the code for too long...

2009-01-09 Thread Jason Pruim
On Jan 9, 2009, at 4:29 PM, Daniel Brown wrote: On Fri, Jan 9, 2009 at 13:38, Jason Pruim wrote: Okay... So I know this is a stupid question... It sure is. I'm going to rewrite the whole thing anyway... I think I can do it better/more efficient given the time to look at it. I reall

Re: [PHP] Editing in a text area field

2009-01-09 Thread Jim Lucas
c...@l-i-e.com wrote: > Rule #1. > Never, ever, ever, alter the user's input, EXCEPT for sanitizing/filtering. > Specifically, do NOT add tags in place of newlines. > Store the newlines. > > Upon OUTPUT, you can use nl2br() to get tags. > Or str_replace if you want instead. I would agree with

Re: [PHP] Re: hello

2009-01-09 Thread Simon J Welsh
On 10/01/2009, at 10:21 AM, Daniel Brown wrote: On Fri, Jan 9, 2009 at 16:16, Robert Cummings wrote: We're at -13C right now without windchill and this is in Ottawa which is a lot further south than I've lived in the past (Timmins, Sudbury). Yeah, no offense, my friend, but you can

Re: [PHP] Couple of beginner questions

2009-01-09 Thread Eric Butera
On Fri, Jan 9, 2009 at 4:45 PM, wrote: > > With all due respect, Eric, you're not testing what we're discussing. > > A "real" CLI test would be more like: > > time cat foo.html > time php -q foo.html > > I.E., how long does PHP take to read/write foo.html without breaking into PHP > "mode" for s

Re: [PHP] Couple of beginner questions

2009-01-09 Thread ceo
I'm talking about having PHP rip through .html files without any inside of them. You added Don't do that. :-) ln -s foo.html foo.php Surf to both and time it. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Convert CMYK values to RGB values?

2009-01-09 Thread Brian Dunning
Anyone know how to convert CMYK values to RGB values? I'm just trying to translate the numbers from one to the other, not actually do any graphic stuff. Thanks. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Convert CMYK values to RGB values?

2009-01-09 Thread ceo
Short Answer: You can't. :-) http://en.wikipedia.org/wiki/CMYK Long Answer: You probably can, but not in some way that makes sense to discuss here on PHP-general. The external links in the above article should get you started. -- PHP General Mailing List (http://www.php.net/) To

Re: [PHP] Re: hello

2009-01-09 Thread Phpster
-12C in Toronto Greets from sunny Ontario Bastien Sent from my iPod On Jan 9, 2009, at 5:19 PM, Simon J Welsh wrote: On 10/01/2009, at 10:21 AM, Daniel Brown wrote: On Fri, Jan 9, 2009 at 16:16, Robert Cummings wrote: We're at -13C right now without windchill and this is in Ottawa

Re: [PHP] Convert CMYK values to RGB values?

2009-01-09 Thread Brian Dunning
I think your short answer is the right one. This explains why I didn't find that cmyk_to_rgb() function on php.net. Thanks... :-( On Jan 9, 2009, at 3:14 PM, c...@l-i-e.com wrote: Short Answer: You can't. :-) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: ht

Re: [PHP] Couple of beginner questions

2009-01-09 Thread Eric Butera
On Fri, Jan 9, 2009 at 5:53 PM, wrote: > > I'm talking about having PHP rip through .html files without any > > inside of them. > > You added > > Don't do that. :-) > > ln -s foo.html foo.php > > Surf to both and time it. > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscrib

Re: [PHP] Using MDB2 outside the PEAR framework?

2009-01-09 Thread Murray
I'm still experiencing problems making use of my imported MDB2 classes. General querying appears to work fine, but performing something like $mdb2->quote($variable) causes the application to come to a halt, without any error messages (at least, without any displayed while debugging through Netbean

Re: [PHP] Re: First steps towards unix and php

2009-01-09 Thread Ashley Sheridan
On Thu, 2009-01-08 at 17:33 -0600, Skip Evans wrote: > Ross McKay wrote: > > You should also check out editors and IDEs - STFW for previous posts > > made to this and other groups. Then pick Geany ;) > > > > Hey Ross & all, > > I used Kate on Ubuntu for a code editor. I just read through a bit a

Re: [PHP] imagejpeg, imagecreatefromjpeg both choke

2009-01-09 Thread Ashley Sheridan
On Fri, 2009-01-09 at 09:25 -0800, Brian Dunning wrote: > Same thing, no output at all. I can access the image directly in my > browser and it's fine. > > On Jan 9, 2009, at 7:52 AM, Zechim wrote: > > > try, > > > > header('Content-type: image/jpeg'); > > $image = imagecreatefromjpeg($you

Re: [PHP] Convert CMYK values to RGB values?

2009-01-09 Thread Phpster
I found a function on phpbuilder.com but can't copy it on the iPod keyboard. I did a google on php rbg to cmyk value Bastien Sent from my iPod On Jan 9, 2009, at 6:43 PM, Brian Dunning wrote: I think your short answer is the right one. This explains why I didn't find that cmyk_to_rgb(

Re: [PHP] Convert CMYK values to RGB values?

2009-01-09 Thread Shawn McKenzie
c...@l-i-e.com wrote: > Short Answer: > > You can't. > :-) > > http://en.wikipedia.org/wiki/CMYK > > Long Answer: > You probably can, but not in some way that makes sense to discuss here on > PHP-general. > > The external links in the above article should get you started. > May not always co

Re: [PHP] Convert CMYK values to RGB values?

2009-01-09 Thread John Corry
Have you looked here? http://www.google.com/custom?domains=www.phpclasses.org&q=cmyk+to+rgb&sa=Search&sitesearch=www.phpclasses.org&client=pub-2951707118576741&forid=1&channel=5742870948&ie=ISO-8859-1&oe=ISO-8859-1&cof=GALT%3A%23663399%3BGL%3A1%3BDIV%3A%2322%3BVLC%3A663399%3BAH%3Acenter%3BBGC%

[PHP] Apache File Quesiton

2009-01-09 Thread Gary
Not sure how to word this, but I have just installed the XAMMP package with Apache, PHP for the purpose of having a testing server. My confusion is the location of the files. I am using Dreamweaver CS3, and all of my sites were in My Douments\Sites. When I was trying to set up the testing ser

Re: [PHP] Apache File Quesiton

2009-01-09 Thread Phpster
Check the httpd.conf file for the location of the web dir. It's the documentroot directive Bastien Sent from my iPod On Jan 9, 2009, at 9:13 PM, "Gary" wrote: Not sure how to word this, but I have just installed the XAMMP package with Apache, PHP for the purpose of having a testing serv

Re: [PHP] Re: hello

2009-01-09 Thread Paul Scott
On Fri, 2009-01-09 at 18:15 -0500, Phpster wrote: > -12C in Toronto > Meh! 30C - 35C in Cape Town, South Africa almost every day for the last month. It has been a scorcher this year! -- Paul All Email originating from UWC is covered by disclaimer http://www.uwc.ac.za/portal/public/portal_serv

Re: [PHP] Apache File Quesiton

2009-01-09 Thread Murray
In general, as Phpster points out, your development will take place in directories underneath your htdocs directory, which, if you installed XAMPP into the root directory on C:, would be something like C:\xampp\htdocs\yourdevdirectory. Depending on how XAMPP is configured (you can make many change

Re: [PHP] Re: hello

2009-01-09 Thread Robert Cummings
On Sat, 2009-01-10 at 05:20 +0200, Paul Scott wrote: > On Fri, 2009-01-09 at 18:15 -0500, Phpster wrote: > > -12C in Toronto > > > > Meh! 30C - 35C in Cape Town, South Africa almost every day for the last > month. It has been a scorcher this year! Grumble, grumble... did I mention freshwater fal

<    1   2