Re: [PHP] requesting comments on rajmvServiceLog (access + error logging through PHP and JS to MySQL)

2012-05-21 Thread tamouse mailing lists
On Mon, May 21, 2012 at 7:31 AM, rene7705 wrote: > On Mon, May 21, 2012 at 1:17 PM, Simon Schick > wrote: >> Specially the function rajmvServiceLog_graphs_raphael_calculateData() with a >> code of ca. 280 lines is quite long ... > > 280 lines is long?! :) In general, yes. 280 lines is long. Too

[PHP] Re: Function size

2012-05-24 Thread tamouse mailing lists
On May 23, 2012 9:14 AM, "Tedd Sperling" wrote: > > Hi gang: > > On May 21, 2012, at 8:32 PM, tamouse mailing lists wrote: > > A rule of thumb is no more than 50 lines per > > function, most much less. Back in the day when we didn't have nifty > > gu

Re: [PHP] Re: Function size

2012-05-31 Thread tamouse mailing lists
On Tue, May 29, 2012 at 2:52 AM, Tony Marston wrote: > On May 21, 2012, at 8:32 PM, tamouse mailing lists wrote: >>  A rule of thumb is no more than 50 lines per >> function, most much less. Back in the day when we didn't have nifty >> gui screens and an 24 line ter

Re: [PHP] cyberweaponry

2012-05-31 Thread tamouse mailing lists
On Thu, May 31, 2012 at 12:21 PM, Tedd Sperling wrote: > I watched a interview today where an security expert claimed that the Flame > Virus was written in a scripted language named lua (http://www.lua.org/). Is the interview online someplace? (Youtube?) -- PHP General Mailing List (http://www

Re: [PHP] Uploading large files with HTTP_Request class

2012-05-31 Thread tamouse mailing lists
On Thu, May 31, 2012 at 5:28 AM, Voß, Marko wrote: > Hello, > > I need to perform uploading of large files using the HTTP_Request class: > > http://pear.php.net/manual/package.http.http-request.php > > I am *not* using this one: > > http://php.net/manual/en/class.httprequest.php > > > The HTTP_Req

Re: [PHP] Uploading large files with HTTP_Request class

2012-05-31 Thread tamouse mailing lists
On Thu, May 31, 2012 at 5:28 AM, Voß, Marko wrote: > I need to perform uploading of large files using the HTTP_Request class: > http://pear.php.net/manual/package.http.http-request.php > The HTTP_Request class support the following functions: > setBody() and addFile() Reading the above, and check

Re: [PHP] Your Amazon.com order confirmation.

2012-06-09 Thread tamouse mailing lists
On Fri, Jun 8, 2012 at 9:23 AM, Dan McCullough wrote: > I was hoping for a TV I'm still waiting on my delivery of a case of tuscan whole milk -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: define()

2012-06-16 Thread tamouse mailing lists
On Sat, Jun 16, 2012 at 7:17 AM, Ashley Sheridan wrote: > On Sat, 2012-06-16 at 07:09 -0500, Karl DeSaulniers wrote: > >> On Jun 16, 2012, at 6:39 AM, Maciek Sokolewicz wrote: >> >> > On 16-06-2012 08:36, Karl DeSaulniers wrote: >> >> Quick question phprz. Is it ok to put a token inside a define()

Re: [PHP] What's happened to our newsgroup?

2012-06-26 Thread tamouse mailing lists
On Jun 26, 2012 5:31 PM, "Stefan Wixfort" wrote: > > On 26.06.2012 23:48, Simon J Welsh wrote: >> >> >> On 27/06/2012, at 9:45 AM, Daniel Brown wrote: >> >>> On Tue, Jun 26, 2012 at 5:42 PM, Matijn Woudt wrote: Isn't everyday friday in summer? ;) >>> >>> >>>If it is, then it co

Re: [PHP] Re: php form action breaks script

2012-06-27 Thread tamouse mailing lists
On Wed, Jun 27, 2012 at 7:17 PM, Tim Dunphy wrote: > Hey guys, > > It's been a little while since I've toyed with this, and I hope you > don't mind my coming back to you for some more advice. But I've > enjoyed some limited success with David R's advice regarding adding > some strong quoting to th

Re: [PHP] Re: php form action breaks script

2012-06-27 Thread tamouse mailing lists
On Wed, Jun 27, 2012 at 7:17 PM, Tim Dunphy wrote: One more little thing: These notices: > Notice: Undefined index: subject in > /Library/WebServer/Documents/examples/ch03/final/makemeelvis/sendemail.php > on line 23 Notice: Undefined index: elvismail in > /Library/WebServer/Documents/examples

Re: [PHP] slicing and dicing strings

2012-06-27 Thread tamouse mailing lists
On Wed, Jun 27, 2012 at 5:15 PM, Kirk Bailey wrote: > ok, it slices and dices, but how? > in python, to print all but the last char in string FOO, we say > print FOO[:-1] > But this seems to bark like a basset hound in php. Whyfore? As said, PHP is not Python. Pretty much *nothing* else is Python

Re: [PHP] Depreciation message I can't make out....

2012-06-28 Thread tamouse mailing lists
On Thu, Jun 28, 2012 at 1:00 PM, Daniel Brown wrote: >>  PHP Deprecated:  Comments starting with '#' are deprecated in >> /web/conf/php5.ini on line 1256 in Unknown on line 0 > >    Comment-out, using semicolons (;), any comments in your > /web/conf/php5.ini file that begin with the hashmark (#),

Re: [PHP] What's happened to our newsgroup?

2012-06-28 Thread tamouse mailing lists
On Wed, Jun 27, 2012 at 9:42 AM, Tedd Sperling wrote: > On Jun 26, 2012, at 3:21 PM, Al wrote: > >> No postings for days. >> > > Maybe everyone learned it -- no new questions. > > Cheers, > > tedd We now all have php.net open all the time so no more questions need to be asked! :> -- PHP Genera

Re: [PHP] log tailing

2012-06-29 Thread tamouse mailing lists
On Fri, Jun 29, 2012 at 3:49 AM, Mihamina Rakotomandimby wrote: > I have a /var/log/messages and /var/log/syslog file to parse to extract > information from. > > I have the to extract the date, and some information in the line. [snip] > I just need help on the right regexp function to use. > Would

Re: [PHP] Depreciation message I can't make out....

2012-06-30 Thread tamouse mailing lists
almost hear them shrugging their shoulders, what-me-worry style. If anyone > with more might than i could explain this error might affect others when > multiplied hundreds of times it could be useful. > > Am 30.06.2012 19:23 schrieb "Daniel Brown" : >> >> On Thu,

Fwd: Re: [PHP] log tailing

2012-06-30 Thread tamouse mailing lists
-- Forwarded message -- From: "tamouse mailing lists" Date: Jun 30, 2012 4:35 PM Subject: Re: [PHP] log tailing To: "Daniel Brown" On Jun 30, 2012 1:34 PM, "Daniel Brown" wrote: > > On Sat, Jun 30, 2012 at 2:30 PM, Daniel Brown wrote: &

Re: [PHP] Hello again

2012-07-02 Thread tamouse mailing lists
On Sun, Jul 1, 2012 at 6:21 PM, RGraph.net support wrote: > Just thought I'd say hello again. Back to brush up on my PHP a little > after a bit of a break - more reading than replying I'd imagine. I > have some pretty bad jokes too that I might surreptitiously insert > here and there... Welcome b

Re: [PHP] PDO Prevent duplicate field names?

2012-07-03 Thread tamouse mailing lists
On Mon, Jul 2, 2012 at 5:38 PM, Scott Baker wrote: > It was my mistake, and the SQL was easily fixed. But it woulda been nice > to have PHP realize there was a dupe when it was building that array to > return to me. This is just not a province of PHP. What sort of behaviour would one expect PHP t

Re: [PHP] How does this code work?

2012-07-03 Thread tamouse mailing lists
On Tue, Jul 3, 2012 at 2:31 AM, Robert Williams wrote: > On Jul 2, 2012, at 22:15, "Jim Lucas" wrote: > Hmm, I wonder if those thirty years are having a different sort of impact on > me, in the form of decaying eyesight I've had to tweak up the default fonts on things... *sigh* -- PHP Gen

Re: [PHP] How to make a secure download ?

2012-07-08 Thread tamouse mailing lists
On Thu, Jul 5, 2012 at 10:17 AM, Gibbs wrote: > On 05/07/12 14:32, donkfat...@donkfather.eu wrote: >> >> Hi, >> >> I am trying to put a file to download. I want it secure so only the people >> having the password can access it. >> I made a page that requires a password.. if the password is correct

Re: [PHP] Using named Pipes between PHP and ZIP

2012-07-08 Thread tamouse mailing lists
≈On Sun, Jul 8, 2012 at 11:30 AM, Dennis Heck wrote: > Hello everyone, > > I'm looking for a solution for the following: > 1) collecting data from a simple html form and send them to a php script > 2) take the data and place them in a php-generated excel sheet > 3) zip the excel sheet and password

Re: [PHP] Re: Find match of string if only at end of string

2012-07-11 Thread tamouse mailing lists
On Wed, Jul 11, 2012 at 11:45 AM, Marc Guay wrote: > Answered it myself (funny how writing out a problem as descriptively > as possible makes the brain work better). > > $end_of_url = substr("http://domain.com/about/page/subpage/";, > strlen("/about/page/") * -1); > $same_post = ($end_of_url == "/

[PHP] PDO: extend or encapsulate?

2012-07-12 Thread tamouse mailing lists
It's Friday, so... Yes, it's true, I have just started looking at using PDO instead of mysqli -- a bit behind the times... My question at this stage, is do people tend to extend the PDO class for their own use, or encapsulate it in a class (or do most people use it mostly in procedural code?) --

Re: [PHP] PDO: extend or encapsulate?

2012-07-14 Thread tamouse mailing lists
On Sat, Jul 14, 2012 at 12:04 AM, Paul M Foster wrote: > On Fri, Jul 13, 2012 at 12:06:22AM -0500, tamouse mailing lists wrote: > >> It's Friday, so... >> >> Yes, it's true, I have just started looking at using PDO instead of >> mysqli -- a bit behind the

Re: [PHP] Re: Seeking a scheduling algorithm

2012-07-14 Thread tamouse mailing lists
On Jul 14, 2012 5:34 PM, "Bill Guion" wrote: > > On Jul 14, 2012, at 4:53 PM, php-general-digest-h...@lists.php.net wrote: > > > From: Tedd Sperling > > Subject: Seeking a scheduling algorithm > > Date: July 14, 2012 4:53:15 PM EDT > > To: php-general@lists.php.net > > > > > > Hi gang: > > > > Do

Re: [PHP] PDO: extend or encapsulate?

2012-07-15 Thread tamouse mailing lists
On Sun, Jul 15, 2012 at 5:50 AM, shiplu wrote: > From OOP point of view. > > Use encapsulation: > When a class has a "has-a" relation-ship with other class you should use > encapsulation. For example, If MyDB is a class that "has-a" pdo driver in > it, then PDO will be encapsulated inside MyDB cla

Re: [PHP] What do you call the end-user?

2012-07-19 Thread tamouse mailing lists
On Thu, Jul 19, 2012 at 12:26 PM, Tedd Sperling wrote: > Hi gang: > > I can't wait for tomorrow -- so here's my off-topic post today. > > First question: > > What do you call the people who ultimately use your code? It all depends on where and how my code is ultimately used. If it is code that so

Re: [PHP] Creating drop-down menus

2012-07-20 Thread tamouse mailing lists
On Jul 19, 2012 8:31 PM, "Tedd Sperling" wrote: > > On Jul 19, 2012, at 1:50 PM, Daniel Brown wrote: > > > >As an aside on the subject of jQuery, our very own Jay Blanchard > > has written a comprehensive book on the topic entitled "Applied > > jQuery: Develop and Design": > > > >http

Re: [PHP] Creating drop-down menus

2012-07-20 Thread tamouse mailing lists
On Jul 20, 2012 9:20 AM, "tamouse mailing lists" wrote: > > > On Jul 19, 2012 8:31 PM, "Tedd Sperling" wrote: > > > > On Jul 19, 2012, at 1:50 PM, Daniel Brown wrote: > > > > > >As an aside on the subject of jQuery, our very own

Re: [PHP] Mac 10.7 Install/Copy fresh PHP over Pre-Installed PHP

2012-07-31 Thread tamouse mailing lists
Ugh. This is why I no longer want an apple computer. On Jul 31, 2012 8:26 AM, "JeffPGMT" wrote: > > AGAIN - THANKS TO ALL... > > IT installed XCode, here's another? command line tools sans XCode available > from Kenneth's github, > https://github.com/kennethreitz/osx-gcc-installer > > However ano

Re: [PHP] File moving hell on Windows

2012-07-31 Thread tamouse mailing lists
On Jul 31, 2012 12:12 PM, "Brian Dunning" wrote: > > Regular Windows networking. > > On Jul 30, 2012, at 2:29 PM, Mike Mackintosh < mike.mackint...@angrystatic.com> wrote: > >> > > What protocol are you targeting? FTP, SFTP, SSH, SMB, etc? > > > > -- > > Mike Mackintosh > > PHP 5.3 ZCE > > > > > -

Re: [PHP] PHP Stats

2012-07-31 Thread tamouse mailing lists
On Jul 31, 2012 12:19 PM, "Lester Caine" wrote: > > Sebastian Krebs wrote: >> >> http://w3techs.com/technologies/details/pl-php/all/all For example. Click >> around, nice stats there. > > http://w3techs.com/technologies/history_overview/programming_language/ms/yis > the more interesting one ... P

Re: [PHP] php safe mode no more?

2012-08-04 Thread tamouse mailing lists
What I've noticed running apache suexec + fastcgi is that the memory requirements increased over running nonsuexec and mod_php under apache. when i went to a nginx + fastcgi, things worked much better overall with limited memory (i'm on 1GB limited slice, non-burstable). -- PHP General Mailing Li

Re: [PHP] Coding Web search engine in PHP

2012-08-06 Thread tamouse mailing lists
On Aug 6, 2012 7:33 AM, "shiplu" wrote: > Solr with Nutch will do it. Where *do* come up with those names :)

Re: [PHP] PHP session variables

2012-08-14 Thread tamouse mailing lists
On Aug 13, 2012 8:01 AM, "Robert Cummings" wrote: > > On 12-08-10 04:42 PM, Tedd Sperling wrote: >> >> On Aug 10, 2012, at 1:21 PM, Ege Sertçetin wrote: >> >>> Hi. My question will maybe out of topic, I'm sorry. >>> How can you know that one way will be much slower than other one? I mean, how can

Re: [PHP] PHP session variables

2012-08-14 Thread tamouse mailing lists
On Aug 14, 2012 1:36 AM, "tamouse mailing lists" wrote: > > > On Aug 13, 2012 8:01 AM, "Robert Cummings" wrote: > > > > On 12-08-10 04:42 PM, Tedd Sperling wrote: > >> > >> On Aug 10, 2012, at 1:21 PM, Ege Sertçetin wrote: > >>

Re: [PHP] Need to have form protection techniques

2012-08-16 Thread tamouse mailing lists
On Thu, Aug 16, 2012 at 11:05 PM, Ansry User 01 wrote: > I need to know the forms validity techniques for Php. Is that all? Seriously, that is a very lengthy discussion, and may depend on which framework you may be using. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] How do I do count the occurrence of each word?

2012-08-18 Thread tamouse mailing lists
On Sat, Aug 18, 2012 at 6:44 PM, John Taylor-Johnston wrote: > I want to parse this text and count the occurrence of each word: > > $text = http://www.cegepsherbrooke.qc.ca/~languesmodernes/test/test.html; > #Can I do this? > $stripping = strip_tags($text); #get rid of html > $stripping = strtolow

Re: [PHP] How do I do count the occurrence of each word?

2012-08-18 Thread tamouse mailing lists
On Sun, Aug 19, 2012 at 12:38 AM, Marco Behnke wrote: > Am 19.08.12 06:59, schrieb tamouse mailing lists: >> On Sat, Aug 18, 2012 at 6:44 PM, John Taylor-Johnston >> wrote: >>> I want to parse this text and count the occurrence of each word: >>> >>>

Re: [PHP] OT (maybe not): Drupal vs WordPress

2012-08-19 Thread tamouse mailing lists
On Sun, Aug 19, 2012 at 8:28 PM, wrote: > http://www.computerworld.com/s/article/9219685/Site_builder_shootout_Drupal_vs._Joomla_vs._WordPress > Very good article IHMO. > > >> Hi to everyone, >> I was trying to figure this out for the last week or two. I have read tons >> of articles that compare

Re: [PHP] Dynamic Content thoughts

2012-08-24 Thread tamouse mailing lists
OT Reply -- just frustrated with the way email screws up program listings. It's a royal pain to have to strip out code and then put it in an editor and tidy it up just to be able to make heads or tails out of something. There are lots of code pasting sites around, but that breaks up the continuity

Re: [PHP] Dynamic Content thoughts

2012-08-24 Thread tamouse mailing lists
On Thu, Aug 23, 2012 at 2:51 PM, admin wrote: > Hello everyone, > > In my quest to build bigger and better dynamic content, I am > putting forth a concept to see what you all think. > > Many times I come across customers who want drop down menus dynamically > built from database ta

Re: [PHP] Dynamic Content thoughts

2012-08-24 Thread tamouse mailing lists
On Fri, Aug 24, 2012 at 10:11 AM, Samuel Lopes Grigolato wrote: > Do you mean the ">" quotation marks? Have you tried to create a simple > Notepad++ macro? I do this for things like formatting SQL from SQL Editor to > SQL String in code, and vice versa. No, I mean the way the code is mangled wi

Re: [PHP] Dynamic Content thoughts

2012-08-24 Thread tamouse mailing lists
On Fri, Aug 24, 2012 at 10:16 AM, Jim Lucas wrote: > On 08/24/2012 08:01 AM, tamouse mailing lists wrote: >> >> OT Reply -- just frustrated with the way email screws up program >> listings. It's a royal pain to have to strip out code and then put it >> in an edito

Re: [PHP] Dynamic Content thoughts

2012-08-24 Thread tamouse mailing lists
On Fri, Aug 24, 2012 at 10:47 AM, Matijn Woudt wrote: > On Fri, Aug 24, 2012 at 5:33 PM, Jim Lucas wrote: >> On 08/24/2012 08:25 AM, Matijn Woudt wrote: >>> >>> On Fri, Aug 24, 2012 at 5:22 PM, Jim Lucas wrote: Two simple guide lines will help everybody here. 1) Limit your li

Re: [PHP] Dynamic Content thoughts

2012-08-24 Thread tamouse mailing lists
On Fri, Aug 24, 2012 at 10:12 AM, Matijn Woudt wrote: > On Fri, Aug 24, 2012 at 5:01 PM, tamouse mailing lists > wrote: >> OT Reply -- just frustrated with the way email screws up program >> listings. It's a royal pain to have to strip out code and then put it >> in

Re: [PHP] Dynamic Content thoughts

2012-08-24 Thread tamouse mailing lists
On Fri, Aug 24, 2012 at 10:20 AM, David OBrien wrote: > In gmail if I see something is totally screwed up visually I click the > little dropdown where you'd select reply to all and then choose show > original... > It shows the source of the email in monospaced font so if looks like it was > meant

Re: [PHP] Dynamic Content thoughts

2012-08-24 Thread tamouse mailing lists
On Fri, Aug 24, 2012 at 1:24 PM, Jim Lucas wrote: > Well, not to talk bad about Gmail (I use it for personal accounts), but I > like using a client that I do have some control over what it does to my > email. Making sure that it retains my formatting is one of my first > requirements. I'd like t

Re: [PHP] UTC on php log bug

2012-08-26 Thread tamouse mailing lists
On Fri, Aug 24, 2012 at 8:48 PM, Martín Marqués wrote: > Whats up with this bug?: https://bugs.php.net/bug.php?id=60723 perhaps direct the query (such as it is) to php-development -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] syntax error breaking in and out of php into html code

2012-08-26 Thread tamouse mailing lists
On Sat, Aug 25, 2012 at 9:56 PM, Ashley Sheridan wrote: > On Sun, 2012-08-26 at 09:41 +0700, Duken Marga wrote: > >> Can you tell us what is the error shown in browser or CLI? >> >> On Sun, Aug 26, 2012 at 5:54 AM, Ashley Sheridan >> wrote: >> >> > I've just inherited some (pretty awful code) that

Re: [PHP] syntax error breaking in and out of php into html code

2012-08-26 Thread tamouse mailing lists
On Sun, Aug 26, 2012 at 5:02 AM, Ashley Sheridan wrote: > > On Sun, 2012-08-26 at 04:36 -0500, tamouse mailing lists wrote: > > On Sat, Aug 25, 2012 at 9:56 PM, Ashley Sheridan > wrote: > > On Sun, 2012-08-26 at 09:41 +0700, Duken Marga wrote: > > > >> Can yo

Re: [PHP] multiple forms one page

2012-08-26 Thread tamouse mailing lists
On Sun, Aug 26, 2012 at 11:08 PM, Rosie Williams wrote: > > Hi all, > I am a newbie to PHP. I have several php forms which were originally on > separate pages now included in the one page. Each form had the following code > in it: > function mysql_fix_string($string){ if (get_magic_quotes_gp

Re: [PHP] include selectively or globally?

2012-08-27 Thread tamouse mailing lists
What do your performance measurements show so you have actual data comparisons to make a valid decsion? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] OT (maybe not): Drupal vs WordPress

2012-08-29 Thread tamouse mailing lists
On Tue, Aug 28, 2012 at 3:36 PM, Adam Richardson wrote: > On Tue, Aug 28, 2012 at 3:07 PM, Larry Garfield > wrote: >> Only semi-joking line that's been making the rounds lately: >> >> If you want to build a blog, use Wordpress. >> If you want to build Wordpress, use Drupal. >> If you want to bui

Re: [PHP] extract Occurrences AFTER ... and before "-30-"

2012-09-02 Thread tamouse mailing lists
On Sun, Sep 2, 2012 at 11:31 AM, John Taylor-Johnston wrote: > I'll never get it. Newest work on top of the pile, instead of digging :)) Usually order reverse in flow conversations your do? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] extract Occurrences AFTER ... and before "-30-"

2012-09-02 Thread tamouse mailing lists
On Sun, Sep 2, 2012 at 7:57 PM, John Taylor-Johnston wrote: > Just to prove me right, our mail clients start quoting from the top too :)p Exactly. The quoting starts from the *top*. The problem is that the cursor to start typing is also put there by default. Step back before MS Outlook started th

Re: [PHP] load rtf file

2012-09-02 Thread tamouse mailing lists
On Mon, Sep 3, 2012 at 12:23 AM, John Taylor-Johnston wrote: > I have a big giant RTF file. I could convert it to plain text. BUT can PHP > do it for me? Not directly, although there might be libraries out there to do it, but none that I'm aware of off-hand. Perl, of course does this with RTF::TE

Re: [PHP] load rtf file

2012-09-03 Thread tamouse mailing lists
On Mon, Sep 3, 2012 at 6:04 PM, Micky Hulse wrote: > On Mon, Sep 3, 2012 at 3:52 PM, Tedd Sperling wrote: >> Maybe if I was on a Windoze machine, but I'm on a Mac. > > What about TextEdit.app? Or Open/Libre Office? As for the OP, I know you can script Open/Libre Office with python to do things

Re: [PHP] templeting

2012-09-03 Thread tamouse mailing lists
On Mon, Sep 3, 2012 at 8:49 PM, David McGlone wrote: > On Monday, September 03, 2012 09:45:23 PM David OBrien wrote: >> On Sep 3, 2012 9:15 PM, "David McGlone" wrote: >> > Does anyone use any templeting system for any projects? If so what would >> > anyone recommend? I looked at Code Ignitor, but

Re: [PHP] How to limit source IP in PHP

2012-09-13 Thread tamouse mailing lists
Are you looking to use sockets? That's the only thing I can think of when you speak of binding to an ip address/port... http://php.net/manual/en/book.sockets.php ? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Fwd: [PHP-DB] Prepared Statements - Search

2012-09-13 Thread tamouse mailing lists
Crud, forgot to include list. -- Forwarded message -- From: tamouse mailing lists Date: Thu, Sep 13, 2012 at 10:31 PM Subject: Re: [PHP-DB] Prepared Statements - Search To: erosenb...@hygeiabiomedical.com On Thu, Sep 13, 2012 at 7:09 PM, Ethan Rosenberg, PhD wrote: > D

Re: [PHP] PHP Threading on Windows

2012-09-13 Thread tamouse mailing lists
On Thu, Sep 13, 2012 at 9:32 PM, admin wrote: > It has been suggested: > That because php does not support PCNTL threading on Windows that > multiple services of php are an alternative. > > I am interested in this theory, if anyone is currently working on a project > that (forks) processes

Re: [PHP] bucle while for to msqyl

2012-09-16 Thread tamouse mailing lists
On Sun, Sep 16, 2012 at 5:08 PM, El Ale... wrote: > > $conexion = mysql_connect("localhost", "usuario", "123456"); > mysql_select_db("probando", $conexion); > > function updateNumero() { > > $queEmp = "SELECT n FROM numero WHERE n LIKE 1"; > $resEmp = mysql_query($queEmp, $conexion) o

Re: [PHP] Re: PHP Bounce messages

2012-09-21 Thread tamouse mailing lists
On Fri, Sep 21, 2012 at 4:17 AM, Tim Streater wrote: > On 21 Sep 2012 at 08:40, Lester Caine wrote: > >> I know that the php list are one of the 'reply to sender' email handling camp >> rather than reply to list. > > I don't understand this. I reply (not that I mail that often) just to the > lis

Re: [PHP] Day after Friday

2012-09-23 Thread tamouse mailing lists
On Sun, Sep 23, 2012 at 8:33 AM, Tedd Sperling wrote: > On Sep 22, 2012, at 3:59 PM, Paul M Foster wrote: >> On Sat, Sep 22, 2012 at 01:05:51PM -0400, Tedd Sperling wrote: >> >>> Hi gang: >>> >>> I know it's the Day after Friday, but I'm asking a off-topic question >>> anyway -- sorry. >>> >>> N

Re: [PHP] Joining a team, where no wiki or docs are available

2012-09-24 Thread tamouse mailing lists
On Mon, Sep 24, 2012 at 5:07 PM, Daevid Vincent wrote: > That is a good point. We do not do unit tests here. Nothing against them, > it’s just a bit overkill for our needs. We build lots of websites, not one > massive SaaS. > > But I’m not saying do not use OOP. I’m just saying not everything ha

Re: [PHP] Vulnerability Announced in phpMyAdmin

2012-09-25 Thread tamouse mailing lists
On Tue, Sep 25, 2012 at 3:20 PM, Daniel Brown wrote: > Just a three-list cross-post to bring it to everyone's attention > at once, in case you weren't already aware. It was announced today > that a compromised SourceForge mirror was distributing a malicious > file with the phpMyAdmin package

Fwd: [PHP] output compression when host has disabled mod_deflate, mod_gzip and php_value auto_prepend_file

2012-09-26 Thread tamouse mailing lists
Crikey, forgot to include the list. -- Forwarded message -- From: tamouse mailing lists Date: Wed, Sep 26, 2012 at 1:57 AM Subject: Re: [PHP] output compression when host has disabled mod_deflate, mod_gzip and php_value auto_prepend_file To: edward eric pedersson On Fri, Sep

Re: [PHP] Responding to an XML data post

2012-09-27 Thread tamouse mailing lists
On Thu, Sep 27, 2012 at 1:00 PM, Daniel Brown wrote: > On Thu, Sep 27, 2012 at 1:48 PM, Bastien Koert wrote: >> Hi All, >> >> I am stuck in something where a 3rd party app pushes an XML post to my >> site. They need me to respond to that push with a synchronous XML post >> back confirming that th

Re: [PHP] generate a thumbnail with imagick and place a logo on top

2012-10-03 Thread tamouse mailing lists
On Wed, Oct 3, 2012 at 10:54 AM, A Freund wrote: > Hello, > > I have a problem creating thumbnails with imagick. The code is working > ok and the thumbnail is generated in the right size etc but when I try > to place a PDF logo on the thumbnail it turns half transparent. I guess > it has something

Re: [PHP] Differences

2012-10-03 Thread tamouse mailing lists
On Wed, Oct 3, 2012 at 9:01 PM, James wrote: > All of the images are displaying because you're simply instructing the > function to print out each file found with your call to glob(). The glob() > function returns an indexed array containing files found in the path you > specified, or an empty

Re: [PHP] Differences

2012-10-03 Thread tamouse mailing lists
On Wed, Oct 3, 2012 at 9:57 PM, David McGlone wrote: > Absolutely. I also think I learned that return can also work like echo if the > code is written correctly. No, no, no. Return does NOT do the same thing as echo, nor vice versa. If you do try to make things work this way you are doing things

Re: [PHP] Differences

2012-10-03 Thread tamouse mailing lists
On Wed, Oct 3, 2012 at 10:03 PM, tamouse mailing lists wrote: > On Wed, Oct 3, 2012 at 9:57 PM, David McGlone wrote: >> Absolutely. I also think I learned that return can also work like echo if the >> code is written correctly. > > > No, no, no. Return does NOT do the

Re: [PHP] Re: limiting

2012-10-09 Thread tamouse mailing lists
On Tue, Oct 9, 2012 at 5:19 PM, Matijn Woudt wrote: > On Wed, Oct 10, 2012 at 12:06 AM, Tim Streater wrote: >> On 09 Oct 2012 at 20:46, Matijn Woudt wrote: >> >>> For example your previous post, you >>> could have just looked up what the 'echo' and 'return' statements do >>> in the PHP manual, a

Re: [PHP] Re: limiting

2012-10-10 Thread tamouse mailing lists
On Wed, Oct 10, 2012 at 7:37 PM, Jim Giner wrote: > On 10/10/2012 4:27 PM, Matijn Woudt wrote: >> >> On Wed, Oct 10, 2012 at 10:26 PM, Ashley Sheridan >> wrote: >>> >>> On Wed, 2012-10-10 at 14:53 -0400, David McGlone wrote: >>> On Wednesday, October 10, 2012 07:36:00 PM Tim Streater wrote:

Re: [PHP] Beneficial site spamming framework

2012-10-11 Thread tamouse mailing lists
On Thu, Oct 11, 2012 at 6:59 PM, Maciek Sokolewicz wrote: > On 11-10-2012 22:18, Ashley Sheridan wrote: I've been getting spam comments on my personal blog (runs on self-written PHP blog software). I'd like to test some methods I've devised to prevent or block it. Does anyone k

Re: [PHP] Re: PHP The Right Way (website)

2012-10-14 Thread tamouse mailing lists
On Sun, Oct 14, 2012 at 10:48 AM, Jim Giner wrote: > On 10/14/2012 1:10 AM, tamouse mailing lists wrote: >> >> This just dropped in my inbox the other day from Smashing #69: >> >>> 2. PHP The Right Way >>> >>> If you are developing for the Web, the

Re: [PHP] foreach

2012-10-16 Thread tamouse mailing lists
On Tue, Oct 16, 2012 at 6:25 PM, Larry Garfield wrote: > Instead, use PDO, and bind your parameters. As a nice bonus, the result > from a PDO-based query is not a raw resource but an iteratable object, which > means you can foreach() it. > > http://php.net/manual/en/book.pdo.php > > $conn = new P

Re: [PHP] foreach

2012-10-17 Thread tamouse mailing lists
On Wed, Oct 17, 2012 at 6:07 PM, Larry Garfield wrote: > Nothing is wrong with mysqli per se. It's up to date and secure, and > certainly better than ext/mysql. I recommend PDO over mysqli because: > > 1) PHP-engine-level global state (ie, not specifying a connection) is the > source of most (al

Re: [PHP] Table help needed

2012-10-19 Thread tamouse mailing lists
On Fri, Oct 19, 2012 at 6:09 PM, admin wrote: >> -Original Message- >> From: Chris Payne [mailto:oxygene...@gmail.com] >> Sent: Friday, October 19, 2012 7:01 PM >> To: >> Subject: [PHP] Table help needed >> >> Hi everyone, >> >> So i'm stuck, and I admit it. I have to (QUICKLY) display i

Re: [PHP] Re: User Timezone

2012-10-21 Thread tamouse mailing lists
On Sun, Oct 21, 2012 at 6:12 AM, Ashley Sheridan wrote: > Don't most browsers include this information in the HTTP headers? Not that i have seen. Quick test using nc: Firefox: tamara@caesar:~$ nc -l 3000 GET / HTTP/1.1 Host: localhost:3000 User-Agent: Mozilla/5.0 (X11; Ubuntu; Linux i686; rv:15

Re: [PHP] Re: User Timezone

2012-10-21 Thread tamouse mailing lists
On Sun, Oct 21, 2012 at 7:30 AM, Matijn Woudt wrote: > On Sun, Oct 21, 2012 at 12:01 PM, Maciek Sokolewicz > wrote: >> On 21-10-2012 01:11, Karl DeSaulniers wrote: > > Thanks for the response. Yes, for the US I plan on calculating by > state, but > this website is not geared to ju

Re: [PHP] Re: User Timezone

2012-10-21 Thread tamouse mailing lists
On Sun, Oct 21, 2012 at 6:18 PM, Karl DeSaulniers wrote: > On Oct 21, 2012, at 5:11 PM, tamouse mailing lists wrote: >> Using the standard labels in /usr/share/zoneinfo should be able to >> avoid having to keep track of who is and isn't in DST, *provided* you >> fi

Re: [PHP] Free LAPP stack

2012-10-21 Thread tamouse mailing lists
On Sun, Oct 21, 2012 at 8:15 PM, Robert Stone wrote: > There are several sites offering free LAMP stacks but does anybody know of a > site that has free LAPP stacks available? If you already have a LAMP stack, adding Postgresql is really only a matter of installing it. If you're starting from s

Re: [PHP] Help using PHP 5.3.3 mail() with Apache James

2012-10-25 Thread tamouse mailing lists
On Thu, Oct 25, 2012 at 5:32 AM, Maciek Sokolewicz wrote: > On 23-10-2012 23:54, Steven Pogue wrote: >> >> Dan, >> I assume you meant to add a system() call into it...if so, here is what >> was presented. >> >> -rwxrwxrwx. 1 root root 3878 Sep 6 14:45 /opt/james-2.3.2/bin/sendmail.py >> -rwxrwxrw

[PHP] Re: list of places to learn programming online

2012-10-30 Thread tamouse mailing lists
Fascinating. This kicked off the spam blocker On Tue, Oct 30, 2012 at 7:38 PM, tamouse mailing lists wrote: > This just hit my inbox from another source. I haven't had any time to > vet the list, but here is the link to the post: > > < thenextweb DOT com/dd/2012/10/21

Re: [PHP] ZendCodeAnalyzer oddity

2012-10-31 Thread tamouse mailing lists
On Wed, Oct 31, 2012 at 3:42 PM, Christoph Boget wrote: > Consider the following code: > > class bob > { > static function factory() > { > echo 'In factory!'; > } > } > > bob::factory(); > $var = 'bob'; > $var::factory(); > ?> > > When I run this, "In Factory!" is displayed twice,

Re: [PHP] Creating an Advanced Form

2012-11-02 Thread tamouse mailing lists
I'm sorry. This code just makes me weep. Let's just take a quick look at this line here: > $rsSearch = mysql_query($sqlSearch); You have not supplied a database connection, so mysql_query will fail. Further, you have not even checked the result to *see* if it failed. Once you fix those things,

Re: [PHP] Pear Mail - Trap for errors?

2012-11-14 Thread tamouse mailing lists
On Wed, Nov 14, 2012 at 7:19 PM, Rick Dwyer wrote: > Hello all. > > I have some Pear Mail code composing an email and sending it to an external > smtp server for sending. > > The issue is determining whether that external server actually accepted the > mail or not. In the IF(PEAR… code below, i

Re: [PHP] Pear Mail - Trap for errors?

2012-11-16 Thread tamouse mailing lists
On Thu, Nov 15, 2012 at 9:52 AM, Rick Dwyer wrote: > Same result… which is to say no error returned even for messages sent with no > email in the to address field. Okay, that is odd. If I try it with a blank I get a failure saying that it has a bad address. See: https://gist.github.com/4085385

Re: [PHP] Re: Switch - Case Statement Questions

2012-11-16 Thread tamouse mailing lists
On Fri, Nov 16, 2012 at 12:41 PM, Sebastian Krebs wrote: > Beside this it can be rewritten as > > switch ((int) (($count-1) / 7) { > case 0: // 1-7 > case 1: // 8 - 14 > default: // above 15 > } Nice code refactoring :) Just a tad obscure for someone coming along later, perhaps. -- PHP Ge

Re: [PHP] Re: Switch - Case Statement Questions

2012-11-17 Thread tamouse mailing lists
On Sat, Nov 17, 2012 at 3:13 PM, Sebastian Krebs wrote: > 2012/11/17 Andrew Ballard > >> On Nov 16, 2012 10:24 PM, "tamouse mailing lists" >> wrote: >> > Just a tad obscure for someone coming along >> > later >> >> Without knowing

Re: [PHP] Re: Switch - Case Statement Questions

2012-11-17 Thread tamouse mailing lists
On Sat, Nov 17, 2012 at 2:59 PM, Sebastian Krebs wrote: > (Beside: Was "the principle of least surprise" not a ruby-thing? ;)) No, but the Ruby (and Rails) world takes concepts like this and really runs with them. Principle of Least Astonishment has been around for quite some time, with examples

Re: [PHP] Variables with - in their name

2012-11-18 Thread tamouse mailing lists
On Sun, Nov 18, 2012 at 5:12 AM, Ashley Sheridan wrote: > On Sun, 2012-11-18 at 01:37 -0700, Nathan Nobbe wrote: > >> On Sat, Nov 17, 2012 at 11:09 PM, Ron Piggott < >> ron.pigg...@actsministries.org> wrote: >> >> > I have made the following variable in a form: (I am referring the >> > ) >> > >>

Re: [PHP] globbed includes?

2012-11-19 Thread tamouse mailing lists
On Nov 18, 2012 3:03 PM, "Adam Richardson" wrote: > > On Sun, Nov 18, 2012 at 3:29 PM, tamouse mailing lists < > tamouse.li...@gmail.com> wrote: > > > There are certain times I'd like to include all files in a given > > directory (such as config

Re: [PHP] CSV importer tool

2012-11-27 Thread tamouse mailing lists
On Tue, Nov 27, 2012 at 2:56 PM, Leandro Dardini wrote: > Hello, > I am going to write a PHP page to allow the client to upload a CSV file and > assign each column to one or more fields of a mysql table. Quite simple, > but I feel like I am reinventing the wheel... is it possible there is no > lib

Re: [PHP] CSV importer tool

2012-11-27 Thread tamouse mailing lists
On Tue, Nov 27, 2012 at 4:09 PM, tamouse mailing lists wrote: > On Tue, Nov 27, 2012 at 2:56 PM, Leandro Dardini wrote: >> Hello, >> I am going to write a PHP page to allow the client to upload a CSV file and >> assign each column to one or more fields of a mysql table. Q

Re: [PHP] CSV importer tool

2012-11-27 Thread tamouse mailing lists
On Tue, Nov 27, 2012 at 4:11 PM, tamouse mailing lists wrote: > On Tue, Nov 27, 2012 at 4:09 PM, tamouse mailing lists > wrote: >> On Tue, Nov 27, 2012 at 2:56 PM, Leandro Dardini wrote: >>> Hello, >>> I am going to write a PHP page to allow the client to upload

Re: [PHP] Re: shared memory on php servers?

2012-12-05 Thread tamouse mailing lists
On Tue, Dec 4, 2012 at 7:02 AM, Alessandro Pellizzari wrote: > Il Tue, 04 Dec 2012 11:49:22 +0100, rene7705 ha scritto: > >> I'm wondering, what's the fastest way to put a large and deep array() >> structure in shared memory on a PHP server? > > Using MongoDB. :) +++ -- PHP General Mailing List

<    1   2   3   4   5   6   7   >