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

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

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

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

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

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

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

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

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

[PHP] Writing Binary

2007-01-01 Thread Philip W.
ve tried reading the file into chunks as small as 64 bytes. I am at a loss as to what is happening, so I would appreciate any help. Sincerely, Philip W. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] IE, Word documents and Content Types

2007-01-03 Thread Philip Thompson
see if there's a better, security-conscious idea. Thanks in advance, ~Philip +--+ When you least expect it... expect it! +--+ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] mssql_* overhead

2007-01-10 Thread Philip Thompson
anyone see a problem with doing it this way? Security concerns? Anything? Thanks in advance, ~Philip -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] mssql_* overhead

2007-01-10 Thread Philip Thompson
On Jan 10, 2007, at 10:09 AM, Jochem Maas wrote: Philip Thompson wrote: Hi. Does anyone know if the mssql_connect/_init/_bind/etc require a lot of overhead? I have a page that requires multiple function calls and each of those opens a new connection to the database, performs the necessary

Re: [PHP] mssql_* overhead

2007-01-10 Thread Philip Thompson
I just wanted to make sure that there is no speed decrease if I change from $_SESSION to $GLOBALS to hold my connection (even with lots of people). I guess that's my question? Thanks, ~Philip On Jan 10, 2007, at 11:01 AM, [EMAIL PROTECTED] wrote: I thought the same thing as Jochem...

Re: [PHP] mssql_* overhead

2007-01-10 Thread Philip Thompson
Ok, just kidding. Thank you Jim and Jochem. You answered my question in your previous posts! Thanks to all! ~Phil On Jan 10, 2007, at 11:27 AM, Philip Thompson wrote: I just wanted to make sure that there is no speed decrease if I change from $_SESSION to $GLOBALS to hold my connection

[PHP] Stored Procedure returns nothing on ROLLBACK

2007-01-10 Thread Philip Thompson
besides an empty string/int? I would like to know what error message to provide the user/admin. SQL Server 2000, PHP 5.1.6, ntwdblib.dll version 8.00.194 Thanks in advance. ~Philip -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Stored Procedure returns nothing on ROLLBACK

2007-01-11 Thread Philip Thompson
On Jan 10, 2007, at 6:36 PM, Chris wrote: Philip Thompson wrote: Hi. I have been experiencing MSSQL woes lately. I have a stored procedure that I call in PHP using mssql_* functions. In my procedure, I have a transaction that rolls back on failure and commits on success (of course). If

Re: [PHP] Stored Procedure returns nothing on ROLLBACK

2007-01-12 Thread Philip Thompson
On Jan 11, 2007, at 5:53 PM, Chris wrote: Philip Thompson wrote: On Jan 10, 2007, at 6:36 PM, Chris wrote: Philip Thompson wrote: Hi. I have been experiencing MSSQL woes lately. I have a stored procedure that I call in PHP using mssql_* functions. In my procedure, I have a transaction

Re: [PHP] Help wtih a query?

2007-01-30 Thread Philip Thompson
s() afterwards to get the count. Hope that helps! ~Philip -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Redirecting in a PHP script

2007-03-13 Thread Philip Thompson
sensitive information that you don't want others to see). Also use output buffering if you have already displayed HTML. So, an example page: -- Hi Hi ... ------ ~Philip On Mar 12, 2007, at 3:02 PM, Larry Bradley wr

Re: [PHP] Getting last record ID created from DB

2007-03-16 Thread Philip Thompson
ic) VALUES ('$f_name', '$l_name', '$e_mail', '$b_date', null); Then to find the latest entry: SELECT user_id FROM t_users ORDER BY user_id DESC limit 1; Hope that helps. ~Philip -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Displaying files from database

2007-03-28 Thread Philip Thompson
0]); header ("Content-Type: ".$app["type"][0]); header ("Content-Disposition: attachment; filename=Resume-".$app ["full"][0]); echo $app["resume"][0]; exit; What am I doing wrong?!! =D Thanks in advance. ~Philip -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Displaying files from database

2007-03-28 Thread Philip Thompson
On Mar 28, 2007, at 12:59 PM, Tijnema ! wrote: On 3/28/07, Philip Thompson <[EMAIL PROTECTED]> wrote: Hi. I'm storing an uploaded file into a MySQL database. I want the file to then be downloaded and viewed. Uploading looks like: if (is_uploaded_file($file) && $filename)

Re: [PHP] Displaying files from database

2007-03-28 Thread Philip Thompson
On Mar 28, 2007, at 1:36 PM, Richard Davey wrote: Philip Thompson wrote: Hi. I'm storing an uploaded file into a MySQL database. I want the file to then be downloaded and viewed. Uploading looks like: Assuming you actually have a good reason *why* you are storing uploaded files in

Re: [PHP] Question about form submitting

2007-04-03 Thread Philip Thompson
... Field 1: Field 2: Field 3: ... ... // Be sure to destroy the error fields so that they don't show up next submit unset ($_SESSION['error']); ?> - That's one way to specify an error for each field.

Re: [PHP] PHP editor

2007-04-11 Thread Philip Thompson
up to you to decide which suits you best... and Google, can probably help you with that. For Mac (my main platform), I use TextMate, but it's not free. For PC, I use Crimson Editor, and it is free. Hope that helps. ~Philip

Re: [PHP] PHP editor

2007-04-13 Thread Philip Thompson
be funny LOL! I don't know why this was so funny, but I laughed at Jay's comment (I can just see the light bulb turn on). Nonetheless, this "ignorant" user brings up a thought - are there any editors written in PHP? ~Philip -- PHP General Mailing List (http://www.ph

Re: [PHP] Json.php

2007-04-16 Thread Philip Thompson
On Apr 16, 2007, at 4:40 AM, Jochem Maas wrote: Otto Wyss wrote: Tijnema ! wrote: *ROFLMFAO*...Did you actually try google for json.php? Second result: http://mike.teczno.com/JSON/JSON.phps This doesn't have a json_encode but needs a $json object which then could be used as $json->encode(..

Re: [PHP] Re: header('Location:') works locally but not remotely

2007-04-16 Thread Philip Thompson
postcode')"; $result= mysql_query($query); header( 'Location: ?step=two' ); As others have mentioned, you must include at least the relative path. header ("Location: add_new.php?step=two"); exit; Always include 'exit;' after a redirect. Happy coding.

Re: [PHP] WWE in Stamford, CT needs a kick ass PHP Developer!

2007-04-17 Thread Philip Thompson
I'm not looking for a response... but this thread that opened up several days ago would now considered to be OT. Maybe take it offline? :) The ironic thing... when I put [OT] in the subject line, the list rejected it. This is the 2nd attempt. So, the moral is to talk about whatever the he

[PHP] PHP & Text Messaging

2007-04-19 Thread Philip Thompson
hard to judge which ones are "good." I have also looked at the SAM package, but wasn't sure how much that is being used by the community. Thanks in advance, ~Philip -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] CSS vs. Tables OT

2007-04-19 Thread Philip Thompson
On Apr 19, 2007, at 9:08 AM, tedd wrote: At 8:59 AM +1200 4/19/07, Bruce Cowin wrote: Now can we please close this thread! There are better forums to discuss this - it has nothing to do with PHP!! Lori Lori: True, it has nothing to do with php programming other than compliance, accessi

Re: [PHP] PHP & Text Messaging

2007-04-20 Thread Philip Thompson
major carriers? Also, because Cingular and AT&T are combined (like Sprint and Nextel), would the Cingular selection work on an AT&T phone number? If you care to test/view: http://thril.uark.edu/SMS/ Thanks, ~Philip On Apr 20, 2007, at 7:59 AM, Wolf wrote: What I found to work was @p

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

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

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

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

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

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

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

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

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

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

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

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

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

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

[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

<    5   6   7   8   9   10   11   12   13   14   >