Re: [PHP] Looking for complete entered URL

2013-04-20 Thread Tom Rogers
Hello Angela, Sunday, April 21, 2013, 4:51:37 AM, you wrote: > I've written a script that logs all visits to a web site, > complete with referrer and IP address. It also logs all 4xx errors. > What I'd like to add to this is, if someone adds extra code after > the page_name.php, to be ab

Re: [PHP] PHP 5.4 Help

2013-03-06 Thread Tom Rogers
ot;/()+/", "/", realpath("."))); > session_start(); >   > $processName = $_REQUEST["pname"]; > $process =& process_get_process($processName); $process->>execute(); >   ?>> > -----

Re: [PHP] SNMP via PHP

2012-10-15 Thread Tom Rogers
a - http://rainbowdigitalmedia.co.uk Did you see this: http://www.php.net/manual/en/book.snmp.php -- Best regards, Tommailto:trog...@kwikin.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] relative url and path_info

2012-09-30 Thread Tom Sparks
I have created a php script that use $_SERVER['PATH_INFO'], for the different sub-sections the links now looks like this http://localhost/collection/popups.php/models/bttf/car01/    my web browser cant load my images/javascripts/etc because it is trying to use  relative url from http://localho

[PHP] Re: php batch/queue framwork

2012-06-29 Thread Tom Sparks
>Forwarded Message: php-general_318334.ezm >Re: php batch/queue framwork >Friday, 29 June, 2012 6:30 AM >From: >"Shailesh N. Humbad" >To: >php-general@lists.php.net >On 6/28/2012 11:58 AM, Tom Sparks wrote: > I am looking for a batch/queue framework that is

[PHP] php batch/queue framwork

2012-06-28 Thread Tom Sparks
I am looking for a batch/queue framework that is database-centric? I could write my own, but I want one that is mature tom_a_sparks "It's a nerdy thing I like to do" -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Variables via url

2012-05-12 Thread Tom Rogers
ache to accomplish this? You can add this to apache conf: ForceType application/x-httpd-php Then make a file called phpscript without extension and drop it in the web root. http://server.domain.com/phpscript/variable1/variable2 -- Best regards, Tom -- PHP General Maili

Re: [PHP] mysql list to two-column list

2012-03-19 Thread Tom Sparks
.1, UAE AF 2006 Premium Edition, AF 2012 Plus Edition, Sam440 AOS 4.1.2, Roland DXY-1300 pen plotter, Cutok DC330 cutter/pen plotter Wanted: RiscOS system, GEOS system (C64/C128), Atari ST, Apple Macintosh (6502/68k/PPC only) --- On Tue, 20/3/12, Tom Sparks wrote: > From: Tom Sparks > Sub

Re: [PHP] mysql list to two-column list

2012-03-19 Thread Tom Sparks
--- On Tue, 20/3/12, Ashley Sheridan wrote: From: Ashley Sheridan Subject: Re: [PHP] mysql list to two-column list To: "Tom Sparks" Cc: "php-general" Received: Tuesday, 20 March, 2012, 10:15 AM On Mon, 2012-03-19 at 16:09 -0700, Tom Sparks wrote: --- On

Re: [PHP] mysql list to two-column list

2012-03-19 Thread Tom Sparks
--- On Tue, 20/3/12, Ashley Sheridan wrote: On Mon, 2012-03-19 at 15:43 -0700, Tom Sparks wrote: >>I have a members list witch I print out once a week, >>I would like to make the list into two-column list, but I dont know >>where >>to start looking to change the c

[PHP] mysql list to two-column list

2012-03-19 Thread Tom Sparks
I have a members list witch I print out once a week, I would like to make the list into two-column list, but I dont know where to start looking to change the code? here is the code " $result = mysql_query("SELECT * FROM customers ORDER BY LastName"); while($row = mysql_fetch_array($result)) {

[PHP] ext/mbstring compile time dependency

2012-01-04 Thread Tom Worster
What does this mean in the PHP Change Log: "Removed compile time dependency from ext/mbstring (Dmitry)" Does it mean that mbstring is available by default in PHP 5.4? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] PHP4 vs PHP5 overrides

2011-03-16 Thread Tom Robinson
7/03/11 13:20, Tom Robinson wrote: > My apologies. I've not seen something I should have earlier. Also the > instance that is behind all of this is and instance of > ActiveRecordFormClass. > > So, in PHP4, the correct overridden method is called: > ActiveRecordFormClass

Re: [PHP] PHP4 vs PHP5 overrides

2011-03-16 Thread Tom Robinson
alled...??? BTW I'm tracing this though with xdebug. Regards, Tom Tom Robinson System Administrator On 17/03/11 13:06, Tom Robinson wrote: > Hi, > > I'm trying to decipher inherited code (I did not write this) and I'm > having great difficulty understanding the overri

[PHP] PHP4 vs PHP5 overrides

2011-03-16 Thread Tom Robinson
I look forward to any responses. Regards, Tom signature.asc Description: OpenPGP digital signature

Re: [PHP] Deleting elements from the middle of an array

2011-03-16 Thread Tom Barrett
http://en.wikipedia.org/wiki/Two_Little_Dickie_Birds

[PHP] Bar Charts in PDFs

2011-02-11 Thread Tom Barrett
I could be pointed towards? Thanks! Tom

Re: [PHP] Mysql search query ignoring dots

2011-01-24 Thread Tom Rogers
be worth creating a table with just a link id and the text to search which you can cleanup before inserting. It will probably save you a headache in the future and will be quicker than complicated queries. The list of possible ids can then be tested against the full table for any other criteria which if the table is indexed properly will be fast too. -- regards, Tom -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] PHP4 to PHP5 migration with E_STRICT

2010-12-07 Thread Tom Robinson
arning so I'll leave it alone until I've tidied up all the other issues. Regards, Tom -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] PHP4 to PHP5 migration with E_STRICT

2010-12-07 Thread Tom Robinson
'contenttype']; } return $tabledata; } There are many more methods making assignments in a similar way in this class and in other classes throughout the code. I'm not sure of the best way to re-code this to resolve the E_STRICT warning. Any help is much appre

Re: [PHP] Possible issue in mail() function?

2010-11-27 Thread Tom Hendrikx
On 26/11/10 16:54, Richard Quadling wrote: > On 26 November 2010 15:12, Tom Hendrikx wrote: >> On 26/11/10 15:54, Richard Quadling wrote: >>> On 25 November 2010 21:30, Tom Hendrikx wrote: >>>> Hi, >>>> >>>> I noticed that the mail() functio

Re: [PHP] Possible issue in mail() function?

2010-11-26 Thread Tom Hendrikx
On 26/11/10 15:54, Richard Quadling wrote: > On 25 November 2010 21:30, Tom Hendrikx wrote: >> Hi, >> >> I noticed that the mail() function in php 5.3.3 on gentoo linux triggers >> a warning when used. A simple debug script with the contents: >> >> &

Re: [PHP] Possible issue in mail() function?

2010-11-26 Thread Tom Hendrikx
On 26/11/10 15:54, Richard Quadling wrote: > On 25 November 2010 21:30, Tom Hendrikx wrote: >> Hi, >> >> I noticed that the mail() function in php 5.3.3 on gentoo linux triggers >> a warning when used. A simple debug script with the contents: >> >> &

[PHP] Possible issue in mail() function?

2010-11-25 Thread Tom Hendrikx
To: s...@example.com -- Headers: ==8<== Is this some debug output that someone forgot to remove? When relevant, the sendmail_path used is "/usr/sbin/sendmail -t -i", which is a regular Postfix sendmail. [1] http://stackoverflow.com/questions/1906403 -- Kind regards, Tom H

RE: [PHP] simple photo gallery

2010-11-08 Thread Tom Sparks
--- On Mon, 8/11/10, Tommy Pham wrote: > From: Tommy Pham > Subject: RE: [PHP] simple photo gallery > To: a...@ashleysheridan.co.uk, "'Tom Sparks'" > Cc: php-general@lists.php.net > Received: Monday, 8 November, 2010, 11:11 PM > > -Original Message

[PHP] simple photo gallery

2010-11-07 Thread Tom Sparks
I am looking for a simple photo gallery like this http://www.lavrsen.dk/webcam/cam1/movecam.php I want to use it in place of apache autoindex tom_a_sparks "It's a nerdy thing I like to do" -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] PHP Unconference Europe

2010-10-06 Thread Tom Calpin
I'm not affiliated with the PHP Unconference in any way but saw this on another mailing list, so just passing it on here in case anyone is interested. -Tom We are delighted to announce that PHP Unconference Europe will take place on: 19th & 20th February

Re: [PHP] Database Administration

2010-09-30 Thread Tom Barrett
Thanks for the replies, they have been most enlightening. :)

Re: [PHP] Database Administration

2010-09-24 Thread Tom Barrett
On 22 September 2010 21:40, Bastien Koert wrote: > Not at all. What I would suggest is that you create a separate mysql > user that is used exclusively by the script to do the create stuff. > The regular application user account should not have those privileges > at all. > I'm not actually that

Re: [PHP] Database Administration

2010-09-22 Thread Tom Barrett
Hmm.. I am familiar with PMA. I would for the purpose of this project consider it too technical for the target user base. The point is to create a GUI layer that would manage these things. For example, the 'add client' screen would ask for four things; name, description, username and password. Th

[PHP] Database Administration

2010-09-21 Thread Tom Barrett
Hi I need to build a custom client management app, which will build and manage a database per client. This means that on top of the usual sql crud, it needs to be able to create databases, add/edit/delete database users, create tables. Is there a way for me to do this nicely as PHP solution? am I

Re: [PHP] New to PHP and the list

2010-09-11 Thread Tom Sparks
t; form. http://www.php.net/manual/en/features.file-upload.post-method.php > start off simpler with this version http://www.w3schools.com/php/php_file_upload.asp tom -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Filestat.c erorrs when building php-5.3.3 on solaris

2010-09-09 Thread Tom Rogers
gt; to function `getpwuid_r' SVCD> /users/0/php-5.3.3/ext/posix/posix.c:1184: warning: assignment makes SVCD> integer from pointer without a cast SVCD> gmake: *** [ext/posix/posix.lo] Error 1 SVCD> Do I need to add the -D_POSIX_PTHREAD_SEMANTICS in the makefile or SVCD> config

Re: [PHP] Filestat.c erorrs when building php-5.3.3 on solaris

2010-09-08 Thread Tom Rogers
in this build? SVCD>> -Vicki Stanfield, RHCE, CISSP TR> From the error message it would seem the operating system's TR> getpwnam_r() function is not POSIX compatible. TR> What system are you compiling on? TR> -- TR> regards, TR> Tom It would

Re: [PHP] Filestat.c erorrs when building php-5.3.3 on solaris

2010-09-08 Thread Tom Rogers
h-oci8=/shared_ro/users.oracle/11.1.0 SVCD> I am using gmake 3.80. Can anyone give me a hint as to what I am doing SVCD> wrong in this build? SVCD> -Vicki Stanfield, RHCE, CISSP From the error message it would seem the operating system's getpwnam_r() function is not PO

[PHP] xml/cap problems

2010-08-21 Thread Tom Shaw
Any and all help is appreciated. Tom NOAA-NWS-ALERTS National 2010-08-21T13:26:34-04:00 w-nws.webmas...@noaa.gov 2010-08-21T13:26:34-04:00 Actual Alert Public Current Watches, Warnings and Advisories for the United States Issued by the National Weather Service http://www.weather.gov/aler

Re: [PHP] exec output to mySQL, How?

2010-07-21 Thread Tom Sparks
--- On Wed, 21/7/10, Nilesh Govindarajan wrote: > On Wed, Jul 21, 2010 at 8:49 AM, Tom > Sparks > wrote: > > How do I take the output from a command line program > and update a MYSQL database with it? > > > > tom_a_sparks > > Light travels faster then soun

[PHP] exec output to mySQL, How?

2010-07-20 Thread Tom Sparks
How do I take the output from a command line program and update a MYSQL database with it? tom_a_sparks Light travels faster then sound, which is why some people appear bright, until you hear them speak -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.ne

[PHP] integrating lib (C++) into php

2010-07-15 Thread Tom Sparks
I have found lib that looks like it dose what i need How do I integrating this lib into php? dose php support C++ libs? http://libnoise.sourceforge.net/tutorials/tutorial1.html#gcc tom_a_sparks Light travels faster then sound, which is why some people appear bright, until you hear them speak

RE: [PHP] Beginner's question: How to run a PHP web application locally?

2010-04-08 Thread Tom Calpin
>> Hi List, >> >> The other day, I read an article that mentioned about a tool that would >> permit to simulate a web environment for PHP, so that testing could be made >> before uploading the page on the server. Unfortunately, I don't seem to find >> the article again. >> >> So here am I

[PHP] XSLTProcessor issue

2010-03-21 Thread Tom
I have located what appears to me to be bug in the XSLTProcessor in PHP5.2.13 but want to insure that I am not overlooking something before reporting it. Any advice will be appreciated. The issue is apparent discrepancies in output sort order in an XSLTProcessor generated list. Following is a deta

Re: [PHP] Revision control?

2010-03-09 Thread Tom Sparks
--- On Wed, 10/3/10, James McLean wrote: > On Wed, Mar 10, 2010 at 11:14 AM, Tom > Sparks > wrote: > > --- On Wed, 10/3/10, Phpster > wrote: > > > >> I believe pear has some stuff for subversion. > > > > Don't want to use subversion or any thir

Re: [PHP] Revision control?

2010-03-09 Thread Tom Sparks
--- On Wed, 10/3/10, Phpster wrote: > I believe pear has some stuff for > subversion. Don't want to use subversion or any third-party app I forgot to say needs to support media files (images/sounds/etc) as well as text based files. I don't care if it flat-file based or data

[PHP] Revision control?

2010-03-09 Thread Tom Sparks
Is there a Revision control class that I can use in a php program? tom_a_sparks -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Do you use a public framework or roll your own?

2010-01-29 Thread Tom Sparks
--- On Fri, 29/1/10, Michael A. Peters wrote: > Michael A. Peters wrote: > > Daevid Vincent wrote: > >>  I'm not looking to start a holy war here or > re-hash the tired debate. I just want some hard cold numbers > to look at. > >> > >> "Do you use a public framework or roll your own?" > >> http:/

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

2009-12-10 Thread Tom Calpin
Yep, although Christmas shopping seems to be higher on the agenda than PHP Wait till a week before Christmas and we'll have a slew of messages from desperate developers trying to complete to a client deadline :) -Original Message- From: Jay Blanchard [mailto:jblanch...@pocket.com] Subje

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

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

Re: [PHP] Re: Converting tables into forms

2009-10-29 Thread Tom Barrett
Apologies for semi-hijacking, but I am confused. What are aiming to do that something like PHPMyAdmin doesn't do? 2009/10/28 ben...@gmail.com > Jay, > > What function do you have? Thanks to everyone for their feedback. > > Best, > > Ben > > On Wed, Oct 28, 2009 at 9:17 AM, Jay Blanchard >wrot

[PHP] RE: Netbeans IDE 6.5

2009-10-28 Thread Tom Calpin
If you go Tools>Options> Keymap tab, you can click the 'Import' button at the bottom. It just imports the zip file. I'm new to Netbeans myself and decided to install this colour scheme, however I can't get it to display correctly. I'm also missing word wrap and a more simple one-click FTP upload

Re: [PHP] (nginx) fcgi+PHP+memcache on RedHat: Class 'Memcache' not found...

2009-10-26 Thread Tom Barrett
2009/10/26 Eddie Drapkin : > On Mon, Oct 26, 2009 at 11:59 AM, Tom Barrett wrote: >> 2009/10/26 Eddie Drapkin : >>> On Mon, Oct 26, 2009 at 11:45 AM, Tom Barrett wrote: >>>> Hello >>>> >>>> I have installed: >>>>  - libev

Re: [PHP] (nginx) fcgi+PHP+memcache on RedHat: Class 'Memcache' not found...

2009-10-26 Thread Tom Barrett
2009/10/26 Eddie Drapkin : > On Mon, Oct 26, 2009 at 11:45 AM, Tom Barrett wrote: >> Hello >> >> I have installed: >>  - libevent >>  - libmemcached (http://tangent.org/552/libmemcached.html) >>  - Done a PECL installation (pecl download memc

[PHP] (nginx) fcgi+PHP+memcache on RedHat: Class 'Memcache' not found...

2009-10-26 Thread Tom Barrett
Hello I have installed:  - libevent  - libmemcached (http://tangent.org/552/libmemcached.html)  - Done a PECL installation (pecl download memcached, phpize && ./configure && make)  - memcached > cat /etc/php.d/memcached.ini ; Memcached default settings extension=memcache.so > ls -1  /usr/lib64/p

Re: [PHP] PHP broadcast mailer

2009-10-20 Thread Tom Chubb
uld be able to get the SMTP limits from your host and these can be configured in PHPlist. The bounce handling takes away a lot of admin work once your list starts getting larger and people's email addresses change/stop working. Tom

Re: [PHP] FILTER_VALIDATE_INT - newbie question

2009-10-07 Thread Tom Worster
On 10/7/09 6:04 AM, "Ashley Sheridan" wrote: > On Wed, 2009-10-07 at 10:57 +0100, MEM wrote: >> Hello all, >> >> >> I'm having this strange behavior, and I do not understanding why... >> >> When I use FILTER_VALIDATE_INT I'm unable to get, on my input box, values >> starting with 0(zero), or v

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

2009-10-07 Thread Tom Worster
just yesterday i was reading through this wonderful and very funny presentation: http://talks.php.net/show/froscon08/0 for me it really drove home the message (among others) that it makes sense to find out where the real gains can be made before investing your efforts in optimization. --

Re: [PHP] Re: ternary operator sintax help

2009-10-06 Thread Tom Worster
just as ashley said it. On 10/6/09 3:26 PM, "MEM" wrote: > Sorry all, > It's ok. The sintax: > > class="mensagemErro">'.$erros['anexo'].'' :''); ?> > > Was right all the time. > > Anyway, I've learn something new: having a var with '' is not the same thing > as not been unset. So we must pa

Re: [Fwd: [PHP] Sessions in databases]

2009-10-06 Thread Tom Worster
On 10/6/09 10:26 AM, "Il pinguino volante" wrote: > I have to realize an authentication system for a lot of users. > > I heard that someone uses to store session states (?) into a database. I'd > like to know how and, expecially, WHY to do it and what's would be better > (considering that I CANN

Re: [PHP] Time Problem: always ten past xx

2009-10-06 Thread Tom Worster
On 10/6/09 4:16 AM, "Mert Oztekin" wrote: > My mistake, > > I thought it was date() now strftime() > Sorry > > (why do php developers create two different standarts for such similiar > functions???☺ ) > it's traditional to do so. it reminds me of the bit about subtly incompatible shells in un

Re: [PHP] Self-Process php forms or not?

2009-10-04 Thread Tom Worster
On 10/4/09 10:55 AM, "tedd" wrote: > At 3:39 PM +0100 10/4/09, MEM wrote: >>> i don't think so. if the user requests the page "a_form.php" then the >>> server >>> will normally execute the a_form.php script regardless whether the form >>> was >>> submitted or not. >>> >>> to display a blank

Re: [PHP] Self-Process php forms or not?

2009-10-04 Thread Tom Worster
On 10/4/09 10:39 AM, "MEM" wrote: >> i don't think so. if the user requests the page "a_form.php" then the >> server >> will normally execute the a_form.php script regardless whether the form >> was >> submitted or not. >> >> to display a blank form, the user probably requests a_form.php with th

Re: [PHP] class to generate Javascript Object ??

2009-10-04 Thread Tom Worster
On 10/4/09 9:39 AM, "Michael A. Peters" wrote: > I wrote a php class to generate flowplayer/html5 media code for my site: > > http://www.shastaherps.org/xml_MMmediaClass.phps > > The "buildFlashvars()" function in it is really ugly and will be a pain > to update as I modify the class in the fut

Re: [PHP] Self-Process php forms or not?

2009-10-04 Thread Tom Worster
direct to success page. > } > else > { > Echo "Sorry, couldn't process the form"; > } > > > > I suppose that the echo message telling "we couldn't process the form" does > not appear when the form first loads, because the server side script

Re: [PHP] A really wacky design decision

2009-10-04 Thread Tom Worster
On 10/4/09 6:36 AM, "clanc...@cybec.com.au" wrote: >> i might think it ok for (2260 == '226E1') to be true since php would be >> doing type juggling in a logical left-to-right manner: we start with an >> integer 2260, next is the juggling comparison operator, then a string, so it >> might reasona

Re: [PHP] A really wacky design decision

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

Re: [PHP] A really wacky design decision

2009-10-03 Thread Tom Worster
On 10/3/09 7:21 AM, "clanc...@cybec.com.au" wrote: > However there is one feature of PHP which, to my mind, is really bad design. > How many of > you can see anything wrong with the following procedure to search a list of > names for a > particular name? > > $i = 0; $j = count ($names); while ($

Re: [PHP] Re: A really wacky design decision

2009-10-03 Thread Tom Worster
On 10/3/09 9:53 AM, "Ralph Deffke" wrote: > this is a clear sign that somebody is on a sin TRAIL, I would not even spend > the time on what sin collections this guy got i see it more as ignorance than sin. to misunderstand the difference between $n++ and ++$n is a beginner error. as k&r made

Re: [PHP] Self-Process php forms or not?

2009-10-03 Thread Tom Worster
On 10/2/09 10:06 AM, "MEM" wrote: > I'm now understanding that even if the form is submitted to self, we can > still use a redirect to a "success_message_page.php". However, we must do > this redirect, AFTER the form has submitted to himself. It's the only thing > that we have to pay attention he

Re: [PHP] Self-Process php forms or not?

2009-10-03 Thread Tom Worster
On 10/2/09 10:24 AM, "tedd" wrote: > At 1:55 PM +0530 10/2/09, kranthi wrote: >> and yes i forgot to mention... i avoid hidden form elements because >> they can be modified very easily and hence pose a security threat. > > That depends upon how sloppy you are in coding. > > NONE of my hidden va

Re: [PHP] Self-Process php forms or not?

2009-10-01 Thread Tom Worster
On 10/1/09 10:13 AM, "tedd" wrote: > At 1:00 PM +0100 10/1/09, MEM wrote: >> One last question about this: >> >> I've done a self submit form, after hearing all the advantages expressed >> here. >> But how could we relate, without using javascript, a self submit form with a >> "success page" or

Re: [PHP] Self-Process php forms or not?

2009-10-01 Thread Tom Worster
On 10/1/09 8:00 AM, "MEM" wrote: > One last question about this: > > I've done a self submit form, after hearing all the advantages expressed > here. > But how could we relate, without using javascript, a self submit form with a > "success page" or a "confirmation page" that doesn't show the fo

Re: [PHP] intl extension on os x

2009-09-29 Thread Tom Worster
On 9/28/09 1:40 PM, "Tom Worster" wrote: > anyway, in the cli the command collator_create( 'en_US' ); did not provoke > an error, so maybe that works. > > but if i add extension=intl.so to php.ini and restart apache, php says: PHP > Warning: PHP Startup: Una

Re: [PHP] intl extension on os x

2009-09-28 Thread Tom Worster
On 9/28/09 2:41 AM, "Tommy Pham" wrote: > - Original Message ---- >> From: Tom Worster >> To: PHP General List >> Sent: Sunday, September 27, 2009 5:34:45 PM >> Subject: [PHP] intl extension on os x >> >> does anyone know how to install i

Re: [PHP] Text similarity

2009-09-28 Thread Tom Worster
On 9/28/09 7:07 AM, "Merlin Morgenstern" wrote: > > > Ashley Sheridan wrote: >> On Mon, 2009-09-28 at 12:27 +0200, Merlin Morgenstern wrote: >>> Hi there, >>> >>> I am trying to find out similarity between 2 strings. Somehow the >>> similar_text function returns 33% similarity on strings that

[PHP] intl extension on os x

2009-09-27 Thread Tom Worster
does anyone know how to install intl on os x 10.5? it seems a libicu binary is included in os x but not with headers. fink has a package for installing the headers. maybe that would allow pecl to install the intl extension. has anyone done this successfully? or know any other way to get intl runn

Re: [PHP] catch an iconv E_NOTICE

2009-09-24 Thread Tom Worster
On 9/24/09 10:30 AM, "David Otton" wrote: > 2009/9/24 Tom Worster : > >> but i'd like proceed with default error handling in the branch with the >> question marks. how can i do that? > > An error handler that passes through to the previous err

[PHP] catch an iconv E_NOTICE

2009-09-24 Thread Tom Worster
i have this hack that works up to a point... function my_err_handler($errno, $errstr, $errfile, $errline) { if ( preg_match('/iconv/', $errstr) ) { throw new Exception('iconv error'); } else { // ? how to invoke default error handler ? } } set_error_handler("my_err_hand

Re: [PHP] Re: session.gc_maxlifetime

2009-09-24 Thread Tom Worster
connect to UMTS rigzt now, these > systems deconnect on idle lines and reconect without the users even know it. > Also a lot of lines change IP address at midnihgt. > > cheers > ralph_def...@yahoo.de > > "Tom Worster" wrote in message > news:c6e00521.12d98%...@th

Re: [PHP] Re: session.gc_maxlifetime

2009-09-23 Thread Tom Worster
ookie-based session handler? and you would use a custom handler instead? On 9/22/09 4:46 PM, "Ralph Deffke" wrote: > Hi Tom, > > in sometimes 2001 I did have incidences with those things, and as I remember > over the past years there where some trouble with operating systems a

Re: [PHP] Re: session.gc_maxlifetime

2009-09-22 Thread Tom Worster
thank you, Ralph! i'm going to be bold and assume that tom at punkave dot com is right despite that the report was discarded. i got a complaint from a client about some users reporting being logged out with rather short periods of inactivity. but session.gc_maxlifetime is set to 6 hours

[PHP] session.gc_maxlifetime

2009-09-22 Thread Tom Worster
i'm not 100% sure what the manual means when it says... session.gc_maxlifetime integer session.gc_maxlifetime specifies the number of seconds after which data will be seen as 'garbage' and cleaned up. Garbage collection occurs during session start. what event exactly does the "after which" here r

Re: [PHP] moving to quad core

2009-09-15 Thread Tom Worster
On 9/15/09 10:54 AM, "Andres Gonzalez" wrote: > I have an application developed that uses alot of PHP. Currently, it is > running on a Ubuntu 8.04 , single core CPU host. We are moving to a > quad core host for this application. > > Is there anything special that I need to do to configure PHP t

Re: [PHP] server name that the user agent used

2009-09-14 Thread Tom Worster
On 9/14/09 2:11 PM, "Lars Torben Wilson" wrote: > Tom Worster wrote: >> On 9/13/09 10:24 PM, "Tommy Pham" wrote: >> >>> --- On Sun, 9/13/09, Tom Worster wrote: >>> >>>> From: Tom Worster >>>> Subject: [PHP] server

Re: [PHP] server name that the user agent used

2009-09-14 Thread Tom Worster
On 9/14/09 9:03 AM, "Tom Worster" wrote: > On 9/13/09 10:24 PM, "Tommy Pham" wrote: > >> --- On Sun, 9/13/09, Tom Worster wrote: >> >>> From: Tom Worster >>> Subject: [PHP] server name that the user agent used >>> To:

Re: [PHP] APC - Upload progress problem. apc

2009-09-14 Thread Tom Worster
On 9/14/09 5:39 AM, "Phred White" wrote: > > On Sep 13, 2009, at 8:50 PM, Eddie Drapkin wrote: > >> On Sun, Sep 13, 2009 at 9:38 PM, Phred White >> wrote: >>> >>> On Sep 13, 2009, at 7:34 PM, Eddie Drapkin wrote: >>> On Sun, Sep 13, 2009 at 8:29 PM, Phred White wrote: >

Re: [PHP] server name that the user agent used

2009-09-14 Thread Tom Worster
On 9/13/09 10:24 PM, "Tommy Pham" wrote: > --- On Sun, 9/13/09, Tom Worster wrote: > >> From: Tom Worster >> Subject: [PHP] server name that the user agent used >> To: "PHP General List" >> Date: Sunday, September 13, 2009, 8:21 PM >>

Re: [PHP] get an object property

2009-09-13 Thread Tom Worster
On 9/13/09 3:21 AM, "Lars Torben Wilson" wrote: >> On 9/12/09 9:50 AM, "Tom Worster" wrote: >> >> but let me give you a more different example: >> >> $a and $b are normally both objects, each with various members including a >> prop q, b

[PHP] server name that the user agent used

2009-09-13 Thread Tom Worster
when using apache with one vhost that responds to a few different hostnames, e.g. domain.org, y.domain.org, x.domain.org, let's say the vhost's server name is y.domain.org and the other two are aliases, is there a way in php to know which of these was used by the user agent to address the server?

Re: [PHP] get an object property

2009-09-12 Thread Tom Worster
On 9/12/09 9:50 AM, "Tom Worster" wrote: > On 9/12/09 1:32 AM, "Lars Torben Wilson" wrote: > >> Tom Worster wrote: >>> if i have an expression that evaluates to an object, the return value from a >>> function, say, and i only want the value of

Re: [PHP] get an object property

2009-09-12 Thread Tom Worster
On 9/12/09 1:32 AM, "Lars Torben Wilson" wrote: > Tom Worster wrote: >> if i have an expression that evaluates to an object, the return value from a >> function, say, and i only want the value of one of the objects properties, >> is there a tidy way to get it w

Re: [PHP] get an object property

2009-09-12 Thread Tom Worster
On 9/12/09 12:31 AM, "Paul M Foster" wrote: > On Fri, Sep 11, 2009 at 07:31:01PM -0400, Tom Worster wrote: > >> if i have an expression that evaluates to an object, the return value from a >> function, say, and i only want the value of one of the objects propertie

[PHP] get an object property

2009-09-11 Thread Tom Worster
if i have an expression that evaluates to an object, the return value from a function, say, and i only want the value of one of the objects properties, is there a tidy way to get it without setting another variable? to illustrate, here's something that doesn't work, but it would be convenient if i

Re: [PHP] String scrambling

2009-09-11 Thread Tom Chubb
!niBgo /* $str = "Bingo!"; str_shuffle($str); */ :)

Re: [PHP] mysql user session handler

2009-09-09 Thread Tom Worster
'm our case we opt for memcache to store the sessions > Mmc its soo much faster and you will have less net overhead because > the simple protocol > Also the configuration its easier. If you see in the php manual you > only need to touch two lines in the php.ini > > On 9/8/09

Re: [PHP] Renaming a Directory

2009-09-09 Thread Tom Worster
On 9/9/09 12:08 AM, "Paul M Foster" wrote: > On Tue, Sep 08, 2009 at 05:39:43PM -0400, Floyd Resler wrote: > >> How can I rename a directory with files in it? The rename function >> gives me a "directory not empty" error. I know I could do it be >> creating the directory, moving the files, and

Re: [PHP] mysql user session handler

2009-09-09 Thread Tom Worster
On 9/9/09 4:16 AM, "Ford, Mike" wrote: >> -Original Message----- >> From: Tom Worster [mailto:f...@thefsb.org] >> Sent: 09 September 2009 02:29 >> >> thanks, Devendra, that's pretty much the same as my handler. (though >> i can't &g

Re: [PHP] mysql user session handler

2009-09-08 Thread Tom Worster
has, etc. or is it really as easy and simple as all these online articles i've read about it claim? or is that experience so hard won that people aren't keen to share it? -tom On 9/8/09 2:23 PM, "Devendra Jadhav" wrote: > http://www.devshed.com/c/a/PHP/Storing-PHP-Sessio

[PHP] mysql user session handler

2009-09-08 Thread Tom Worster
d the code from something i found on the web. i trust everything i read on the internet ;-) -tom -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Converting URL's to hyperlinks.

2009-09-04 Thread Tom Chubb
2009/9/4 Daevid Vincent > > > > -Original Message- > > From: Lupus Michaelis > > [mailto:mickael+...@lupusmic.org > ] > > Sent: Friday, September 04, 2009 7:46 AM > > To: php-general@lists.php.net > > Subject: Re: [PHP] Converting URL's to hyperlinks. > > > > Daevid Vincent a écrit : > >

Re: [PHP] Re: Best way to test for form submission?

2009-08-29 Thread Tom Worster
On 8/29/09 9:29 AM, "tedd" wrote: > At 1:18 AM -0700 8/29/09, Warren Vail wrote: >> To test a form I usually send the form contents to a php file that contains >> the following; >> >> foreach($_POST as $nm => $val) echo "_POST[".$nm."] [".$val."]"; >> foreach($_GET as $nm => $val) echo "_GET[".$

[PHP] Why aren't you rich? (was Re: unset() something that doesn't exist)

2009-08-26 Thread Tom Worster
On 8/26/09 10:08 AM, "tedd" wrote: > I had a client say to me once "If you're so smart, then why aren't > you rich?" how about: "i'm smart enough that i know not to waste my allotted time on this planet amassing riches." i know plenty of rich people, many of whom earned their wealth. i envy the

  1   2   3   4   5   6   7   8   9   10   >