Re: [PHP] need "pop-up" in progress alert

2008-04-18 Thread Eric Butera
On Fri, Apr 18, 2008 at 11:31 AM, Steve Holmes <[EMAIL PROTECTED]> wrote: > If there are any canned ajax solutions, I'd like to hear about them. http://developer.yahoo.com/yui/connection/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] PHP console script vs C/C++/C#

2008-04-18 Thread Eric Butera
On Fri, Apr 18, 2008 at 11:36 AM, Nathan Nobbe <[EMAIL PROTECTED]> wrote: > On Fri, Apr 18, 2008 at 9:33 AM, Eric Butera <[EMAIL PROTECTED]> wrote: > > > Like I said before, since you know that most of your time is in a > > specific part of your script, just mo

Re: [PHP] need "pop-up" in progress alert

2008-04-18 Thread Eric Butera
On Fri, Apr 18, 2008 at 11:56 AM, Steve Holmes <[EMAIL PROTECTED]> wrote: > Thanks for the suggestion, but I'm pretty far along in this project and the > idea is that the software install happens on demand. What we are trying to > do is get the student/faculty population (tens of thousands of users

Re: [PHP] Re: Hack question

2008-04-18 Thread Eric Butera
On Fri, Apr 18, 2008 at 12:22 PM, Al <[EMAIL PROTECTED]> wrote: > I'm continuing to work on this. > > One thing that seems obvious. The code executes the script code, using > eval(), directly from the /tmp dir. So the usual security tests we do prior > to using move_uploaded_file() are useless. >

Re: [PHP] need "pop-up" in progress alert

2008-04-18 Thread Eric Butera
On Fri, Apr 18, 2008 at 12:34 PM, Nick Stinemates <[EMAIL PROTECTED]> wrote: > On Fri, Apr 18, 2008 at 10:54:36AM -0400, Jason Pruim wrote: > Try this out: > > > while (true) { > print "x"; > } Jason, Call ob_flush() and then this example and see what happens. -- PHP General Maili

Re: [PHP] Re: Hack question

2008-04-18 Thread Eric Butera
On Fri, Apr 18, 2008 at 12:32 PM, Al <[EMAIL PROTECTED]> wrote: > I've not bothered to try and figure out where it came from because hackers > spoof their ID anyhow. I meant the wide open flood gate on your system, not who did it. -- PHP General Mailing List (http://www.php.net/) To unsubscribe,

Re: [PHP] Re: Hack question

2008-04-18 Thread Eric Butera
On Fri, Apr 18, 2008 at 12:58 PM, Jim Lucas <[EMAIL PROTECTED]> wrote: > > Eric Butera wrote: > > > On Fri, Apr 18, 2008 at 12:22 PM, Al <[EMAIL PROTECTED]> wrote: > > > > > I'm continuing to work on this. > > > > > > One t

Re: [PHP] Re: Hack question

2008-04-18 Thread Eric Butera
On Fri, Apr 18, 2008 at 12:54 PM, Daniel Brown <[EMAIL PROTECTED]> wrote: > > On Fri, Apr 18, 2008 at 12:42 PM, Eric Butera <[EMAIL PROTECTED]> wrote: > > On Fri, Apr 18, 2008 at 12:32 PM, Al <[EMAIL PROTECTED]> wrote: > > > I've not bothered to t

Re: [PHP] Re: Hack question

2008-04-18 Thread Eric Butera
On Fri, Apr 18, 2008 at 2:59 PM, Jim Lucas <[EMAIL PROTECTED]> wrote: > in the example code above that is injected into the top of the php scripts, > the eval is evaluating the code that is read from the temp file, the temp > file is never moved or renamed. There for it will be removed when the >

Re: [PHP] Re: Hack question

2008-04-18 Thread Eric Butera
On Fri, Apr 18, 2008 at 3:19 PM, Jim Lucas <[EMAIL PROTECTED]> wrote: > He is referring to the code that he finds at the top of a number of > different files. That is the code that he showed us. I just thought that was the entire contents of the file. -- PHP General Mailing List (http://www.ph

Re: [PHP] Re: Hack question

2008-04-18 Thread Eric Butera
Time for beer! :D -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] OS X 10.5.2

2008-04-18 Thread Eric Butera
On Fri, Apr 18, 2008 at 8:10 PM, Lee Perry <[EMAIL PROTECTED]> wrote: > Hi, I need pdo_msql and GD2 extension support in my php environment, but as > I am sure you are aware the default build that comes with leopard on the mac > is lacking these extensions. what I need is a way to either install th

Re: [PHP] OS X 10.5.2

2008-04-18 Thread Eric Butera
On Fri, Apr 18, 2008 at 10:49 PM, Simon Welsh <[EMAIL PROTECTED]> wrote: > Windows is a joke operating system. Hell, it's not even an operating > system. NT is Not Tough enough for me either. 95 is how may times it will > crash an hour. You feel better now? ;) -- PHP General Mailing List (http

Re: [PHP] Re: php framework vs just php?

2008-04-22 Thread Eric Butera
On Tue, Apr 22, 2008 at 9:01 AM, Tony Marston <[EMAIL PROTECTED]> wrote: > If you don't use a framework then obviously you are writing nothing but > mickey mouse programs, and wouldn't stand a chance when it comes to writing > a proper application. For example, I have just completed an ERP applic

Re: [PHP] Re: php framework vs just php?

2008-04-22 Thread Eric Butera
On Tue, Apr 22, 2008 at 11:54 AM, paragasu <[EMAIL PROTECTED]> wrote: > >I can do this in 5 minutes without having to write a > >single line of PHP, HTML or SQL. If you can't match this then you're not in > >the same league. > >-Tony Marston > > i can only think of copy & paste method if i were

Re: [PHP] mb_convert_encoding converting to ASCII instead of UTF-8

2008-04-23 Thread Eric Butera
On Wed, Apr 23, 2008 at 10:40 AM, Robert William Vesterman <[EMAIL PROTECTED]> wrote: > I've run into a problem where mb_convert_encoding seems to be converting to > ASCII, even though I'm telling it to convert to UTF-8. This is with PHP > version 4.3.11. > > I had been asking it to convert from

Re: [PHP] Big companies that use PHP?

2008-04-23 Thread Eric Butera
On Wed, Apr 23, 2008 at 2:32 PM, Thiago Pojda <[EMAIL PROTECTED]> wrote: > Hey guys, > > > > I've been asked this common question: What big companies use PHP in big > apps? > > > > I don't know where to find this kind of stuff and, well. here I am :) > > > > > > Do any of you know? > > > > And

Re: [PHP] Re: php framework vs just php?

2008-04-23 Thread Eric Butera
On Wed, Apr 23, 2008 at 2:49 PM, Nathan Nobbe <[EMAIL PROTECTED]> wrote: > interestingly, prototype claims it is a framework. http://www.google.com/search?hl=en&q=define%3A+framework&btnG=Google+Search Lots of differing opinions. :) Seeing as script.aculo.us and all that stuff is written on Pr

Re: [PHP] Re: php framework vs just php?

2008-04-24 Thread Eric Butera
On Thu, Apr 24, 2008 at 2:42 AM, Sancar Saran <[EMAIL PROTECTED]> wrote: > It works. It needs to read tons of docs before writing someting useful and it > was [EMAIL PROTECTED]@ to writing programs with zend framework. It has tons of real unit tests to know it really works. Plus there are a lot

Re: [PHP] Re: php framework vs just php?

2008-04-24 Thread Eric Butera
On Thu, Apr 24, 2008 at 9:05 AM, Sancar Saran <[EMAIL PROTECTED]> wrote: > Thanks, with your answer my mind flashes I wish I shared your passion on things! I started out with functional programming using various languages. PHP was the first time I attempted writing classes. The reason I wanted

Re: [PHP] the most amazing php code i have ever seen so far

2008-04-24 Thread Eric Butera
On Wed, Apr 23, 2008 at 3:14 PM, paragasu <[EMAIL PROTECTED]> wrote: > Personally, i vote for www.eyeos.org project for the best php code. Anyone > know better? > You want to see something cool? http://stubbles.net/browser/trunk/src/main/php/net/stubbles/events I don't actually use that specif

Re: [PHP] the most amazing php code i have ever seen so far

2008-04-24 Thread Eric Butera
ndleOnSave') ); $dispatcher = namespace_registry::get('dispatcher'); $dispatcher->lazyRegister($events); Sample save page: $record = new record; $record->name = 'Eric Butera' $isSuccess= $record->save(); $dispatcher->trigger('onSave', $reco

Re: [PHP] Re: how to use passthru ()

2008-04-24 Thread Eric Butera
On Thu, Apr 24, 2008 at 9:14 AM, J. Manuel Velasco - UBILIBET <[EMAIL PROTECTED]> wrote: > > No friend, > > I said, the perl scripts work fine. The problem is to show the result in > the site. > > One of them the result is shown and in the other one, not. > > What is strange to me is that both

Re: [PHP] Class Static variables in double quoted string or heredoc

2008-04-25 Thread Eric Butera
On Fri, Apr 25, 2008 at 12:55 PM, Nathan Nobbe <[EMAIL PROTECTED]> wrote: > i would like to see support for $a::$someStatic come callback :P http://us.php.net/manual/en/function.call-user-func-array.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net

Re: [PHP] the most amazing php code i have ever seen so far

2008-04-25 Thread Eric Butera
On Fri, Apr 25, 2008 at 1:29 PM, Nick Stinemates <[EMAIL PROTECTED]> wrote: > That is a beatiful example of the observer pattern. Just for the record I take no credit on that whatsoever. I'm just repeating what I've found elsewhere. The key (for me anyways) is that the subject doesn't have to i

Re: [PHP] Class Static variables in double quoted string or heredoc

2008-04-25 Thread Eric Butera
On Fri, Apr 25, 2008 at 2:25 PM, Nathan Nobbe <[EMAIL PROTECTED]> wrote: > want to know a syntactic sugar feature i avoid like the plague, its the > ternary operator! Like this? return (!is_dir($indexPath)) ? Zend_Search_Lucene::create($indexPath) : Zend_Search_Lucene::open($ind

Re: [PHP] OS need anything for mail() to work?

2008-04-25 Thread Eric Butera
On Fri, Apr 25, 2008 at 2:07 PM, Brian Dunning <[EMAIL PROTECTED]> wrote: > I'm running PHP 5.2.5 on OS X 10.5.2, and using the following code: > > ini_set('sendmail_from','[EMAIL PROTECTED]'); > ini_set('SMTP','working.server.com'); > mail('[EMAIL PROTECTED]', 'Subject', 'Message'); > > The se

Re: [PHP] Class Static variables in double quoted string or heredoc

2008-04-25 Thread Eric Butera
On Fri, Apr 25, 2008 at 2:36 PM, Robert Cummings <[EMAIL PROTECTED]> wrote: > > On Fri, 2008-04-25 at 12:25 -0600, Nathan Nobbe wrote: > > On Fri, Apr 25, 2008 at 11:35 AM, Nick Stinemates <[EMAIL PROTECTED]> > > wrote: > > > > > On Fri, Apr 25, 2008 at 01:19:58PM -0400, Robert Cummings wrote:

Re: [PHP] Class Static variables in double quoted string or heredoc

2008-04-25 Thread Eric Butera
On Fri, Apr 25, 2008 at 2:50 PM, Robert Cummings <[EMAIL PROTECTED]> wrote: > Why would anyone use htmlspecialchars() on a shell script? > > >:) Who uses a session in a cli script? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Class Static variables in double quoted string or heredoc

2008-04-25 Thread Eric Butera
On Fri, Apr 25, 2008 at 2:51 PM, Nathan Nobbe <[EMAIL PROTECTED]> wrote: > class OutputEscaper { I dunno man. I have an escape() method on different classes such as View (which can be told to use htmlspecialchars/entities), DB, etc. This way you know you're doing $view->escape() or $db->escape()

Re: [PHP] Class Static variables in double quoted string or heredoc

2008-04-25 Thread Eric Butera
On Fri, Apr 25, 2008 at 3:09 PM, Nathan Nobbe <[EMAIL PROTECTED]> wrote: > i do; that way when the script terminates the session is wiped clean :D $GLOBALS would get you the same thing a lot easier. I've had to use sessions in cli before just because I converted some old front-end scripts that us

Re: [PHP] Class Static variables in double quoted string or heredoc

2008-04-25 Thread Eric Butera
On Fri, Apr 25, 2008 at 3:12 PM, Nathan Nobbe <[EMAIL PROTECTED]> wrote: > meh; just make sure the instance holds what you want it to; it was just a > contrived example to illustrate the syntax supported in double quotes, > currently. I know, I'm just goofing around on Friday. ;) -- PHP General

Re: [PHP] OS need anything for mail() to work?

2008-04-25 Thread Eric Butera
, status=deferred (delivery temporarily suspended: connect to > skeptoid.com[72.32.102.215]: Operation timed out) > > PHP returned 'TRUE', so how do I tell if it failed or not? > > > > On Apr 25, 2008, at 11:35 AM, Eric Butera wrote: > > > > You can also try

Re: [PHP] OS need anything for mail() to work?

2008-04-25 Thread Eric Butera
On Fri, Apr 25, 2008 at 4:44 PM, Brian Dunning <[EMAIL PROTECTED]> wrote: > Is there any way for PHP to know that this email is not going through? > > > On Apr 25, 2008, at 1:21 PM, Eric Butera wrote: > > > > > > > > > > Apr 24 17:03:34 MacBr

[PHP] Fun with SOAP.

2008-04-29 Thread Eric Butera
A fellow co-worker of mine is working on a project integrating with Amazon using SOAP. I've never used SOAP before but it seemed like things were straight forward at first. Some parts work while others done. Right now we are stuck trying to fetch a document from the remote server. We are able t

Re: [PHP] Fun with SOAP.

2008-04-30 Thread Eric Butera
On Tue, Apr 29, 2008 at 5:07 PM, Nathan Nobbe <[EMAIL PROTECTED]> wrote: > i know this has nothing to do w/ getting it to work w/ php, eric, but have > you tried hitting the service w/ soap ui? > http://www.soapui.org/ > > although its written in java, its an indispensable te

Re: [PHP] Fun with SOAP.

2008-04-30 Thread Eric Butera
On Wed, Apr 30, 2008 at 2:53 AM, Warren Vail <[EMAIL PROTECTED]> wrote: > You should be able to parse it manually in PHP, but probably not with a XML > parser or reader. Simply var_dump() the responses you are getting and write > the code to break it up into values you can use. In some respects

Re: [PHP] Fun with SOAP.

2008-04-30 Thread Eric Butera
On Wed, Apr 30, 2008 at 7:35 AM, Eric Butera <[EMAIL PROTECTED]> wrote: > On Tue, Apr 29, 2008 at 5:07 PM, Nathan Nobbe <[EMAIL PROTECTED]> wrote: > > i know this has nothing to do w/ getting it to work w/ php, eric, but have > > you tried hitting the se

Re: [PHP] Fun with SOAP.

2008-05-01 Thread Eric Butera
On Wed, Apr 30, 2008 at 3:53 PM, Larry Brown <[EMAIL PROTECTED]> wrote: > I'm not sure how it looks etc with with soapui but I noticed you > mentioning you don't want to mess with nusoap. I've used nusoap for > both client and server uses for years and I'm really impressed with how > easily it

Re: [PHP] Web page excerpt editor

2008-05-05 Thread Eric Butera
On Mon, May 5, 2008 at 9:43 AM, tedd <[EMAIL PROTECTED]> wrote: > FCKEditor and TinyMCE are impressive in what they do, but they produce a > mix of css and html -- that's not good in my book. This is an interesting idea. Most clients don't want to see a text area to input raw html though. In th

Re: [PHP] Recommended book on PHP/SOAP

2008-05-05 Thread Eric Gorr
On May 5, 2008, at 12:29 PM, Todd Cary wrote: I would like a book on implementing SOAP geared for someone with no SOAP experience. A book I like is: Pro PHP XML and Web Services # ISBN-10: 1590596331 # ISBN-13: 978-1590596333 This book requires PHP 5. Hopefully SOAP can be used with PHP 4

Re: [PHP] Regex to catch s

2008-05-05 Thread Eric Butera
On Mon, May 5, 2008 at 9:59 PM, Ryan S <[EMAIL PROTECTED]> wrote: > To say I suck at regex is an understatement so really need any help I can > get on this, I have a page of text with different html tags in them, but each > "block" of text has a or a < class="something"> tag... anybody have any

Re: [PHP] Re: A Little Something.

2008-05-12 Thread Eric Butera
On Mon, May 12, 2008 at 6:31 AM, Stut <[EMAIL PROTECTED]> wrote: > On 12 May 2008, at 09:39, Peter Ford wrote: > > > tedd wrote: > > > > > Hi gang: > > > This is what I did this morning: > > > http://webbytedd.com/bb/tribute/ > > > It speaks for itself. > > > Cheers, > > > tedd > > > > > > > tedd,

Re: [PHP] Re: A Little Something.

2008-05-12 Thread Eric Butera
On Mon, May 12, 2008 at 2:57 PM, tedd <[EMAIL PROTECTED]> wrote: > Gentlemen: > > First, my apologies for publishing the page without checking it first for > pet-peeves. > > Second, please educate me as to the statement that "NoScript" is blocking > UrchinTracker. Where do I have declared NoScrip

Re: [PHP] How to get user IP address

2008-05-14 Thread Eric Butera
On Wed, May 14, 2008 at 8:06 AM, hce <[EMAIL PROTECTED]> wrote: > Hi, > > How to get user IP address in a PHP server? > > Thank you. > > Jim > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > $_SERVER["REMOTE_ADDR"] -- PHP Gene

Re: [PHP] Good HTML parser needed

2008-05-14 Thread Eric Butera
On Tue, May 13, 2008 at 4:07 AM, James Dempster <[EMAIL PROTECTED]> wrote: > http://htmlpurifier.org/ > > -- > /James > This is the only real solution. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Good HTML parser needed

2008-05-14 Thread Eric Butera
On Wed, May 14, 2008 at 11:38 AM, Robert Cummings <[EMAIL PROTECTED]> wrote: > > > On Wed, 2008-05-14 at 11:18 -0400, Eric Butera wrote: > > On Tue, May 13, 2008 at 4:07 AM, James Dempster <[EMAIL PROTECTED]> wrote: > > > http://htmlpurifier.o

Re: [PHP] Good HTML parser needed

2008-05-15 Thread Eric Butera
On Wed, May 14, 2008 at 10:56 PM, Yi Wang <[EMAIL PROTECTED]> wrote: > Can anyone provide some code that can't be stripped by strip_tags? > > > On 5/15/08, Eric Butera <[EMAIL PROTECTED]> wrote: >> On Wed, May 14, 2008 at 11:38 AM, Robert Cummings <[EMAIL PR

Re: [PHP] SCanning text of PDF documents

2008-05-15 Thread Eric Butera
On Thu, May 15, 2008 at 4:19 AM, Angelo Zanetti <[EMAIL PROTECTED]> wrote: > Hi All. > > This is a quick question. > > A client of ours wants a solution that when a PDF document is uploaded that > we use PHP to scan the documents contents and save it in a DB. > > I know you can do this with normal

Re: [PHP] changing order of items

2008-05-15 Thread Eric Butera
On Thu, May 15, 2008 at 2:49 PM, afan pasalic <[EMAIL PROTECTED]> wrote: > > > Iv Ray wrote: >> afan pasalic wrote: >>> this one bugs me for a while. how to change order. >>> >>> I have a list of tasks. by status, task could be 1 (todo) or 0 (done) - >>> status value stored in mysql. I can list tas

Re: [PHP] Plugins... (like wordpress?)

2008-05-16 Thread Eric Butera
On Fri, May 16, 2008 at 1:46 AM, Ryan S <[EMAIL PROTECTED]> wrote: > Hey, > > Have just started screwing around with wordpress and I must say... it has a > lot of really really nice bits and pieces... two of my favourites are widgets > and plugins... not a hundred percent certain exactly what the

[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

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

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] 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] 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 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] 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] 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] 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] 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] 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] 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] 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] 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] 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] 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

[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] Preventing SQL Injection/ Cross Site Scripting

2007-04-23 Thread Eric Butera
On 4/23/07, WeberSites LTD <[EMAIL PROTECTED]> wrote: I'm trying to understand from the examples why anyone that has get_magic_quotes_gpc() returning true would need to use stripslashes() and then mysql_real_escape_string(). wouldn't that just add slashes to the same places? berber Yes, sort

Re: [PHP] Compilation?

2007-04-23 Thread Eric Butera
On 4/23/07, Davide Bernard <[EMAIL PROTECTED]> wrote: I just upgraded to PHP 5 from PHP 4. I am using the crack lib function for password dictionary uniqueness. However, now my web page utilizing the crack-lib is crashing with " PHP Fatal error: Call to undefined function crack_opendict()". Doe

Re: [PHP] Compilation?

2007-04-23 Thread Eric Butera
On 4/23/07, Davide Bernard <[EMAIL PROTECTED]> wrote: Tried this at the root level and got the response below... sudo: pecl: command not found I am on a Suse linux box and I install the PEAR package with YAST. >>> "Eric Butera" <[EMAIL PROTECTED]> 4/23/2007

Re: [PHP] Debug recursion

2007-04-23 Thread Eric Butera
On 4/23/07, kioto <[EMAIL PROTECTED]> wrote: Hi all i have found a bug in my db class when i use the recursion. I try to use the adjacency list model to develop a three menu but when i call the function in recursive way i loose data because the value returned from the fetch seem to be empty. I h

Re: [PHP] Preventing SQL Injection/ Cross Site Scripting

2007-04-24 Thread Eric Butera
xecuted on each request if you just throw it in an include. I ran stripslashes_deep() against my 5.2.1 release and here are the results: Version: 2.0.0RC3 TRACE START [2007-04-24 21:37:47] 1 0 0 0.004415 72400 {main} 1 /Users/eric/Sites/meh.php 0 2 1 0

Re: [PHP] Parsing CSV files

2007-04-27 Thread Eric Butera
On 4/26/07, Edward Kay <[EMAIL PROTECTED]> wrote: Todd Cary wrote: > Is there a function that can parse a comma delimited file into an array? > > Todd > fgetcsv - http://uk.php.net/fgetcsv Did you even try looking in the manual? Edward -- PHP General Mailing List (http://www.php.net/) To unsub

Re: [PHP] Parsing CSV files

2007-04-27 Thread Eric Butera
On 4/27/07, Edward Kay <[EMAIL PROTECTED]> wrote: > When I searched for "csv" against on php.net I got redirected to > http://us2.php.net/manual/en/function.gzeof.php. That isn't exactly > obvious is it? > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www

Re: [PHP] Run a script apart from request

2007-04-30 Thread Eric Butera
On 4/30/07, Brad Fuller <[EMAIL PROTECTED]> wrote: Hi all, I am developing a program that does some intensive data processing, and is triggered from a page hit and/or a SOAP request. The processing takes on average 30 seconds to 1 minute, which is OK for a web page (I can use set_time_limit(0)

[PHP] Upload problem - final size is different

2007-05-08 Thread Eric Trahan
, Eric. Here is the form code: method="post"> Une image Du texte: Here is my PHP upload code: "; $tmp_name = $_FILES['uneimage']['tmp_name']; $type = $_FILES['uneimage']['type']; $name = $_FI

Re: [PHP] Upload problem - final size is different

2007-05-08 Thread Eric Trahan
he problem is the file that is upload doesn't match the original file. Eric. Le 2007-05-08 à 14:04, Richard Lynch a écrit : On Tue, May 8, 2007 11:30 am, Eric Trahan wrote: The upload work. The user file is uploaded to my destination folder (page5/) but the file is unreadable and th

Re: [PHP] Upload problem - final size is different

2007-05-08 Thread Eric Trahan
, or does it work? Download the same file twice produce the same problem... Eric -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: Upload problem - final size is different

2007-05-09 Thread Eric Trahan
ay to change the owner or the group of a file in PHP. Eric Le 2007-05-08 à 17:52, itoctopus a écrit : Have you tried your code on another server? -- itoctopus - http://www.itoctopus.com "Eric Trahan" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] Hi, I have a form

Re: [PHP] One class, many methods: PHP4.x: Q's

2007-05-10 Thread Eric Butera
On 5/10/07, Micky Hulse <[EMAIL PROTECTED]> wrote: Hi, This might be a real obvious question/answer... but I have been up all night geeking on code, so my mind is kinda mushy -- please be kind. :) I have a class called Randimg. Within that class, I have several methods. Within a few of those me

Re: [PHP] Re: Upload problem - final size is different

2007-05-10 Thread Eric Trahan
Thank you all for your tips and solutions !! I use chmod and my upload form works fine ;) Eric Le 2007-05-09 à 10:23, Daniel Brown a écrit : PHP has two functions that may help you here, Eric --- chmod() and chown(). http://php.net/chmod http://php.net/chown It should be

Re: [PHP] One class, many methods: PHP4.x: Q's

2007-05-11 Thread Eric Butera
On 5/10/07, Micky Hulse <[EMAIL PROTECTED]> wrote: Micky Hulse wrote: > Ah, well Chapter 6, page 144-145 have helped clear-up a little bit of my > confusion: Sorry, forgot to mention what book I was refering to: O'Reilly Programming PHP By Rasmus Lerdorf & Kevin Tatroe

Re: [PHP] self:: vs this

2007-05-11 Thread Eric Butera
On 5/11/07, Mariano Guadagnini <[EMAIL PROTECTED]> wrote: Hy people, I have an existential doubt regarding php classes. I have been a php programmer for quite a long time, but never could figure out the clear difference between using this-> or self:: when calling member functions, wether they are

Re: [PHP] What is the best way to protect the PHP page that returns the AJAX data?

2007-05-11 Thread Eric Butera
On 5/10/07, Daevid Vincent <[EMAIL PROTECTED]> wrote: I'm a PHP guru Then this question shouldn't have been asked. :) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: self:: vs this

2007-05-11 Thread Eric Butera
On 5/11/07, M.Sokolewicz <[EMAIL PROTECTED]> wrote: statically: Class Foo { static $a = 1; static function Bar() { self::a++; } } echo Foo:a; >> 1 Foo::Bar(); // will probably throw a warning, not sure of that though echo Foo:a; >> 1 (no change) I'm not sure I understand

Re: [PHP] problems in WHERE statment

2007-05-23 Thread Eric Butera
On 5/21/07, Mike Ryan <[EMAIL PROTECTED]> wrote: I am a newbie so please bear with me. I get this error message when I try to run a query Connected successfullyCould not successfully run query () from DB: Unknown column '$today' in 'where clause' this is the query command $query = 'SELECT * F

[PHP] How can I DomDocument->renameNode?

2007-06-01 Thread Eric Wiener
Apparently renameNode is not yet implemented into Dom, so how can I rename a node without affecting its value and/or child nodes? I have tried making a new node, inserting it before the old node then removing the old node but I could not figure out how to get the nodeValue to include the child

[PHP] Re: How can I DomDocument->renameNode?

2007-06-05 Thread Eric Wiener
Thanks for the reply, but the solution needs to be in PHP, not JavaScript. -Original Message- From: tedd [mailto:[EMAIL PROTECTED] Sent: Sunday, June 03, 2007 3:20 PM To: php-general@lists.php.net Subject: [PHP] Re: How can I DomDocument->renameNode? >I have tried making a new node, ins

[PHP] How to clone an entire XML node including childnodes?

2007-06-05 Thread Eric Wiener
Basically I am trying to turn something like this: Hello Joe, nice to meet you into this: Hello Joe, nice to meet you by making a new node, inserting before the old node and then removing the old node. The problem is that I am populating the value of the new node with the $oldNo

Re: [PHP] Re: second/custom PEAR/PECL installation. possible? how?

2007-06-06 Thread Eric Butera
On 6/6/07, Greg Beaver <[EMAIL PROTECTED]> wrote: Jochem Maas wrote: > I have a [gentoo] server with 2 apache installations ... > > the std distro apache runs with php4 which includes an installation > of PEAR and PECL. > > the second apache is compiled by hand and runs with php5 (also compiled >

Re: [PHP] Re: any security problems with this?

2007-06-12 Thread Eric Butera
On 6/12/07, Stut <[EMAIL PROTECTED]> wrote: Dave Goodchild wrote: > Unless some server config error causes that stuff to be output on the page? > I tend to put such functions in a .inc file and amend the .htaccess to > prevent download. Unless some server config error causes it to ignore .htacce

Re: [PHP] any security problems with this?

2007-06-12 Thread Eric Butera
On 6/12/07, Ross <[EMAIL PROTECTED]> wrote: I have a page of functions that I include in my page head. In this I have a function to connect. I can then just call this on each page when i need it. Does doing it this way cause any potential security risks? function connect() { $host="localhost"; $

Re: [PHP] efficient log system

2007-06-12 Thread Eric Butera
On 6/12/07, Alain Roger <[EMAIL PROTECTED]> wrote: Hi, I would like to create a log system to keep a trace of all users' actions (log-in, remove, change or update data, and so on...). What should i do or to what should i take care to not have problem ? I was thinking to create a folder on my se

Re: [PHP] Re: any security problems with this?

2007-06-12 Thread Eric Butera
On 6/12/07, Richard Lynch <[EMAIL PROTECTED]> wrote: The downside of that is that something as simple as: will dump your password out as part of $_ENV or $_SERVER That's probably NOT a good idea in many environments, but an excellent idea in some. Security cannot be evaluated in isolation. An

Re: [PHP] Re: any security problems with this?

2007-06-12 Thread Eric Butera
On 6/12/07, Richard Lynch <[EMAIL PROTECTED]> wrote: On Tue, June 12, 2007 2:41 pm, Eric Butera wrote: > Hopefully nobody has phpinfo just sitting out on a production server. A quick Google: http://www.google.com/search?hl=en&q=%22Zend+logo+This+program+makes+use+of+the+Zend+Scrip

[PHP] Dom appendChild strips trailing text from within a node

2007-06-13 Thread Eric Wiener
I am trying to modify a node name and it mostly works, except that appendChild seems to strip the text that FOLLOWS after a subnode. Leading text and subnodes appear to be retained perfectly, just not text trailing the subnode. I tried using cloneNode, but that discarded the children even when I se

Re: [PHP] Checking Phone Numbers

2007-06-14 Thread Eric Butera
On 6/14/07, Kevin Murphy <[EMAIL PROTECTED]> wrote: I collect phone numbers via a web form that breaks the phone number up into 3 parts (3-digit area, 3-digit prefix, etc). Occasionally, I am having people put in a phone number such as 999-999- or 000-000- or other numbers that are all th

Re: [PHP] Latest PHP for Mac OS X 10.3.9 (Panther)

2007-06-21 Thread Eric Butera
On 6/21/07, Rahul Sitaram Johari <[EMAIL PROTECTED]> wrote: Ave, I¹m looking for the latest PHP releases (5.2.2 or higher) for Mac OS X 10.3.9 (Panther). Entropy.ch is only providing releases for Mac OS X 10.4 (Tiger), in fact there stable PHP 5.2.2 release won¹t even install on < 10.4 Mac¹s.

<    3   4   5   6   7   8   9   10   11   12   >