Re: [PHP] File Uploads Help!!! --Forgot

2008-12-05 Thread Eric Butera
On Fri, Dec 5, 2008 at 5:40 PM, Jason Todd Slack-Moehrle <[EMAIL PROTECTED]> wrote: > Hi Eric, > > 'tempUploads/1425182872.xlsUploaded The File.' > > http://us2.php.net/manual/en/function.is-uploaded-file.php > http://us2.php.net/manual/en/features.file-uploa

Re: [PHP] A MySQL Question

2008-12-07 Thread Eric Butera
On Sun, Dec 7, 2008 at 10:03 AM, tedd <[EMAIL PROTECTED]> wrote: > Hi gang: > > I just interviewed for a job teaching at the local college (imagine me > taking minds of mush and molding them to the world according to tedd -- > frightening huh?) > > In any event, the interviewer asked me how long I'

Re: [PHP] pear Mail/Mime problem on new Ubuntu Linux server

2008-12-09 Thread Eric Butera
On Tue, Dec 9, 2008 at 6:57 AM, German Geek <[EMAIL PROTECTED]> wrote: > Hi All, > > Can someone think of a reason why when changing from a Windows 2003 Web > Edition server running PHP 5.2 to a Ubuntu machine, also with PHP 5.2 can > cause the following problem: > > The emails sent from the server

[PHP] echo SESSION var doesn't work if unset after echo

2008-12-09 Thread Eric Wood
s if php is doing this: if(isset($_SESSION["Ecomm"])) { unset($_SESSION["Ecomm"]); echo $_SESSION["Ecomm"]; } No kernel, apache, or php updates have happened. An there's not errors logged. Truely strange. Any ideas? -Eric Wood

Re: [PHP] echo SESSION var doesn't work if unset after echo

2008-12-09 Thread Eric Wood
;]; // unset($_SESSION["Ecomm"]); } Then I *CAN* see the Ecomm code in the in the right-click -> View Page Source as well as the "View Generated Source". I am very humbled right now. -eric wood - Original Message - From: <[EMAIL PROTECTED]> My theor

Re: [PHP] PECL JSON package

2008-12-11 Thread Eric Butera
On Thu, Dec 11, 2008 at 5:43 AM, Phil Ewington - iModel <[EMAIL PROTECTED]> wrote: > Phil Ewington - iModel wrote: >> >> Hi All, >> >> I have just installed the PECL JSON package, or at least think I have!! >> But how do I use it?? I was expecting /usr/share/pear/Services/JSON.php to >> be found on

Re: [PHP] Poll of Sorts: Application Frameworks--Zend, Cake etc

2008-12-11 Thread Eric Butera
On Thu, Dec 11, 2008 at 9:56 AM, Terion Miller <[EMAIL PROTECTED]> wrote: > Hey Everyone, I am wondering if using a framework such as one of these may > make my life easier, which do any of you use and what has been your > experience with the learning curve of them? > I just put Cake on my local se

Re: [PHP] Poll of Sorts: Application Frameworks--Zend, Cake etc

2008-12-11 Thread Eric Butera
On Thu, Dec 11, 2008 at 10:22 AM, Bastien Koert <[EMAIL PROTECTED]> wrote: > > > On Thu, Dec 11, 2008 at 10:15 AM, Eric Butera <[EMAIL PROTECTED]> wrote: >> >> On Thu, Dec 11, 2008 at 9:56 AM, Terion Miller <[EMAIL PROTECTED]> >> wrote: >> >

Re: [PHP] Poll of Sorts: Application Frameworks--Zend, Cake etc

2008-12-11 Thread Eric Butera
On Thu, Dec 11, 2008 at 12:12 PM, Nathan Nobbe <[EMAIL PROTECTED]> wrote: > > On Thu, Dec 11, 2008 at 8:25 AM, Eric Butera <[EMAIL PROTECTED]> wrote: >> >> On Thu, Dec 11, 2008 at 10:22 AM, Bastien Koert <[EMAIL PROTECTED]> wrote: >> > >> &

Re: [PHP] Re: apache and PHP / Eclipse

2008-12-15 Thread Eric Butera
On Sun, Dec 14, 2008 at 10:33 AM, Nathan Rixham wrote: > Eduardo Vizcarra wrote: >> >> I am having a hard time trying to get some pages work. I have PHP 5.2.8, >> Apache 2.2 and MySQL 5.1 running in a Windows Vista home edition. All >> packages were installed, and configured, the strange thing is

Re: [PHP] Create PHP form from MySQL table structure

2008-12-23 Thread Eric Butera
On Sun, Dec 21, 2008 at 5:35 AM, R B MacGregor wrote: > Hi folks > > Anybody got any recommendations for a utility which would create a quick head > start by creating the php/html code for a basic form using the field structure > of a MySQL table ? > > Thanks for any suggestions. > > -- > Ronnie M

Re: [PHP] Re: Problem with fetching values...

2008-12-29 Thread Eric Butera
On Mon, Dec 29, 2008 at 7:57 AM, Michelle Konzack wrote: > Am 2008-12-29 22:09:16, schrieb chris smith: >> > So, PostgreSQL catch the array by "name" >> > >> >pg_fetch_array($db_query, null, PGSQL_ASSOC) >> > >> > and MySQL use the "position" >> > >> >mysql_fetch_array($db_query, MYSQL_NUM

Re: [PHP] Need Help

2008-12-29 Thread Eric Butera
On Mon, Dec 29, 2008 at 2:39 PM, dlinden wrote: > I am getting this error and can't resolve; > > Warning: mysqli_fetch_assoc() expects parameter 1 to be mysqli_result, > boolean given in /home5/camfulco/public_html/CompanyHome.php on line 132 > I'm not going to read all 500 lines of that, but I'm

Re: [PHP] Need Help - apology

2008-12-29 Thread Eric Butera
On Mon, Dec 29, 2008 at 3:18 PM, John Corry wrote: > > That was too heavy handed. > > I'm sorry. Please forgive my harshness. > > John > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > Having a bad day at work? ;) -- PHP General Ma

Re: [PHP] Architecture patterns in PHP

2008-12-30 Thread Eric Butera
On Tue, Dec 30, 2008 at 2:07 AM, Nathan Nobbe wrote: >> on 12/30/2008 01:13 AM Sancar Saran said the following: >> > and please read this why >> > >> > http://talks.php.net/show/drupal08/0 > it also acts as a nice control mechanism to compare so many frameworks, > trivial php, and html. really ni

Re: [PHP] Architecture patterns in PHP

2008-12-30 Thread Eric Butera
On Tue, Dec 30, 2008 at 12:42 PM, Nathan Nobbe wrote: > > > On Tue, Dec 30, 2008 at 10:15 AM, Eric Butera wrote: >> >> On Tue, Dec 30, 2008 at 2:07 AM, Nathan Nobbe >> wrote: >> >> on 12/30/2008 01:13 AM Sancar Saran said the following: >> >&

Re: [PHP] Architecture patterns in PHP

2008-12-30 Thread Eric Butera
On Tue, Dec 30, 2008 at 1:07 PM, Robert Cummings wrote: > On Tue, 2008-12-30 at 12:53 -0500, Eric Butera wrote: >> On Tue, Dec 30, 2008 at 12:42 PM, Nathan Nobbe >> >> I was following the blog tutorial on cake and here's what I got from >> hitting the post/i

Re: [PHP] Re: How to count transfered kBytes in File-Download

2009-01-03 Thread Eric Butera
On Sat, Jan 3, 2009 at 9:23 AM, Ashley Sheridan wrote: > On Sat, 2009-01-03 at 13:27 +0100, Michelle Konzack wrote: >> Good morning Jim, >> >> Thank your for your help, I will now adapt my scripts and test it. >> >> And if a user had done a partial download, how can I set the pointer to >> resume

Re: [PHP] Re: Re: How to count transfered kBytes in File-Download

2009-01-03 Thread Eric Butera
On Sat, Jan 3, 2009 at 5:19 PM, Michelle Konzack wrote: > Am 2009-01-03 10:16:43, schrieb Eric Butera: >> On Sat, Jan 3, 2009 at 9:23 AM, Ashley Sheridan >> > I don't think this is actually possible. I've never seen it happen >> > before. It would need some s

Re: [PHP] Re: How to count transfered kBytes in File-Download

2009-01-04 Thread Eric Butera
On Sun, Jan 4, 2009 at 1:39 PM, Michelle Konzack wrote: > Hi Jim... ;-) > > The code: > > [ '/usr/share/tdphp-vserver/includes/02_functions.inc' ] > function fncPushBinary($type='show', $file, $mime='') { > >$BUFFER=1024; > >$HANDLER=fopen($file, r); > >$C

Re: [PHP] Because you guys/gals/girls/women/insert pc term here are a smart lot

2009-01-06 Thread Eric Butera
On Tue, Jan 6, 2009 at 10:43 AM, Dotan Cohen wrote: > 2009/1/5 Frank Stanovcak : >> It's been a while since I've programed (VB was on version 4) I was wondering >> if any one could tell me what the diff is between char, varchar, and text in >> mysql. >> I know this isn't a mysql news group, but si

Re: [PHP] get file from object

2009-01-06 Thread Eric Butera
On Tue, Jan 6, 2009 at 3:20 PM, Jack Bates wrote: > How do I get the file where a class is defined, from an instance of that > class? What are you trying to do? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] First steps towards unix and php

2009-01-08 Thread Eric Butera
On Thu, Jan 8, 2009 at 11:44 AM, Frank Stanovcak wrote: > I've been a microshaft punk for some time now, and am just getting ready to > try to step over to unix on one of my own boxes. > > Does anyone have any suggestions on which flavor would be a good idea to > start with? I'm looking mostly fo

Re: [PHP] Re: hello - thread on topic or not?

2009-01-09 Thread Eric Butera
On Thu, Jan 8, 2009 at 7:21 PM, Mattias Thorslund wrote: > I thought this was the PHP list, not the OS vs. OS list? > > Is this type of discussion now considered OK here? I recall people getting > flamed for borderline off-topic posts even, just a few years ago. > > Mattias :( -- PHP General Ma

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

2009-01-09 Thread Eric Butera
On Thu, Jan 8, 2009 at 6:14 PM, Ross McKay wrote: > On Thu, 8 Jan 2009 11:44:48 -0500, Frank Stanovcak wrote: > >>I've been a microshaft punk for some time now, and am just getting ready to >>try to step over to unix on one of my own boxes. >> >>Does anyone have any suggestions on which flavor wou

Re: [PHP] Couple of beginner questions

2009-01-09 Thread Eric Butera
On Fri, Jan 9, 2009 at 12:22 PM, Wolf wrote: > > Gary wrote: >> I've done a number of sites in html and am now venturing into php. >> >> Can I create a page in html and insert php code that will work? (for >> example, take an existing page and insert a date command) > Yup Um... if the file

Re: [PHP] Couple of beginner questions

2009-01-09 Thread Eric Butera
On Fri, Jan 9, 2009 at 12:18 PM, Gary wrote: > Can I create a page with the php extension that contains only contains html > and no php? If so are there advantages/disadvantages? > > Can I mix and match file formats (php/html) in a single site? If it were me, I'd make sure all the files were .ph

Re: [PHP] Editing in a text area field

2009-01-09 Thread Eric Butera
On Fri, Jan 9, 2009 at 2:38 PM, wrote: > Rule #1. > Never, ever, ever, alter the user's input, EXCEPT for sanitizing/filtering. Probably shouldn't recommend sanitizing then. Only validate & reject. :P -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/

Re: [PHP] Couple of beginner questions

2009-01-09 Thread Eric Butera
On Fri, Jan 9, 2009 at 3:22 PM, wrote: > > The slowdown of just running raw HTML through PHP was once benchmarked as > about 5 to 10 %. > > You could, in theory, use .htaccess and to ForceType specific .html > files as PHP, while leaving the rest of your .html files as static. > > I am not rec

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 f

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] Unique Object Instance ID..?

2009-01-10 Thread Eric Butera
On Sat, Jan 10, 2009 at 6:31 PM, Nathan Rixham wrote: > Evening All, > > Not too often I ask a question here, but here goes; > > I'm making an "Object" class which all of my other classes extend, and I > need each instance to have it's own unique id, seemed simple but it's harder > than I thought

Re: [PHP] Editing in a text area field

2009-01-10 Thread Eric Butera
On Sat, Jan 10, 2009 at 8:51 PM, Murray wrote: > Interesting, I've never seen this presented as an issue of ethics before. I > think I can see your point, but I'd suggest that there's an interplay of > ethical obligations between a user and the host / creator of an application > in which perhaps t

Re: [PHP] Editing in a text area field

2009-01-11 Thread Eric Butera
On Sun, Jan 11, 2009 at 8:50 AM, tedd wrote: > At 11:12 AM +1100 1/11/09, Ross McKay wrote: >> >> With a little cooperation from the client, and a properly configured >> TinyMCE, you can fairly easily limit what HTML tags they use. > > Yes, when you have intelligent and cooperative clients -- have

Re: [PHP] String variable

2009-01-11 Thread Eric Butera
On Sun, Jan 11, 2009 at 8:59 AM, MikeP wrote: > Hello, > I am trying yo get THIS: > where ref_id = '1234' > from this. > $where="where ref_id="."'$Reference[$x][ref_id]'"; > > but i certainly have a quote problem. > > Any help? > Thanks > Mike > > > > > -- > PHP General Mailing List (http://www.ph

Re: [PHP] Couple of beginner questions

2009-01-11 Thread Eric Butera
On Sun, Jan 11, 2009 at 10:36 AM, Ashley Sheridan wrote: > echo "http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Couple of beginner questions

2009-01-12 Thread Eric Butera
On Mon, Jan 12, 2009 at 10:16 AM, wrote: > >> $ mv hello-world.php hello-world.html > > Isn't this backwards?... > > :-) > > 39% seems awfully high overhead for what is essentially an extra readfile. > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php

Re: [PHP] Editing in a text area field

2009-01-12 Thread Eric Butera
On Mon, Jan 12, 2009 at 10:42 AM, wrote: > > Google for BBCode. > > It's just str_replace(array('[b]','[/b]'),array('',''),$text) in the > end. > > And it's not really going to be any better than just letting them type > and if that is needed. > > Your sanitization process will be the same no

Re: [PHP] RSS feeder in PHP5?

2009-01-12 Thread Eric Butera
On Mon, Jan 12, 2009 at 11:02 AM, wrote: > >> You actually mean application/xml not text/xml > > That depends on if you want the Userland RSS standard or the Other [blanking > on name] RSS standard. > > Unfortunately, the RSS camps are still at war over syntax and required > elements, and there

Re: [PHP] Data trasfer between PHP pages

2009-01-12 Thread Eric Butera
On Mon, Jan 12, 2009 at 3:03 PM, Ashley Sheridan wrote: > I tend to use $_REQUEST to capture a lot of my data, as I end up mixing > get and post a lot throughout my code. $_REQUEST is an amalgamate of > $_COOKIE, $_GET and $_POST (in that order I believe, with $_GET > overwritting $_COOKIE, and $_

Re: [PHP] Data trasfer between PHP pages

2009-01-12 Thread Eric Butera
On Mon, Jan 12, 2009 at 3:21 PM, Robert Cummings wrote: > On Mon, 2009-01-12 at 15:15 -0500, Eric Butera wrote: >> On Mon, Jan 12, 2009 at 3:03 PM, Ashley Sheridan >> wrote: >> > I tend to use $_REQUEST to capture a lot of my data, as I end up mixing >> > get

Re: [PHP] switch vs elseif

2009-01-12 Thread Eric Butera
On Mon, Jan 12, 2009 at 3:15 PM, Frank Stanovcak wrote: > I've googled, and found some confusing answers. > I've tried searching the history of the news group, and only found info on > switch or elseif seperately. :( > > Strictly from a performance stand point, not preference or anything else, is

Re: [PHP] Data trasfer between PHP pages

2009-01-12 Thread Eric Butera
On Mon, Jan 12, 2009 at 3:34 PM, Robert Cummings wrote: > On Mon, 2009-01-12 at 15:29 -0500, Eric Butera wrote: >> On Mon, Jan 12, 2009 at 3:21 PM, Robert Cummings >> wrote: >> > On Mon, 2009-01-12 at 15:15 -0500, Eric Butera wrote: >> >> On Mon, Jan

Re: [PHP] switch vs elseif

2009-01-12 Thread Eric Butera
On Mon, Jan 12, 2009 at 3:58 PM, Frank Stanovcak wrote: > > ""Eric Butera"" wrote in message > news:6a8639eb0901121231r253eed48xe1974d8ef44ab...@mail.gmail.com... >> On Mon, Jan 12, 2009 at 3:15 PM, Frank Stanovcak >> wrote: >>> I've go

Re: [PHP] switch vs elseif -- switchtable

2009-01-12 Thread Eric Butera
On Mon, Jan 12, 2009 at 4:00 PM, Daevid Vincent wrote: > On Mon, 2009-01-12 at 15:31 -0500, Eric Butera wrote: > >> On Mon, Jan 12, 2009 at 3:15 PM, Frank Stanovcak >> wrote: >> > I've googled, and found some confusing answers. >> > I've tried sea

Re: [PHP] Data trasfer between PHP pages

2009-01-12 Thread Eric Butera
On Mon, Jan 12, 2009 at 4:18 PM, tedd wrote: > At 8:03 PM + 1/12/09, Ashley Sheridan wrote: >> >> I tend to use $_REQUEST to capture a lot of my data, as I end up mixing >> get and post a lot throughout my code. $_REQUEST is an amalgamate of >> $_COOKIE, $_GET and $_POST (in that order I belie

Re: [PHP] Couple of beginner questions

2009-01-12 Thread Eric Butera
On Mon, Jan 12, 2009 at 4:17 PM, Robert Cummings wrote: > On Mon, 2009-01-12 at 16:02 -0500, tedd wrote: >> >> True, css does not allow numeric classes (like sessions). But, I >> never need them anyway. >> >> As I provided before: >> >> http://webbytedd.com/b/color-rows/ >> >> this is my solution

Re: [PHP] HowTo use Eclipse PDT and existing mounted directory tree?

2009-01-12 Thread Eric Butera
On Mon, Jan 12, 2009 at 8:13 PM, Daevid Vincent wrote: > I must be retarded or something because I can't figure out in Eclipse > PDT (Linux) how in the heck do I start a new project and have it "point" > to an existing directory tree. > > I DO NOT want Eclipse to pull in a copy of the files or do

Re: [PHP] HowTo use Eclipse PDT and existing mounted directory tree?

2009-01-13 Thread Eric Butera
On Mon, Jan 12, 2009 at 8:51 PM, Eric Butera wrote: > On Mon, Jan 12, 2009 at 8:13 PM, Daevid Vincent wrote: >> I must be retarded or something because I can't figure out in Eclipse >> PDT (Linux) how in the heck do I start a new project and have it "point" &g

Re: [PHP] switch vs elseif

2009-01-13 Thread Eric Butera
On Tue, Jan 13, 2009 at 9:50 AM, Jochem Maas wrote: > switch (true) { >case ($x === $y): >// something >break; > >case ($a != $b): >// something >break; > >case (myFunc()): >// something >

Re: [PHP] Re: RewriteRules

2009-01-13 Thread Eric Butera
On Tue, Jan 13, 2009 at 1:14 PM, Jason Pruim wrote: > > On Jan 13, 2009, at 9:46 AM, Ashley Sheridan wrote: > >> On Tue, 2009-01-13 at 09:33 -0500, tedd wrote: >>> >>> At 2:33 PM + 1/13/09, Ashley Sheridan wrote: On Tue, 2009-01-13 at 09:20 -0500, tedd wrote: > > Jason:

Re: [PHP] Re: RewriteRules

2009-01-13 Thread Eric Butera
On Tue, Jan 13, 2009 at 1:32 PM, Jason Pruim wrote: > > On Jan 13, 2009, at 1:29 PM, Eric Butera wrote: > > On Tue, Jan 13, 2009 at 1:14 PM, Jason Pruim wrote: > > On Jan 13, 2009, at 9:46 AM, Ashley Sheridan wrote: > > On Tue, 2009-01-13 at 09:33 -0500, tedd wrote: >

Re: [PHP] Suggestions?

2009-01-13 Thread Eric Butera
On Tue, Jan 13, 2009 at 2:00 PM, Dan Shirah wrote: > Hello all! > > I have written some code that will calculate all static and floating > holidays. > > I have also written some code that will act as a business day counter. > > My application currently determines a set number of business days to c

Re: [PHP] Re: RewriteRules

2009-01-13 Thread Eric Butera
On Tue, Jan 13, 2009 at 5:27 PM, Ashley Sheridan wrote: > On Tue, 2009-01-13 at 13:29 -0500, Eric Butera wrote: >> On Tue, Jan 13, 2009 at 1:14 PM, Jason Pruim wrote: >> > >> > On Jan 13, 2009, at 9:46 AM, Ashley Sheridan wrote: >> > >> >&g

Re: [PHP] Quotes in querys

2009-01-14 Thread Eric Butera
On Wed, Jan 14, 2009 at 11:17 AM, MikeP wrote: > Hello, > I am trying to get the following to work: > "Select Netid from Users where Netid = '$_SESSION[phpCAS][user]'" > Netid is a string type. > No matter where of if I put the quotes, I still get array[phpCAS] not the > value. > If there is anyth

Re: [PHP] Quotes in querys

2009-01-14 Thread Eric Butera
On Wed, Jan 14, 2009 at 11:34 AM, MikeP wrote: > > ""Eric Butera"" wrote in message > news:6a8639eb0901140825h1d603d01i3ffcce919dca6...@mail.gmail.com... >> On Wed, Jan 14, 2009 at 11:17 AM, MikeP wrote: >>> Hello, >>> I am trying to get the

Re: [PHP] Zend Framework...where to start?

2009-01-14 Thread Eric Butera
On Wed, Jan 14, 2009 at 3:36 PM, wrote: > I've been reading about these great new 'frameworks' for PHP development. > > The most similar experience I have so far is using PEAR/Smarty in > application development. > > I am becoming very interested in adding one (or more) of these frameworks to > m

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

2009-01-14 Thread Eric Butera
On Wed, Jan 14, 2009 at 4:30 PM, John Corry wrote: > Well, bummer. > > I *seriously* need to divine a way to increase my efficiency both > immediately and for the long term as I maintain tomorrow the > applications I build today. > > For the new-to-frameworks, is there a better/easier framework to

Re: [PHP] Zend Framework...where to start? -- don't.

2009-01-14 Thread Eric Butera
On Wed, Jan 14, 2009 at 4:39 PM, Daevid Vincent wrote: > http://daevid.com "It appears your browser does not support some of the advanced features this site requires." That is pretty enteprisey! ;D -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsu

Re: [PHP] Zend Framework...where to start? -- don't.

2009-01-14 Thread Eric Butera
On Wed, Jan 14, 2009 at 5:03 PM, Robert Cummings wrote: > On Wed, 2009-01-14 at 17:01 -0500, Robert Cummings wrote: >> On Wed, 2009-01-14 at 16:50 -0500, Eric Butera wrote: >> > On Wed, Jan 14, 2009 at 4:39 PM, Daevid Vincent wrote: >> > > http://daevid.com >

Re: [PHP] Zend Framework...where to start? -- don't.

2009-01-14 Thread Eric Butera
On Wed, Jan 14, 2009 at 6:47 PM, Daevid Vincent wrote: > On Wed, 2009-01-14 at 14:28 -0800, Kyle Terry wrote: > >> On Wed, Jan 14, 2009 at 2:18 PM, Eric Butera wrote: >> >> > On Wed, Jan 14, 2009 at 5:03 PM, Robert Cummings >> > wrote: >> > > On

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

2009-01-15 Thread Eric Butera
On Thu, Jan 15, 2009 at 1:57 AM, Usamah M. Ali wrote: > On Thu, Jan 15, 2009 at 1:59 AM, Paul M Foster > wrote: > >> If you're going to go with a prebuilt framework, I'd recommend >> CodeIgniter for your first time out. If the docs look good to you (and >> they are pretty good), you'll probably

Re: [PHP] To check for existing user in database

2009-01-16 Thread Eric Butera
> $result = mysql_query($query) or die(mysql_error()); You know guys, after seeing all this talk of sql injection over the past few days, I'd also like to point out or die is pretty bad too. Especially when coupled with mysql_error(). It can expose sensitive system info (security vuln) when a sim

Re: [PHP] Vertical Search Engine

2009-01-16 Thread Eric Butera
On Fri, Jan 16, 2009 at 1:03 PM, Neil Rosewarm wrote: > Dear Friends, > > I am planning to launch a Vertical Jobs Search Engine (Ref: www.linkup.com > and www.indeed.com) which crawls, spiders and Indexes the job listings. > > I have com across couple of open sources like Nutch and Lucene which a

Re: [PHP] Parsing HTML href-Attribute

2009-01-16 Thread Eric Butera
On Thu, Jan 15, 2009 at 5:13 PM, Edmund Hertle wrote: > Hey, > I want to "parse" a href-attribute in a given String to check if there is a > relative link and then adding an absolute path. > Example: > $string = ' href="/foo/bar.php" >'; > > I tried using regular expressions but my knowledge of R

Re: [PHP] Parsing HTML href-Attribute

2009-01-16 Thread Eric Butera
On Fri, Jan 16, 2009 at 1:59 PM, mike wrote: > On Fri, Jan 16, 2009 at 10:58 AM, mike 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 a > document and try to ge

Re: [PHP] Parsing HTML href-Attribute

2009-01-16 Thread Eric Butera
On Fri, Jan 16, 2009 at 6:18 PM, Kevin Waterson wrote: > This one time, at band camp, Eric Butera wrote: > >> >> You could also use DOM for this. >> >> http://us2.php.net/manual/en/domdocument.getelementsbytagname.php > > http://www.phpro.org/examples

Re: [PHP] Re: Opinions / Votes Needed

2009-01-17 Thread Eric Butera
On Sat, Jan 17, 2009 at 2:42 PM, Daniel Brown wrote: >Well, since Nathan asked especially for the opinions of those who > would disagree with him, I thought all was well > > On Sat, Jan 17, 2009 at 13:33, Tony Marston > wrote: >> >> If your feeble brain can't handle the differences >> the

Re: [PHP] 100% CPU Usage somewhere in script - how to find it?

2009-01-18 Thread Eric Butera
On Sun, Jan 18, 2009 at 3:16 AM, Alex Davies wrote: > Hi, > > I use a (externally developed) library within my application which > used to work fine. However, after a recent update (which unfortunately > we can't roll back due to dependencies) I have crazy CPU loads - there > are ~20 cores in tota

Re: [PHP] Re: Opinions / Votes Needed

2009-01-19 Thread Eric Butera
On Sun, Jan 18, 2009 at 11:44 AM, Per Jessen wrote: > I think that's at best an example of someone having chosen the wrong > tool. I can easily appreciate the frustration. My own rule-of-thumb - > scripts are for small things and rapid prototyping. Once when a script > (regardless of language) gr

Re: [PHP] phpMailer Problem!

2009-01-19 Thread Eric Butera
On Mon, Jan 19, 2009 at 12:28 AM, shahrzad khorrami wrote: > I tested with port 25, but it didn't work. > I confuse, I don't know what problem is > it works well with gmail... > > thanks for reply :) > http://mail.google.com/support/bin/answer.py?hl=en&answer=13287 -- PHP General Mailing L

Re: [PHP] Need List Advice

2009-01-19 Thread Eric Butera
On Mon, Jan 19, 2009 at 11:33 AM, wrote: > I have been looking but can't find which PHP list is best to post info > regarding a new PHP tool. I have seen new product/service announcements on > this list, but thought there might be a better list. Any suggestions? > > Thanks in advance. Try it and

Re: [PHP] Need List Advice

2009-01-19 Thread Eric Butera
On Mon, Jan 19, 2009 at 12:42 PM, Robert Cummings wrote: > On Mon, 2009-01-19 at 12:25 -0500, Daniel Brown wrote: >> On Mon, Jan 19, 2009 at 11:33, wrote: >> > I have been looking but can't find which PHP list is best to post info >> > regarding a new PHP tool. I have seen new product/service an

Re: [PHP] Re: Opinions / Votes Needed

2009-01-19 Thread Eric Butera
On Mon, Jan 19, 2009 at 2:37 PM, VamVan wrote: > Why are you guys Burning your egos here? Its not the right place. > > > > On Mon, Jan 19, 2009 at 11:03 AM, Kyle Terry wrote: > >> On Mon, Jan 19, 2009 at 10:59 AM, Robert Cummings > >wrote: >> >> > On Mon, 2009-01-19 at 10:50 -0800, Kyle Terry wro

[PHP] Re: ANNOUNCEMENT: ModBox - an Open Platform as a Service (OPaaS)

2009-01-19 Thread Eric Butera
s much sense to you as it does to me. I >> would, of course greatly appreciate any feedback as I am not so bold to >> think I have cracked the code on the 1.0. The URL is below. >> >> ModBox - Open Platform as a Service: >> http://www.sullivansoftwaresystems.com/modbox >>

Re: [PHP] maybe we could all?

2009-01-19 Thread Eric Butera
On Mon, Jan 19, 2009 at 8:00 PM, Kyle Terry wrote: > On Mon, Jan 19, 2009 at 4:58 PM, Edmund Hertle < > edmund.her...@student.kit.edu> wrote: > >> 2009/1/20 Nathan Rixham >> >>> sounds like a starting point. and the starting point imho, interfaces and >>> abstracts, then implementations. >>> >>>

Re: [PHP] maybe we could all?

2009-01-19 Thread Eric Butera
On Mon, Jan 19, 2009 at 8:35 PM, Nathan Rixham wrote: > Kyle Terry wrote: >> >> On Mon, Jan 19, 2009 at 5:12 PM, Nathan Rixham wrote: >>> >>> Eric Butera wrote: >>>> >>>> On Mon, Jan 19, 2009 at 8:00 PM, Kyle Terry wrote: &

Re: [PHP] maybe we could all?

2009-01-19 Thread Eric Butera
On Mon, Jan 19, 2009 at 9:04 PM, Nathan Rixham wrote: > Eric Butera wrote: >> >> On Mon, Jan 19, 2009 at 8:35 PM, Nathan Rixham wrote: >>> >>> Kyle Terry wrote: >>> >>> and on the other side.. to open things up >>> >>&

Re: [PHP] maybe we could all?

2009-01-19 Thread Eric Butera
On Mon, Jan 19, 2009 at 9:13 PM, Kyle Terry wrote: > On Mon, Jan 19, 2009 at 6:07 PM, Daniel Brown wrote: > >> On Mon, Jan 19, 2009 at 19:58, Edmund Hertle >> wrote: >> > >> > Well, I think we should not go to fast... maybe we are setting up SVN, >> > webspace, domain, mailing-list and in the en

Re: [PHP] maybe we could all?

2009-01-19 Thread Eric Butera
On Mon, Jan 19, 2009 at 9:41 PM, Bastien Koert wrote: > I'm in, sounds like fun and a great way to learn new stuff This is what I was thinking too. I'm just not sure what sort of contributions I could make to such a thing. It'd be an interesting experience to try though. -- PHP General Mailin

Re: [PHP] maybe we could all?

2009-01-19 Thread Eric Butera
On Mon, Jan 19, 2009 at 10:46 PM, Paul M Foster wrote: > On Tue, Jan 20, 2009 at 03:29:29AM +, Nathan Rixham wrote: > >> Paul M Foster wrote: >>> On Mon, Jan 19, 2009 at 11:57:25PM +, Nathan Rixham wrote: >>> > > > >>> >>> You really don't have enough to do, do you? >>> >>> Paul >>> >> >>

Re: [PHP] curl can't connect to my home server

2009-01-20 Thread Eric Butera
On Tue, Jan 20, 2009 at 1:33 PM, Rene Veerman wrote: > Hi, > > I've been stuck on this problem i'm having after i re-installed my linux > (debian) machine last month.. > > I'm building a CMS with video import capabilities, but since it runs on > shared hosting i need to make a cURL POST call to a

Re: [PHP] Re: curl can't connect to my home server

2009-01-20 Thread Eric Butera
On Tue, Jan 20, 2009 at 1:35 PM, Rene Veerman wrote: > OOPS :) > > As a second test, i changed the test-url to > > http://82.170.249.144:81/mediaBeez/sn.php > > On Tue, Jan 20, 2009 at 7:33 PM, Rene Veerman wrote: > >> Hi, >> >> I've been stuck on this prob

Re: [PHP] MySQL class. Thoughts?

2009-01-21 Thread Eric Butera
On Wed, Jan 21, 2009 at 12:45 PM, Edmund Hertle wrote: > 2009/1/21 Jay Moore > >> This is a MySQL class I use and I wanted to get everyone's thoughts on >> how/if I can improve it. This is for MySQL only. I don't need to make it >> compatible with other databases. I'm curious what you all thin

Re: [PHP] MySQL class. Thoughts?

2009-01-21 Thread Eric Butera
On Wed, Jan 21, 2009 at 5:53 PM, Chris wrote: > Eric Butera wrote: >> >> On Wed, Jan 21, 2009 at 12:45 PM, Edmund Hertle >> wrote: >>> >>> 2009/1/21 Jay Moore >>> >>>> This is a MySQL class I use and I wanted to get everyone's

Re: [PHP] MySQL class. Thoughts?

2009-01-21 Thread Eric Butera
On Wed, Jan 21, 2009 at 6:09 PM, Chris wrote: > Yea if you're only targeting 1 db, then why not use that class? At least then there's the php manual to figure out what something does. >>> >>> Because then to add query logging for the whole app, you just need to put >>> it >>> in the cla

Re: [PHP] MySQL class. Thoughts?

2009-01-21 Thread Eric Butera
On Wed, Jan 21, 2009 at 6:37 PM, Jochem Maas wrote: > Chris schreef: >> > Yea if you're only targeting 1 db, then why not use that class? At > least then there's the php manual to figure out what something does. Because then to add query logging for the whole app, you just need to >>

Re: [PHP] MySQL class. Thoughts?

2009-01-21 Thread Eric Butera
On Wed, Jan 21, 2009 at 7:07 PM, Ashley Sheridan wrote: > On Wed, 2009-01-21 at 18:52 -0500, Eric Butera wrote: >> On Wed, Jan 21, 2009 at 6:37 PM, Jochem Maas wrote: >> > Chris schreef: >> >> >> >>>>> Yea if you're only targeting 1

Re: [PHP] Help me understand unit testing?

2009-01-21 Thread Eric Butera
On Wed, Jan 21, 2009 at 7:01 PM, Murray wrote: > Hi All, > > I'd like to understand unit testing better (or, in fact, at all). I > understand the broad idea that testing Is A Very Good Thing, but when I have > tried to look into it further (for example, have just been looking through > the PHPUnit

Re: [PHP] Help me understand unit testing?

2009-01-21 Thread Eric Butera
t function / class without having code > that puts it to the page? Some other benefit? > > M is for Murray > > > On Thu, Jan 22, 2009 at 10:13 AM, Eric Butera wrote: >> >> On Wed, Jan 21, 2009 at 7:01 PM, Murray >> wrote: >> > Hi All, >> > &

Re: [PHP] Help me understand unit testing?

2009-01-21 Thread Eric Butera
On Wed, Jan 21, 2009 at 7:31 PM, Eric Butera wrote: > On Wed, Jan 21, 2009 at 7:24 PM, Murray wrote: >> I think this is my problem -- basically to know how to get some benefit from >> it. >> >> If I have a function in a class that is supposed to return some ro

Re: [PHP] Coding for email response forms

2009-01-26 Thread Eric Butera
On Mon, Jan 26, 2009 at 4:47 PM, Daniel Brown wrote: > On Mon, Jan 26, 2009 at 16:34, Tom wrote: >> >> Shawn, >> So would that look something like this: >> > if ($_SERVER['REQUEST_METHOD'] == "POST") { >> >> // Just to be safe, I strip out HTML tags >> $realname = strip_tags($realname); >> $email

Re: [PHP] Re: Doc standard for methods?

2009-01-27 Thread Eric Butera
turn type; failing that they can check the >> docs >> >> class Narfing_mysql { >> /** >> * >> * @return Type >> */ >> public function narf() { // Narfing foo() >>// ... >> } >> } >> >> or not best practi

Re: [PHP] Make New-Age Money Online with Google

2009-01-27 Thread Eric Butera
On Tue, Jan 27, 2009 at 2:42 AM, clive wrote: > So Funny, they went through all the trouble of signing up, unless hey have > bots now that can sign up to mailing lists? Could be a virus that is spamming all contacts in a real persons email client. -- PHP General Mailing List (http://www.php.net

Re: [PHP] Re: Hidden costs of PHP arrays?

2009-01-29 Thread Eric Butera
On Thu, Jan 29, 2009 at 9:02 PM, Paul M Foster wrote: > On Fri, Jan 30, 2009 at 11:10:16AM +1100, Clancy wrote: > > > >> As a former assembly language programmer I have some idea of the vast >> amount of thumb >> twiddling which is going on behind-the-scenes when I make some apparently >> simple

Re: [PHP] frameworks

2009-01-30 Thread Eric Butera
On Fri, Jan 30, 2009 at 1:15 PM, Frank Stanovcak wrote: > Ok. I've done some reading on frameworks for PHP now, and have this > question. > > What are some good resources for learning about the various frameworks > available, and do you recomend one over another? If so why? > > I started using P

Re: [PHP] PHP Enclosing Tags? Do You Close Your PHP Declarations?

2009-01-30 Thread Eric Butera
On Fri, Jan 30, 2009 at 1:45 PM, Nitsan Bin-Nun wrote: > I was just wondering whether people enclosing their PHP tags declarations, > I don't close these needs them, > and for the second reason - if a space/tab/new line/etc will beneath them it > will cause > problems with output buffering and se

Re: [PHP] PHP Enclosing Tags? Do You Close Your PHP Declarations?

2009-01-30 Thread Eric Butera
On Fri, Jan 30, 2009 at 3:50 PM, Edmund Hertle wrote: > What is the problem in session handling? I think I came never across this > issue altough I do close my tags... If there's any rogue whitespace in your file, it's sent to the browser as the start of data. So if you have an accidental space

Re: [PHP] Re: frameworks

2009-01-30 Thread Eric Butera
On Fri, Jan 30, 2009 at 7:14 PM, Kevin Waterson wrote: > 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 ev

Re: [PHP] Matching

2009-01-30 Thread Eric Butera
On Fri, Jan 30, 2009 at 9:28 PM, Ron Piggott wrote: > How do I determine the value oftx from this string? > > > page/words_from_the_well_checkout/?tx=8UM53005HH344951T&st=Completed&amt=0.01 > > My desired answer is: 8UM53005HH344951T > > I am trying to capture the serial number which follows

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