Re: [PHP] PHP/MySQL Superstars

2009-10-01 Thread Robert Cummings
I'm a superstar... send me a check for $500,000 and I'll fly on over. Or did you completely misuse the word "superstar"? Cheers, Rob. Jerome Botbol wrote: Hi All, We require a PHP / MySQL superstar to work in-house at our offices near Edgware, London for 3 months on a ground breaking new w

Re: [PHP] Whacky increment/assignment logic with $foo++ vs ++$foo

2009-10-02 Thread Robert Cummings
Daevid Vincent wrote: So then I read the manual because I think I'm loosing my mind and perhaps it's backwards day and nobody told me: http://us3.php.net/manual/en/language.operators.increment.php I'm baffled as to the reasoning behind: "$a++ :: Post-increment :: Returns $a, then increments $

Re: [PHP] A really wacky design decision

2009-10-03 Thread Robert Cummings
tedd wrote: At 9:21 PM +1000 10/3/09, clanc...@cybec.com.au wrote: Daevid Vincent is surprised that: $num = 123; $num = $num++; print $num; //this prints 123 and not 124 ?!! I can understand why someone might think this is not correct, but they need to understand what is happening and why

Re: [PHP] A really wacky design decision

2009-10-03 Thread Robert Cummings
Tom Worster wrote: On 10/3/09 12:25 PM, "Ashley Sheridan" wrote: On Sat, 2009-10-03 at 11:57 -0400, Tom Worster wrote: On 10/3/09 7:21 AM, "clanc...@cybec.com.au" wrote: However there is one feature of PHP which, to my mind, is really bad design. How many of you can see anything wrong wit

Re: [PHP] A really wacky design decision

2009-10-03 Thread Robert Cummings
Andrea Giammarchi wrote: If you use APD or you think about the low level logic behind comparing string, > num and bool you'll probably forget the "==" operator and you'll never miss > again the "===" one ... then you'll start to explicit cast everything, when > necessary, to have all your code

Re: [PHP] Whacky increment/assignment logic with $foo++ vs ++$foo

2009-10-06 Thread Robert Cummings
Andrea Giammarchi wrote: if used properly, could avoid recursion, and speed up operations ... there is nothing wrong with goto, everything we write on lowest level is a jump in the memory (as goto is a jump in the code flow) ++goto ... and not goto++ I forgot, I have always used goto in B

Re: [PHP] Built-in Debugging

2009-10-16 Thread Robert Cummings
Al wrote: Ashley Sheridan wrote: On Fri, 2009-10-16 at 09:04 -0400, Al wrote: Bob McConnell wrote: From: Raymond Irving Will be ever see built-in debugging features for PHP? I do not expect there would be. Debuggers are more likely to be provided by the IDE. For example, in MS-Windows, Vi

Re: [PHP] How to pronounce PHP code over the phone?

2009-10-16 Thread Robert Cummings
Dotan Cohen wrote: How would you read this out loud if you were to read it to someone over the phone? ($item->getServiceId() ? $item->getServiceId() : $item->getId(; It depends... is the person familiar with PHP or not? If they are not then the process is more cumbersome since I can't sa

Re: [PHP] How to pronounce PHP code over the phone?

2009-10-16 Thread Robert Cummings
Ashley Sheridan wrote: On Fri, 2009-10-16 at 12:47 -0400, tedd wrote: At 4:51 PM +0100 10/16/09, Ashley Sheridan wrote: On Fri, 2009-10-16 at 17:46 +0200, Dotan Cohen wrote: How would you read this out loud if you were to read it to someone over the phone? ($item->getServiceId() ? $item

Re: [PHP] How to pronounce PHP code over the phone?

2009-10-16 Thread Robert Cummings
Bob McConnell wrote: From: tedd At 4:51 PM +0100 10/16/09, Ashley Sheridan wrote: On Fri, 2009-10-16 at 17:46 +0200, Dotan Cohen wrote: How would you read this out loud if you were to read it to someone over the phone? ($item->getServiceId() ? $item->getServiceId() : $item->getId(;

Re: [PHP] How to pronounce PHP code over the phone?

2009-10-16 Thread Robert Cummings
O. Lavell wrote: Dotan Cohen wrote: It's called "vacation away from the 'net but there is an emergency". I'm certain that a fair portion of the list is familiar with that! I haven't the slightest idea what you are talking about. Vacation? Away from the net? We must be from different planets.

Re: [PHP] How to pronounce PHP code over the phone?

2009-10-16 Thread Robert Cummings
Dotan Cohen wrote: It's called "vacation away from the 'net but there is an emergency". I'm certain that a fair portion of the list is familiar with that! I haven't the slightest idea what you are talking about. Vacation? Away from the net? We must be from different planets... How to do you vac

Re: [PHP] How to pronounce PHP code over the phone?

2009-10-16 Thread Robert Cummings
tedd wrote: At 8:31 PM +0200 10/16/09, Dotan Cohen wrote: > It depends... is the person familiar with PHP or not? If they are not then the process is more cumbersome since I can't say things like variable item calling camel-case method getServiceId without parameters. Yes, I should have

Re: [PHP] French characters

2009-10-19 Thread Robert Cummings
Don wrote: I am using the following code: Ther emaybe something else setting the charset though. I find the easiest way to check the actual charset that the browser thinks you are using is to open up firefox and go to: Tools -> Page Info There you will see the charset type that the br

Re: [PHP] Create a screenshot of a website

2009-10-22 Thread Robert Cummings
resea soul wrote: Hi, I want to be able to get a screenshot of a given website on the fly. Can you give me any suggestions. http://sourceforge.net/projects/khtml2png/ It might already be in your favourite Linux distro's repositories also. Cheers, Rob. -- http://www.interjinn.com Application

Re: [PHP] Create a screenshot of a website

2009-10-22 Thread Robert Cummings
Andrea Giammarchi wrote: What you see is what a browser engine renders for your eyes while what you can do with PHP is a snapshot of the source code. One should remember that PHP serves quite well both as a glue language and as a wrapper language. There is no reason why you can't use PHP to

Re: [PHP] Create a screenshot of a website

2009-10-22 Thread Robert Cummings
resea soul wrote: Thanks, I checked the faq of their website. They say that I must have an an X session. I don't host myself my website. I want something that I can use only by using cpanel. What i want basically is allow the user to enter the url of a website. And the script must give him

Re: [PHP] Create a screenshot of a website

2009-10-22 Thread Robert Cummings
Andrea Giammarchi wrote: Thanks, I checked the faq of their website. They say that I must have an an X session. I don't host myself my website. I want something that I can use only by using cpanel. What i want basically is allow the user to enter the url of a website. And the script must

Re: [PHP] Create a screenshot of a website

2009-10-22 Thread Robert Cummings
Andrea Giammarchi wrote: Thanks, I checked the faq of their website. They say that I must have an an X session. I don't host myself my website. I want something that I can use only by using cpanel. What i want basically is allow the user to enter the url of a website. And the script must

Re: [PHP] Create a screenshot of a website

2009-10-22 Thread Robert Cummings
Andrea Giammarchi wrote: > I see you are being rather obtuse :| I use system/shell calls without problems if there is the lib I need. The problem here is that the question was, in my opinion, the classic: how to assign javascript var to php (directly) Indeed he is trying to find a PHP solut

Re: [PHP] Create a screenshot of a website

2009-10-22 Thread Robert Cummings
Andrea Giammarchi wrote: Given the knowledge (or extremely likely probability) of the non-existence of a PHP only solution for generating website thumbnails it follows that my suggestion was absolutely applicable. I have never said the opposite ... I have just said: pure PHP with standard c

Re: [PHP] Create a screenshot of a website

2009-10-22 Thread Robert Cummings
Andrea Giammarchi wrote: Hi, If a windows web server is being used, we've had very good results with the activex control (use via COM within PHP5) from http://www.acasystems.com/en/web-thumb-activex/ The developer is very responsive to bug reports / feature suggestions. Full PHP example cod

Re: [PHP] Trapping failure of file_get_contents()

2009-10-22 Thread Robert Cummings
Marshall Burns wrote: I have a script that downloads a sequence of files online. Every hundred files or so, it fails with: Check for the return value being equal to false: Make sure you use the triple '=' comparison operator since you need to check against the type being boolean also. Ch

Re: [PHP] Create a screenshot of a website

2009-10-22 Thread Robert Cummings
Jason wrote: -Original Message- From: Andrea Giammarchi [mailto:an_...@hotmail.com] Sent: 22 October 2009 16:34 To: networkad...@emarket2.com; php-general@lists.php.net Subject: RE: [PHP] Create a screenshot of a website Hi, If a windows web server is being used, we've had very goo

Re: [PHP] Trapping failure of file_get_contents()

2009-10-22 Thread Robert Cummings
Marshall Burns wrote: Robert and others, I made that change in the code. It still does not trap the failure. I believe the reason is that the script is timing out while file_get_contents() is sitting there waiting for input. The problem is that the function never returns, so there is no return

Re: [PHP] Converting tables into forms

2009-10-27 Thread Robert Cummings
ben...@gmail.com wrote: Does anyone have a quick way of converting tables into forms? *tongue in cheek* PHPMyAdmin. Cheers, Rob. -- http://www.interjinn.com Application and Templating Framework for PHP -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.ne

Re: [PHP] Re: Converting tables into forms

2009-10-27 Thread Robert Cummings
ben...@gmail.com wrote: I am trying to take MySQL tables and use the table structure to create HTML/PHP forms in as few steps as possible for further development. I have a project that has hundreds of tables and requires hundreds of forms to be created and don't want to do so field by field by ha

Re: [PHP] PHP String convention

2009-10-28 Thread Robert Cummings
Kim Madsen wrote: Hi Nick Nick Cooper wrote on 2009-10-28 17:29: Thank you for the quick replies. I thought method 2 must be faster because it doesn't have to search for variables in the string. So what is the advantages then of method 1 over 3, do the curly braces mean anything? 1) $string

Re: [PHP] How is this possible? [Solved]

2009-10-28 Thread Robert Cummings
Bob McConnell wrote: From: tedd I found the problem, which basically was that I had declared a variable in a preceding script with the same name, namely $user_id. When I changed my script to $u_id, everything worked as before. Clearly, Globals are evil. It's a bitch to have to work with co

Re: [PHP] Re: Create a screenshot of a website

2009-10-28 Thread Robert Cummings
Manuel Lemos wrote: Hello, on 10/22/2009 11:28 AM resea soul said the following: Hi, I want to be able to get a screenshot of a given website on the fly. Can you give me any suggestions. If you are still looking at solutions for this problem, here you can find a solution that works on Window

Re: [PHP] Re: Create a screenshot of a website

2009-10-28 Thread Robert Cummings
Manuel Lemos wrote: Hello, on 10/28/2009 05:24 PM Robert Cummings said the following: I want to be able to get a screenshot of a given website on the fly. Can you give me any suggestions. If you are still looking at solutions for this problem, here you can find a solution that works on

Re: [PHP] Re: Create a screenshot of a website

2009-10-29 Thread Robert Cummings
Bob McConnell wrote: By the way, HTML Validator, another FF add-on I recommend every developer install, shows a number of warnings on that site, similar to 'line 115 column 1 - Warning: attribute "width" has invalid value "49.5%"'. (NOTE: If you are on Linux, the FF add-on site incorrectly state

Re: [PHP] Assignment in Conditional - How are they evaluated?

2009-10-29 Thread Robert Cummings
Ashley Sheridan wrote: On Thu, 2009-10-29 at 13:58 +, Mark Skilbeck wrote: How is the following evaluated: [code] if ($data = somefunc()) ... [/code] Ignoring the 'assignment inside condition' arguments, is the return value of somefunc() assigned to $data, and then $data's value is eval

Re: [PHP] What PHP version are you using?

2009-10-29 Thread Robert Cummings
Israel Ekpo wrote: I would really appreciate some feedback as it will be useful in helping me determine which PHP version numbers to do my regression tests against. 5.2.0 to 5.2.11 depending on server. I'm not yet ready to move to 5.3.0 due to lack of stable support from the accelerators thus

Re: [PHP] Re: Create a screenshot of a website

2009-10-29 Thread Robert Cummings
tedd wrote: At 9:24 AM -0400 10/29/09, Robert Cummings wrote: Bob McConnell wrote: By the way, HTML Validator, another FF add-on I recommend every developer install, shows a number of warnings on that site, similar to 'line 115 column 1 - Warning: attribute "width" has inva

Re: [PHP] What PHP version are you using?

2009-10-29 Thread Robert Cummings
Tom Barrett wrote: 2009/10/29 Israel Ekpo Hi Guys, I just want to conduct a quick survey to find out what version of PHP people are using in their production environments. I have a PHP extension for Solr that I have set the minimum required version as 5.2.11. [snip] I cannot go below 5.2

[PHP] Ottawa, Canada - PHP Developers

2009-11-04 Thread Robert Cummings
Hi All, Any Ottawa based PHP developers out there that freelance / contract? Nothing to offer right now but we are creating a list of potential contacts related to open source within a Canadian Federal Government context... especially as relates to open-source and PHP. While telecommute would

Re: [PHP] OO method inside a variable

2009-11-04 Thread Robert Cummings
simone.na...@ptvonline.it wrote: Hi everybody, i'm trying to apply a method to an object getting its name from a variable, that i obtain parsing an XML file. For example: $object = new Class; $method = "row()"; #I'm getting this from the XML parser $object->$method; #I've an error here... O

Re: [PHP] Convert deprecated POSIX functions into wrappers for equivalent PCRE functions

2009-11-08 Thread Robert Cummings
Tony Marston wrote: "Eddie Drapkin" wrote in message news:68de37340911081330v799803f3he6ed60ecc6e67...@mail.gmail.com... On Sun, Nov 8, 2009 at 4:13 PM, Tony Marston wrote: That's an amateur fudge, not a professional fix. Besides, what happens if your hosting company won't let you install PEC

Re: [PHP] Convert deprecated POSIX functions into wrappers for equivalent PCRE functions

2009-11-08 Thread Robert Cummings
Tony Marston wrote: "Robert Cummings" wrote in message Then you've got several options: 1) Don't upgrade PHP. Not an acceptable option. 2) Pick a different hosting provider. Not an acceptable optional. 3) Fix your scripts. The scripts aren't broken. It's P

Re: [PHP] Convert deprecated POSIX functions into wrappers for equivalent PCRE functions

2009-11-09 Thread Robert Cummings
Tony Marston wrote: "Robert Cummings" wrote in message news:4af76e1f.2050...@interjinn.com... Tony Marston wrote: "Robert Cummings" wrote in message Then you've got several options: 1) Don't upgrade PHP. Not an acceptable option. 2) Pick a different hostin

Re: [PHP] Convert deprecated POSIX functions into wrappers for equivalent PCRE functions

2009-11-09 Thread Robert Cummings
Tony Marston wrote: "Ashley Sheridan" wrote in message news:1257764339.1076.56.ca...@localhost... On Mon, 2009-11-09 at 00:23 +, Tony Marston wrote: developer laziness or incompetence is not an acceptable excuse. Exactly, so fix your scripts! But my scripts aren't broken! It's PHP 6 t

Re: [PHP] Convert deprecated POSIX functions into wrappers for equivalent PCRE functions

2009-11-09 Thread Robert Cummings
Tony Marston wrote: "David Otton" wrote in message news:193d27170911090331k7ecbe69cl1dd30651273e7...@mail.gmail.com... 2009/11/9 Tony Marston : So you wouldn't trust the PHP developers to write simple code which takes each POSIX function and redirects it to a PCRE function? I have more faith

Re: [PHP] Convert deprecated POSIX functions into wrappers for equivalent PCRE functions

2009-11-09 Thread Robert Cummings
Paul Fierro wrote: On 11/9/09 8:56 AM, Tony Marston wrote: I have tried subscribing to the internals list, but none of my postings ever appears. That's unfortunate as you missed this thread: http://marc.info/?t=12553625831&r=1&w=2 I didn't :) Cheers, Rob. -- http://www.interjinn.com

Re: [PHP] is Aptana taking a crap on the face of PHP?

2009-11-12 Thread Robert Cummings
I've never even heard of Aptana... I use Joe...it's a terminal based editor. Works anywhere you have a terminal... just like other popular editors such as vi :) Cheers, Rob. Daevid Vincent wrote: Whoa, am I reading this right that Aptana is basically moving away from PHP?? https://aptanast

Re: [PHP] Re: Return object to client

2009-11-27 Thread Robert Cummings
Tony Marston wrote: It is not possible to return an object via a web service, only data. You can create an object in the client process, then populate it with data obtained from a web service. You can serialize the object and return that via the web service. On the receiving end it can then b

Re: [PHP] PHP internal memory

2009-11-27 Thread Robert Cummings
Daniel Kolbo wrote: Hello PHP-hipsters, I am not sure how to phrase these questions so please bare with me. I am thinking about performance of a single web server running Apache (non-cluster) with php as a module. I have a web app that requires the same php objects(classes) for each http reque

Re: [PHP] I have not seen any messages for a couple of days...

2009-12-10 Thread Robert Cummings
No, it's been broken for days. You won't get any emails for at least another week. Jay Blanchard wrote: ...is this thing on? -- http://www.interjinn.com Application and Templating Framework for PHP -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.ne

Re: [PHP] Using Curl to replicate a site

2009-12-10 Thread Robert Cummings
Ashley Sheridan wrote: Hi, I need to replicate a site on another domain, and in this case, an iframe won't really do, as I need to remove some of the graphics, etc around the content. The owner of the site I'm needing to copy has asked for the site to be duplicated, and unfortunately in this cas

Re: [PHP] Using Curl to replicate a site

2009-12-10 Thread Robert Cummings
Ashley Sheridan wrote: On Thu, 2009-12-10 at 11:10 -0500, Robert Cummings wrote: Ashley Sheridan wrote: > Hi, > > I need to replicate a site on another domain, and in this case, an > iframe won't really do, as I need to remove some of the graphics, etc > around the conte

Re: [PHP] Using Curl to replicate a site

2009-12-10 Thread Robert Cummings
Joseph Thayne wrote: If the site can be a few minutes behind, (say 15-30 minutes), then what I recommend is to create a caching script that will update the necessary files if the md5 checksum has changed at all (or a specified time period has past). Then store those files locally, and run loca

Re: [PHP] I have not seen any messages for a couple of days...

2009-12-10 Thread Robert Cummings
tedd wrote: At 10:29 AM -0500 12/10/09, Robert Cummings wrote: No, it's been broken for days. You won't get any emails for at least another week. What's been broken? I've been receiving [PHP] post everyday. Nothing is broken... it was a joke. How could it be broke

[PHP] Learning PHP

2009-12-12 Thread Robert H
What is a good beginners programming book for PHP? I like "dead trees" more than reading stuff on my screen, so I am looking for a book. Thanks! Bob -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Learning PHP

2009-12-13 Thread Robert H
On 12/13/09 8:50 AM, tedd wrote: As such, the best book I've read lately has been "PHP, MySQL & Javascript" by Nixon published by O'Reilly. You can buy it on Amazon for less than $27.00 and it's well worth the price. Cheers, tedd Thanks Tedd, Bob -- PHP General Mailing List (http://www.ph

Re: [PHP] Open source project management tool - PHP

2009-12-17 Thread Robert Cummings
Angelo Zanetti wrote: Hi guys I would like to know what open source project management tools you use for your projects. We are looking at installing one that is PHP based and is easy to use. We have found: http://www.projectpier.org/ and http://trac.edgewall.org/ Has anyone used the ab

Re: [PHP] OOP Design Question

2009-12-20 Thread Robert Cummings
Set up autoloading: http://php.net/manual/en/language.oop5.autoload.php Cheers, Rob. Daniel Kolbo wrote: Hello PHPers, I have a collection of about 60 objects (class definitions). They are all very similar. They all share a substantial % of the same core. But they all have slight vari

Re: [PHP] Merry Christmas!

2009-12-25 Thread Robert Cummings
Merry Christmas from Ottawa, Canada :) Errr... uh.. I mean +1 :D Rene Veerman wrote: +1 from Amsterdam :) & a happy, productive & profitable new year to all a ya. On Fri, Dec 25, 2009 at 3:16 PM, Shawn McKenzie wrote: Merry Christmas from Texas, USA! -- http://www.interjinn.com App

[PHP] Unable to get output from exec "ssh remote-server 'ping -c4 ip'"

2009-12-27 Thread robert mena
Hi, I need to develop an interface that will, for example, ping IPs from a remote server. So the php script will be hosted in a server with ssh access (key) to the remote server. I can make it work from the console but when I try $cmd = "ssh remote-server 'ping -c 4 ip'" exec($cmd, $ouput); the

Re: [PHP] MySQL Increment/Decrement

2009-12-28 Thread Robert Cummings
Ben Miller wrote: I hope this isn't a bone-head question - Is there a MySQL query that will increment/decrement the value in an integer column with a single query - in other words, I don't have to run a SELECT query to get the value, add/subtract to/from the value, and then run an UPDATE query to

[PHP] Help with security configuration for a shared hosting environment

2009-12-30 Thread robert mena
Hi, I am setting a shared hosting server and I'd like to gather some advices regarding the security. Since the code will not be produced by me I'd like to focus on environment strategies. For now I've added a noexec in the mount options of the /tmp and the homedir of the web server, disabled the

Re: [PHP] Happy New Year All!

2009-12-31 Thread Robert Cummings
Paul Scott wrote: Bipper Goes! wrote: return ThankYou; Oh god I think I blowed it up. I prefer: Oh dear... that's terribly inefficient... Here's a better stab: = 0; $i-- ) { echo $i ? "$i...\n" : "HAPPY NEW YEAR!\n"; sleep( 1 ); } ?> Cheers, Rob. -- http://www.interjinn.com

Re: [PHP] Happy New Year All!

2009-12-31 Thread Robert Cummings
Bipper Goes! wrote: On Thu, Dec 31, 2009 at 10:52 AM, Robert Cummings wrote: Paul Scott wrote: Bipper Goes! wrote: return ThankYou; Oh god I think I blowed it up. I prefer: Oh dear... that's terribly inefficient... Here's a better stab: = 0; $i-- ) { echo $i

Re: [PHP] If design patterns are not supposed to produce reusable code then why use them?

2010-01-04 Thread Robert Cummings
Richard Quadling wrote: 2009/12/30 Tony Marston : I have recently been engaged in an argument via email with someone who criticises my low opinion of design patterns (refer to http://www.tonymarston.net/php-mysql/design-patterns.html ). He says that design patterns are merely a convention and no

Re: [PHP] PHP has encountered an Access Violation at ***

2010-01-05 Thread Robert Cummings
Slack-Moehrle wrote: Hi All, Win 2003, PHP 5.2.12 and IIS 6. I have PHP configured as ISSAPI and it is serving PHP pages. When I try a page that requires MySQL I am getting just: PHP has encountered an Access Violation at (and a RANDOM number) It means you didn't follow the instructions on

Re: [PHP] pass by reference variable length args

2010-01-05 Thread Robert Cummings
viraj wrote: hi all, i'm trying to write a wrapper function for "mysqli_stmt_bind_results". and expect it to work the same way it accepts and bind results to the original function. the problem is, i couldn't find a way to pass the args by reference via func_get_args and register the out put from

Re: [PHP] pass by reference variable length args

2010-01-05 Thread Robert Cummings
viraj wrote: if func_get_args supports pass by reference, we could have avoid the loop and pre-defined arg list. something like.. extract(func_get_args) :D Absolute! I'm not sure why there isn't some kind of way to retrieve a reference in this manner, but I suspect it's related to knowing

Re: [PHP] Open source project management tool - PHP

2010-01-06 Thread Robert Cummings
Angelo Zanetti wrote: Thanks all, for the responses and advice. After much research and trying out we decided to go with: http://www.fengoffice.com/ its PHP based and also uses the EXTJS library. Its got quite a lot of features (calendar, tasks, email, notes, documents, reporting) etc... wit

Re: [PHP] PHP programming strategy; lots of little include files, or a few big ones?

2010-01-06 Thread Robert Cummings
clanc...@cybec.com.au wrote: I have a flexible program, which can do many different things according to the type of data it is fed. Ideally the flexibility is achieved by calling different functions, though when the functionality is ill-defined I sometimes just include blocks of code. Ideall

Re: [PHP] Re: PHP programming strategy; lots of little include files, or a few big ones?

2010-01-06 Thread Robert Cummings
Daniel Kolbo wrote: Daevid Vincent wrote: -Original Message- From: Al [mailto:n...@ridersite.org] Sent: Wednesday, January 06, 2010 5:09 PM To: php-general@lists.php.net Subject: [PHP] Re: PHP programming strategy; lots of little include files, or a few big ones? On 1/6/2010

Re: [PHP] Re: PHP programming strategy; lots of little include files, or a few big ones?

2010-01-07 Thread Robert Cummings
clanc...@cybec.com.au wrote: Thank you all for your comments. I did not know about bytecode caches. They're an interesting concept, but if I am interpreting the paper http://itst.net/654-php-on-fire-three-opcode-caches-compared correctly they only double the average speed of operation, which is

Re: [PHP] Re: PHP programming strategy; lots of little include files, or a few big ones?

2010-01-08 Thread Robert Cummings
Graham Cossey wrote: On Fri, Jan 8, 2010 at 3:48 AM, Robert Cummings wrote: They almost always make your shit run faster. I love your final statement Robert! A reply of good grammar and vocabulary summarised most succinctly. :) -- http://www.interjinn.com Application and Templating

Re: [PHP] Re: PHP programming strategy; lots of little include files, or a few big ones?

2010-01-08 Thread Robert Cummings
clanc...@cybec.com.au wrote: On Thu, 07 Jan 2010 22:48:59 -0500, rob...@interjinn.com (Robert Cummings) wrote: clanc...@cybec.com.au wrote: Thank you all for your comments. I did not know about bytecode caches. They're an interesting concept, but if I am interpreting the paper

Re: [PHP] POLL: To add the final ?> or not...

2010-01-08 Thread Robert Cummings
Mattias Thorslund wrote: Hadn't paid much attention to the issue until reading a previous discussion on the topic, here on this list. After that, I decided to be consistent and leave the closing ?> out in all include files. To my eyes, ?> means "look there is more content coming", which seems

Re: [PHP] Upgraded PHP now website doesn't work properly?

2010-01-11 Thread Robert Cummings
Bob McConnell wrote: From: Kaya Saman I also forgot to mention, it's worth getting an editor that comes with syntax highlighting, as this would have shown you the problem right away. Thanks for both comments Ashley! I will attempt it now. An editor with syntax checking?? Currently my data

Re: [PHP] Form validation and save the form

2010-01-11 Thread Robert Cummings
Angelo Zanetti wrote: -Original Message- From: aditya shukla [mailto:adityashukla1...@gmail.com] Sent: 11 January 2010 07:37 AM To: php-general Subject: [PHP] Form validation and save the form Hello Guys, I am trying to validate a form for user input , such that when something is mis

Re: [PHP] POLL: To add the final ?> or not...

2010-01-12 Thread Robert Cummings
Michael A. Peters wrote: LinuxManMikeC wrote: On Fri, Jan 8, 2010 at 1:24 PM, Daevid Vincent wrote: I'm having a debate with a co-worker about adding the final ?> on a PHP page... So everybody, when do we get to the real discussion? Which end of an egg do we break? Depends upon how far a

Re: [PHP] POLL: To add the final ?> or not...

2010-01-12 Thread Robert Cummings
tedd wrote: At 5:24 PM + 1/12/10, Ashley Sheridan wrote: On Tue, 2010-01-12 at 12:22 -0500, Robert Cummings wrote: -- egg snip-its While on the subject of eggs and other non-php topics, here's a life trick. If you don't know if an egg is hard-boiled, or not, try spinning i

Re: [PHP] 11 types of people in the world...

2010-01-12 Thread Robert Cummings
Daevid Vincent wrote: -Original Message- From: Michael A. Peters [mailto:mpet...@mac.com] Sent: Tuesday, January 12, 2010 2:46 AM To: Angus Mann Cc: php-general@lists.php.net Subject: Re: [PHP] corect way to use mail() function Angus Mann wrote: There are only 11 types of people in t

Re: [PHP] Display just 1 record in a query

2010-01-12 Thread Robert Cummings
deal...@gmail.com wrote: On Jan 12, 2010, at 1:57 PM, Ashley Sheridan wrote: Depends on how you're creating running the query. You could do something like: echo mysql_result($result, 1, 'fieldname'); Where $result is your result object and 1 is a 0 indexed array, so would be the second r

Re: [PHP] Display just 1 record in a query

2010-01-12 Thread Robert Cummings
Jochem Maas wrote: Op 1/13/10 12:43 AM, Robert Cummings schreef: deal...@gmail.com wrote: On Jan 12, 2010, at 1:57 PM, Ashley Sheridan wrote: Depends on how you're creating running the query. You could do something like: echo mysql_result($result, 1, 'fieldname'); Where

Re: [PHP] header("Location:...") fails

2010-01-13 Thread Robert Cummings
Paul M Foster wrote: On Wed, Jan 13, 2010 at 11:39:18AM -0800, Richard S. Crawford wrote: Here is a snippet of code that is going to be the death of me: // Create a new project $projectcode = strtoupper(addslashes($_POST['projectcod

Re: [PHP] Need Idea to make Backup

2010-01-14 Thread Robert Cummings
haliphax wrote: On Thu, Jan 14, 2010 at 5:45 AM, Ashley Sheridan wrote: On Thu, 2010-01-14 at 12:32 +0100, Jens Geier wrote: "Ashley Sheridan" schrieb im Newsbeitrag news:1263463572.5952.71.ca...@localhost... On Thu, 2010-01-14 at 10:12 +0100, Jens Geier wrote: "Ashley Sheridan" schrieb

Re: [PHP] order by ASC

2010-01-16 Thread Robert Cummings
John Taylor-Johnston wrote: Ok, I think this is a MySQl question. Take pity on me? $sql = "SELECT * FROM $db.`mailinglist` WHERE `type` IN ('Member', 'Affiliated', 'Life Member') ORDER BY `rollnumber` ASC"; rollnumber is a varchar(50). I need it to be a text field. ASC does not order the way

Re: [PHP] order by ASC

2010-01-16 Thread Robert Cummings
John Taylor-Johnston wrote: Did some googling. This worked: ORDER BY CAST(`rollnumber` AS SIGNED) What is the difference? My problem in the meanwhile must be my version of MySQL? You could have skipped quotes altogether. The difference is that you are referencing a field name, not a string v

Re: [PHP] Notices flooding logs with fastcgi

2010-01-18 Thread Robert Cummings
Ashley Sheridan wrote: On Mon, 2010-01-18 at 12:20 +, Max Zimmermann wrote: Hello everybody, I have chosen this list because my problem is related to one particular style of php installation. At least I think so. I'm running php 5.2.11 and plesk 9.2.3, php through fastCGI. My problem i

Re: [PHP] Object Oriented Programming question

2010-01-19 Thread Robert Cummings
Ashley Sheridan wrote: On Tue, 2010-01-19 at 12:30 -0500, Paul M Foster wrote: On Tue, Jan 19, 2010 at 03:11:56PM +, Ben Stones wrote: Hi, I've been learning about object oriented programming for the past few weeks and I've understood it pretty well, but I have one question. Usually with

Re: [PHP] Object Oriented Programming question

2010-01-20 Thread Robert Cummings
Jay Blanchard wrote: [snip] My viewpoint may be jaundiced from having programmed in C++, but the polymorphism of PHP seems a little crippled by comparison. [/snip] I wholeheartedly agree, but I figured out how to work with it in PHP to my advantage and the advantage of my team. It'll get better.

Re: [PHP] Open Source CMS

2010-01-20 Thread Robert Cummings
Allen McCabe wrote: I've not had much experience with CMS's, however Drupal seems pretty featured, with the steep-learning curve; it's not very user friendly. Not to disregard your own experience, but I've found Drupal surprisingly easy to get running with. In fact it's pretty much my first ch

Re: [PHP] Close MySQL Result

2010-01-21 Thread Robert Cummings
tedd wrote: At 1:20 PM -0800 1/20/10, Slack-Moehrle wrote: I think I am a dork. Aren't we all? Speak for yourself dork! ;) Cheers, Rob. -- http://www.interjinn.com Application and Templating Framework for PHP -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://

Re: [PHP] Open Source CMS

2010-01-21 Thread Robert Cummings
tedd wrote: At 11:29 AM +0800 1/21/10, Hendry wrote: Hi, Anyone can share your favorite PHP open source CMS to work with and what's the reason? I'm looking for something that easily extensible. I've googled and found severals but I'm still confused, some from the lists: - Drupal - Tomato CMS -

Re: [PHP] MySQL ID -- what happens when you run out of range?

2010-01-25 Thread Robert Cummings
Parham Doustdar wrote: Hello there, A friend called me today and was wondering what happens if the ID colomn of an MYSQL database, set to autoinc reaches the int limit. Will it return and begin choosing the ID's that have been deleted, or... what? Thanks! Ask Slashdot... I believe they hit t

Re: [PHP] In need of better __FILE__, __LINE__ and __FUNCTION__ magic variables

2010-01-25 Thread Robert Cummings
Daevid Vincent wrote: Like you, I have many little functions that are useful for debugging in a page. The problem is that when you start to pepper them around, whilst debugging, you can often times forget where you left them. A search isn't always helpful since I sometimes leave them in the code

Re: [PHP] Pointers For Newbies, Reminders For Oldies

2010-01-27 Thread Robert Cummings
Ashley Sheridan wrote: On Wed, 2010-01-27 at 18:26 +0100, Daniel Egeberg wrote: On Wed, Jan 27, 2010 at 18:13, Daniel Brown wrote: On Wed, Jan 27, 2010 at 12:08, Daniel Egeberg wrote: There is virtually no difference nowadays. It's a long time since anything like that has mattered. Actu

Re: [PHP] Pointers For Newbies, Reminders For Oldies

2010-01-27 Thread Robert Cummings
Daniel Brown wrote: On Wed, Jan 27, 2010 at 12:27, Ashley Sheridan wrote: Depends I guess on how far you need to optimise the code. I'd imagine that to something like Facebook, every split-second of optimisation is worth it, as even a 100th of a second becomes minutes of wasted time over t

Re: [PHP] Replacing accented characters?

2010-01-28 Thread Robert Cummings
tedd wrote: At 12:17 PM +0100 1/28/10, Marcus Gnaß wrote: On 28.01.2010 03:40, Paul M Foster wrote: On Wed, Jan 27, 2010 at 04:55:46PM -0600, Skip Evans wrote: Hey all, I'm looking for recommendations on how to replace accented characters, like e and u with those two little dots above t

Re: [PHP] Pointers For Newbies, Reminders For Oldies

2010-01-28 Thread Robert Cummings
Nathan Rixham wrote: Ford, Mike wrote: -Original Message- From: Rene Veerman [mailto:rene7...@gmail.com] Sent: 27 January 2010 22:46 And if your script needs to pass large (> 5Mb) arrays around to functions, be sure to use passing-by-reference; failing to do so can double your memory re

Re: [PHP] > 120 meg of json analyzed by the browser...

2010-01-28 Thread Robert Cummings
Rene Veerman wrote: Hi.. I've built http://mediabeez.ws/htmlMicroscope/ (lgpl), which provides a way to look at very big arrays in the browser. I'm kinda stuck at a 120 - 200Mb data-size limit, and have exhausted all my ideas on how to increase that limit further. My reasoning is that i have a

Re: [PHP] Pointers For Newbies, Reminders For Oldies

2010-01-28 Thread Robert Cummings
Paul M Foster wrote: On Thu, Jan 28, 2010 at 11:41:43AM -, Ford, Mike wrote: -Original Message- From: Rene Veerman [mailto:rene7...@gmail.com] Sent: 27 January 2010 22:46 And if your script needs to pass large (> 5Mb) arrays around to functions, be sure to use passing-by-reference;

Re: [PHP] Reports generator

2010-01-28 Thread Robert Cummings
Paul M Foster wrote: On Thu, Jan 28, 2010 at 01:31:30AM -0800, Allen McCabe wrote: SIDE QUESTION: What do you think of my use of serialization? I don't see a need to store duplicate information in new tables, and thought serializing these one shot reports the best solution. I couldn't reall

Re: [PHP] Reports generator

2010-01-28 Thread Robert Cummings
Paul M Foster wrote: On Thu, Jan 28, 2010 at 10:49:17AM -0500, Robert Cummings wrote: Paul M Foster wrote: On Thu, Jan 28, 2010 at 01:31:30AM -0800, Allen McCabe wrote: SIDE QUESTION: What do you think of my use of serialization? I don't see a need to store duplicate information i

<    14   15   16   17   18   19   20   21   22   23   >