Re: [PHP] ASCII Captcha

2008-08-29 Thread Eric Gorr
On Aug 29, 2008, at 2:42 PM, Richard Heyes wrote: I understand there are different reasons behind the use of CAPTCHA's, but in the end they still present accessibility problems. And their use is a trade-off that you accept. Nonsense. There is no reason why the usage of Captcha's would nee

Re: [PHP] ASCII Captcha

2008-08-29 Thread Eric Gorr
On Aug 29, 2008, at 11:33 AM, tedd wrote: I understand there are different reasons behind the use of CAPTCHA's, but in the end they still present accessibility problems. And their use is a trade-off that you accept. Nonsense. There is no reason why the usage of Captcha's would need to pr

Re: [PHP] Checking for http://

2008-08-29 Thread Eric Butera
On Fri, Aug 29, 2008 at 11:33 AM, Dan Joseph <[EMAIL PROTECTED]> wrote: > You could use substr() (www.php.net/substr) > > if ( substr( $web_site, 0, 7 ) != "http://"; ) > { > $web_site = "http://"; . $web_site; > } > > -- > -Dan Joseph Or parse_url() -- PHP General Mailing List (http://www.php.n

Re: [PHP] ASCII Captcha

2008-08-29 Thread Eric Gorr
On Aug 29, 2008, at 10:30 AM, tedd wrote: No matter how many times you cut this rope, it's still too short. So, I'm curious, what do you suggest? As near as I can tell, even with all of the problems (many of which can be mitigated with enough effort) associated with the use of Captcha's,

Re: [PHP] Attributes vs. Accessors

2008-08-25 Thread Eric Butera
utter up my class with that nonsense? Output: Pre-blah: null Post-blah: string 'blah' (length=4) Reading meh: string 'meh value' (length=9) Exception: object(Exception)[2] protected 'message' => string 'The property meh is only' (length=24) private

Re: [PHP] Attributes vs. Accessors

2008-08-25 Thread Eric Butera
On Mon, Aug 25, 2008 at 8:32 AM, Philip Thompson <[EMAIL PROTECTED]> wrote: > Hi all. > > Curious. Which do you prefer and why? > > class Hello { >public $hi; > >function __construct () { >$this->hi = 'Well Hello There!'; >} > >function hi () { >return $this->hi; >

Re: [PHP] Quick question regarding getcwd() and directory location.

2008-08-22 Thread Eric Butera
On Thu, Aug 21, 2008 at 8:50 PM, Ólafur Waage <[EMAIL PROTECTED]> wrote: > I'll throw out an example here. > > I have a directory structure of: /var/www/example/ > And in that i have a file: index.php > That file echo's getcwd() and returns: /var/www/example/ > > Now i tell Apache or Lighty that if

Re: [PHP] include methods of one class in another

2008-08-21 Thread Eric Butera
On Thu, Aug 21, 2008 at 6:10 AM, Pavel <[EMAIL PROTECTED]> wrote: > Hello, firstly, sorry for my English... > > I have class: > //--- > class manageClassError{ >private $errorsList=array(); > > >private function addError($ex){ >$errorsList[]=$ex; >} >public function isError(

Re: [PHP] FCKEditor, TinyMCE, ... I need a light weight WYSIWYG HTML Editor

2008-08-17 Thread Eric Butera
On Sun, Aug 17, 2008 at 8:33 AM, AmirBehzad Eslami <[EMAIL PROTECTED]> wrote: > Dear list, > > I'm looking for a light weight WYSIWYG HTML Editor to allow > users to send private messages to each other in a forum application. > > FCKEditor is too complex and very huge for my purposes. I want a > si

Re: [PHP] SESSION problem

2008-08-16 Thread Eric Butera
On Sat, Aug 16, 2008 at 10:06 AM, Stut <[EMAIL PROTECTED]> wrote: > I wish I understood the reason why it's like this but I've never looked into > the session extension in that level of detail, but I doubt such a limitation > would exist if there was not a very good reason for it. But again, I don'

Re: [PHP] Licensing

2008-08-16 Thread Eric Butera
On Sat, Aug 16, 2008 at 10:34 AM, Richard Heyes <[EMAIL PROTECTED]> wrote: > Hi, > > Don't think me a money grabbing bast (well, I guess I am...) but I'd > just like to know if you've got any input on trying to get people to > cough up some readies in return for the mounds of free code I give > awa

Re: [PHP] PHP Script/Thread ID thingie

2008-08-15 Thread Eric Butera
On Fri, Aug 15, 2008 at 11:37 AM, <[EMAIL PROTECTED]> wrote: > > I'm logging things with error_log, and would like to be able to sort out one > script run from another. > > So I'm looking for some kind of "script id" or "thread id" or "PHP script run > execution ID" type of function. > > getmypi

Re: [PHP] PHP editor for linux

2008-08-14 Thread Eric Butera
On Thu, Aug 14, 2008 at 4:59 PM, Nathan Nobbe <[EMAIL PROTECTED]> wrote: > i used to use php-eclipse + subclipse all the time; i never had to 'install > from source' or had issues installing subclipse on top of php-eclipse... > > just my 2c, > > vim + cli + protoeditor(as needed) > > -nathan > Wha

Re: [PHP] Re: PHP editor for linux

2008-08-14 Thread Eric Butera
On Thu, Aug 14, 2008 at 1:36 PM, Colin Guthrie <[EMAIL PROTECTED]> wrote: > As much as I hate +1 emails, this is a good options... Good subversion > integration too if that floats your boat. > > Col > +1 for subclipse! ;D -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] PHP editor for linux

2008-08-14 Thread Eric Butera
On Thu, Aug 14, 2008 at 1:05 PM, It flance <[EMAIL PROTECTED]> wrote: > Hi, > > What do you think is the best php editor for linux. > > I'm using the Debian distribution. > > Thanks > > > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] tidy

2008-08-11 Thread Eric Butera
On Fri, Aug 8, 2008 at 3:46 PM, Selwyn Polit <[EMAIL PROTECTED]> wrote: > How do I install php-tidy extension on a hosted linux? I don't have access > to yum or apt-get. When I try pecl install tidy this fails > > .. > checking for TIDY support... yes, shared > configure: error: Cannot find libti

Re: [PHP] Back to Basics - Why Use Single Quotes?

2008-08-01 Thread Eric Butera
On Fri, Aug 1, 2008 at 4:18 AM, Peter Ford <[EMAIL PROTECTED]> wrote: > > Now *that's* a good reason... anything that means fewer \'s or \"s. > I often go for HEREDOC syntax if the backslashes start taking over - > readability is much more important to me than nanoseconds of performance. > > There'

Re: [PHP] Writing my own web based user forum

2008-08-01 Thread Eric Butera
On Fri, Aug 1, 2008 at 9:27 AM, Jason Pruim <[EMAIL PROTECTED]> wrote: > The problem with that is I don't have any code to show since I'm going to be > writing it :) > > Basically, it's a site where people can upload pictures to compare with > other's (Non-porn) so I need to write an authentication

Re: [PHP] upload file problem

2008-07-31 Thread Eric Butera
On Thu, Jul 31, 2008 at 10:18 AM, Jignesh Thummar <[EMAIL PROTECTED]> wrote: > I'm trying to upload the file. It's showing me successfully uploaded. > But it's not able to move from temp directory to my defined directory > > my code: > > if (is_uploaded_file($_FILES['myfile']['tmp_name'])) { > mo

Re: [PHP] Back to Basics - Why Use Single Quotes?

2008-07-31 Thread Eric Butera
On Wed, Jul 30, 2008 at 7:03 PM, mike <[EMAIL PROTECTED]> wrote: > On 7/30/08, Stephen <[EMAIL PROTECTED]> wrote: > >> But I wonder, is there any reason to use single quotes? > > extremely minor performance gains, afaik. > > probably moreso when doing $foo["bar"] and $foo['bar'] > > but i believe i

Re: [PHP] Back to Basics - Why Use Single Quotes?

2008-07-31 Thread Eric Butera
On Wed, Jul 30, 2008 at 6:51 PM, Stephen <[EMAIL PROTECTED]> wrote: > I have traditionally used double quotes going back to my PASCAL days. > > I see many PHP examples using single quotes, and I began to adopt that > convention. > > Even updating existing code. > > And I broke some stuff that was d

Re: [PHP] Programming With Revision History

2008-07-28 Thread Eric Butera
On Mon, Jul 28, 2008 at 11:58 AM, Nate Tallman <[EMAIL PROTECTED]> wrote: > Hey guys, > Does anyone know of any good literature on programming revision history into > an application? I'm looking for something covering theory around revision > history. > > For a little background info, I'm dealing w

Re: [PHP] Why PHP4?

2008-07-28 Thread Eric Butera
On Mon, Jul 28, 2008 at 8:12 AM, 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. > > -- > Richard Heyes > http://www.phpguru.org Why is COBOL still in use? :) -- PHP General Maili

Re: [PHP] PHP Threads (Language) extension?

2008-07-26 Thread Eric Butera
On Sat, Jul 26, 2008 at 6:04 PM, Jason Knight <[EMAIL PROTECTED]> wrote: > I can't find an extension that would allow you to use the PSOIX thread > functions in PHP. I know of the pcntl_ functions but fork() just won't do > it for me, I need access to real threads. > > I started writing an extensi

Re: [PHP] syntax error

2008-07-21 Thread Eric Butera
On Mon, Jul 21, 2008 at 8:32 AM, Aschwin Wesselius <[EMAIL PROTECTED]> wrote: > Oh my. I'm so sorry. You're absolutely right. I mixed these two. I'm a > bit side-tracked today. > > Thanks for pointing that out. > > > -- > > Aschwin Wesselius It's no problem, I got scared I was spreading p

Re: [PHP] syntax error

2008-07-21 Thread Eric Butera
On Mon, Jul 21, 2008 at 7:55 AM, Aschwin Wesselius <[EMAIL PROTECTED]> wrote: > Eric Butera wrote: > > On Mon, Jul 21, 2008 at 7:24 AM, Ronald Wiplinger <[EMAIL PROTECTED]> > wrote: > > > On a system with php4 and mysql 4.x I had these lines: > > require(&

Re: [PHP] syntax error

2008-07-21 Thread Eric Butera
On Mon, Jul 21, 2008 at 7:24 AM, Ronald Wiplinger <[EMAIL PROTECTED]> wrote: > On a system with php4 and mysql 4.x I had these lines: > > require("../db-config"); // includes $dbhost, $buname, $dbpass > $db = mysql_connect($dbhost, $dbuname, $dbpass); > mysql_select_db($dbname,$db); > >$sql

Re: [PHP] Optimization of PHP Code

2008-07-20 Thread Eric Butera
On Fri, Jul 18, 2008 at 2:38 PM, Robert Cummings <[EMAIL PROTECTED]> wrote: > On Fri, 2008-07-18 at 21:33 +0300, Sancar Saran wrote: >> And one thing. >> >> > (1). It is very convenient to pre-process static information at compile >> > time rather than on every request (specific properties, content

Re: [PHP] Re: very very small CMS

2008-07-19 Thread Eric Butera
On Sat, Jul 19, 2008 at 4:31 PM, tedd <[EMAIL PROTECTED]> wrote: > No problem -- I had the data backed-up anyway. I figured that someone would > do what you did and I was ready for it -- it was easy enough to fix. > > But, it did start me thinking about what bad things might happen if I > allowed t

Re: [PHP] Search thoughts

2008-07-19 Thread Eric Butera
On Sat, Jul 19, 2008 at 4:06 PM, Richard Heyes <[EMAIL PROTECTED]> wrote: > Hi, > >> I've been playing around with the zend search lucene and it is really >> powerful too. > > Worth looking into? > > -- > Richard Heyes Most definitely. But with all that power and optional stuff comes complexity t

Re: [PHP] Search thoughts

2008-07-19 Thread Eric Butera
On Sat, Jul 19, 2008 at 3:40 PM, tedd <[EMAIL PROTECTED]> wrote: > At 1:56 PM -0400 7/19/08, Eric Butera wrote: >> >> >> Ever play with fulltext search? > > > Never in public. :-) > > You could throw all text into your database and then do a fulltext searc

Re: [PHP] Search thoughts

2008-07-19 Thread Eric Butera
On Sat, Jul 19, 2008 at 5:47 AM, Richard Heyes <[EMAIL PROTECTED]> wrote: > Hey, > > I was hoping to get some ideas on improving a sites search. Currently I have > two - not a lot but I've been thinking about this for a few minutes. > > Currently the site in question uses a very basic LIKE in MySQL

Re: [PHP] Anyone use Zend framework

2008-07-19 Thread Eric Butera
h. When asking > about speed like you did, try to specify which features of the > framework you're questioning. > > Aside from that, you'd be well-advised to take Eric Butera's > advice on the subject. He's a big proponent of Zend Framework, > specificall

Re: [PHP] Optimization of PHP Code

2008-07-18 Thread Eric Butera
On Fri, Jul 18, 2008 at 11:43 AM, Robert Cummings <[EMAIL PROTECTED]> wrote: > On Fri, 2008-07-18 at 16:47 +0300, Sancar Saran wrote: >> >> Do not use, template system, use inline php code for templates. > > Oh dear... you must subscribe to FUD 101. ??? I use straight php files for my templates.

Re: [PHP] Anyone use Zend framework

2008-07-18 Thread Eric Butera
On Fri, Jul 18, 2008 at 11:10 AM, Micah Gersten <[EMAIL PROTECTED]> wrote: > Does anyone use the Zend Framework? Is it fast? I do for some things such as the mail & lucene search. In the future I plan on moving more of my custom code to use the ZF where possible. It isn't the fastest, but it off

Re: [PHP] Optimization of PHP Code

2008-07-18 Thread Eric Butera
On Fri, Jul 18, 2008 at 9:52 AM, Aschwin Wesselius <[EMAIL PROTECTED]> wrote: > Sancar Saran wrote: >> >> On Friday 18 July 2008 15:53:06 Manoj Singh wrote: >> >>> >>> Hello All, >>> >>> I am developing the web site in PHP using MYSQL database. >>> >>> Can you please provide me some tips to write t

Re: [PHP] OpenID

2008-07-18 Thread Eric Butera
On Fri, Jul 18, 2008 at 2:37 AM, Per Jessen <[EMAIL PROTECTED]> wrote: > Kevin Waterson wrote: > >> 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.ne

Re: [PHP] How can i get the location of an exit()/die() from within register_shutdown_function()?

2008-07-16 Thread Eric Butera
On Wed, Jul 16, 2008 at 1:53 PM, tedd <[EMAIL PROTECTED]> wrote: > At 9:15 AM -0400 7/16/08, Eric Butera wrote: >> >> As an aside, if I were to see some jibberish about a query and line >> numbers when I click a link I'd leave that site. (And for the >> a

Re: [PHP] implementing a website search feature using php

2008-07-16 Thread Eric Butera
On Wed, Jul 16, 2008 at 1:20 PM, Sudhakar <[EMAIL PROTECTED]> wrote: > i want to implement a feature where a user searches with a keyword and > search results are displayed according to the keyword > > or phrase entered by the user. > > following are the steps i want to follow. please advice if i a

Re: [PHP] How can i get the location of an exit()/die() from within register_shutdown_function()?

2008-07-16 Thread Eric Butera
On Wed, Jul 16, 2008 at 9:41 AM, Mathijs van Veluw <[EMAIL PROTECTED]> wrote: > Well i don't use 'OR die()' stuff. But exceptions. > > For some reason from within the register_shutdown_function() function i get > an empty error message. > This only occurs, as far as i know, when there is an exit so

Re: [PHP] How can i get the location of an exit()/die() from within register_shutdown_function()?

2008-07-16 Thread Eric Butera
On Wed, Jul 16, 2008 at 3:23 AM, Mathijs van Veluw <[EMAIL PROTECTED]> wrote: > Hello there, > > I have an shutdown function to catch fatal-errors etc.. > Now when there is an exit() somewhere i get an empty message from > get_last_error(). > I want to know the location of this exit() or die(). > >

Re: [PHP] Removeing duplicates inside for/foreach loop.

2008-07-15 Thread Eric Butera
On Tue, Jul 15, 2008 at 12:50 PM, Niccolo Machiavelli <[EMAIL PROTECTED]> wrote: > $array = array( > > 1 => array("order_number" => "10DA0DDEDAF97DB", "order_payment_first_name" > => "Mike", "order_payment_last_name" => "Smith"), > > 2 => array("order_number" => "10DA0DDEDAF97DB", "order_paymen

Re: [PHP] need advice on a free DB hosting site

2008-07-14 Thread Eric Butera
On Mon, Jul 14, 2008 at 4:47 AM, Per Jessen <[EMAIL PROTECTED]> wrote: > willyam pax wrote: > >> hi >> hello everyone im stil new here i just want >> some advice...now im working on a database install script in >> phpjust a simple one... >> i just need to test it online thats why i need advice

Re: [PHP] Saving loading time at counting rows

2008-07-13 Thread Eric Butera
On Sat, Jul 12, 2008 at 8:26 PM, Joep Roebroek <[EMAIL PROTECTED]> wrote: > I had this question, which I didn't really know where to ask, so I > thought to begin at this mailing list. > > Very basicly said, I count the rows of a table which had approx 5 > or more rows. > > The problem is, there

Re: [PHP] IPv6 validation

2008-07-12 Thread Eric Butera
et > connection. Then you have to tell them it won't work because of some problem > with the versions. I would love to write code for PHP5+ only. > > On 7/12/08, Eric Butera <[EMAIL PROTECTED]> wrote: >> >> On Sat, Jul 12, 2008 at 9:13 AM, Bernhard Kohl <[EMAI

Re: [PHP] IPv6 validation

2008-07-12 Thread Eric Butera
On Sat, Jul 12, 2008 at 9:13 AM, Bernhard Kohl <[EMAIL PROTECTED]> wrote: > Doesnt filter_var() require PHP5+ ? > > I have quite some systems still running 4.4.8. > > On 7/12/08, Kevin Waterson <[EMAIL PROTECTED]> wrote: >> >> This one time, at band camp, Yeti <[EMAIL PROTECTED]> wrote: >> >> > Now

Fwd: [PHP] Question regarding OO

2008-07-11 Thread Eric Butera
-- Forwarded message -- From: Yeti <[EMAIL PROTECTED]> Date: Fri, Jul 11, 2008 at 2:08 PM Subject: Re: [PHP] Question regarding OO To: Eric Butera <[EMAIL PROTECTED]> I understand my error in thinking now. Apple can't extend Tree. Oak, Evergreen or Willow exte

Re: [PHP] Question regarding OO

2008-07-11 Thread Eric Butera
On Fri, Jul 11, 2008 at 12:03 PM, Yeti <[EMAIL PROTECTED]> wrote: > > /* > > I have a question here regarding object orientation in PHP and any other > language. > > Let's start with some hypothetical code: > > */ > > // <--- 1st CLASS > > class ParkingLot { > > var size; // size in sq feet > > va

Re: [PHP] Re: What font/size do you use for programming?

2008-07-11 Thread Eric Butera
On Thu, Jul 10, 2008 at 5:29 PM, Philip Thompson <[EMAIL PROTECTED]> wrote: > On Jul 10, 2008, at 3:35 PM, Omar Noppe wrote: > >> Is there any reason to pick a black background en white fonts in your >> editor (for example writability)? > > I think a black background is much easier on the eyes

Re: [PHP] Relocating and POSTing

2008-07-10 Thread Eric Butera
On Thu, Jul 10, 2008 at 2:58 PM, Daniel Brown <[EMAIL PROTECTED]> wrote: > On Thu, Jul 10, 2008 at 2:32 PM, Richard Heyes <[EMAIL PROTECTED]> wrote: >> >> 1. Use the query string. Eg >> >> header('Location: http://www.xxx.com?name=value&name2=value2'); > >That's GET, not POST, as the subject re

Re: [PHP] Re: What font/size do you use for programming?

2008-07-10 Thread Eric Butera
On Thu, Jul 10, 2008 at 2:43 PM, Philip Thompson <[EMAIL PROTECTED]> wrote: > I think if you don't use indentation and unneeded spaces, you could save > lots of space too... > > function aFunction($a,$b) > { > if($a-$b<0){ > while($a+$b>0){ > if($c){ > $c++; > }else{ > $c++; > } > } > return 'nega

Re: [PHP] Need help with regular expression

2008-07-10 Thread Eric Butera
On Wed, Jul 9, 2008 at 5:21 AM, Maxim Antonov <[EMAIL PROTECTED]> wrote: > Hi, all! > > I try to use folowing regular expression: > $out = > preg_replace('#\{%%%.*?\{%bigfoto%\}.*?%%%\}#is','==REPLACEMENT==',$str); > > It not work as I need. Please tell me - what I do wrong? > > I have string: > >

Re: [PHP] Re: What font/size do you use for programming?

2008-07-10 Thread Eric Butera
Here's how I roll. :) Consolas is the font. http://refraxion.com/pdt-eclipse.png -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] zippidity do duh!

2008-07-09 Thread Eric Butera
On Wed, Jul 9, 2008 at 8:52 PM, Jochem Maas <[EMAIL PROTECTED]> wrote: > Daniel Brown schreef: >> >> On Wed, Jul 9, 2008 at 3:43 PM, tedd <[EMAIL PROTECTED]> wrote: >>> >>> However, on server [2] (Daniel Brown's most excellent service, btw), >>> everything works great -- as is usual (every time I s

Re: [PHP] Logic sought

2008-07-09 Thread Eric Butera
On Wed, Jul 9, 2008 at 7:45 PM, tedd <[EMAIL PROTECTED]> wrote: > Hi gang: > > Here's the logic problem. > > First the site: > > http://php1.net/b/zip-files/ > > Now, the site works well enough. The user selects what they want, clicks > Submit, the order is assembled in zip file and presented to th

Re: [PHP] zippidity do duh!

2008-07-09 Thread Eric Butera
On Wed, Jul 9, 2008 at 6:53 PM, tedd <[EMAIL PROTECTED]> wrote: > At 4:37 PM -0600 7/9/08, Nathan Nobbe wrote: >> >> On Wed, Jul 9, 2008 at 3:19 PM, tedd >> <[EMAIL PROTECTED]> wrote: >> >> At 2:00 PM -0600 7/9/08, Nathan Nobbe wrote: >> >> >> >> if(class_exists('ZipArchiv

Re: [PHP] Action on 'Require' Fatal Error

2008-07-09 Thread Eric Butera
On Wed, Jul 9, 2008 at 4:49 PM, Joe Harman <[EMAIL PROTECTED]> wrote: > Hello, > is there a way to call a function or do a header("Location: page.php") when > a fatal error is detected from using a the require statement > > Thanks > Joe Harman > You can set up a custom error handler. This will in

Re: [PHP] zippidity do duh!

2008-07-09 Thread Eric Butera
On Wed, Jul 9, 2008 at 4:00 PM, Nathan Nobbe <[EMAIL PROTECTED]> wrote: > On Wed, Jul 9, 2008 at 1:43 PM, tedd <[EMAIL PROTECTED]> wrote: > >> Hi gang: >> >> I'm trying to do some zip stuff, but on server [1] my script hangs on: >> >> $zip = new ZipArchive(); >> >> No errors, no anything, it just h

Re: [PHP] Creating zip files

2008-07-08 Thread Eric Butera
On Tue, Jul 8, 2008 at 3:17 PM, It flance <[EMAIL PROTECTED]> wrote: > Hi, > > I am using the "pclziplibrary" to create a zip archive. > Now i have the following error message: > Error : PCLZIP_ERR_READ_OPEN_FAIL (-2) : Unable to open archive 'archive.zip' > in wb mode > > If someone is using the

Re: [PHP] Keeping POST values when paging

2008-07-08 Thread Eric Butera
On Tue, Jul 8, 2008 at 12:07 PM, Mayer, Jonathan <[EMAIL PROTECTED]> wrote: > -Original Message- > From: Robert Cummings [mailto:[EMAIL PROTECTED] > Sent: 08 July 2008 17:01 > To: Eric Butera > Cc: Mayer, Jonathan; Bastien Koert; Philip Thompson; PHP-General Lis

Re: [PHP] Keeping POST values when paging

2008-07-08 Thread Eric Butera
On Tue, Jul 8, 2008 at 12:00 PM, Robert Cummings <[EMAIL PROTECTED]> wrote: > On Tue, 2008-07-08 at 11:57 -0400, Eric Butera wrote: >> On Tue, Jul 8, 2008 at 11:33 AM, Robert Cummings <[EMAIL PROTECTED]> wrote: >> > >> > Just a comment... the submit butt

Re: [PHP] Keeping POST values when paging

2008-07-08 Thread Eric Butera
On Tue, Jul 8, 2008 at 11:33 AM, Robert Cummings <[EMAIL PROTECTED]> wrote: > On Tue, 2008-07-08 at 16:18 +0100, Mayer, Jonathan wrote: >> Yup, some good work there Tedd! >> >> In the end I decided the simplest way of coding the functionality was to do >> somethi

Re: [PHP] Looking for a reasonable explanation as to why $_REQUEST exists

2008-07-07 Thread Eric Butera
On Mon, Jul 7, 2008 at 3:28 PM, mike <[EMAIL PROTECTED]> wrote: > On 7/7/08, Eric Butera <[EMAIL PROTECTED]> wrote: > >> If your app is >> written correctly it doesn't matter what is thrown at it, it should >> always work. Even if a variable gets overri

Re: [PHP] Looking for a reasonable explanation as to why $_REQUEST exists

2008-07-07 Thread Eric Butera
On Mon, Jul 7, 2008 at 2:47 PM, mike <[EMAIL PROTECTED]> wrote: > On 7/7/08, Eric Butera <[EMAIL PROTECTED]> wrote: > >> Laziness/convenience. >> >> I always get my data from the exact source I want. If someone chooses >> to use REQUEST it shouldn&#

Re: [PHP] PHP's mail(): proper way to send a 'From' header

2008-07-07 Thread Eric Butera
On Mon, Jul 7, 2008 at 2:13 PM, Daniel Brown <[EMAIL PROTECTED]> wrote: > On Mon, Jul 7, 2008 at 1:50 PM, Jay Moore <[EMAIL PROTECTED]> wrote: >> Greetings folks. I seem to be having a problem with PHP's mail() function >> and sending 'From' headers properly. Here's my setup: >> > [snip!] >> >> I a

Re: [PHP] PHP's mail(): proper way to send a 'From' header

2008-07-07 Thread Eric Butera
On Mon, Jul 7, 2008 at 2:06 PM, Dan Shirah <[EMAIL PROTECTED]> wrote: > You missed the period in your header to join the name and the line break?? > > 'From: [EMAIL PROTECTED]' . "\r\n" > On 7/7/08, Jay Moore <[EMAIL PROTECTED]> wrote: >> >> Greetings folks. I seem to be having a problem with PHP's

Re: [PHP] Looking for a reasonable explanation as to why $_REQUEST exists

2008-07-07 Thread Eric Butera
On Mon, Jul 7, 2008 at 11:36 AM, Shawn McKenzie <[EMAIL PROTECTED]> wrote: > So I was 50% correct. That's better than my normal 0%-33%. Haha ;) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Looking for a reasonable explanation as to why $_REQUEST exists

2008-07-07 Thread Eric Butera
On Mon, Jul 7, 2008 at 11:23 AM, Shawn McKenzie <[EMAIL PROTECTED]> wrote: > When you use register_globals it extracts the vars from get, post, cookie > and session, or used to. But, I don't think session vars are in $_REQUEST. > > -Shawn http://us2.php.net/manual/en/ini.core.php#ini.request-orde

Re: [PHP] Keeping POST values when paging

2008-07-07 Thread Eric Butera
On Mon, Jul 7, 2008 at 9:51 AM, Mayer, Jonathan <[EMAIL PROTECTED]> wrote: > Hiya all, > > I have coded a PHP site on an intranet which forms a MySQL query based on > multiple inputs on a large form. The form results are POSTed back to itself, > and query is formed, and the results are returned fro

Re: [PHP] Looking for a reasonable explanation as to why $_REQUEST exists

2008-07-07 Thread Eric Butera
On Mon, Jul 7, 2008 at 3:10 AM, mike <[EMAIL PROTECTED]> wrote: > I have never had a use for this feature. To me it introduces another > register_globals style atttack vector. I see no need why people need > to combine post/get/etc variables into the same superglobal. I > actually run unset($_REQUE

Re: [PHP] Re: class_is_loadable?

2008-07-07 Thread Eric Butera
On Sun, Jul 6, 2008 at 6:06 AM, Fabrice VIGNALS <[EMAIL PROTECTED]> wrote: > Hi, > > The problem is not the autoload but the implementation of such function. > class_is_loadable mean, "hey php look at my class somewhere in my files". > PHP should inspect some files, in some directories and list cla

Re: [PHP] class_is_loadable?

2008-07-05 Thread Eric Butera
On Sat, Jul 5, 2008 at 1:36 PM, Larry Garfield <[EMAIL PROTECTED]> wrote: > Greetings, all. > > I am trying to figure out a way to implement the following logic, but I am not > sure if it is possible to do so without a lot of additional side work: > > I have a class, A, and another class B that ext

Re: [PHP] V4 Vs V5 Issue

2008-07-01 Thread Eric Butera
On Tue, Jul 1, 2008 at 11:27 AM, Neil <[EMAIL PROTECTED]> wrote: > Hi > > First Post here, I hope this is the right place for this post. > > This is probably not a php problem, I think it may a configuration issue, > but sorry I just dont know where to look > > I have a V4 site the calls an on lin

Re: [PHP] Simple array problem

2008-07-01 Thread Eric Butera
On Tue, Jul 1, 2008 at 8:50 AM, Richard Heyes <[EMAIL PROTECTED]> wrote: >> Small correction: > > Which is...? > > -- > Richard Heyes > > Employ me: > http://www.phpguru.org/cv > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > Look at

Re: [PHP] [Q] Exec'ing a command

2008-06-27 Thread Eric Gorr
On Jun 27, 2008, at 3:18 PM, Daniel Brown wrote: On Fri, Jun 27, 2008 at 3:12 PM, Eric Gorr <[EMAIL PROTECTED]> wrote: Now, one possible solution to this problem is that the php script adds it's request to run the unix app to a queue and their is some other code which pulls a

[PHP] [Q] Exec'ing a command

2008-06-27 Thread Eric Gorr
Hopefully this will be clear. I've got a unix command-line app which I will be exec'ing (or some other similar command) from a php script. The special property of this unix app is that while it executes and terminates quickly, only a single instance can be running at any one time. Howev

Re: [PHP] Inspiration for a Tombstone.

2008-06-26 Thread Eric Butera
On Thu, Jun 26, 2008 at 10:31 AM, tedd <[EMAIL PROTECTED]> wrote: > Hi gang: > > For a break in our normal serious thinking, I suggested tombstone wit of: > > "Always on the edge of greatness" > > Dan offered: > > or or > > function dan($dateOfDeath) { >return "Daniel P. Brown: 01-01-

Re: [PHP] Monitor a WP website

2008-06-24 Thread Eric Butera
On Tue, Jun 24, 2008 at 1:09 PM, Ryan S <[EMAIL PROTECTED]> wrote: > Hey, > Is there a way to check if a new post has been submitted on your favourite > wordpress site? > > Heres what i am trying to do: > do a fopen http://ezee.se/articles-blog/ via CRON every x minutes > if a new post has been s

Re: [PHP] download file from an ajax request

2008-06-20 Thread Eric Butera
On Fri, Jun 20, 2008 at 8:47 AM, Iv Ray <[EMAIL PROTECTED]> wrote: > Eric Butera wrote: >> >> The only thing I can think of is using JS to create some sort of >> IFRAME, meta redirect, window.location, or a popup window, something >> that will force the page to

Re: [PHP] download file from an ajax request

2008-06-20 Thread Eric Butera
On Fri, Jun 20, 2008 at 8:02 AM, pere roca <[EMAIL PROTECTED]> wrote: > > hi everybody! > > Hi! > > is there some way to allow downloading a PHP generated file from an ajax > request? > the simple code below generates the image but not prompts the "save or open > file..." (it works if I call it dir

Re: [PHP] Discussion of method -- config files

2008-06-20 Thread Eric Butera
On Thu, Jun 19, 2008 at 10:04 AM, tedd <[EMAIL PROTECTED]> wrote: > Hi gang: > > More of a question of method rather than of "right" or "wrong" -- of the two > methods mentioned here, which way would be "better" and why? > > 1. Setting $GLOBALS one time as shown here. > > At 12:23 AM -0400 6/19/08,

[PHP] exif_imagetype and constant confusion

2008-06-19 Thread eric cash
Stupid question time! I can't find my answer anywhere, sorry about this... The nature of the return value of exif_imagetype() is baffling me. The php manual uses one simple example like this: okay, cool. the return value is the constant IMAGETYPE_GIF. of course if you do something

[PHP] GD brush tracing letters

2008-06-14 Thread eric cash
Quick GD question, I'm building a custom CAPTCHA, and I want to 'trace' random letters (hopefully from a random font) with a brush. Is there an easy way to do this, or am I going to have to build some ridiculous custom library on my own to do it? Thanks! ec -- PHP General Mailing List (http:

Re: [PHP] Re: HTML 5

2008-06-13 Thread Eric Butera
On Fri, Jun 13, 2008 at 4:35 AM, Richard Heyes <[EMAIL PROTECTED]> wrote: >> i suppose i put too much faith in the right hand nav on the w3cschools >> site >> =/ > > http://www.w3.org/ is the site to use for up to date standards. Well that is a bit ironic as just the other day you said you didn't

Re: [PHP] WSDL/SOAP/PHP5

2008-06-06 Thread Eric Butera
On Fri, Jun 6, 2008 at 6:33 PM, Nathan Nobbe <[EMAIL PROTECTED]> wrote: > On Fri, Jun 6, 2008 at 2:53 PM, Dan Joseph <[EMAIL PROTECTED]> wrote: > >> Hi Everyone, >> >> I'm struggling with a WSDL trying to make it work right. I don't even know >> what to really ask. >> >> Basically I've created a W

Re: [PHP] Method chaining off constructors

2008-06-06 Thread Eric Butera
On Fri, Jun 6, 2008 at 11:00 AM, Christoph Boget <[EMAIL PROTECTED]> wrote: >> > Why? I thought constructors returned the object? >> It's been a while since I've played with objects in PHP, but couldn't >> you just add the line: >> return $this; >> ...to the end of your __construct() function? Sor

Re: [PHP] slowness mystery

2008-06-04 Thread Eric Butera
t to go through that hassle, make sure you have >> a far future expire header on the file so that the client does not >> request it each time. > > Eric, > > How do I do that? I generally embed the js file in the html that gets sent > down > > > > > > >

Re: [PHP] slowness mystery

2008-06-04 Thread Eric Butera
On Wed, Jun 4, 2008 at 8:45 AM, Rene Veerman <[EMAIL PROTECTED]> wrote: > Ok, i changed from reading from the database to reading from a file. > It now clocks at 3.37seconds for the malignant peace of javascript.. > Still too slow :( > > Timing the readfile statement that outputs the cache file, is

Re: [PHP] slowness mystery

2008-06-04 Thread Eric Butera
On Wed, Jun 4, 2008 at 8:45 AM, Rene Veerman <[EMAIL PROTECTED]> wrote: > Ok, i changed from reading from the database to reading from a file. > It now clocks at 3.37seconds for the malignant peace of javascript.. > Still too slow :( > > Timing the readfile statement that outputs the cache file, is

Re: [PHP] phpeclipse debugging & setup

2008-05-30 Thread Eric Butera
On Fri, May 30, 2008 at 11:59 AM, PJ <[EMAIL PROTECTED]> wrote: > Running FreeBSD 7.0, Eclipse SDK 3.3.2, java 1.6.0_03-p4, apache 2.2.8, > php5.2.6, postgresql 8.3.1. > > I found that configuring Xdebug just does not work the way all the > manuals, instructions and hints suggest: the only way I co

Re: [PHP] PHP eg.

2008-05-30 Thread Eric Butera
On Fri, May 30, 2008 at 2:34 AM, mukesh yadav <[EMAIL PROTECTED]> wrote: > Hi, > I'm trying to learn a PHP by myself...and i need a help. > I have learned all the basic but i dont know how to implement the stuff. > Can you please guys help me out give me a small site in PHP so that i can > study a

Re: [PHP] preg_match_all

2008-05-29 Thread Eric Butera
On Thu, May 29, 2008 at 8:13 PM, Eric Butera <[EMAIL PROTECTED]> wrote: > Why not use DOMDocument with getElementsByTagName('href') [1] > > http://us2.php.net/manual/en/domdocument.getelementsbytagname.php > Sorry there was an error in that. It felt wrong when I sent

Re: [PHP] preg_match_all

2008-05-29 Thread Eric Butera
On Thu, May 29, 2008 at 2:07 PM, Chris W <[EMAIL PROTECTED]> wrote: > What I want to do is find all links in an html file. I have the pattern > below. It works as long as there is only one link on a line and as long as > the whole link is one line. It seems there should be a way to get this to >

Re: [PHP] Semi-OT: PHP Login with client security

2008-05-20 Thread Eric Butera
On Mon, May 19, 2008 at 4:03 PM, Richard Heyes <[EMAIL PROTECTED]> wrote: > Since when has that mattered? :-) :-) to you too. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Semi-OT: PHP Login with client security

2008-05-19 Thread Eric Butera
On Mon, May 19, 2008 at 12:52 PM, Richard Heyes <[EMAIL PROTECTED]> wrote: >> You should _always_ use an absolute URL in a redirect. I know it quite >> often works with a relative too. > > Why? > > -- > Richard Heyes > >Employ me >http://www.phpguru.org/cv > >

Re: [PHP] Dead code

2008-05-19 Thread Eric Butera
On Mon, May 19, 2008 at 11:06 AM, Aschwin Wesselius <[EMAIL PROTECTED]> wrote: > Hello list, > > Is there anyone having experience with finding "dead code" in their library > / application? > > Dead code as in unused variables, uncalled methods, uncalled functions, > undeclared classes etc. > > Any

Re: [PHP] Semi-OT: PHP Login with client security

2008-05-19 Thread Eric Butera
On Mon, May 19, 2008 at 1:14 AM, Tim Thorburn <[EMAIL PROTECTED]> wrote: > Hi all, > > Having a slight problem with a demo I gave at a clients last week - looking > for a little advise. Part of my demo involved a password protected area - > the simplified process is: client enters password on logi

Re: [PHP] Persistent state applications

2008-05-17 Thread Eric Butera
On Sat, May 17, 2008 at 4:22 PM, James Colannino <[EMAIL PROTECTED]> wrote: > I'm assuming that a session will last as long as the browser is open (or > until it's explicitly destroyed), correct? Are there any security issues I > should be aware of? Since there's a login, I'd be serving this over

Re: [PHP] Persistent state applications

2008-05-17 Thread Eric Butera
On Sat, May 17, 2008 at 3:34 PM, James Colannino <[EMAIL PROTECTED]> wrote: > Hey everyone! I'm very new to PHP, and had a somewhat general question > (forgive me if it's too broad in scope.) Basically, I'd like to be able to > have a single PHP application that remembers its state as users click

[PHP] Re: OT - Question about nested sortable lists

2008-05-16 Thread Eric Butera
On Fri, May 16, 2008 at 11:07 AM, Jim Lucas <[EMAIL PROTECTED]> wrote: > I notice in a previous thread, people are suggesting using these two tools. > > http://developer.yahoo.com/yui/examples/dragdrop/dd-reorder.html > > and > > http://tool-man.org/examples/ > > Now, my question is, does anybody k

<    1   2   3   4   5   6   7   8   9   10   >