[PHP] Exporting HTML to Excel

2004-10-12 Thread Philip Thompson
Hi all. This may not be completely a PHP question, but hopefully you will be able to provide some insight. I have a table in HTML that I want to export to an excel spreadsheet. Using PHP, I can create an excel document - however, it's empty/blank. I think I am just doing it incorrectly. Anybody

Re: [PHP] Exporting HTML to Excel

2004-10-13 Thread Philip Thompson
How exactly would I change the mime headers? ~Philip On Oct 12, 2004, at 5:07 PM, Vail, Warren wrote: Have you tried changing your file name to project.htm but continue issuing the mime headers for excel? Warren Vail -Original Message- From: Philip Thompson [mailto:[EMAIL PROTECTED] Sent

Re: [PHP] Exporting HTML to Excel

2004-10-13 Thread Philip Thompson
(on IE you can probably get away with application/octet-stream as it bases its decisions of file extensions for a lot of things). HTH Chris Philip Thompson wrote: How exactly would I change the mime headers? ~Philip On Oct 12, 2004, at 5:07 PM, Vail, Warren wrote: Have you tried changing yo

Re: [PHP] Re: Exporting HTML to Excel

2004-10-13 Thread Philip Thompson
On Oct 13, 2004, at 10:40 AM, Gryffyn, Trevor wrote: To all who've helped. Thanks for your input. [embarrassment] Truthfully, when I gave that example in my original email, I didn't try that specific one. But it did work for me also when I attempted that one. [/embarrassment] The reason I was getti

Re: [PHP] Re: Exporting HTML to Excel

2004-10-13 Thread Philip Thompson
On Oct 13, 2004, at 11:30 AM, John Holmes wrote: Philip Thompson wrote: Well, whenever I click on the link to export to excel (in IE), a "File Download" box pops up. It says the 'File name: toexcel.php' and the 'File type: ' (blank). It asks if I want to open or

[PHP] session timeout

2004-10-04 Thread Philip Thompson
Hi all. I have users log into my site to perform certain actions. However, I want to create a timed session so that it automatically logs them out after a certain amount of time. I am using `session_set_cookie_params()` to create the amount of available time that the user is logged in. But my

Re: [PHP] I'm looking to have a simple webpage send an email . ..

2004-10-04 Thread Philip Thompson
John, On Oct 4, 2004, at 1:25 PM, John Nichel wrote: Answers are usually found in a four step process... RTFM STFA STFW Mailing List Can you clarify these abbr.? I think I understand the first one, but what are the next two? Hehe =D ~Philip -- PHP General Mailing List (http://www.php.net/) To uns

[PHP] Page cannot be displayed after form submission

2004-10-07 Thread Philip Thompson
Hi all. I have a form that calls the same page whenever it is submitted. It does some error-checking to make sure that all the appropriate fields were filled in by the user. So, if there's an error, it stays on the same page and lets the user know what they need to fill in. However, I get `Page

Re: [PHP] dirty words

2004-10-18 Thread Philip Thompson
$badwords = array('poo', 'bum', 'perl'); Perl. Laf! ~P -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] people/projects looking for developers...

2004-10-19 Thread Philip Thompson
On Oct 18, 2004, at 9:06 PM, bruce wrote: interesting... for the most part, people have responded with contract resource sites... (guru.com/elance.com/etc) no one has mentioned any kind of site specifically geared towards people who want to come together to kind of build applications. ala th

Re: [PHP] str_replace problem

2004-10-20 Thread Philip Thompson
On Oct 20, 2004, at 1:02 AM, Chris Ditty wrote: Hi all. I'm trying to do a little code snippets page for a site I am working on. I figured it would be simple enough. I would do a str_replace and replace the various html codes with the ascii eqivulant. Unfortunately, it is not working as expecte

Re: [PHP] Mac OS X and Editor

2004-10-21 Thread Philip Thompson
On Oct 20, 2004, at 3:57 PM, Michael Sims wrote: Jonel Rienton wrote: Hi guys, I just like to ask those using Macs here as to what editor and/or IDE they are using for writing PHP codes. I don't personally use Mac OS X, but let me throw in a recommendation for jEdit (www.jedit.org). It's Java bas

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

2009-01-15 Thread Philip Thompson
2 things. In that query, you can't have a comma in your 172,800. It's going to fail b/c 800 isn't a column name. Unless it actually is, then you're good to go. =D Secondly, to be more user friendly, if the user has viewed that news item, then mark it as read (take away the new.gif). There a

Re: [PHP] Client/Server Printing

2009-01-20 Thread Philip Thompson
On Jan 20, 2009, at 9:16 AM, Paul M Foster wrote: I'd like a side check on what I'm doing to print on our internal network. We have an internal server/site which uses PHP code I've written to "run" the business-- invoicing, A/P, inventory, etc. Some things, like invoices and reports, need to be

[PHP] Imagick->setImageFormat()

2009-01-29 Thread Philip Thompson
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 example and when I attempt to: $canvas->setImageFormat("png"); I get an error

[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
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_ERROR) in attempts to explicitly tell it what I want. It doesn't work either

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
Hi all. Maybe I'm wanting more Java-like functionality out of PHP, but I don't really like getting and setting members directly (even for public members) - I'd rather use accessors. This way you can control what is getting set and what is returning. However, I also don't really want to cr

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] PHP/MYSQL/ Encrypting Sensetive information

2009-04-17 Thread Philip Thompson
On Apr 17, 2009, at 10:17 AM, Stefan Langwald wrote: MySQLs own Function AES_(EN|DE)CRYPT is pretty cool for this case. -- Stefan Langwald We use MySQL's AES_(EN|DE)CRYPT. It's fast, easy to use and uses 128 bit encryption (optionally 256). http://dev.mysql.com/doc/refman/5.1/en/encryptio

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

2009-04-20 Thread Philip Thompson
On Apr 19, 2009, at 9:43 AM, MEM wrote: Hello, I have something like this: $stmt = $this->_dbh->prepare("INSERT INTO DOG (name_dog, race_dog, id_vet) VALUES (?, ?, ?)"); $stmt->bindParam(1, $this->getNameDog() ); $stmt->bindParam(2, $this->getRaceDog());

Re: [PHP] 800 pound gorilla

2009-04-20 Thread Philip Thompson
On Apr 20, 2009, at 8:48 AM, Marc Christopher Hall wrote: Sun buys MySQL and now Oracle buys Sun (not final, yet). What will happen with the main db we PHP'ers have come to know and love especially since v 5 Probably nothing. It would not behoove Oracle to get rid of or significantly modi

[PHP] Unit Testing

2009-04-27 Thread Philip Thompson
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 application that's currently in production, but we're constantly modifying/upgrading it. We did not do unit testing early on because of the lack of time. No

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
On Apr 29, 2009, at 11:42 AM, Matt Neimeyer wrote: I have a function that currently takes a boolean value as a parameter. But now I want to expand it to 3 options... So if I have... function doFooBar($doFoo = false) { if($doFoo) { echo "Did Foo"; } else { echo "Did Bar"; } }

Re: [PHP] Re: XSS Preventing.

2009-06-23 Thread Philip Thompson
On Jun 23, 2009, at 9:29 AM, Martin Zvarík wrote: Don't htmlentiies() before DB save. In general: - mysql_real_escape_string() before DB insertion - htmlentities() before dispaly I, on the other hand, would do htmlentities() BEFORE insertion. Pros: --- The text is processed once and doesn'

[PHP] Sockets (reading)

2009-08-26 Thread Philip Thompson
Hi. 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 how the data split up in 3 iterations (for 1000 bytes): 650 bytes 200 bytes

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] IE, Word documents and Content Types

2007-01-03 Thread Philip Thompson
Hi. I have a form where a user can upload different types of documents. A valid file type they will be able to upload is a Word Document. However, when I view the $_FILES 'type' of a word document in Internet Explorer, it says it's type 'application/octet-stream' instead of 'application/m

[PHP] mssql_* overhead

2007-01-10 Thread Philip Thompson
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 actions in stored procedure(s), and then closes the connection. Howev

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
open the connection once and close it once. Which sounds like what you're doing now. So was your question answered? Sounds like there's still some lingering questions or curiosities... -TG = = = Original message = = = On Jan 10, 2007, at 10:09 AM, Jochem Maas wrote: Ph

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
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 it commits, I get the proper return value (int) and the appropriate

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
On Jan 30, 2007, at 4:33 PM, Skip Evans wrote: Hey all, I have the following query: $sql="SELECT count(*) AS count,votes.storyID,stories.title,stories.storyID as sID,stories.approved, stories.story,stories.userID, fname, lname FROM `bsp_story_votes` as votes, bsp_story_st

Re: [PHP] Redirecting in a PHP script

2007-03-13 Thread Philip Thompson
As other people have already said, use the header() function. However, be sure to include exit; after you call it. I've run into problems where it did not redirect properly if I didn't have the exit call. This also prevents anymore of the page loading (and maybe providing sensitive informat

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

2007-03-16 Thread Philip Thompson
On Mar 16, 2007, at 10:28 PM, Jeff wrote: Is there a way to get the last Record # created by the DB. Example: User_ID = auto_increment f_name = varchar l_name = varchar e-mail = varchar b_date = varchar pic = varchar Since user_id is an auto_inc field I submit it as a NULL, also I haven't

[PHP] Displaying files from database

2007-03-28 Thread Philip Thompson
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) { $handle = fopen ($file, 'r'); $resume["data"] = base64_encode (fread ($handle, filesize ($file))); fclose($handle);

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
On Apr 3, 2007, at 1:13 PM, Mário Gamito wrote: Hi, Sorry for the lame question, but i didn't find a satisfactory answer in the web. I have this subscribe form (subscribe.php) and on submit i have to check for errors: a) password and password confirmation mismatch; b) missing filled fie

Re: [PHP] PHP editor

2007-04-11 Thread Philip Thompson
On Apr 11, 2007, at 9:17 AM, Jochem Maas wrote: Jonathan Kahan wrote: Hi all, I beleive this is in the realm of php (I have learned my lesson from last time). Does anyone have recomendation for any free (I.E. permanently free not 30 day trial) of a good php editor. The ones i am seeing all

Re: [PHP] PHP editor

2007-04-13 Thread Philip Thompson
On Apr 13, 2007, at 10:26 AM, Jay Blanchard wrote: [snip] Just showing my ignorance, probably, but what exactly is meant by a "PHP editor"? Does it mean an editor for editing PHP scripts, or an editor written in PHP? [/snip] Something to edit PHP with...unless you're trying to be funny LOL!

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
On Apr 16, 2007, at 12:44 PM, Ross wrote: ok I have a page that calls my my functions, basically a 6 step signup. All the steps look like this function step_one() { $_SESSION['property_id'] =$_POST['property_id']; $property_id = $_POST['property_id']; $postcode= $_POST['postcode']; Escape

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
Hi. I have attempted to look at the archives for this, but keep getting redirected back to the main PHP site when I click on the archive link. With that said, does anyone know of any good resources for sending text messages using PHP? I have Googled this topic and found a few, but find it h

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
rovider.whatever The pain was just in finding out which provider used what sub- domain for their clients. But it works for all of them that I have needed to send to. HTH, Wolf Philip Thompson wrote: Hi. I have attempted to look at the archives for this, but keep getting redirected back to

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

2009-09-17 Thread Philip Thompson
On Sep 17, 2009, at 4:04 AM, Ashley Sheridan wrote: On Thu, 2009-09-17 at 16:41 +0800, Shelley wrote: Hi all, With IE6, After the pages i developed was loaded, there seems to be no problem, but when you then click a link, refresh the page, etc. it shows "memory could not be 'read'" error m

Re: [PHP] Extract links from strings

2009-09-23 Thread Philip Thompson
On Sep 21, 2009, at 6:20 PM, Jim Lucas wrote: Jim Lucas wrote: Jônatas Zechim wrote: Hi there, i've the following strings: $string1 = 'Lorem ipsum dolor http://site.com sit amet'; $string2 = 'Lorem ipsum dolor http://www.site.com/ sit amet'; $string3 = 'Lorem ipsum dolor http://www.site.net s

Re: [PHP] NULLS vs Empty result in PHP

2009-09-23 Thread Philip Thompson
On Sep 23, 2009, at 9:48 AM, Dan Shirah wrote: From reading the other responses to this thread, it seems that you want to "skip" or "exclude" rows in the results where my_column === null. If this is correct, why not do it in the SELECT statement to begin with? $my_query = "SELECT my_col

[PHP] Where's my memory going?!

2009-09-28 Thread Philip Thompson
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 it into the database. Each iteration, I unset/destruct that class I cal

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
On Oct 2, 2009, at 3:00 AM, Manuel Lemos wrote: Hello, on 10/02/2009 04:41 AM kranthi 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 the submit button instead

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
On Oct 6, 2009, at 2:26 PM, MEM wrote: Sorry all, It's ok. The sintax: '.$erros['anexo'].'' :''); ?> Was right all the time. Anyway, I've learn something new: having a var with '' is not the same thing as not been unset. So we must pay attention on what cases we use isset, or !empty. T

Re: [PHP] Need unrounded precision

2009-10-14 Thread Philip Thompson
On Oct 12, 2009, at 2:37 PM, Andrea Giammarchi wrote: bitwise right shift is probably the fastest cast to int so far ... still in many languages, intval is a function call being a cast in both cases (int) is good as well ... bitwise, casting, works with strings, arrays, boolean, whatever as

[PHP] Please don't kick me!

2009-10-19 Thread Philip Thompson
Hi all. I know this question has been asked a thousand times on the list, but my searches in the archives are not being nice to me. So... please don't kick me. Currently, we use DOMPDF to generate PDFs from HTML. However, it's no longer maintained and it has a few bugs that we just can no

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

2009-10-19 Thread Philip Thompson
On Oct 19, 2009, at 3:52 PM, Floyd Resler wrote: Phillip, I use ezpdf (http://www.ros.co.nz/pdf/). I've been using it for years and have found it very capable of making any PDF I want. Take care, Floyd This one seems fairly neat. However, it appears as though the author no longer keeps

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
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 incredibly powerful and easy to use. Take care, Floyd S

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
On Oct 20, 2009, at 1:48 PM, Gary wrote: NO I have not, I think my issue is I hate when I run across one, it usually takes me more than one try to actually figure out what the charactor is, so hence my disdain. GAry Here are some captchas: "What's three minus two?" "Which word is listed

[PHP] Limit query/function time

2009-10-22 Thread Philip Thompson
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 bug. These links explain the similar problem I'm experiencing: http://forums.mysql.com/read.php?24,57257 http://forum.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

Re: [PHP] Limit query/function time

2009-10-22 Thread Philip Thompson
atient` tables. The average number of rows returned from this query is less than 5. ~Philip On 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

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

2009-11-03 Thread Philip Thompson
Hi all. This seems like a trivial issue to fix, but I'm having issues. I'm running a script via command line and it's throwing out PHP "notices." Well, I want to suppress those notices. At the top of my script I have the line... ...thinking that this would get rid of the notices. Howeve

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
On Nov 23, 2009, at 6:22 PM, Allen McCabe wrote: > Hi, thanks for reading, I hope you can help: > > In my main file for an orders page I have the following code: > > > if (isset($_GET['filterby'])) > { > $resultOrders = adminFilterQuery(); > $numberOfOrders = mysql_num_rows($resultOrders); >

Re: [PHP] Query based on Server offset TimeStamp

2009-11-23 Thread Philip Thompson
On Nov 23, 2009, at 7:37 PM, Don Wieland wrote: > Hello, > > I have a mySQL database server in Florida USA (EST) and I want to do a query > on a record in California, USA (PST) 3 hours earlier using PST instead of EST. > > I would like to add to my CORE page that offset of the timezone so I can

Re: [PHP] function not returning query

2009-11-25 Thread Philip Thompson
On Nov 25, 2009, at 4:32 AM, Ashley Sheridan wrote: > On Tue, 2009-11-24 at 23:27 -0800, Allen McCabe wrote: > >> If I were to loop through my inputs, I could just exclude any >> problematic names, eg.: >> >> foreach ($_POST as $var = $val) >> { >> if ($var != filter.x || $var != filter.y) >>

Re: [PHP] PHP+Firebird numeric format problem

2009-11-30 Thread Philip Thompson
On Nov 30, 2009, at 5:37 AM, helderfelipe wrote: > I have a query who is returning a NUMERIC(18,8) column. > > In the IBExpert, te resultset is: > > 30,9127 > 836,5800 > > But PHP returns in a strange format: > > 3.9127 > 83.65800 > > Somebody help ? That "strange format" you

Re: [PHP] cookies and carts

2009-12-07 Thread Philip Thompson
On Dec 7, 2009, at 4:39 PM, Allen McCabe wrote: > I have a shopping cart type system set up which keeps track of the cart > contents using a SESSION variable, where $_SESSION['cart'][$item_id'] is > equal to the quantity, so the name/value pair is all the information I need. > > But sessions are

Re: [PHP] cookies and carts

2009-12-07 Thread Philip Thompson
On Dec 7, 2009, at 4:40 PM, Ashley Sheridan wrote: > On Mon, 2009-12-07 at 14:39 -0800, Allen McCabe wrote: > >> I have a shopping cart type system set up which keeps track of the cart >> contents using a SESSION variable, where $_SESSION['cart'][$item_id'] is >> equal to the quantity, so the nam

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
On Dec 7, 2009, at 5:02 PM, Skip Evans wrote: > Hey all, > > I have an HTML field like this > > style="text-align: right;" onblur="calculateBidUnit();"> > > ... and what I need to do is pass to the calculateBidUnit function the value > of quantity, do a calculation on it and plug into this fi

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
On Dec 8, 2009, at 6:12 AM, Ashley Sheridan wrote: > On Tue, 2009-12-08 at 12:08 +, Tarek Kaddoura wrote: >> __ >> Subject: RE: [PHP] request for support >> From: a...@ashleysheridan.co.uk >> To: stevewiese...@hotmail.com >> C

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
On Dec 14, 2009, at 12:51 AM, Lester Caine wrote: > Lenin wrote: >> You might also like this: >> Come on Monty - Lukas Smith http://bit.ly/5lmwwD > > I've been watching some of this debate with interest, but I'll stay with a > database that has none of the baggage that MySQL has always had, and

Re: [PHP] PHP live chat

2009-12-14 Thread Philip Thompson
On Dec 14, 2009, at 2:14 AM, Angelo Zanetti wrote: > Hi all, > > I know there are a lot of scripts that one can pay for, for "live chat" - > website support. > > Are there are any free open source ones that work well? > > I found: www.phplivechat.com > > But still waiting to evaluate it. > >

Re: [PHP] Best ajax library

2009-12-14 Thread Philip Thompson
On Dec 14, 2009, at 4:27 AM, Ali Asghar Toraby Parizy wrote: > Hi > I think the best choice is jquery until now. > But, is it reasonable to combine jquery and other library to client > side and server side scripting respectively? > By the way, where i can find good lessons about jquery and php? I

[PHP] PHP + ODBC

2009-12-14 Thread Philip Thompson
Hello all. 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 ODBC. I can get it to work using isql from the command line. Can you verify my settings: /etc/odbc.ini: [MySQL] Description = MySQ

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

  1   2   3   4   >