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

[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] (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

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

[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] 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

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

[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] 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] 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] 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

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

[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

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

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

[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] 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

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-30 Thread Tom Barrett
Thanks for the replies, they have been most enlightening. :)

[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

[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

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] 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] 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: >> >> &

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

[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] 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

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

[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

[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] 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

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

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

[PHP] Bar Charts in PDFs

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

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

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

[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

[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)) {

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

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
.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

[PHP] Session Vars and Performance

2005-02-14 Thread Tom Rawson
x since I would have to write all the database code in order to do any performance measurement. Anyone have relevant experience in this area, and/or some educated guesses? Thanks, -- Tom -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] retrieve single field from database without while loop

2005-02-16 Thread Tom Rogers
do: $var = mysql_result($result,0,0); -- regards, Tom -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Newbie question

2005-02-18 Thread Adams, Tom
Does anyone know how to force PHP to require all local variables to be declared prior to use or if this is even possible? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Syntax Highlighting variables not appearing

2005-02-28 Thread Tom Whitbread
Can anyone explain why this is happening. I am using the following code For giving code examples on my website with syntax highlighting $text = ''; $body = preg_replace('/<(.*?)>/es', 'highlight_string(

[PHP] Setting cookie on first visit

2005-03-02 Thread Tom Whitbread
I am using a cookie to detect what skin a user wants to display. The problem is if a user visits the site for the first time the cookie is not being set. I am detecting if its being set or not with if(!isset($_COOKIE['skin'])){ ... } It's not setting the cookie untill a user refreshes the page o

[PHP] PHP5 DOM - DomDocumentFragments empty

2005-03-02 Thread Tobias Tom
Hi, I've a Problem with the DOM Extension in PHP5. I simply want to create a DocumentFragment which can be used in ImportNode for Example. I now that the code beyond may look a little bit strange, but I've simplyfied it as much as it was possible. The Code should print the Contents of the the Fra

Re: [PHP] Document root, preferred way to find it???

2005-03-02 Thread Tom Rogers
ER['document_root']= /usr/local/apache/htdocs >> $_SERVER['path_translated']= /home/user/public_html/ A> What do you guys use for you docroot? If path_translated exists use that as it indicates a virtual website, otherwise use document_root -- regards, Tom -- P

[PHP] How to handle a 64bit FILETIME?

2005-03-03 Thread Tom Cannaerts
date. Any solution is welcome. Tom -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re[2]: [PHP] Document root, preferred way to find it???

2005-03-03 Thread Tom Rogers
$_SERVER['document_root']; Exactly -- regards, Tom -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re[2]: [PHP] Document root, preferred way to find it???

2005-03-04 Thread Tom Rogers
$script = $_SERVER['SCRIPT_NAME']; $document_root = str_replace($script,'',$root); //echo "Document root: $document_root"; $base = basename($document_root); //echo "Base: $base"; $include = str_replace($base,'include',$document_root); //echo "Include: $include"; $os = strtolower(PHP_OS); //echo "OS: $os"; $lk = ':'; $org_include = ini_get("include_path"); if(preg_match('/^win/i',$os)) $lk = ';'; ini_set("include_path",$include.$lk.$org_include); //echo "Include: ".ini_get("include_path").""; } -- regards, Tom -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re[3]: [PHP] Document root, preferred way to find it???

2005-03-04 Thread Tom Rogers
TR> if(preg_match('/^win/i',$os)) $lk = ';'; TR> ini_set("include_path",$include.$lk.$org_include); TR> //echo "Include: ".ini_get("include_path").""; TR> } TR> -- TR> regards, TR> Tom Forgot to tell you to put it in the auto_prepend file and it will work for all files :) -- regards, Tom -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] line feed

2005-03-04 Thread Tom Rogers
t; [EMAIL PROTECTED] BS> Tel: +351 272 000 155 BS> Fax: +351 272 000 257 BS> -- BS> Hospital Amato Lusitano BS> [EMAIL PROTECTED] BS> Tel: +351 272 000 272 BS> Fax: +351 272 000 257 you could do: define('LF',"\n"); echo ''.LF; -- regards, Tom -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re[2]: [PHP] Document root, preferred way to find it???

2005-03-06 Thread Tom Rogers
Hi Leif, Monday, March 7, 2005, 10:03:48 AM, you wrote: LG> Hello Tom, LG> Friday, March 4, 2005, 9:13:41 PM, you wrote: TR>> This will set the include path just before the document root: LG> H. Not quite what I'm looking for. I set up some test folders and LG>

Re: [PHP] error from 4.3.10: The specified procedure could not be found.

2005-03-06 Thread Tom Rogers
e windows can find it, put it in the same directory as apache or in the windows directory. (If your not using apache .. you should be :) -- regards, Tom -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re[2]: [PHP] Document root, preferred way to find it???

2005-03-06 Thread Tom Rogers
Hi, Monday, March 7, 2005, 1:08:27 PM, you wrote: LG> Hello Tom, LG> Sunday, March 6, 2005, 6:18:54 PM, you wrote: TR>> and let me see what it prints LG> Still not quite there. LG> Site root LG> ** LG> File name: C:\Sambar\docs\test\test.php LG> Script:

Re: [PHP] SOLVED: Re: [PHP] Document root, preferred way to find it???

2005-03-06 Thread Tom Rogers
Hi, Monday, March 7, 2005, 3:57:50 PM, you wrote: LG> Hello Tom, LG> Sunday, March 6, 2005, 10:00:17 PM, you wrote: TR>> Ok I see where is is going wrong, try this: LG> Oh, very close. Although you have it at $document_root and all LG> that needs to be added is '/i

Re[2]: [PHP] SOLVED: Re: [PHP] Document root, preferred way to find it???

2005-03-07 Thread Tom Rogers
Hi, Tuesday, March 8, 2005, 12:03:54 AM, you wrote: LG> Hello Tom, LG> Sunday, March 6, 2005, 11:20:04 PM, you wrote: T>> I do this for security as I have things in include that I don't T>> want to be avaiable directly to the browser Also you don't need a T>> p

Re[2]: [PHP] incrementing a number from a text file

2005-03-11 Thread Tom Rogers
& file_exists('results.new')){ sleep(1); clearstatcache(); $x--; } if($x == 0) echo "Hung process detected "; if(file_exists('results')){ $count = intval(trim(file_get_contents('results'))); $count ++; }else{ $count = 1; } $fp = fopen("re

Re: [PHP] GIF instead of JPG..

2005-03-23 Thread Tom Rogers
p); } if(eregi("\.gif$",$out)){ ImageGif($im2,$out); }elseif(eregi("\.jpe?g",$out)){ ImageJpeg($im2,$out,90); }elseif(eregi("\.png$",$out)){ ImagePng($im2,$out,20); } } } -- regards, Tom -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] SQL statement - please help

2005-03-24 Thread Tom Rogers
. AND tblchatglobal.cgtimeposted > (DATE_SUB(NOW(),INTERVAL 1 HOUR)) -- regards, Tom -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Listing directory, return none if only one file

2005-03-24 Thread Tom Rogers
from 1 to 0 so your $i is 1 ahead of the array. -- regards, Tom -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] image problem

2005-03-24 Thread Tom Rogers
Hi, Friday, March 25, 2005, 3:27:41 AM, you wrote: WS> Hello, WS> I really can't figure this out. Can someone help please. I've wasted hours WS> already with this one. WS> I'm trying to print image to a web page using fpassthru. Here's the code: WS> $name = path/to/the/image/folder/img1.jpeg; W

Re: [PHP] OR statement

2005-03-24 Thread Tom Rogers
looking, but MD> a little help on this would be appreciated. MD> Thank you again, MD> -- MD> Steve Marquez The most easily expandable way is with a switch statement switch($audio){ case 'Cool': case 'junk': case 'funky': Do this break

Re: [PHP] text editor

2005-03-28 Thread Tom Rogers
Hi, Tuesday, March 29, 2005, 9:17:42 AM, you wrote: TT> Hi all, TT> ok, I have created my own php text editor that allows a user to edit TT> files from local(server) disk. TT> I use a basic html textarea to show the contents of the file, and let TT> them edit it, and then save it to disk. TT> I

Re: [PHP] Session in two servers

2005-04-01 Thread Tom Rogers
just your situation. http://www.mohawksoft.com/ -- regards, Tom -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Multiple Select Field

2005-04-03 Thread Tom Rogers
quicker. table = user_interests fields userid int, interestsid int primary index would be on both fields -- regards, Tom -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] mcrypt_generic_init(): Iv size incorrect

2005-04-08 Thread Tom Rogers
t; Suggestions? I do this to set a zero iv $td = mcrypt_module_open(MCRYPT_TripleDES, "", MCRYPT_MODE_ECB, ""); $key = substr($secret, 0, mcrypt_enc_get_key_size ($td)); $iv = pack("a".mcrypt_enc_get_iv_size($td),$iv); mcrypt_generic_init ($td, $key, $iv); -- regards, Tom -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Creating INSERT INTO statement from dbf file

2005-04-11 Thread Tom Rogers
t working out. Would love some help. RSJ> Thanks, RSJ> Rahul S. Johari RSJ> Coordinator, Internet & Administration RSJ> Informed Marketing Services Inc. RSJ> 251 River Street RSJ> Troy, NY 12180 RSJ> Tel: (518) 266-0909 x154 RSJ> Fax: (518) 266-0909 RSJ> Email: [EMAIL PROTECTED] RSJ> http://www.informed-sources.com I would do it this way: "; } dbase_close($dbh); } ?> -- regards, Tom -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re[2]: [PHP] mcrypt_generic_init(): Iv size incorrect

2005-04-12 Thread Tom Rogers
substr($id,(strlen($len)+1),$len); mcrypt_generic_deinit($td); return $id; } } ( I encode the length of the original string so I can trim the extra rubbish that deinit leaves behind as packing) -- regards, Tom -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re[2]: [PHP] mcrypt_generic_init(): Iv size incorrect

2005-04-12 Thread Tom Rogers
gt;td)); MH> $iv_size = mcrypt_enc_get_iv_size($this->td); MH> #$iv = mcrypt_create_iv($iv_size, MCRYPT_RAND); MH> $iv = pack("a".$iv_size,$iv); Yes I forgot to put $iv = 0; before that line. -- regards, Tom -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: Limiting Cpu usage

2005-04-12 Thread Tom Rogers
hat z> so if nothing (or very low cpu usage) is running on the system he'll get z> extra power? On Linux you can cat /proc/loadavg to get the current load (3rd number in) -- regards, Tom -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Selectively Extract Sub-Array from an Array

2005-04-13 Thread Tom Rawson
is a selected subset of another. Is there a function that does this that I'm missing? I realize I could write one but I was looking for something built-in. Nothing I can see under array functions in the manual seems to do it. Thanks, -- Tom -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] RegEx help

2005-04-14 Thread Tom Rogers
ion is BD> strictly prohibited. If you have received this communication in BD> error, please notify us immediately by replying to the message and BD> deleting it from your computer. Thank you. easier done seperately I think if( strlen($text) > 6 && preg_match('/\d

[PHP] Re: [PHP-WIN] Localhost not working with cookies

2005-04-17 Thread Tom Rawson
tend to do it with a domain mapped to 127.0.0.1 via the hosts file, rather than "localhost", but using that approach I can set cookies fine under Win98 (as far as I remember, not using it now), Win 2000, and Win XP, in both Mozilla and IE. I am running Apache 1.3.29 as the local

Re: [PHP] Last visitors

2005-04-19 Thread Tom Crimmins
ENGINE=MyISAM DEFAULT CHARSET=utf8 You do not need to specify the default clause on the timestamp column since this is already the default behavior, and as you has seen this isn't valid before 4.1 anyway. Also I wouldn't use the name 'timestamp' for a column name. It is generally not a good idea to use reserved words for column names. -- Tom Crimmins Interface Specialist Pottawattamie County, Iowa -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

php-general@lists.php.net

2005-04-19 Thread Tom Rogers
k/> DD> Home is where the ~/.bashrc is You can set this with arg_separator.output in php.ini -- regards, Tom -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

php-general@lists.php.net

2005-04-19 Thread Tom Rogers
Hi, Wednesday, April 20, 2005, 9:05:39 AM, you wrote: RBAK> On Wed, 20 Apr 2005, Tom Rogers wrote: >> You can set this with arg_separator.output in php.ini RBAK> That doesn't really answer why the choice was made to default to what RBAK> not only shouldn't be the defaul

Re: [PHP] Images - Converting TIFF Format?

2005-04-19 Thread Tom Rogers
//force a bmp extension for netpbm $tfilename = $jobpath.'/'.$fname.'bmp'; move_uploaded_file($tempname, $tfilename); $file = $fname.'png'; $filename = $jobpath.'/'.$file; shell_exec ("/path/to/netpbm/bin/bm

RE: [PHP] Last visitors

2005-04-20 Thread Tom Crimmins
You can leave these off. Changing ENGINE to TYPE will fix that error, and you can leave off the charset. I believe utf8 was added in 4.1. If you leave off charset=xxx it will just default to whatever the server's default-character-set is set to, probably latin1. > On 4/19/2005 4:42:08 PM

RE: [PHP] Last visitors

2005-04-20 Thread Tom Crimmins
ast_visitors SET user_id=user_id+1 WHERE profile_id=1 ORDER BY ttimestamp LIMIT 1; You don't have to explicitly update the timestamp column. It will do this automatically. This will rotate through the five rows. This may have failed in your test because if you executed this in a script and all of the sql statements occurred in the same second, you would probably see the behavior that you described. -- Tom Crimmins Interface Specialist Pottawattamie County, Iowa -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re[2]: [PHP] Images - Converting TIFF Format?

2005-04-20 Thread Tom Rogers
y under a different file type? TDJ> I'm pretty sure I searched through thoroughly for the function. Did I miss TDJ> something? TDJ> Thanks for all your help! As far as I know gd does not support tiffs directly. -- regards, Tom -- PHP General Mailing List (http://www.php.net/

Re: [PHP] Count totals (might be 0T)

2005-04-21 Thread Tom Rogers
s as to how i get how many pics per category and size per category? RA> I'm not sure if its a PHP thing or a MySql thing... RA> Last problem for the day...then i hit the sack! RA> Thanks in advance, RA> Ryan Something like SELECT COUNT(pic_name) as pic_count, SUM(pic_size_kb)

[PHP] Why wont apache parse my php on wamp set up?

2005-04-25 Thread Tom Whitbread
Hey, This is the strangest problem I have had in a long time. I have tried using apache 2 with php 4 as a module and CGI and on both PHP will not be parsed, I have also tried php 5 and had exactly the same problem. I am now trying apache 1.3 and php 5 as a module and it doesn't parse the php and al

Re: [PHP] yet another php templating question

2005-05-10 Thread Tom Rogers
retty quick, so no need to cache anything for most sites. I have been using it now for a couple of years and it hasn't let me down :) -- regards, Tom -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] number format?

2005-05-10 Thread Tom Rogers
ase: 585 - Release Date: 2/14/2005 Here is a little function I use to take care of all combination of inputs: function dollars2cents($value){ $value = sprintf("%0.2f",trim($value)); list($a,$b) = explode('.',$value); if(floatval($value)<0) $b = $b*-1; return intval(

Re: [PHP] Seeking decent domain registrar

2005-05-12 Thread Tom Rogers
ar that has a MB> clue and a decent web interface? MB> Thanks, MB> Marcus I have been using bulkregister.com for a few years and no complaints, you will have to check yourself if they meet your particular needs :) -- regards, Tom -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

<    9   10   11   12   13   14   15   16   17   18   >