Re: [PHP] CSV importer tool

2012-11-27 Thread tamouse mailing lists
On Tue, Nov 27, 2012 at 2:56 PM, Leandro Dardini ldard...@gmail.com 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

Re: [PHP] CSV importer tool

2012-11-27 Thread tamouse mailing lists
On Tue, Nov 27, 2012 at 4:09 PM, tamouse mailing lists tamouse.li...@gmail.com wrote: On Tue, Nov 27, 2012 at 2:56 PM, Leandro Dardini ldard...@gmail.com 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

Re: [PHP] CSV importer tool

2012-11-27 Thread tamouse mailing lists
On Tue, Nov 27, 2012 at 4:11 PM, tamouse mailing lists tamouse.li...@gmail.com wrote: On Tue, Nov 27, 2012 at 4:09 PM, tamouse mailing lists tamouse.li...@gmail.com wrote: On Tue, Nov 27, 2012 at 2:56 PM, Leandro Dardini ldard...@gmail.com wrote: Hello, I am going to write a PHP page to allow

Re: [PHP] globbed includes?

2012-11-19 Thread tamouse mailing lists
On Nov 18, 2012 3:03 PM, Adam Richardson simples...@gmail.com 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 configuration stuff that is split out by type

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 a...@ashleysheridan.co.uk 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] Re: Switch - Case Statement Questions

2012-11-17 Thread tamouse mailing lists
On Sat, Nov 17, 2012 at 3:13 PM, Sebastian Krebs krebs@gmail.com wrote: 2012/11/17 Andrew Ballard aball...@gmail.com On Nov 16, 2012 10:24 PM, tamouse mailing lists tamouse.li...@gmail.com wrote: Just a tad obscure for someone coming along later Without knowing the intent of the code

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 krebs@gmail.com 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

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 rpdw...@earthlink.net 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:

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 krebs@gmail.com 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,

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 rpdw...@earthlink.net 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

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

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

[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 tamouse.li...@gmail.com 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/so-you

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 maciek.sokolew...@gmail.com 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

Re: [PHP] Re: User Timezone

2012-10-21 Thread tamouse mailing lists
On Sun, Oct 21, 2012 at 6:12 AM, Ashley Sheridan a...@ashleysheridan.co.uk 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;

Re: [PHP] Re: User Timezone

2012-10-21 Thread tamouse mailing lists
On Sun, Oct 21, 2012 at 7:30 AM, Matijn Woudt tijn...@gmail.com wrote: On Sun, Oct 21, 2012 at 12:01 PM, Maciek Sokolewicz maciek.sokolew...@gmail.com 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

Re: [PHP] Re: User Timezone

2012-10-21 Thread tamouse mailing lists
On Sun, Oct 21, 2012 at 6:18 PM, Karl DeSaulniers k...@designdrumm.com 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 find a way to map

Re: [PHP] Free LAPP stack

2012-10-21 Thread tamouse mailing lists
On Sun, Oct 21, 2012 at 8:15 PM, Robert Stone floripa...@yahoo.com.br 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

Re: [PHP] Table help needed

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

Re: [PHP] foreach

2012-10-17 Thread tamouse mailing lists
On Wed, Oct 17, 2012 at 6:07 PM, Larry Garfield la...@garfieldtech.com 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

Re: [PHP] foreach

2012-10-16 Thread tamouse mailing lists
On Tue, Oct 16, 2012 at 6:25 PM, Larry Garfield la...@garfieldtech.com 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

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 jim.gi...@albanyhandball.com 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 chances are high that you have

Re: [PHP] Beneficial site spamming framework

2012-10-11 Thread tamouse mailing lists
On Thu, Oct 11, 2012 at 6:59 PM, Maciek Sokolewicz tula...@php.net 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

Re: [PHP] Re: limiting

2012-10-10 Thread tamouse mailing lists
On Wed, Oct 10, 2012 at 7:37 PM, Jim Giner jim.gi...@albanyhandball.com wrote: On 10/10/2012 4:27 PM, Matijn Woudt wrote: On Wed, Oct 10, 2012 at 10:26 PM, Ashley Sheridan a...@ashleysheridan.co.uk wrote: On Wed, 2012-10-10 at 14:53 -0400, David McGlone wrote: On Wednesday, October 10,

Re: [PHP] Re: limiting

2012-10-09 Thread tamouse mailing lists
On Tue, Oct 9, 2012 at 5:19 PM, Matijn Woudt tijn...@gmail.com wrote: On Wed, Oct 10, 2012 at 12:06 AM, Tim Streater t...@clothears.org.uk wrote: On 09 Oct 2012 at 20:46, Matijn Woudt tijn...@gmail.com wrote: For example your previous post, you could have just looked up what the 'echo' and

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 ad-fre...@web.de 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

Re: [PHP] Differences

2012-10-03 Thread tamouse mailing lists
On Wed, Oct 3, 2012 at 9:01 PM, James ja...@nixsecurity.org 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

Re: [PHP] Differences

2012-10-03 Thread tamouse mailing lists
On Wed, Oct 3, 2012 at 9:57 PM, David McGlone da...@dmcentral.net 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

Re: [PHP] Differences

2012-10-03 Thread tamouse mailing lists
On Wed, Oct 3, 2012 at 10:03 PM, tamouse mailing lists tamouse.li...@gmail.com wrote: On Wed, Oct 3, 2012 at 9:57 PM, David McGlone da...@dmcentral.net 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

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 danbr...@php.net wrote: On Thu, Sep 27, 2012 at 1:48 PM, Bastien Koert phps...@gmail.com 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

Re: [PHP] Vulnerability Announced in phpMyAdmin

2012-09-26 Thread tamouse mailing lists
On Tue, Sep 25, 2012 at 3:20 PM, Daniel Brown danbr...@php.net 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

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 tamouse.li...@gmail.com 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

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 dae...@daevid.com 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

Re: [PHP] Day after Friday

2012-09-23 Thread tamouse mailing lists
On Sun, Sep 23, 2012 at 8:33 AM, Tedd Sperling t...@sperling.com wrote: On Sep 22, 2012, at 3:59 PM, Paul M Foster pa...@quillandmouse.com 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

Re: [PHP] Re: PHP Bounce messages

2012-09-21 Thread tamouse mailing lists
On Fri, Sep 21, 2012 at 4:17 AM, Tim Streater t...@clothears.org.uk wrote: On 21 Sep 2012 at 08:40, Lester Caine les...@lsces.co.uk 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

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... alexissauc...@gmail.com 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,

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 tamouse.li...@gmail.com 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

Re: [PHP] PHP Threading on Windows

2012-09-13 Thread tamouse mailing lists
On Thu, Sep 13, 2012 at 9:32 PM, admin ad...@buskirkgraphics.com 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

Re: [PHP] load rtf file

2012-09-03 Thread tamouse mailing lists
On Mon, Sep 3, 2012 at 12:23 AM, John Taylor-Johnston jt.johns...@usherbrooke.ca 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

Re: [PHP] load rtf file

2012-09-03 Thread tamouse mailing lists
On Mon, Sep 3, 2012 at 6:04 PM, Micky Hulse mickyhulse.li...@gmail.com wrote: On Mon, Sep 3, 2012 at 3:52 PM, Tedd Sperling t...@sperling.com 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

Re: [PHP] templeting

2012-09-03 Thread tamouse mailing lists
On Mon, Sep 3, 2012 at 8:49 PM, David McGlone da...@dmcentral.net wrote: On Monday, September 03, 2012 09:45:23 PM David OBrien wrote: On Sep 3, 2012 9:15 PM, David McGlone da...@dmcentral.net wrote: Does anyone use any templeting system for any projects? If so what would anyone recommend? I

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 jt.johns...@usherbrooke.ca 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:

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 jt.johns...@usherbrooke.ca 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

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 simples...@gmail.com wrote: On Tue, Aug 28, 2012 at 3:07 PM, Larry Garfield la...@garfieldtech.com 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,

Re: [PHP] include selectively or globally?

2012-08-28 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] 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 martin.marq...@gmail.com 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:

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 a...@ashleysheridan.co.uk 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 a...@ashleysheridan.co.ukwrote: I've just

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 a...@ashleysheridan.co.uk 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 a...@ashleysheridan.co.uk wrote: On Sun, 2012-08-26 at 09:41 +0700, Duken Marga wrote: Can

Re: [PHP] multiple forms one page

2012-08-26 Thread tamouse mailing lists
On Sun, Aug 26, 2012 at 11:08 PM, Rosie Williams rosiemariewilli...@hotmail.com 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){

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 ad...@buskirkgraphics.com 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

Re: [PHP] Dynamic Content thoughts

2012-08-24 Thread tamouse mailing lists
On Fri, Aug 24, 2012 at 10:11 AM, Samuel Lopes Grigolato samuel.grigol...@gmail.com 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

Re: [PHP] Dynamic Content thoughts

2012-08-24 Thread tamouse mailing lists
On Fri, Aug 24, 2012 at 10:16 AM, Jim Lucas li...@cmsws.com 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 editor and tidy it up just

Re: [PHP] Dynamic Content thoughts

2012-08-24 Thread tamouse mailing lists
On Fri, Aug 24, 2012 at 10:47 AM, Matijn Woudt tijn...@gmail.com wrote: On Fri, Aug 24, 2012 at 5:33 PM, Jim Lucas li...@cmsws.com wrote: On 08/24/2012 08:25 AM, Matijn Woudt wrote: On Fri, Aug 24, 2012 at 5:22 PM, Jim Lucasli...@cmsws.com wrote: Two simple guide lines will help everybody

Re: [PHP] Dynamic Content thoughts

2012-08-24 Thread tamouse mailing lists
On Fri, Aug 24, 2012 at 10:12 AM, Matijn Woudt tijn...@gmail.com wrote: On Fri, Aug 24, 2012 at 5:01 PM, tamouse mailing lists tamouse.li...@gmail.com 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

Re: [PHP] Dynamic Content thoughts

2012-08-24 Thread tamouse mailing lists
On Fri, Aug 24, 2012 at 10:20 AM, David OBrien dgobr...@gmail.com 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

Re: [PHP] Dynamic Content thoughts

2012-08-24 Thread tamouse mailing lists
On Fri, Aug 24, 2012 at 1:24 PM, Jim Lucas li...@cmsws.com 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.

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

2012-08-19 Thread tamouse mailing lists
On Sun, Aug 19, 2012 at 12:38 AM, Marco Behnke ma...@behnke.biz wrote: Am 19.08.12 06:59, schrieb tamouse mailing lists: On Sat, Aug 18, 2012 at 6:44 PM, John Taylor-Johnston jt.johns...@usherbrooke.ca wrote: I want to parse this text and count the occurrence of each word: $text = http

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

2012-08-19 Thread tamouse mailing lists
On Sun, Aug 19, 2012 at 8:28 PM, l...@afan.net 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

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 jt.johns...@usherbrooke.ca 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

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 yrsna.res...@gmail.com 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/)

Re: [PHP] PHP session variables

2012-08-15 Thread tamouse mailing lists
On Aug 14, 2012 1:36 AM, tamouse mailing lists tamouse.li...@gmail.com wrote: On Aug 13, 2012 8:01 AM, Robert Cummings rob...@interjinn.com wrote: On 12-08-10 04:42 PM, Tedd Sperling wrote: On Aug 10, 2012, at 1:21 PM, Ege Sertçetin sertce...@itu.edu.tr wrote: Hi. My question

Re: [PHP] PHP session variables

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

Re: [PHP] Coding Web search engine in PHP

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

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

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 jeffp...@gmail.com 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

Re: [PHP] File moving hell on Windows

2012-07-31 Thread tamouse mailing lists
On Jul 31, 2012 12:12 PM, Brian Dunning br...@briandunning.com 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 les...@lsces.co.uk 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

Re: [PHP] Creating drop-down menus

2012-07-20 Thread tamouse mailing lists
On Jul 19, 2012 8:31 PM, Tedd Sperling t...@sperling.com wrote: On Jul 19, 2012, at 1:50 PM, Daniel Brown danbr...@php.net 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:

Re: [PHP] Creating drop-down menus

2012-07-20 Thread tamouse mailing lists
On Jul 20, 2012 9:20 AM, tamouse mailing lists tamouse.li...@gmail.com wrote: On Jul 19, 2012 8:31 PM, Tedd Sperling t...@sperling.com wrote: On Jul 19, 2012, at 1:50 PM, Daniel Brown danbr...@php.net wrote: As an aside on the subject of jQuery, our very own Jay Blanchard has

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 t...@sperling.com 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

Re: [PHP] PDO: extend or encapsulate?

2012-07-15 Thread tamouse mailing lists
On Sun, Jul 15, 2012 at 5:50 AM, shiplu shiplu@gmail.com 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

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 pa...@quillandmouse.com 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 times... My question

Re: [PHP] Re: Seeking a scheduling algorithm

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

[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] 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 marc.g...@gmail.com 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 =

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 li...@danielgibbs.net 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

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 n...@dennisheck.de 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

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 bak...@canbytel.com 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

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 rewilli...@thesba.com wrote: On Jul 2, 2012, at 22:15, Jim Lucas li...@cmsws.com 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

Re: [PHP] Hello again

2012-07-02 Thread tamouse mailing lists
On Sun, Jul 1, 2012 at 6:21 PM, RGraph.net support supp...@rgraph.net 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

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

2012-06-30 Thread tamouse mailing lists
, tamouse mailing lists tamouse.li...@gmail.com wrote: Just a quick followup -- # comments are deprecated for .ini files, only, correct? They are still full citizens in php source, aren't they?    Correct, Tam. -- /Daniel P. Brown Network Infrastructure Manager http://www.php.net

Fwd: Re: [PHP] log tailing

2012-06-30 Thread tamouse mailing lists
-- Forwarded message -- From: tamouse mailing lists tamouse.li...@gmail.com Date: Jun 30, 2012 4:35 PM Subject: Re: [PHP] log tailing To: Daniel Brown danbr...@php.net On Jun 30, 2012 1:34 PM, Daniel Brown danbr...@php.net wrote: On Sat, Jun 30, 2012 at 2:30 PM, Daniel Brown

Re: [PHP] log tailing

2012-06-29 Thread tamouse mailing lists
On Fri, Jun 29, 2012 at 3:49 AM, Mihamina Rakotomandimby miham...@rktmb.org 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

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 danbr...@php.net 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

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 t...@sperling.com wrote: On Jun 26, 2012, at 3:21 PM, Al n...@ridersite.org 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

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 bluethu...@gmail.com 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

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 bluethu...@gmail.com 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

Re: [PHP] slicing and dicing strings

2012-06-27 Thread tamouse mailing lists
On Wed, Jun 27, 2012 at 5:15 PM, Kirk Bailey kbai...@howlermonkey.net 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

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

2012-06-26 Thread tamouse mailing lists
On Jun 26, 2012 5:31 PM, Stefan Wixfort stefan.wixf...@gmx.de 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 tijn...@gmail.com wrote: Isn't everyday friday in summer? ;) If it is, then it

Re: [PHP] Re: define()

2012-06-16 Thread tamouse mailing lists
On Sat, Jun 16, 2012 at 7:17 AM, Ashley Sheridan a...@ashleysheridan.co.uk 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

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 dan.mccullo...@gmail.com 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: Function size

2012-05-31 Thread tamouse mailing lists
On Tue, May 29, 2012 at 2:52 AM, Tony Marston t...@marston-home.demon.co.uk 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 terminals

Re: [PHP] cyberweaponry

2012-05-31 Thread tamouse mailing lists
On Thu, May 31, 2012 at 12:21 PM, Tedd Sperling t...@sperling.com 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

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 marko.v...@fiz-karlsruhe.de 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

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 marko.v...@fiz-karlsruhe.de 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()

[PHP] Re: Function size

2012-05-24 Thread tamouse mailing lists
On May 23, 2012 9:14 AM, Tedd Sperling t...@sperling.com 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 gui screens and an 24 line terminals (yay

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 rene7...@gmail.com wrote: On Mon, May 21, 2012 at 1:17 PM, Simon Schick simonsimc...@googlemail.com wrote: Specially the function rajmvServiceLog_graphs_raphael_calculateData() with a code of ca. 280 lines is quite long ... 280 lines is long?! :) In

Re: [PHP] errors not showing

2012-05-20 Thread tamouse mailing lists
On Sun, May 20, 2012 at 3:30 PM, Maciek Sokolewicz maciek.sokolew...@gmail.com wrote: On 20-05-2012 07:17, tamouse mailing lists wrote: Are these syntax errors or run-time errors? The former won't display to the page at all, as they abort PHP before that point. Those written to wherever PHP

<    1   2   3   4   5   6   7   >