Re: [PHP] Static utility class?

2013-09-04 Thread Stephen
in your various PHP source files so you only deal with loading the library file in the first file in which it is needed. It would not be loaded from other files. Instantiate your static variables in the library file. Again, so that only happens once. -- Stephen -- PHP General Mailing List

Re: [PHP] Static utility class?

2013-09-04 Thread Stephen
On 13-09-04 05:09 PM, Micky Hulse wrote: Thank you so much for the quick and very informative/educational replies Stephen and David, I really appreciate it! :) On Wed, Sep 4, 2013 at 12:36 PM, Stephen stephe...@rogers.com wrote: This sounds simply like a library of functions

Re: [PHP] PHP vs JAVA

2013-08-20 Thread Stephen
been talking about javascript which is not the same thing as java despite the similarity in their names. Javascript is part of the web page, and executes in the users browser. It is very common and may rival PHP in frequency of use. -- Stephen -- PHP General Mailing List (http://www.php.net

Re: [PHP] PHP vs JAVA

2013-08-20 Thread Stephen
that the overwhelming majority of Android apps are written in JAVA. That explains its popularity. -- Stephen -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] strlen ?

2013-07-05 Thread Stephen
don't see anything concatenating a LF to my string. Is this a browser being used for input? Never assume what a browser will do. It is good practice to validate and condition data before inserting into a database. Consider trimming the data before doing the INSERT. -- Stephen -- PHP General

Re: [PHP] browser rendering

2013-06-02 Thread Stephen
!!! so the looks of the pages get very strange from smaller (Opera) and much bigger (Explorer) brower !!! img src=smiley.gif alt=Smiley face height=42 width=42 The img tag supports specifying the height and width. -- Stephen -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit

Re: [PHP] Looking for a good working PDO and/or mysqli database class to get started with OOP

2013-05-30 Thread Stephen
database schema. You have to do that work; there is no way around it. -- Stephen -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Random

2013-05-23 Thread Stephen
On 13-05-23 04:51 PM, Last Hacker Always onpoint wrote: Hey I need code for random number 1-30 for my site. http://php.net/manual/en/function.rand.php -- Stephen -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: Is BBCode Installed

2013-04-12 Thread Stephen
On 13-04-12 02:28 AM, shiplu wrote: On Fri, Apr 12, 2013 at 4:24 AM, Stephen stephe...@rogers.com mailto:stephe...@rogers.com wrote: Now I have to install on my home development machine! You can install it by following command pecl install bbcode Note: root privilege is necessary

[PHP] Re: Is BBCode Installed

2013-04-11 Thread Stephen
On 13-04-10 10:05 PM, Stephen wrote: I ran phpinfo() on my host and searched for BBCode. Not found. Does this mean that the extension is not installed? If not, how can I tell? Thanks I am quite impressed with my host, hostpapa.ca I put in a ticket, and in 8 hours then enabled bbcode

[PHP] Is BBCode Installed

2013-04-10 Thread Stephen
I ran phpinfo() on my host and searched for BBCode. Not found. Does this mean that the extension is not installed? If not, how can I tell? Thanks -- Stephen -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: Is BBCode Installed

2013-04-10 Thread Stephen
approach based on regular expressions. Further more, it helps provide valid HTML by reordering open / close tags and by automatically closing unclosed tags. -- Stephen

Re: [PHP] Lasting syntax error when there's none

2013-04-09 Thread Stephen
You first step is to check the log files. No matter how sure we are that there is no syntax error, always start with the logs. It could be a file permission problem. Stephen On 13-04-09 11:00 AM, fr...@me.com wrote: Hi everyone, I have some weird problem with PHP compiler or something

Re: [PHP] Complex MySQL query for lowest price

2013-01-31 Thread Stephen
the database. I suggest you visit the great web site sitepoint.com. There are great SQL people to help you there. Stephen On 13-01-31 02:21 PM, Angela Barone wrote: Hello, I have a formula that says, if 'specialprice' is not empty and it is lower than 'unitprice', use 'specialprice

[PHP] PHP programming a members only access site

2013-01-13 Thread Stephen
there, either. Thanks in advance for suggestions! -- Stephen -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Boolean type forced on string assignment inside if statement

2013-01-02 Thread Stephen
On 13-01-02 10:53 AM, Marc Guay wrote: Hi folks, if ($a = foo $b = bar){ echo $a.br /.$b; } Returns: 1 bar I expect: foo bar Is this documented? takes precedence over = http://php.net/manual/en/language.operators.precedence.php You may want to use brackets -- Stephen -- PHP

Re: [PHP] variable placeholders in a text file

2012-12-31 Thread Stephen
not sure how to phrase this for a search engine. Nelson -- Stephen -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] variable placeholders in a text file

2012-12-31 Thread Stephen
On 12-12-31 03:37 PM, Nelson Green wrote: On Mon, 31 Dec 2012 14:47:20 Stephen D wrote: Yes! Easy standard stuff. $title = 'Mr.; $user_name = 'John Doe'; $message = Hello $title $user_name Just define the value for the variables before defining the value for the message. Note

[PHP] MySQLi

2012-12-20 Thread Stephen
I read about the subject in another thread. Where does PDO fit? That is what I have used for sometime. Am I good? -- Stephen -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Compiling the SQLite3 Package on Windows

2012-02-20 Thread Landry, Stephen
is missing from the package. Stephen Landry SAP Release Engineering 245 First Street 16th Floor Cambridge, Mass 02139 Phone: 617-715-7437 Cell: 603-247-8722

Re: [PHP] Strange foreach reference issue

2012-01-07 Thread Stephen
I cut and pasted your code and got the same result. I flipped the two foreach blocks and got the expected results. I deleted the first block and copied the second, then updated the string. I got this. I can't explain. ?php $row_list = array( array( 'Title' = 'Title

Re: [PHP] Strange foreach reference issue

2012-01-07 Thread Stephen
in the second loop would be assigned a non-reference value. Tim Tim, You are using the $variable in an unintended (by PHP designers), and I suggest undefined manner. So the outcome cannot, but definition be explained. Was this intended, and what were you trying to accomplish? Stephen -- PHP

[PHP] Syntax problem PDO and bindvalue

2011-12-12 Thread Stephen
WHERE photo_filename LIKE '%2%' LIMIT 0, 4; all works well. Can anyone see what is wrong? How can I see the prepared SQL statement before it is executed? Thanks Stephen -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] question about best practice for coding sql statements

2011-11-12 Thread Stephen
, and the error handling is simple to code. Using a disciplined format keeps everything readable and easy to use as a template for additional work. Cheers Stephen -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] create file after form completion

2011-10-29 Thread Stephen
is up to you. You can: Respond to the user Save the data in a file or database Email the data Good luck Stephen -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Seeking strategy/algorithm for maintaining order of records

2011-10-16 Thread Stephen
On 11-10-16 04:10 PM, Jim Giner wrote: Stephen: What you describe is a multistep problem. There are many ways to show pictures (images) in any order you want. * So far, the OP has only asked how to keep his categories in order. Curious, yes, but he hasn't even asked how to display

[PHP] Seeking strategy/algorithm for maintaining order of records

2011-10-15 Thread Stephen
categories and have a field for new order number, Then loop through the POST and update the values. The field is not unique, so I am not worried about DB errors. But I wonder if there is a better way. Thoughts please? Thank you Stephen -- PHP General Mailing List (http://www.php.net

Re: [PHP] Processing newlines in a text area field

2011-10-14 Thread Stephen
removed any processing of the text area content. Now, no matter how many blank rows I have between foo and bar, in the database record, I always get a single newline character. I am using Firefox 7.0.1. Is this normal behaviour? I want to be able to enter more than 1 newline. Thanks Stephen

Re: [PHP] Processing newlines in a text area field

2011-10-14 Thread Stephen
On 11-10-13 10:49 PM, Stephen wrote: I have a web page with a form with a text area. I enter: foo bar PHP processes the POST and inserts the record into MySQL. The database field is text. I use PDO For testing I have removed any processing of the text area content. Now, no matter how

[PHP] Processing newlines in a text area field

2011-10-13 Thread Stephen
and bar, in the database record, I always get a single newline character. I am using Firefox 7.0.1. Is this normal behaviour? I want to be able to enter more than 1 newline. Thanks Stephen -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: php.ini setting

2011-10-02 Thread Stephen
by thousands of coders. Stephen -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] php.ini setting

2011-10-01 Thread Stephen
On 11-10-01 11:57 AM, Jim Giner wrote: I'm trying to set magic quotes Off as my reading tells me that it's not good to have it defaulted to On. http://php.net/manual/en/security.magicquotes.disabling.php Stephen -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http

Re: [PHP] Integers

2010-06-30 Thread Stephen
+ 2 + 1 = 7 Stephen -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] session variables in tmp

2010-06-08 Thread Stephen Sunderlin
...@gmail.com wrote: Hi Stephen, you can try setting the session path using session_save_path http://www.php.net/manual/en/function.session-save-path.php. Gerardo www.webseficientes.com.ar On Sat, Jun 5, 2010 at 2:18 AM, Stephen Sunderlin stephen.sunder...@verizon.net wrote: trying out a CentOS

[PHP] Re: [Bulk] [PHP] Inserting rows with missing IDs

2010-05-03 Thread Stephen
, and query the elements. Stephen -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Math Question....

2010-04-22 Thread Stephen
Dan Joseph wrote: I want to take a group of items, and divide them into equal groups based on a max per group. Example. 1,252,398 -- divide into equal groups with only 30 items per group max. 1,252,398 DIV 30 = 41,746 groups of 30. 1,252,398 MOD 30 = 18 items in last group Stephen

Re: [PHP] PHP MySQL Insert Statements

2010-03-11 Thread Stephen
of the insert statement. Do your insert statements work if used in MySQL Query Browser? What is MySQL returning? Are you using OOP or old functions? Have you tried having PHP echo your insert statement so you can see exactly what you are sending MySQL? Stephen -- PHP General Mailing List

Re: [PHP] What method is best for generating thumbnails in PHP from PDF's?

2009-11-12 Thread Stephen
gallery in minutes Excellent article. Stephen -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] IRC and English

2009-08-31 Thread Stephen
broken I don't even bother trying to decypher it, and sometimes an *attitude* (after which, I blacklist the poster). Am I the only one? It's okay if I am. Just wondering. IRC ?? I haven't used that in years. :) More likely it is the habits learned in texting carrying over to email. Stephen

[PHP] PDO - Nested selects allowed?

2009-05-27 Thread Stephen
=\viewgallery.php?cid= . $id . \ . $name . /a ($count)\n\t\t/div\n \t\tdiv class=\categorydescription\ . \n\t\t\t$description\n\t\t/div; } } catch (PDOException $e) { echo Building category list failed: . $e-getMessage(); } Thanks to those who can help! Stephen | -- PHP

Re: [PHP] Re: Forms validation and creation- easier solution?

2009-05-23 Thread Stephen
moving out of do it hand to learn how it is done into how can I get this work done quickly and well and you point me to Radicore! Stephen -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] product listing columns

2009-05-20 Thread Stephen
. :) Stephen -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] CSS tables

2009-05-17 Thread Stephen
Nathan Rixham wrote: tedd wrote: At 7:48 PM -0400 5/16/09, Stephen wrote: PJ wrote: I know of no better place to ask. This may not be strictly a PHP issue, but... I am busting my hump trying to format rather large input pages with CSS and trying to avoid tables; but it looks to me like I am

Re: [PHP] CSS tables

2009-05-16 Thread Stephen
. CSS 2.1 makes layout easy ans IE8 passes ACID2. I have some javascript that detects the browser and warns users of IE 8 that they need to upgrade. Maybe bleeding edge for commercial sites, but helping the user upgrade is going them a favour. Stephen -- PHP General Mailing List (http

Re: [PHP] CSS tables

2009-05-16 Thread Stephen
Robert Cummings wrote: On Sat, 2009-05-16 at 19:48 -0400, Stephen wrote: PJ wrote: I know of no better place to ask. This may not be strictly a PHP issue, but... I am busting my hump trying to format rather large input pages with CSS and trying to avoid tables; but it looks to me like

Re: [PHP] How to deal with identical fields in db

2009-05-05 Thread Stephen
creative... Anyone for tea? You should have a title_id field in your titles table, and this field should be unique. Probably auto assigned and auto increment. If you search for a book title, and there are two books with that title, you should get two records back! Stephen -- PHP General Mailing

Re: [PHP] Help me debug this

2009-04-20 Thread Stephen
Patrick Moloney wrote: I've tried their help forum, but they keep telling me to create an empty database. Have you tried creating an empty database? Stephen -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Simple XML in PHP

2009-03-24 Thread Stephen Alistoun
HI all, How would a get this video from XML. /***Example i want to View***/ media:content url=http://video-cdn.abcnews.com/090324_gma_leamy.flv; lang=en width=424 height=318 type=video/x-flv / /**/ /**XML

Re: [PHP] Re: Intermittent problem sending mail with PHP

2009-03-06 Thread Stephen Hutchison
thanks Jim - I change over to SwiftMailer and its working well. Jim Lucas li...@cmsws.com wrote in message news:49ae0375.2040...@cmsws.com... Stephen Hutchison wrote: I'll check with my ISP but if is that then it's a very low limit. I'm finding it's only allowing two or three through before

[PHP] Intermittent problem sending mail with PHP

2009-03-03 Thread Stephen Hutchison
for say anther half an hour its back working again. I send a couple more test messages its all good, but and then it hangs again. How can I troubleshoot this intermittent problem? My ISP is running PHP on an IIS server. It seems like a server issue. Thanks Stephen -- PHP General Mailing List

[PHP] Re: Intermittent problem sending mail with PHP

2009-03-03 Thread Stephen Hutchison
-To: steph...@qcoss.org.au X-Mailer: PHP/ 5.1.1 Cc: steph...@qcoss.org.au, takeact...@qcoss.org.au thanks Stephen Hutchison steph...@qcoss.org.au wrote in message news:bc.e4.19118.b059d...@pb1.pair.com... I've set up a small website which allows users to create a form letter and email

Re: [PHP] Re: Intermittent problem sending mail with PHP

2009-03-03 Thread Stephen Hutchison
I'll check with my ISP but if is that then it's a very low limit. I'm finding it's only allowing two or three through before hanging. Is there something i can put in my code so that it at least fails gracefully? It's not a good look just hanging like that. Thanks Stephen Chris dmag

[PHP] Re: [Bulk] [PHP] Creating A Unique List With Table Query

2009-02-10 Thread Stephen
: How do I filter the query to only produce unique values? Check out the DISTINCT keyword in the SELECT documentation. Also, do you have a Category table? Stephen -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] long echo statement performance question

2009-02-06 Thread Stephen
) Nested in the HTML code are variables for the content, like the menu and body text 5) All presentation is done using CSS 6) Each page just has PHP code (mostly function calls) where the content variables are built 7) Finally the content variable is echoed. Stephen -- PHP General Mailing List

Re: [PHP] New to PHP question

2009-01-28 Thread Stephen
but not at all when in a browser. Here is the code that I am working with: Browsers **only** support HTML. They do not understand things like \n to be anything special, so they just print as it is sent to the browser. Stephen -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit

Re: [PHP] New to PHP question

2009-01-28 Thread Stephen
. Stephen -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] New to PHP question

2009-01-28 Thread Stephen
they are for. But use CSS to format the table. Finally, just because IE8 is (supposed to be) fully CSS standards compliant doesn't mean anything for IE7, IE6, IE5, etc. Microsoft is pushing IE 8 with their bug fix process. Not a bad idea to include a little JS to warm users with IE8 to upgrade. Stephen

[PHP] Captha Image Matching the Session Value.

2009-01-25 Thread Stephen Alistoun
td colspan=2input type=text name=captha value=?php echo Test:.$_SESSION[security_code] ?/td /table Thanks, Stephen -- View this message in context: http://www.nabble.com/Captha-Image-Matching-the-Session-Value.-tp21650616p21650616.html Sent from the PHP

Re: [PHP] Captha Image Matching the Session Value.

2009-01-25 Thread Stephen Alistoun
Hi ash, Thanks for your reply but the image does change when i refresh the page but the session value is one before the image value. If this is a cache problem how would i prevent this? Thanks, Stephen -- View this message in context: http://www.nabble.com/Captha-Image-Matching-the-Session

Re: [PHP] Captha Image Matching the Session Value.

2009-01-25 Thread Stephen Alistoun
Hey Richard, Thanks for your reply but the Captcha php code is a seperate file to the html code but the code is working but the values are not matching. Thanks, Stephen -- View this message in context: http://www.nabble.com/Captha-Image-Matching-the-Session-Value.-tp21650616p21651034.html

Re: [PHP] Captha Image Matching the Session Value.

2009-01-25 Thread Stephen Alistoun
Hey Ash, Is I have but the Session Value is one before the Captha Image Value. Regards, Stephen -- View this message in context: http://www.nabble.com/Captha-Image-Matching-the-Session-Value.-tp21650616p21651258.html Sent from the PHP - General mailing list archive at Nabble.com. -- PHP

Re: [PHP] PHP webhosting - USA

2009-01-24 Thread Stephen
for 7 days! You are hosting a business website, that processes orders, on a shared server? That is very false economy. You want a dedicated server that has only you as root. Stephen -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Php and CSS where to put it

2009-01-12 Thread Stephen
and see what happens. Stephen -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Editing in a text area field

2009-01-10 Thread Stephen
sites that allow the user to enter [b]bold text[/b] for example. I would like to do this. Anyone have a function to convert this kind of thing to HTML? Stephen -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Editing in a text area field

2009-01-09 Thread Stephen
in the form. Then put back html before saving again. I keep ending up with stray characters Has anyone done this? Is there a tutorial on the web somewhere? Thanks Stephen -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Editing in a text area field

2009-01-09 Thread Stephen
but that should be easy. Cheers Stephen -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Posting Data?

2009-01-02 Thread Stephen Alistoun
Hi all, I have my own register system and I want to Post my values from my register system and post those values into the punbb register form. I do not want to register my values from the punbb form but rather from my login system. How would i be able to do this? Below is the example of the

[PHP] Posting Data?

2009-01-02 Thread Stephen Alistoun
Hi all, I have my own register system and I want to Post my values from my register system and post those values into the punbb register form. I do not want to register my values from the punbb form but rather from my login system. How would i be able to do this? Below is the example of the

[PHP] Online Members

2008-12-26 Thread Stephen Alistoun
Hi all, What is the best way to pick up all the members online on a website? Regards, Stephen -- View this message in context: http://www.nabble.com/Online-Members-tp21180855p21180855.html Sent from the PHP - General mailing list archive at Nabble.com. -- PHP General Mailing List (http

[PHP] Image Resizing

2008-12-20 Thread Stephen Alistoun
adjusts automatically. Regards, Stephen -- View this message in context: http://www.nabble.com/Image-Resizing-tp21108753p21108753.html Sent from the PHP - General mailing list archive at Nabble.com. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net

[PHP] XML Get Value of Node DOMXPath

2008-12-15 Thread Stephen Alistoun
Hello all, Need help to get the value of the node. We know how to get the value of the city , item and itemPrice nodes below. How do we get the value of NumberOfRooms? $hotelElements = $xpath-query( '', $searchReponseElement ); foreach(

Re: [PHP] php client

2008-12-14 Thread Stephen
. If this is what you want to go, Google, PHP forms Stephen -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Can GD make a JPG thumbnail of a PDF?

2008-12-10 Thread Stephen Johnson
/pre; ? But it just returns blank. Can anyone help me get ImageMagick working on my server? On Nov 20, 2008, at 4:41 PM, Stephen Johnson wrote: No but you can use imagemagicks convert to convert the pdf to an image and then make a thumbnail of it. -- Stephen Johnson The Lone Coder

[PHP] Guidance on enhancing functionality

2008-12-08 Thread Stephen
to decide which is the better long term solution. Thoughts? Thanks Stephen -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] A MySQL Question

2008-12-07 Thread Stephen
Kevin Waterson wrote: Only a barbarian would call it Sequel or anything other than My S. Q. L MY ESS KEW ELL I have never heard that product SQL Server referred to as anything other than seequel server. Guess that proves your point :) Stephen -- PHP General Mailing List (http

[PHP] Model Web Site

2008-11-20 Thread Stephen
of things I have no experience in. Can someone point me to documentation/tutorials/scripts or anything that might help. I don't want a turnkey solution. I want to learn how to do this. Thank you! Stephen -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net

Re: [PHP] Model Web Site

2008-11-20 Thread Stephen
. And making it tough for hackers. Stephen -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Can GD make a JPG thumbnail of a PDF?

2008-11-20 Thread Stephen Johnson
No but you can use imagemagicks convert to convert the pdf to an image and then make a thumbnail of it. On 11/20/08 4:39 PM, Brian Dunning [EMAIL PROTECTED] wrote: Well can it? -- Stephen Johnson The Lone Coder http://www.ouradoptionblog.com *Join us on our adoption journey* [EMAIL

Re: [PHP] Random number generator

2008-11-06 Thread Stephen
knowing how PHP seeds the generator it is difficult to predict what it will do. I still think taking the last digit of the current time is your best solution. Stephen -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Random number generator

2008-11-05 Thread Stephen
. Stephen -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Change tracking

2008-10-31 Thread Stephen
is to never change a record, but to add new ones. You also need to add an effectivity date field. Stephen -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Required files not being parsed properly...

2008-10-07 Thread Stephen Johnson
PROTECTED] wrote: Eric Butera wrote: On Mon, Oct 6, 2008 at 7:28 PM, Stephen Johnson [EMAIL PROTECTED] wrote: OK .. I am upgrading to PHP5 on a clients box, and after doing so I have run into the problem that files that get brought in by a require statement, or include, end up just getting dumped

[PHP] Required files not being parsed properly...

2008-10-06 Thread Stephen Johnson
what you see here : http://www.thumbnailresume.com/index.html?allow=1 Any one have any thoughts on what is going on? -- Stephen Johnson c | eh The Lone Coder office: 562.366.4433 fax: 562.278.0133 http://www.thelonecoder.com continuing the struggle against bad code http

Re: [PHP] Math problems (No not high school math!)

2008-09-25 Thread Stephen
a while loop to display the total hours for the day which works perfectly, now though, they want it to total for the week... Consider adding a column for the total hours and calculate it when saving the record. It should make everything that follows easier. Stephen -- PHP General Mailing List

Re: [PHP] Google Checkout

2008-09-24 Thread Stephen Wellington
and Safari: http://www.phpguru.org/RGraph -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- Stephen Wellington 07956 042387 01865 28 ext 12438 [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] -- Stephen Wellington 07956 042387

[PHP] Calculation assistance.. :)

2008-09-19 Thread Stephen Johnson
then gives me in PHP 0.00104167 = 1.25 / (12 * 100); -2.170138889 = 25000 * ( 0.00104167 / (1 - (1 + 0.00104167) ^ -12)) :: ^ is the problem ... The solution SHOULD be 2,097.47 ... Not ­2.17 Would be willing to help correct this and make it valid in PHP? -- Stephen

Re: [PHP] Calculation assistance.. :)

2008-09-19 Thread Stephen Johnson
Right ... But that is producing even funkier results... doing pow( (1-(1+$nMonthlyInterest)) , ($iMonths*-1) ) ; Gives me : 4.2502451372964E-35 = 25000 * (0.00104167 / 6.1270975733019E+35); -- Stephen Johnson c | eh The Lone Coder http://www.thelonecoder.com continuing the struggle

Re: [PHP] Calculation assistance.. :)

2008-09-19 Thread Stephen Johnson
Eric ... I LOVE YOU... Thanks -- Stephen Johnson c | eh The Lone Coder http://www.thelonecoder.com continuing the struggle against bad code http://www.fortheloveofgeeks.com I¹m a geek and I¹m OK! -- From: Eric Gorr [EMAIL PROTECTED] Date: Fri, 19 Sep 2008 16:13:49 -0400 To: Stephen

Re: [PHP] CSV output.

2008-09-08 Thread Stephen Johnson
It sounds like you simply need to number format the data to ensure that PHP does not truncate http://php.net/number_format If excel, or whatever your using to view the csv file, is truncating then you will need to properly format that cell. -- Stephen Johnson c | eh The Lone Coder http

Re: [PHP] Google Chrome

2008-09-04 Thread Stephen Wong
Wow, didn't notice the GoogleUpdate.exe, thanks for the heads up on that. Agreed about programs adding items in our startup. On Thu, Sep 4, 2008 at 2:23 PM, Boyd, Todd M. [EMAIL PROTECTED] wrote: -Original Message- From: Ovidiu Rosoiu [mailto:[EMAIL PROTECTED] Sent: Thursday,

Re: [PHP] Semi-ADVERT, OT

2008-08-20 Thread Stephen Johnson
On 8/20/08 6:57 AM, tedd [EMAIL PROTECTED] wrote: Seriously, I saw a new invention recently. The inventor made underwear with three leg holes. The idea was to rotate the underwear as needed. What people won't invent. Cheers, tedd -- That is disturbing. -- Stephen Johnson

[PHP] Does this seem wrong to anyone else?

2008-08-20 Thread Stephen Johnson
1057 -- Stephen Johnson c | eh The Lone Coder http://www.thelonecoder.com continuing the struggle against bad code http://www.fortheloveofgeeks.com I¹m a geek and I¹m OK! --

Re: [PHP] Does this seem wrong to anyone else?

2008-08-20 Thread Stephen Johnson
Thanks everyone ... It was a brain fart ... Long bad day today, and I am not paying proper attention ... :) -- Stephen Johnson c | eh The Lone Coder http://www.thelonecoder.com continuing the struggle against bad code http://www.fortheloveofgeeks.com I¹m a geek and I¹m OK! -- -- PHP

Re: [PHP] Kill Magic Quotes

2008-08-08 Thread Stephen
Dave M G wrote: PHP List, I found this solution after a web search. I can't attribute the author, but would like to if I could. I have a routine like this: if (isset($_POST['choice'])) { if (get_magic_quotes_gpc() ){ stripslashes_arrays( $_POST ); } $choice = $_POST['choice']; } else {

[PHP] Back to Basics - Why Use Single Quotes?

2008-07-30 Thread Stephen
, is there any reason to use single quotes? Stephen -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] limiting the amount of emails sent at a time in a batch send

2008-07-29 Thread Stephen
periodically. Stephen Richard Kurth wrote: I want to limit these script two send 100 email and then pause for a few seconds and then send another 100 emails and repeat this tell it has sent all the emails that are dated for today. This script is runs by cron so it is running in the background. How

Re: [PHP] Optimization of PHP Code

2008-07-18 Thread Stephen
mySQL functions. PDO is better at handling demanding SQL activity. Stephen -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Class 'PDO' not found in .... PHP 5.2.5

2008-07-17 Thread Stephen
not supported things. So I am asking for any advise. Thanks Stephen -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[Fwd: Re: [PHP] Removeing duplicates inside for/foreach loop.]

2008-07-15 Thread Stephen
. In pseudo code for i = 2 to n if x[1].order = x[i-1].order then unlink x[i-1] Stephen -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] PDO Question. Number of rows returned

2008-07-13 Thread Stephen
names I would be very happy. Stephen -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

  1   2   3   4   5   6   7   8   >