Re: [PHP] Re: How to best set per-site PHP session storage under suPHP/WordPress?

2012-08-13 Thread Philip Amadeo Saeli
* Ian [2012-08-13 09:50:51 +0100]: > On 13/08/2012 06:01, Philip Amadeo Saeli wrote: > > I'm administering WordPress sites under suPHP on a CentOS LAMP server > > and would like to know how I can set PHP to keep the session files under > > the WP user's dir without

[PHP] How to best set per-site PHP session storage under suPHP/WordPress?

2012-08-12 Thread Philip Amadeo Saeli
d directive which would be merged with the settings from the system php.ini, overriding only the session.save_path, but, AFAICT, PHP does not seem to allow this. Any other ideas? Thanks! --Phil -- Philip Amadeo Saeli openSUSE, RHEL, CentOS psa...@zorodyne.com -- PHP General Mailing List (ht

Re: [PHP] Keeping session info in $_SESSION or in database?

2011-08-15 Thread Philip Thompson
On Mon, Aug 15, 2011 at 2:36 PM, Stuart Dallas wrote: > > On 15 Aug 2011, at 20:28, LAMP wrote: > > > > > On Aug 15, 2011, at 2:11 PM, Philip Thompson wrote: > > > >> On Mon, Aug 15, 2011 at 1:43 PM, LAMP wrote: > >> Hi all, > >> This is TH

Fwd: [PHP] Keeping session info in $_SESSION or in database?

2011-08-15 Thread Philip Thompson
Crap! I wish this list would have a reply-to list automatically -- Forwarded message -- From: Philip Thompson Date: Mon, Aug 15, 2011 at 2:11 PM Subject: Re: [PHP] Keeping session info in $_SESSION or in database? To: LAMP On Mon, Aug 15, 2011 at 1:43 PM, LAMP wrote

Re: [PHP] phpsadness

2011-06-02 Thread Philip Thompson
erland confusion, we can > alias it as detonate() as well. > > It would be nice if there were a "Like" feature here... ~Philip -- http://lonestarlightandsound.com/

Re: [PHP] Re: Need pro advice: Is Pear installed and/or setup correctly?

2011-05-27 Thread Philip Thompson
arted to appear in this version. Use date_default_timezone_set() somewhere in your code to explicitly set your timezone. I'm in the central US, so I use 'America/Chicago'. See the docs for more info. Not sure about your original question. Happy coding, ~Philip http://lonestarlightandsound.com/

Re: [PHP] Re: php to store data

2011-05-03 Thread Philip Thompson
need to test.) > > If you don't have write access to the disk, my guess is that paying > for mySQL is the cheapest solution - and a very good one, actually. > > br, > > flj Paying for mysql (non enterprise) just seems wrong... ~Philip http://lonestarlightandsound.com/

Re: [PHP] ORM doctrine

2010-12-09 Thread Philip Thompson
ble - many times clients just want what you can give them as soon as possible. What I've found is that by using a framework (such as Cake) I am able to give the client what they want... and quickly. If I ever run into a problem that can't be easily solved by the framework, I resort to my experience with "direct PHP" and just create a manual solution. That's the beauty of PHP. CPU cycles are cheap and caching is there to speed things up, so I don't completely understand those who complain about these things... Happy coding, ~Philip

[PHP] Re: Cake

2010-08-13 Thread Philip Thompson
On Aug 13, 2010, at 10:49 AM, Philip Thompson wrote: > Hi all. > > Having an issue with some CakePHP 1.3 stuff. I've read and read and read and > haven't found my solution. I'm fairly new to Cake, so be nice. I'm trying to > access a method from a different

[PHP] Cake

2010-08-13 Thread Philip Thompson
he manual that corresponds to your MySQL server version for the right syntax to use near 'format' at line 1 [CORE/cake/libs/model/datasources/dbo_source.php, line 681] It thinks that the method "format()" is a query. Why?! I just want it to call that method. Please help! Thanks in advance, ~Philip

Re: [PHP] generate animated gifs

2010-08-02 Thread Philip Thompson
rful options, and there is a PHP module for working with > it if you can't or don't want to get dirty on the command line. > > Thanks, > Ash > http://www.ashleysheridan.co.uk I thought that GIF was patented or copyrighted or something - didn't know if it was p

[PHP] CakePHP

2010-08-02 Thread Philip Thompson
cons that others have had with CakePHP. Thoughts? Enlighten me! Thanks, ~Philip http://lonestarlightandsound.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] displaying database output in a table

2010-05-27 Thread Philip Thompson
file did not exist. It didn't show up in my dev environment b/c I had the file. When we pushed it to QA, the file had not been uploaded. The require_once() stops execution if the file isn't found. Try changing it to include_once() and see if you can _any_ output. Hope this helps. ~Philip -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] strtotime woes

2010-05-05 Thread Philip Thompson
On May 5, 2010, at 10:12 AM, Peter Lind wrote: > On 5 May 2010 16:58, Philip Thompson wrote: >> Hello all. >> >> Long time no see! Anyway, I'm having an issue with strtotime(). Why do the >> following return valid timestamps? >> >> > echo st

[PHP] strtotime woes

2010-05-05 Thread Philip Thompson
the same results by changing the 'a' to any other single letter: "g" or "h,k" or "r,s,t" or whatever - all the same result. Thanks, ~Philip -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] MySQL Appeal from Monty

2009-12-16 Thread Philip Thompson
On Dec 16, 2009, at 1:48 PM, Yousif Masoud wrote: > On Wed, Dec 16, 2009 at 3:14 PM, Philip Thompson > wrote: > On Dec 15, 2009, at 6:03 AM, Ashley Sheridan wrote: > > > On Tue, 2009-12-15 at 02:53 +, Joseph Masoud wrote: > >> > >> On 14 Dec 2009, a

Re: [PHP] PHP + ODBC

2009-12-16 Thread Philip Thompson
On Dec 16, 2009, at 9:22 AM, Andrew Ballard wrote: > On Tue, Dec 15, 2009 at 10:13 AM, Philip Thompson > wrote: >> On Dec 14, 2009, at 8:47 PM, James McLean wrote: >>> Why not just use the built in MySQL libraries or PDO? >> >> Oh, that would be "my&quo

Re: [PHP] MySQL Appeal from Monty

2009-12-16 Thread Philip Thompson
On Dec 15, 2009, at 6:03 AM, Ashley Sheridan wrote: > On Tue, 2009-12-15 at 02:53 +, Joseph Masoud wrote: >> >> On 14 Dec 2009, at 22:01, Ashley Sheridan >> wrote: >> >> > On Mon, 2009-12-14 at 15:59 -0600, Philip Thompson wrote: >> > >

Re: [PHP] PHP + ODBC

2009-12-16 Thread Philip Thompson
On Dec 15, 2009, at 9:50 AM, Richard Quadling wrote: > 2009/12/15 Philip Thompson : >> On Dec 14, 2009, at 8:47 PM, James McLean wrote: >> >>> On Tue, Dec 15, 2009 at 10:03 AM, Philip Thompson >>> wrote: >>>> My head hurts from hitting it on my d

Re: [PHP] Best ajax library

2009-12-15 Thread Philip Thompson
On Dec 15, 2009, at 3:12 AM, Joseph Masoud wrote: > On 15 Dec 2009, at 08:50, Ali Asghar Toraby Parizy > wrote: > >> Which one is more active than others? I mean which project extends >> faster and better, in future? >> >> On Tue, Dec 15, 2009 at 1:37 AM, P

Re: [PHP] PHP + ODBC

2009-12-15 Thread Philip Thompson
On Dec 14, 2009, at 8:47 PM, James McLean wrote: > On Tue, Dec 15, 2009 at 10:03 AM, Philip Thompson > wrote: >> My head hurts from hitting it on my desk all day, so I thought I'd turn to a >> fresher set of eyes. The issue I'm having is getting PHP to connect OD

[PHP] PHP + ODBC

2009-12-14 Thread Philip Thompson
d the above DSNs and many other versions of it ad nauseum. The specific error I'm getting is... "[unixODBC][Driver Manager]Data source name not found, and no default driver specified." I really have searched high and low for a solution, but to no avail. Any thoughts? Thanks

Re: [PHP] Best ajax library

2009-12-14 Thread Philip Thompson
jquery and php? I really like this js library. http://mootools.net/ It's based off of jquery or prototype... I can't remember. ~Philip -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] PHP live chat

2009-12-14 Thread Philip Thompson
n't remember hating it. It seemed to work pretty reliably and our customers seemed to have enjoyed it. I'd recommend it. ~Philip -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] MySQL Appeal from Monty

2009-12-14 Thread Philip Thompson
baggage that MySQL has always had, and IS > currently replacing Oracle in many large sites :) > > -- > Lester Caine - G8HFL Do share your db of interest... (and please don't say MSSQL). ~Philip -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Passing HTML array index to JS?

2009-12-08 Thread Philip Thompson
On Dec 8, 2009, at 11:10 AM, tedd wrote: > At 9:07 PM -0600 12/7/09, Philip Thompson wrote: >> >> -snip- > > Good stuff. > > Thanks, > > tedd You say so much with so little... ~Philip -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] request for support

2009-12-08 Thread Philip Thompson
;> In a root privaleged console type: >> >> /etc/init.d/httpd start >> >> >> Thanks, >> Ash >> http://www.ashleysheridan.co.uk >> >> No Ashley im using Windows, >> whenever i start the apache service, it either crashes or promptes me >> that the operation has failed >> if i comment these 2 lines out, the apache service starts normally > > Why don't you try a Wamp install, rather than installing the individual > components? > > Thanks, > Ash > http://www.ashleysheridan.co.uk Why don't you check the apache logs to see what's (not) happening? ~Philip

Re: [PHP] Passing HTML array index to JS?

2009-12-07 Thread Philip Thompson
On Dec 7, 2009, at 6:32 PM, Skip Evans wrote: > Hey Philip, > > But will that ID value identify the right member of each array? I thought > about that but just assumed that it would not. > > Skip > > Philip Thompson wrote: >> On Dec 7, 2009, at 5:02 PM,

Re: [PHP] Passing HTML array index to JS?

2009-12-07 Thread Philip Thompson
ess, the above *should* work. Learning the bare bones of javascript will help with the more complicated stuff and you'll be smarter for it! =P Hope that helps, ~Philip -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] cookies and carts

2009-12-07 Thread Philip Thompson
On Dec 7, 2009, at 4:46 PM, Ashley Sheridan wrote: > On Mon, 2009-12-07 at 16:48 -0600, Philip Thompson wrote: >> >> On Dec 7, 2009, at 4:40 PM, Ashley Sheridan wrote: >> >> > On Mon, 2009-12-07 at 14:39 -0800, Allen McCabe wrote: >> > >> >&

Re: [PHP] cookies and carts

2009-12-07 Thread Philip Thompson
e ID in the cookie, and matching it up with > information for that user in a database. It's sort of simulating a > sessions, but without the session handler getting involved, which looks > slightly messed up from what you've said. > > Thanks, > Ash > http://www.ashleysheridan.co.uk Blast your speedier typing!! =P ~Philip -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] cookies and carts

2009-12-07 Thread Philip Thompson
it to display the appropriate items. This is the most secure way to do it (with the proper security measures ;) and it doesn't put 100's of needless cookies on the user's machine. Hope this helps. ~Philip -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] PHP+Firebird numeric format problem

2009-11-30 Thread Philip Thompson
; Somebody help ? That "strange format" you're referring to looks like US_EN locale (or similar). I'm guessing you're not from the U.S.? =D If you need to reformat the output, consider http://php.net/number_format Hope that helps. ~Philip -- PHP General Mailing List

Re: [PHP] function not returning query

2009-11-25 Thread Philip Thompson
what you should get in, so only accept those values. A simple thing to accomplish what you're trying to do, Allen, would be to create an array of required/accepted fields... $val) { if (in_array ($var, $acceptable)) { // Do whatever here } else { // Not acceptable

Re: [PHP] Query based on Server offset TimeStamp

2009-11-23 Thread Philip Thompson
s, I store them in GMT time. This way, no matter when you pull it out of the database, you *know* when it was stored - even in a different timezone. To achieve this... Maybe this will make it a little easier to query accordingly...? Hope this stirs your brain. ~Philip PS... Others may profe

Re: [PHP] function not returning query

2009-11-23 Thread Philip Thompson
...? query('SELECT * FROM afy_order'); $numRows = $db->numRows($result); ?> Of course this is just a simple example, but you get the idea. Hope that stirs your brain! ~Philip -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] It's not behaving. Error reporting, that is

2009-11-04 Thread Philip Thompson
On Nov 3, 2009, at 11:24 AM, Kim Madsen wrote: Hi Philip Try to post a link to a page, that prints phpinfo() -- Kind regards Kim Emax Philip Thompson wrote on 2009-11-03 17:11: Hi all. This seems like a trivial issue to fix, but I'm having issues. I'm running a script via co

[PHP] It's not behaving. Error reporting, that is

2009-11-03 Thread Philip Thompson
/etc/php.ini Scan for additional .ini files in: /etc/php.d ... Yup, according to PHP I'm using the correct ini. Now I'm at a loss. Can anyone shed some light on this big brain fart I'm having? Thanks in advance. ~Philip -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Limit query/function time

2009-10-22 Thread Philip Thompson
,patient_sub_id); Using where; Using filesort | | 1 | 8 | p.patient_id,const |1 | Using index | ++-++-- +--+ 2 rows in set (0.00 sec) There are about 350,000 records in `patient` and `center_p

Re: [PHP] Limit query/function time

2009-10-22 Thread Philip Thompson
On Oct 22, 2009, at 3:26 PM, Eddie Drapkin wrote: On Thu, Oct 22, 2009 at 4:14 PM, Philip Thompson > wrote: Hi all. I'm running into a random issue where sometimes it take several minutes (up to 10 or 15) to complete a query. According to 1 or 2 references, this may be a mysql bu

[PHP] Limit query/function time

2009-10-22 Thread Philip Thompson
d I want to be able to catch it. Any thoughts on what direction I should go? Also, I'm going to do some research to see if a newer version of mysql has fixed this bug. We're running 5.0.45. Thanks, ~Philip -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit

Re: [PHP] Spam opinions please

2009-10-22 Thread Philip Thompson
"Which word is listed first in the dictionary: apple, banana, pizza?" "Add 4 plus 5" Create a list of simple questions that only humans can answer. I find these to be less annoying. ~Philip "Paul M Foster" wrote in message news:20091020184001.gi3...@quillandmou

Re: [PHP] Please don't kick me!

2009-10-22 Thread Philip Thompson
On Oct 20, 2009, at 3:44 PM, Kim Madsen wrote: Philip Thompson wrote on 2009-10-20 21:58: I got it to draw the different background colors successfully. However, drawing borders is not as straight forward. I'm sure I could get it working as well... but I'd rather it work *out of

Re: [PHP] Please don't kick me!

2009-10-20 Thread Philip Thompson
ct 20, 2009, at 3:25 PM, Philip Thompson wrote: On Oct 19, 2009, at 4:21 PM, Floyd Resler wrote: Nope. I've never had any troubles with it. I've been able to produce all kinds of PDFs including loan agreements, inventory pick lists with barcodes, and various others. I find it i

Re: [PHP] Please don't kick me!

2009-10-20 Thread Philip Thompson
27;t possible (or at least easily-accomplishable), then ezPdf may not be for me. Thanks, ~Philip -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Get rid of warning massage

2009-10-20 Thread Philip Thompson
On Oct 20, 2009, at 10:34 AM, resea soul wrote: Hi, I'm using the function file_get_contents($url). If the url is invalid the function displays a warning message while I am using my own customized message. I want to get rid of the warning message. Thank you @file_get_contents(...)

Re: [PHP] Please don't kick me!

2009-10-19 Thread Philip Thompson
onger keeps up with it - last entry on 6/17/2006. Have you ever run into any problems or setbacks with it? Thanks, ~Philip -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Please don't kick me!

2009-10-19 Thread Philip Thompson
appreciated. Oh, my preference would be to send HTML/CSS to a script and it just automagically convert to PS/PDF. Thanks, ~Philip -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Need unrounded precision

2009-10-14 Thread Philip Thompson
(,$dec) = explode ('.', $a); $b = $dec{0}; Cheers, ~Philip -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: ternary operator sintax help

2009-10-06 Thread Philip Thompson
right syntax ? Another one to consider... strlen ($item) > 0 ? 'not empty' : 'empty'; Because "empty()" will return true if 0 is the value, sometimes you have to check for the length of the item. ~Philip -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

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

2009-10-06 Thread Philip Thompson
On Oct 5, 2009, at 7:42 PM, Manuel Lemos wrote: Hello, on 10/05/2009 03:02 PM Philip Thompson said the following: I try to avoid the use of hidden form elements as much as possible, especially for tracking whether a user has submitted a form or not... I use name="submit" for

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

2009-10-05 Thread Philip Thompson
f the user hits the enter key in a text input, the form is submitted but the submit input variable is not set. That is why an hidden input is a safer solution. If you need the button to be *clicked*... Or something along those lines. ~Philip -- PHP General Mailing List (http://www.ph

Re: [PHP] Where's my memory going?!

2009-09-30 Thread Philip Thompson
On Sep 29, 2009, at 6:15 PM, Eddie Drapkin wrote: On Tue, Sep 29, 2009 at 6:51 PM, Jim Lucas wrote: Philip Thompson wrote: On Sep 29, 2009, at 4:38 PM, Jim Lucas wrote: Philip Thompson wrote: On Sep 28, 2009, at 4:40 PM, jeff brown wrote: Yes, that's the best way to clean up

Re: [PHP] Where's my memory going?!

2009-09-30 Thread Philip Thompson
On Sep 29, 2009, at 5:51 PM, Jim Lucas wrote: Philip Thompson wrote: On Sep 29, 2009, at 4:38 PM, Jim Lucas wrote: Philip Thompson wrote: On Sep 28, 2009, at 4:40 PM, jeff brown wrote: Yes, that's the best way to clean up after yourself. And you really should use that on anythin

Re: [PHP] Where's my memory going?!

2009-09-29 Thread Philip Thompson
On Sep 29, 2009, at 4:38 PM, Jim Lucas wrote: Philip Thompson wrote: On Sep 28, 2009, at 4:40 PM, jeff brown wrote: Yes, that's the best way to clean up after yourself. And you really should use that on anything you have sitting around daemon like. Jeff Philip Thompson wrote: On S

Re: [PHP] Where's my memory going?!

2009-09-29 Thread Philip Thompson
On Sep 29, 2009, at 3:23 PM, Philip Thompson wrote: On Sep 29, 2009, at 3:07 PM, jeff brown wrote: Philip Thompson wrote: On Sep 28, 2009, at 4:40 PM, jeff brown wrote: Yes, that's the best way to clean up after yourself. And you really should use that on anything you have sitting a

Re: [PHP] Where's my memory going?!

2009-09-29 Thread Philip Thompson
On Sep 29, 2009, at 3:07 PM, jeff brown wrote: Philip Thompson wrote: On Sep 28, 2009, at 4:40 PM, jeff brown wrote: Yes, that's the best way to clean up after yourself. And you really should use that on anything you have sitting around daemon like. Jeff Philip Thompson wrote: O

Re: [PHP] Where's my memory going?!

2009-09-29 Thread Philip Thompson
On Sep 28, 2009, at 4:40 PM, jeff brown wrote: Yes, that's the best way to clean up after yourself. And you really should use that on anything you have sitting around daemon like. Jeff Philip Thompson wrote: On Sep 28, 2009, at 4:27 PM, Ralph Deffke wrote: well this sound clearly

Re: [PHP] Re: Where's my memory going?!

2009-09-28 Thread Philip Thompson
script ending. assumed u r using MySQL are u using mysql_free_result($result) goog luck ralph_def...@yahoo.de "Philip Thompson" wrote in message news:9c0b9c4c-5e64-4519-862b-8a3e1da4d...@gmail.com ... Hi all. I have a script that opens a socket, creates a persistent mysql conne

Re: [PHP] Where's my memory going?!

2009-09-28 Thread Philip Thompson
On Sep 28, 2009, at 4:18 PM, Jim Lucas wrote: Philip Thompson wrote: Hi all. I have a script that opens a socket, creates a persistent mysql connection, and loops to receive data. When the amount of specified data has been received, it calls a class which processes the data and inserts

[PHP] Where's my memory going?!

2009-09-28 Thread Philip Thompson
call. However, the script keeps going up in memory and eventually runs out, causing a fatal error. Any thoughts on where to start to see where I'm losing my memory? Thanks in advance, ~Philip -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] NULLS vs Empty result in PHP

2009-09-23 Thread Philip Thompson
NULL"; $result = query($sql); while ($row = fetch_row ($result)) { echo "Not empty, multiple spaces or NULL!"; } ?> So, if you have any extraneous spaces, they will be removed. It also accounts for nulls. No work is required by PHP to determine the values you need. Just us

Re: [PHP] Extract links from strings

2009-09-23 Thread Philip Thompson
ww site2.net sit amet'; foreach ( $urls AS $url ) { if ( preg_match_all('%(https?://[^\s]+|www\.[^\s]+)%', $url, $m, (PREG_SET_ORDER ^ PREG_OFFSET_CAPTURE) ) ) { print_r($m); } } ?

Re: [PHP] ie6 "memory could not be read" help!

2009-09-17 Thread Philip Thompson
Since this post is not PHP-related, I'll continue the trend. Are people still using IE6? In sites I design, I prevent the user from viewing it. If they're still on IE6, I don't want them to use my sites. Cheers, ~Philip -- PHP General Mailing List (http://www.php.net/) To

Re: [PHP] Sockets (reading)

2009-08-26 Thread Philip Thompson
On Aug 26, 2009, at 2:47 PM, Bob McConnell wrote: From: Philip Thompson On Aug 26, 2009, at 11:56 AM, Bob McConnell wrote: From: Philip Thompson During a socket read, why would all the requested number of bytes not get sent? For example, I request 1000 bytes: This is actually in a loop

Re: [PHP] Sockets (reading)

2009-08-26 Thread Philip Thompson
On Aug 26, 2009, at 11:56 AM, Bob McConnell wrote: From: Philip Thompson During a socket read, why would all the requested number of bytes not get sent? For example, I request 1000 bytes: This is actually in a loop, so I can get all the data if split up. So, for example, here's ho

[PHP] Sockets (reading)

2009-08-26 Thread Philip Thompson
s 200 bytes 150 bytes But if I can accept up to 2048 bytes per socket read, why would it not pull all 1000 bytes initially in 1 step? Any thoughts on this would be greatly appreciated! Thanks, ~Philip -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: XSS Preventing.

2009-06-23 Thread Philip Thompson
ing htmlentities() or htmlspecialchars() before inserting into db is inherently wrong. Making calls to those functions should have negligible impact on the application - there are other ways to improve the performance of your application. My too scents, ~Philip Martin -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Boolean Parameter to 3 Options?

2009-04-29 Thread Philip Thompson
ifference. However, if you sent "true" to the function, I believe it will reach the last else condition. You may revisit all the locations you call it and update them appropriately. Those are my initial thoughts ~Philip -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: Unit Testing

2009-04-27 Thread Philip Thompson
is the best time to test according to a certain structure... Simon On Mon, Apr 27, 2009 at 12:16 PM, Nathan Rixham wrote: Philip Thompson wrote: Hi. I did some searching in the archives, but didn't quite find what I was looking for. Maybe a few of you can assist me... We have an a

[PHP] Unit Testing

2009-04-27 Thread Philip Thompson
s stage? Thanks in advance, ~Philip -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] 800 pound gorilla

2009-04-20 Thread Philip Thompson
antly modify MySQL. It appears that Oracle will just get richer... =D ~Philip -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] niewbie - call methods from another class

2009-04-20 Thread Philip Thompson
n the add() method. You'll probably want to create it in the dog constructor... vet = new veterinary ($vetId); } ... } ?> And use $this->vet instead of $vet in the dog->add() method. Hope that helps. Do a little reading to try to understand using objects a little

Re: [PHP] PHP/MYSQL/ Encrypting Sensetive information

2009-04-17 Thread Philip Thompson
man/5.1/en/encryption-functions.html ~Philip 2009/4/17 דניאל דנון : If its by a user-basis, something that can be a bit risky but possible - You can encrypt it, password is hashed on database, and the key to the other data is the un-encrypted password.. On Fri, Apr 17, 2009 at 5:00 PM, Russell Jone

Re: [PHP] Having Trouble With Session Variable in Query Statement

2009-02-23 Thread Philip Graham
mt WHERE id={$_SESSION['thisid']}"; or even better: $updateSQL ="UPDATE `mytable` SET thetotal=".mysql_real_escape_string($amt). " WHERE id=".mysql_real_escape_string($_SESSION['thisid']); substituting mysql_real_escape_string with the escape func

Re: [PHP] RecursiveDirectoryIterator and foreach

2009-02-23 Thread Philip Graham
7;ve finished iterating over the sub-directory the current iterator is pushed onto a stack. Then once the iteration of the sub-directory is finished the iterator for the parent directory is popped off the stack and the iteration over that directory continues from where it was interrupted. Doe

Re: [PHP] RecursiveDirectoryIterator and foreach

2009-02-23 Thread Philip Graham
Here's a RecursiveDirectoryIterator class I've written and find quite useful: mailto:phi...@lightbox.org";>Philip Graham */ class Util_RecursiveFileIterator implements Iterator { CONST SHOW_DOT_FILES = true; private $_basePath; private $_curDirIter;

Re: [PHP] Accessors

2009-02-19 Thread Philip Thompson
On Feb 19, 2009, at 10:55 AM, Jochem Maas wrote: please keep replies on list. Sorry! Philip Thompson schreef: On Feb 19, 2009, at 2:59 AM, Jochem Maas wrote: Philip Thompson schreef: Hi all. What are your thoughts? Does this seem like a reasonable implementation? Useful

[PHP] Accessors

2009-02-18 Thread Philip Thompson
though I can still access public members directly... if I want) • Keeps code consistent and less confusing - I know how to get and set every member What are your thoughts? Does this seem like a reasonable implementation? Useful? Pointless? Hit me up - I can handle *constructive* criticism. But f

Re: [PHP] CLI not obeying php.ini

2009-02-05 Thread Philip Thompson
On Feb 5, 2009, at 4:20 PM, Boyd, Todd M. wrote: -Original Message- From: Philip Thompson [mailto:philthath...@gmail.com] Sent: Thursday, February 05, 2009 3:45 PM To: PHP General list Subject: [PHP] CLI not obeying php.ini In my php.ini, I have error_reporting = E_ALL & ~E_NO

Re: [PHP] CLI not obeying php.ini

2009-02-05 Thread Philip Thompson
On Feb 5, 2009, at 4:10 PM, Chris wrote: Philip Thompson wrote: In my php.ini, I have error_reporting = E_ALL & ~E_NOTICE When I run a script from the command line, I get a lot of notices even when I said I don't want them. Also, in my script, I specified error_reporting(E_

Re: [PHP] CLI not obeying php.ini

2009-02-05 Thread Philip Thompson
On Feb 5, 2009, at 4:17 PM, Ashley Sheridan wrote: On Thu, 2009-02-05 at 15:45 -0600, Philip Thompson wrote: In my php.ini, I have error_reporting = E_ALL & ~E_NOTICE When I run a script from the command line, I get a lot of notices even when I said I don't want them. Also, in

[PHP] CLI not obeying php.ini

2009-02-05 Thread Philip Thompson
oaded Configuration File: /etc/php.ini Thoughts on what's happening would be awesome! Thanks in advance. ~Philip -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Imagick->setImageFormat()

2009-01-29 Thread Philip Thompson
On Jan 29, 2009, at 4:20 PM, Philip Thompson wrote: Hello all. I'm pretty new to Imagick. I'm merely attempting the examples on the PHP site (http://php.net/manual/en/imagick.examples-1.php), but I'm having some issues. I'm attempting the reflection of an image exampl

[PHP] Imagick->setImageFormat()

2009-01-29 Thread Philip Thompson
that I CAN do this: $canvas->setImageFormat("gif"); I'm running Fedora Core 8. My first thought was that my machine doesn't support PNG. So I checked for libpng, and it's there and up to date. I've looked at my http error logs and I've google'd to no

Re: [PHP] MySQL class. Thoughts?

2009-01-21 Thread Philip Graham
above: $db = DB::getInstance(); $value = 'value'; $db->prepare('SELECT * FROM wherever WHERE field=:val, 'getData'); $db->execute('getData', array(':val' => $value)); foreach($db->getResults('getData') AS $row) { // Do stuff } Resulting in a reduction of 5 lines of code. I may not sound that impressive for a small example but over the number of times you generally access a database it will really add up. -- Philip Graham Lightbox Technologies www.lightbox.org -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Client/Server Printing

2009-01-20 Thread Philip Thompson
s to the print server. In our application, we use sockets to send print jobs to the server. The server then divvies out the print jobs to the specific client id specified in the data sent through the socket. However, since all your servers/clients are local, the first option may be more real

Re: [PHP] Re: Almost Recursion

2009-01-16 Thread Philip Graham
n actually has an id in the TownInformation class before trying to add it to the pool. -- Philip Graham Lightbox Technologies www.lightbox.ca -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] how to display new icon for news posted within 2 days?

2009-01-15 Thread Philip Thompson
he new.gif). There are a couple of ways to achieve this. One, you can use cookies to keep track of what they've read. The other is to keep track in the database (sorta like user preferences). Good luck. ~Philip PS... Sorry to top post. It was the trend of the email and I didn't

Re: [PHP] de-bug no input file specified

2008-12-19 Thread Philip Graham
> > Hi Philip, > > > > Here is my code ... > > > > > if (!function_exists("GetSQLValueString")) { > > function GetSQLValueString($theValue, $theType, $theDefinedValue = "", > > $theNotDefinedValue = "") > > {

Re: [PHP] de-bug no input file specified

2008-12-19 Thread Philip Graham
he error? > > PHP5 with MySQL adn IIS7 > > Thanks > > - Gary -- Philip Graham Lightbox Technologies Suite 312 240 Catherine St. Ottawa, ON, K2P 2G8 613-686-1661 ext. 102 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Require error

2008-12-19 Thread Philip Graham
ine 13? > PHP Fatal error: require(): Failed opening required '1' > (include_path='/var/php/inc/') in /webs/www.zootboy.com/sl/testing.php on > line 13 > > I have no idea what's going on. All the files have 777 perms. What happens if you remove the die() statement? r

Re: [PHP] searching by tags....

2008-10-16 Thread Philip Thompson
what ironic :-) LOL! Thanks for the outburst of laughter. ;) ~Philip -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Plotting Tool

2008-10-09 Thread Philip Thompson
coming to?!? Don't worry, Dan. I knew you were joking!! =D ~Philip -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] AJAX and PHP

2008-10-06 Thread Philip Thompson
mit your site for the few who a) don't have js enabled or b) have a device that doesn't support any standard web browser features anyway. ~Philip -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Php4 => Php5

2008-10-06 Thread Philip Thompson
cost of fixing everything after upgrading out weighs the benefits of the upgrade itself. Or wait a little bit longer because 6 will be out soon†. ;) ~Philip † Relative term -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] extract column from multidimentional array

2008-09-29 Thread Philip Thompson
t;'02', 3=>'03'), 1 => array(0=>'10', 1=>'11', 2=>'12', 3=>'13'), 2 => array(0=>'20', 1=>'21', 2=>'22', 3=>'23'), ); Notice the specific keys?

Re: [PHP] The Data Literacy Test

2008-09-26 Thread Philip Thompson
On Sep 24, 2008, at 8:22 PM, Shelley wrote: 2008/9/25 Philip Thompson <[EMAIL PROTECTED]> On Sep 24, 2008, at 7:29 AM, Maciek Sokolewicz wrote: tedd wrote: At 12:25 PM +0100 9/24/08, Ashley Sheridan wrote: On Wed, 2008-09-24 at 09:20 +0800, Shelley wrote: <http://phparch.cn/index.p

Re: [PHP] The Data Literacy Test

2008-09-24 Thread Philip Thompson
On Sep 24, 2008, at 7:29 AM, Maciek Sokolewicz wrote: tedd wrote: At 12:25 PM +0100 9/24/08, Ashley Sheridan wrote: On Wed, 2008-09-24 at 09:20 +0800, Shelley wrote: The Data Literacy Test: http://www.phparch.cn/in

Re: [PHP] was [PHP] Re: render html

2008-09-22 Thread Philip Thompson
On Sep 22, 2008, at 10:29 AM, tedd wrote: At 10:15 AM -0500 9/22/08, Philip Thompson wrote: And is just not right at all (at least for XHTML, and I doubt for any other doctype). You can look at the DTD for XHTML and see that is not an option. http://www.w3.org/QA/2002/04/valid-dtd

  1   2   3   4   5   6   7   8   9   10   >