[PHP] tempnam() not working as expected...

2012-04-13 Thread tamouse mailing lists
Can someone explain the following to me: /Users/tamara/Sites/gallery/lib/common/t/dirGuWOLW is a directory /private/var/folders/pI/pIx-p0mhH5eEQ64yAiDQmE+++TI/-Tmp-/fileC7Rnzg is a directory Why isn't the second tempnam using the directory path I pass to it? The strange thing I notice is th

Re: [PHP] case-insensitive $_REQUEST,$_GET,$_POST keys?

2012-04-13 Thread tamouse mailing lists
On Fri, Apr 13, 2012 at 12:22 PM, David OBrien wrote: > On Fri, Apr 13, 2012 at 1:13 PM, tamouse mailing lists > wrote: >> >> Anyone have a quick-and-dirty way to check $_REQUEST keys that is >> case-insensitive? >> >> -- >> PHP General Mailing List (htt

Re: [PHP] tempnam() not working as expected...

2012-04-18 Thread tamouse mailing lists
On Mon, Apr 16, 2012 at 3:09 AM, ma...@behnke.biz wrote: >> mkdir($d,777,true);                /* make the directory */ > Try using "mkdir($d, 0777, true);" Herein, my friends, lies the problem. Silly me, using a DECIMAL number (777) instead of an OCTAL number (0777). -- PHP General Mailing List

Re: [PHP] sms class

2012-04-18 Thread tamouse mailing lists
On Tue, Apr 17, 2012 at 2:08 PM, DZvonko Nikolov wrote: > I need a class that sends sms messages to list of numbers. > I'm quite new to that issue, so I need to know what I need > more. Thanks in advance. If this is very low volume, would using email->sms work? -- PHP General Mailing List (http

Re: [PHP] Re: Email Antispam

2012-04-18 Thread tamouse mailing lists
On Wed, Apr 18, 2012 at 8:47 PM, Ross McKay wrote: > On Wed, 18 Apr 2012 11:08:00 -0400, Jim Giner wrote: > >>He literally wants the "addresses" visible on the sight?  [...] > > Yes, they want the addresses visible and clickable on the website. They > have contact forms, but they also want the ema

Fwd: [PHP] sms class

2012-04-19 Thread tamouse mailing lists
> -- Forwarded message -- > From: DZvonko Nikolov > Date: Thu, Apr 19, 2012 at 5:10 AM > Subject: Re: [PHP] sms class > To: tamouse mailing lists > > > if this is simple, yes. > > >

Re: [PHP] SqLite INSERT want not write

2012-04-19 Thread tamouse mailing lists
Maybe this will make the syntax errors stand out more: http://dl.dropbox.com/u/571329/Screenshots/Picture%209.png -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] SqLite INSERT want not write

2012-04-19 Thread tamouse mailing lists
On Thu, Apr 19, 2012 at 2:17 PM, Steven Staples wrote: >> -Original Message- >> From: Silvio Siefke [mailto:siefke_lis...@web.de] >> Sent: April 19, 2012 3:11 PM >> To: php-general@lists.php.net >> Subject: Re: [PHP] SqLite INSERT want not write >> >> On Thu, 19 Apr 2012 14:57:04 -0400 >>

[PHP] Re: [PHP-DB] School timetable in php

2012-04-22 Thread tamouse mailing lists
On Sun, Apr 22, 2012 at 1:41 AM, Vinay Kannan wrote: > Weekly subject wise lecture schedule, subject wise / faculty wise. > > > On Sun, Apr 22, 2012 at 12:02 PM, tamouse mailing lists > wrote: >> >> On Fri, Apr 20, 2012 at 7:00 AM, Vinay Kannan wrote: >> >

Re: [PHP] Running through an enormous SQL file

2012-05-04 Thread tamouse mailing lists
On Fri, May 4, 2012 at 6:36 PM, Brian Dunning wrote: > I have a script that downloads a 267MB SQL file (it creates and loads a MySQL > database). Any idea how to do this? Obviously I'm not going to get a file > that size into memory to loop through. Is there any need to use PHP with this at all

Re: [PHP] Calculating driving distance between UK postcodes

2012-05-04 Thread tamouse mailing lists
On Fri, May 4, 2012 at 9:18 AM, Terry Ally (Gmail) wrote: > Google works in Javascript extensively - not a language with which I > have in-depth experience hence my reason for asking for PHP solution. > > For example the following will get me a JSON output with the distance in > Kms and time. I do

Re: [PHP] function

2012-05-04 Thread tamouse mailing lists
On Thu, May 3, 2012 at 9:12 PM, Ron Piggott wrote: > I need to access a FUNCTION I programmed within a different FUNCTION.  Are > these able to be passed like a variable?  Or are they able to become like a > $_SESSION variable in nature?  How am I able to do this? > > I am essentially programmin

Re: [PHP] PHP & Emacs

2012-05-04 Thread tamouse mailing lists
On Fri, May 4, 2012 at 7:43 AM, Gerardo Benitez wrote: > Hi Mihamina, > > I think that a few number of people use Emacs to write Php, in fact for > proffesionals porpuse the people use a IDE for Php, like Netbeams, Eclipse > PDT or Zend Studio. > > Regards, > Gerardo > > On Wed, May 2, 2012 at 8:2

Re: [PHP] Retrieve pages from an ASP driven site

2012-05-04 Thread tamouse mailing lists
On Wed, May 2, 2012 at 11:37 PM, EPA WC wrote: > Hi List, > > I am trying to write a crawler to go through web pages at > http://www.freebookspot.es/CompactDefault.aspx?Keyword=. But I am not > quite familiar with how asp uses _doPostBack function with the "next" > button below the book list to ad

Re: [PHP] get content rss feed

2012-05-04 Thread tamouse mailing lists
On Wed, May 2, 2012 at 7:00 AM, Doeke Wartena wrote: > I try to get the content from the following rss feed > http://www.adafruit.com/blog/feed/ > > I want to store it in a database in order to use it for a school assignment. > If i look in my browser to the feed then i see content and description

Re: [PHP] Running through an enormous SQL file

2012-05-04 Thread tamouse mailing lists
Please put replies at BOTTOM On Fri, May 4, 2012 at 9:24 PM, Brian Dunning wrote: > How would you launch that from PHP? > > On May 4, 2012, at 6:11 PM, tamouse mailing lists wrote: > >> Is there any need to use PHP with this at all? If it's already in SQL, >> ca

Re: [PHP] function

2012-05-04 Thread tamouse mailing lists
On Fri, May 4, 2012 at 9:18 PM, Jim Giner wrote: > But the OP says "function is defined inside a different function".  Your > theories to a solution don't fit that problem. [snip] > But the OP says "function is defined inside a different function".  Your > theories to a solution don't fit that pro

Re: [PHP] function

2012-05-04 Thread tamouse mailing lists
On Thu, May 3, 2012 at 9:12 PM, Ron Piggott wrote: > I need to access a FUNCTION I programmed within a different FUNCTION.  Are > these able to be passed like a variable?  Or are they able to become like a > $_SESSION variable in nature?  How am I able to do this? > > I am essentially programmin

Re: [PHP] code deployment through php

2012-05-04 Thread tamouse mailing lists
On Wed, May 2, 2012 at 5:23 AM, rene7705 wrote: > On Wed, May 2, 2012 at 11:47 AM, rene7705 wrote: > >> I can't use anything like git on my shared hoster. But I suppose I could >> use something like git at home, and use a sync script like I posted in my >> OP on the shared hoster. >> >> >> > Mayb

Re: [PHP] Best practice question regarding set_include_path()

2012-05-10 Thread tamouse mailing lists
On Thu, May 10, 2012 at 1:50 PM, admin wrote: > > > -Original Message- > From: Al [mailto:n...@ridersite.org] > Sent: Thursday, May 10, 2012 11:44 AM > To: php-general@lists.php.net > Subject: [PHP] Best practice question regarding set_include_path() > > For my applications, I've been usin

Re: [PHP] Converting date string to unix timestamp

2012-05-13 Thread tamouse mailing lists
On Fri, May 11, 2012 at 8:46 PM, Karl DeSaulniers wrote: > On another note, just curious why I keep getting your responses, but don't > get the emails that I post. > Anyone else having trouble with the list like that? That is how the mailing list works. You don't see the messages you send. -- P

Re: [PHP] regexp novice

2012-05-18 Thread tamouse mailing lists
On Thu, May 17, 2012 at 3:37 PM, Jim Giner wrote: > ok - finally had to come up with my own regexp - and am failing. > > Trying to validate an input of a time value in the format hh:mm, wherein > I'll accept anything like the following: > hmm > hhmm > h:mm > hh:mm > > in a 12 hour format.  My prob

Re: [PHP] errors not showing

2012-05-19 Thread tamouse mailing lists
On Sat, May 19, 2012 at 11:16 PM, Tim Dunphy wrote: > Hello Simon, > >  Thanks for your response. > >  However I still can't seem to get errors to show up. > > [dunphy@localhost:~/jf-current] #cat /private/etc/php.ini | grep -e > error_reporting -e display_errors > ; display_errors > ; error_repor

Re: [PHP] errors not showing

2012-05-20 Thread tamouse mailing lists
On Sun, May 20, 2012 at 3:30 PM, Maciek Sokolewicz 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 >&g

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:

  1   2   3   4   >