Re: [PHP] Function mktime() documentation question

2012-03-08 Thread Jim Lucas
']; -- Jim Lucas http://www.cmsws.com/ http://www.cmsws.com/examples/ http://www.bendsource.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Function mktime() documentation question

2012-03-08 Thread Jim Lucas
On 03/08/2012 04:24 PM, Jim Lucas wrote: On 03/08/2012 03:14 PM, Tedd Sperling wrote: On Mar 8, 2012, at 11:20 AM, Ford, Mike wrote: -Original Message- From: Tedd Sperling [mailto:tedd.sperl...@gmail.com] From my code, the number of days in a month can be found by using 0 as the first

Re: [PHP] Function mktime() documentation question

2012-03-08 Thread Jim Lucas
On 03/08/2012 04:31 PM, Jim Lucas wrote: On 03/08/2012 04:24 PM, Jim Lucas wrote: On 03/08/2012 03:14 PM, Tedd Sperling wrote: On Mar 8, 2012, at 11:20 AM, Ford, Mike wrote: -Original Message- From: Tedd Sperling [mailto:tedd.sperl...@gmail.com] From my code, the number of days

Re: [PHP] Function mktime() documentation question

2012-03-08 Thread Jim Lucas
On 03/08/2012 04:44 PM, Jim Lucas wrote: On 03/08/2012 04:31 PM, Jim Lucas wrote: On 03/08/2012 04:24 PM, Jim Lucas wrote: On 03/08/2012 03:14 PM, Tedd Sperling wrote: On Mar 8, 2012, at 11:20 AM, Ford, Mike wrote: -Original Message- From: Tedd Sperling [mailto:tedd.sperl

Re: [PHP] Converting an unordered list into JSON

2012-03-05 Thread Jim Giner
Jay Blanchard jay.blanch...@sigmaphinothing.org wrote in message news:4f54e388.7010...@sigmaphinothing.org... On 3/5/2012 9:53 AM, Stuart Dallas wrote: On 5 Mar 2012, at 15:50, Jay Blanchard wrote: I am off on my next tangent now and I have not really thought about this too much yet but

[PHP] iphone php

2012-03-05 Thread Jim Giner
An appl that has been working fine for a year now and fine up through last week, suddenly is not working on my iphone. The only differences between using it on a pc, ipad or iphone are for font sizes and such (handled by JS) so I'm puzzled as to what is going on. I do the same exact thing on

Re: [PHP] iphone php

2012-03-05 Thread Jim Giner
Stuart Dallas stu...@3ft9.com wrote in message news:a42f15bf-48a9-4118-bef5-ebc374fcb...@3ft9.com... On 5 Mar 2012, at 17:16, Jim Giner wrote: An appl that has been working fine for a year now and fine up through last week, suddenly is not working on my iphone. The only differences between

Re: [PHP] iphone php

2012-03-05 Thread Jim Giner
Jay Blanchard jay.blanch...@sigmaphinothing.org wrote in message news:4f54faf8.4030...@sigmaphinothing.org... [snip]In the last few mins I re-booted my phone and it is now doing something even worse! [/snip] Have you also cleared the cache and the cookies? You can also add Firebug to your

Re: [PHP] iphone php

2012-03-05 Thread Jim Giner
- Original Message - From: Mari Masuda mari.mas...@stanford.edu To: Jim Giner jim.gi...@albanyhandball.com Cc: php-general@lists.php.net Sent: Monday, March 05, 2012 12:57 PM Subject: Re: [PHP] iphone php On Mar 5, 2012, at 9:52 AM, Jim Giner wrote: Jay Blanchard jay.blanch

Re: [PHP] iphone php

2012-03-05 Thread Jim Giner
Jim Giner jim.gi...@albanyhandball.com wrote in message news:35.42.35539.06df4...@pb1.pair.com... Jay Blanchard jay.blanch...@sigmaphinothing.org wrote in message news:4f54faf8.4030...@sigmaphinothing.org... [snip]In the last few mins I re-booted my phone and it is now doing something

Re: [PHP] iphone php

2012-03-05 Thread Jim Giner
Ashley Sheridan a...@ashleysheridan.co.uk wrote in message news:caba1578-d923-4fa8-b824-db8f5ffea...@email.android.com... Jim Giner jim.gi...@albanyhandball.com wrote: Jim Giner jim.gi...@albanyhandball.com wrote in message news:35.42.35539.06df4...@pb1.pair.com... Jay Blanchard jay.blanch

[PHP] Re: iphone php

2012-03-05 Thread Jim Giner
Solution! Found this post from last Fall. Didn't experience the problem because my appl is a NASCAR one and the season ended before this problem was created, apparently by an Apple update on my phone. Here's a link to the story: https://discussions.apple.com/thread/3408352?tstart=0 To

Re: [PHP] iphone php

2012-03-05 Thread Jim Giner
Stuart Dallas stu...@3ft9.com wrote in message news:797e930f-368c-43d1-8159-9608b6d53...@3ft9.com... On 5 Mar 2012, at 18:12, Jim Giner wrote: Okay - here's the scoop - although this is not the forum for it. Ipads and Iphones respect an html input tag's type=number attribute in order

Re: [PHP] iphone php

2012-03-05 Thread Jim Giner
Marc Guay marc.g...@gmail.com wrote in message news:CAL0DAJq0y-iOMvt4Ko+D4Z_t+oo3PT9SYmR+9foa=9q9gsr...@mail.gmail.com... And if you change your input type to date, because it's a date, does that bring up the numeric keys as well? actually I have not seen anything that suggests that is a

Re: [PHP] iphone php

2012-03-05 Thread Jim Giner
Robert Williams rewilli...@thesba.com wrote in message news:cb7a5dd7.828c6%rewilli...@thesba.com... On 3/5/12 11:58, Jim Giner jim.gi...@albanyhandball.com wrote: Marc Guay marc.g...@gmail.com wrote in message news:CAL0DAJq0y-iOMvt4Ko+D4Z_t+oo3PT9SYmR+9foa=9q9gsr...@mail.gmail.com

Re: [PHP] Nested database loops and completing an unordered list....

2012-03-02 Thread Jim Lucas
' AND `BUSTIER3DATA` = 'KneeDIV01DEPT02' KneeDIV01DEPT02GRP04 7 SELECT DISTINCT `` FROM `POSITION_SETUP` WHERE `COMPANY_ID` = '3' AND `BUSTIER4DATA` = 'KneeDIV01DEPT02GRP04' 1054Unknown column '' in 'field list' -- Jim Lucas http://www.cmsws.com/ http://www.cmsws.com/examples/ http

Re: [PHP] curl equivalent in PHP

2012-03-02 Thread Jim Lucas
+ fread, etc... All you need to make sure is that allow_url_fopen is enabled. -- Jim Lucas http://www.cmsws.com/ http://www.cmsws.com/examples/ http://www.bendsource.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Nested database loops and completing an unordered list....

2012-03-02 Thread Jim Lucas
of data. It will save a little time by not hitting the DB on each function call too. Now I feel as if I am really close to a better solution than the brute force method. I may just be a little too frustrated to see what is a simple answer. Thanks for your help! -- Jim Lucas http

[PHP] SESSION var and Objects problem

2012-03-02 Thread Jim Giner
My first foray into classes objects. When retrieving a set of records, I'm using a class to build an object. At this time I save each record/object into a Session array by doing this: $rows = mysql_num_rows($qrslts); if ($rows 0) for ($i=1;$i=$rows;$i++) { $row =

Re: [PHP] SESSION var and Objects problem

2012-03-02 Thread Jim Giner
Yes I ahve the class defined. The classes work in most cases - just this one place where I want to save the objects in a sess var for re-use fails me. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] SESSION var and Objects problem

2012-03-02 Thread Jim Giner
ok - In examinig the objects in the Session after the data has been displayed and the user has hit triggered a re-entry into my script (just one script involved here), the objects in the session array now say [__PHP_Incomplete_Class_Name and __PHP_Incomplete_Class Object . They didn't say

Re: [PHP] SESSION var and Objects problem

2012-03-02 Thread Jim Giner
Stuart Dallas stu...@3ft9.com wrote in message news:7eeba658-c7f6-4449-87bd-aac71b41e...@3ft9.com... Make sure the class is declared before you call session_start. * You Da Man!! I see now why it makes a difference. The session tries to bring back the data but doesn't know how to handle

Re: [PHP] Nested database loops and completing an unordered list....

2012-03-01 Thread Jim Lucas
for that level. How are you calling this? What are your initial arguments? What does your DB schema look like? Can you show a brief example of the data in the table? Dump: SELECT * FROM position_setup WHERE company_id='3' Can you show the output of the function above? -- Jim Lucas http

Re: [PHP] Selecting checkboxes based on SQL query

2012-02-23 Thread Jim Lucas
['cb']; -- Jim Lucas http://www.cmsws.com/ http://www.cmsws.com/examples/ http://www.bendsource.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Test

2012-02-20 Thread Jim Giner
meaning what? Jay Blanchard jay.blanch...@sigmaphinothing.org wrote in message news:4f4297a6.3000...@sigmaphinothing.org... Does this work? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Headers on smart phone browsers

2012-02-06 Thread Jim Giner
Nice article!! You should read up on responsive web design. http://www.alistapart.com/articles/responsive-web-design/ should get you started. HTH!= -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Long Live GOTO

2012-02-06 Thread Jim Giner
NO GO! As one who started back in the 70's with old style coding that utilized GoTo in Cobol, Fortran, etc. and had to deal with spaghetti code written by even earlier developers who never considered that someone else would have to maintain their code, I feel strongly that GoTo is not to be

Re: [PHP] Long Live GOTO

2012-02-06 Thread Jim Giner
Adam Richardson simples...@gmail.com wrote in message news:cac6cjqz5wku8c9ruqgc4rqg5cq35a-lfs1rryos3wtfys6r...@mail.gmail.com... On Mon, Feb 6, 2012 at 10:05 AM, Robert Cummings rob...@interjinn.comwrote: On 12-02-06 04:07 AM, Tim Streater wrote: On 06 Feb 2012 at 07:47, Adam

Re: [PHP] Long Live GOTO

2012-02-06 Thread Jim Giner
Robert Cummings rob...@interjinn.com wrote in message news:4f30086a.6080...@interjinn.com... 1) deal with the trivial and error cases first Some say you should never return early from a function... I too think that early returns can improve the readability of a function-- especially if

Re: [PHP] Re: Re: File upload in map drive with PHP

2012-01-28 Thread Jim Lucas
Michelle Konzack -- Jim Lucas -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: File upload in map drive with PHP

2012-01-26 Thread Jim Giner
Do you mean you are trying to do an upload of a file on a mapped drive, such as a network drive? Is this upload using an html form with an input type=file tag? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Getting Column Names from an AS400 Database

2012-01-26 Thread Jim Giner
I'm thinking that it should read $rs = $conn-execute($q); $outval = odbc_columns($rs, DB#LIBNAME, %, TABLENAME, %); You need to provide the results of the query to the odbc_columns, not the connection object. Just my guess since I've never used this. -- PHP General Mailing List

Re: [PHP] Re: sql injection protection

2012-01-26 Thread Jim Lucas
in any programming languages, sadly actually. This is what i want to talk to Rasmus about. -- Jim Lucas http://www.cmsws.com/ http://www.cmsws.com/examples/ http://www.bendsource.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: File upload in map drive with PHP

2012-01-26 Thread Jim Lucas
On 01/26/2012 07:13 AM, Jim Giner wrote: You're using a GET in your script when your form is a POST. and if you look at the method value you will see that he is passing upload=1 in the URL. Which would be seen as a GET value. -- Jim Lucas http://www.cmsws.com/ http://www.cmsws.com

Re: [PHP] Re: Settings to Allow Precise File Upload Bytes

2012-01-20 Thread Jim Lucas
. 2) for the actual upload if it should succeed. TIA -- Jim Lucas http://www.cmsws.com/ http://www.cmsws.com/examples/ http://www.bendsource.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: srand questions

2012-01-12 Thread Jim Giner
The manual notes some of your concerns - especially the lack of a need to do a 'seeding' and (since 5.2.1) the presence of a new algorithm that generates a unique sequence regardless if the 'seed' is repeated. Furthermore, since there is no need to do a seed, I would guess that each call to

[PHP] Re: advise on simplfying session usage

2012-01-12 Thread Jim Giner
You're kidding us aren't you? session(age) =90 versus $_SESSION['age']=90 (btw you left out a keystroke) That's a difference of 2 keystrokes. And you're looking to save keystrokes? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Variable Troubleshooting Code

2012-01-10 Thread Jim Lucas
change the above the the following: if ( empty($pmatch) || ( strpos($key, $pmatch) === 0 ) ) { print $key = $valuebr /; } it would be slightly faster -- Jim Lucas http://www.cmsws.com/ http://www.cmsws.com/examples/ http://www.bendsource.com/ -- PHP General Mailing List (http://www.php.net

[PHP] Re: php sendmail_from

2012-01-09 Thread Jim Giner
And how are you generating the email? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: php sendmail_from

2012-01-09 Thread Jim Giner
I guess I'm asking to see your code pertaining to sending the email. Telling us about a couple of ini settings doesn't really present us a picture of your problem. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Printing

2012-01-05 Thread Jim Giner
My first attempt to print something to a printer. I actually just went ahead and tried this from my website: $hdl = printer_open(); printer_write($hdl,This is my printed page); printer_write($hdl,This is line 1); printer_write($hdl,This is line 2); printer_write($hdl,This is line 3);

Re: [PHP] Printing

2012-01-05 Thread Jim Giner
Add extension=php_printer.dll in php.ini? Will adding that line install the extension? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Printing

2012-01-05 Thread Jim Giner
Nilesh Govindarajan cont...@nileshgr.com wrote in message news:CAPo3nobqHPTH5V+0RqsRsQ0vDAne7V4s1Nc0dB12Gb=akws...@mail.gmail.com... On Thu, Jan 5, 2012 at 9:16 PM, Jim Giner jim.gi...@albanyhandball.com wrote: and where do I get the dll? That was my original question. The documentation

Re: [PHP] Printing

2012-01-05 Thread Jim Giner
I can't tell you much on this, because I don't use windows. You have to get the source at http://pecl.php.net/printer and compile it. I don't know the procedure, etc. -- Nilesh Govindarajan http://nileshgr.com That was a short trip. Clicked on the link for documentation and it takes me

[PHP] PDF Printing instead?

2012-01-05 Thread Jim Giner
ok - somebody has advised that I should not be trying to print to a printer from my website php script. The suggestion of creating a pdf and sending to the client was made. How do I install the pdf functions? I've never had to install a package before or is that something my hoster does?

Re: [PHP] Question about date calculations

2011-12-30 Thread Jim Lucas
[$i]+1)) $intDayCnt16) if ( $dteCheckDate = ( $dteEndDate[$i]-format('U') - (7*86400) ) $dteCheckDate = ( $dteEndDate[$i]-format('U') + (86400) ) $intDayCnt 16 ) { Eric Lommatsch. -- Jim Lucas -- PHP General Mailing List (http://www.php.net/) To unsubscribe

[PHP] Re: [php] static html search engine for php static html site

2011-12-26 Thread Jim Lucas
/search.php Source: http://www.cmsws.com/examples/search.phps Maybe it will give you a little start in the direction of writing your own solution. -- Jim Lucas http://www.cmsws.com/ http://www.cmsws.com/examples/ http://www.bendsource.com/ -- PHP General Mailing List (http://www.php.net

Re: [PHP] Error Reporting

2011-12-23 Thread Jim Lucas
, including warnings. If you want to hide the Warning, then you would use this error_reporting = E_ALL ~E_NOTICE display_errors = On log_errors = On E_NOTICE includes warnings. Reference here: http://us.php.net/manual/en/errorfunc.constants.php -- Jim Lucas http://www.cmsws.com/ http

Re: [PHP] Online Form Creation

2011-12-22 Thread Jim Lucas
and layout of the forms are of no significance. This is basic html/php -- try creating something and submit your work for our review. If you want us to write the code for you, please look elsewhere. Cheers, tedd _ t...@sperling.com http://sperling.com -- Jim

Re: [PHP] PHP page source charset

2011-12-20 Thread Jim Lucas
processed the php script and sent the output to the browser. It is the source in the browser that the validation script sees. -- Jim Lucas http://www.cmsws.com/ http://www.cmsws.com/examples/ http://www.bendsource.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit

Re: [PHP] Working on a Subsummary Report

2011-12-19 Thread Jim Lucas
On 12/17/2011 4:21 PM, DealTek wrote: On Dec 16, 2011, at 12:56 PM, Jim Lucas wrote: 1) What does your db schema look like? 2) What SQL do you currently use? 3) What criteria do you want to use to sort the data? 4) Will the output be plaintext, html, etc? 5) Is this going to be used

Re: [PHP] Working on a Subsummary Report

2011-12-18 Thread Jim Lucas
all the data into the proper order withing your SQL statement. Then display the data looping through the mysql result set once without having to create the additional array mentioned in my first statement above. Thanks Jim, I will look into how to make this work with arrays... more

Re: [PHP] Working on a Subsummary Report

2011-12-16 Thread Jim Lucas
db schema look like? 2) What SQL do you currently use? 3) What criteria do you want to use to sort the data? 4) Will the output be plaintext, html, etc? 5) Is this going to be used to import into another app, or display printing? -- Jim Lucas http://www.cmsws.com/ http://www.cmsws.com/examples

Re: [PHP] Working on a Subsummary Report

2011-12-16 Thread Jim Lucas
having to create the additional array mentioned in my first statement above. -- -- Thanks, Dave - DealTek deal...@gmail.com [db-11] -- Jim Lucas http://www.cmsws.com/ http://www.cmsws.com/examples/ http://www.bendsource.com/ -- PHP General Mailing List (http://www.php.net

Re: [PHP] Re: Preferred Syntax

2011-12-15 Thread Jim Lucas
. -- Jim Lucas http://www.cmsws.com/ http://www.cmsws.com/examples/ http://www.bendsource.com/ C - (541) 408-5189 O - (541) 323-9113 H - (541) 323-4219 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Unique items in an array

2011-12-15 Thread Jim Lucas
( [356] = Array ( [contact_id] = 356 [contact_first_name] = Marc ) [247] = Array ( [contact_id] = 247 [contact_first_name] = Marc ) ) Give it a try, should do what you are wanting. -- Jim Lucas http

Re: [PHP] Unique items in an array

2011-12-14 Thread Jim Lucas
you go about it? Thanks for any help, Marc Assuming you want to make things unique based on the contact_first_name field, how would you decide which record to keep? The first one you run in to, the last one you come across, or some other criteria? -- Jim Lucas http://www.cmsws.com/ http

Re: [PHP] Problem with date

2011-12-07 Thread Jim Lucas
; # echo font size=1 class=rss-linkThis is not green/font; } # this line is after each rss feed group # echo hr\n; } Thanks! Jack Can you supply an example of the data you are feeding this. -- Jim Lucas http://www.cmsws.com/ http://www.cmsws.com/examples/ http://www.bendsource.com/ C

Re: [PHP] Webcal and file_get_contents

2011-12-06 Thread Jim Lucas
it onto the internal http processing code. I've done some web searching, looked through the PHP docs and had a look through the archives here, but not managed to find anything (sorry if I've missed anything obvious). Davo -- Jim Lucas -- PHP General Mailing List (http://www.php.net

Re: [PHP] Common way to store db-password of open session?

2011-12-04 Thread Jim Giner
To put it another way - your appl should control the access that a user has - different screens/functions available depending upon the signon credentials. The entire application's sql use (or all 'users' of the database) should have a minimal number of user ids associated with it - both to

Re: [PHP] Class instance pointers

2011-11-29 Thread Jim Lucas
Nope, AFAIK everything inside the function will disappear when the function exits. Unless you run into one of the memory release issues talked about in the past, in that case you might be SOL. -- Jim Lucas http://www.cmsws.com/ http://www.cmsws.com/examples/ http://www.bendsource.com/ C - (541

Re: [PHP] Common way to store db-password of open session?

2011-11-29 Thread Jim Lucas
is that all the account details are in a file on the file system that could (in some situations) be read by other system user accounts. YMMV -- Jim Lucas http://www.cmsws.com/ http://www.cmsws.com/examples/ http://www.bendsource.com/ C - (541) 408-5189 O - (541) 323-9113 H - (541) 323-4219

Re: [PHP] Auto CRUD Generator Xataface

2011-11-29 Thread Jim Lucas
: Home Forum Documentation Videos a href=http:// And the rest of the page is white. Garbage. System: Windows XP 32-bit I run FF 5.0.1 w/NoScript and I had allow both xataface.com and weblite.ca then the video popped up. IE 6.0 on the same system works fine too. -- Jim Lucas http

Re: [PHP] API for something like phpsysinfo?

2011-11-22 Thread Jim Lucas
suggestions? Thanks, Greetings and nice Day/Evening Michelle Konzack Use the XML output option and parse returned data. -- Jim Lucas http://www.cmsws.com/ http://www.cmsws.com/examples/ http://www.bendsource.com/ C - (541) 408-5189 O - (541) 323-9113 H - (541) 323-4219 -- PHP General

Re: [PHP] Think I found a PHP bug

2011-11-15 Thread Jim Lucas
this function prior to any use of other date functions. I cannot find anything in the php manual confirming my last statement. YMMV 1 http://us3.php.net/manual/en/function.date-timezone-set.php 2 http://php.net/ChangeLog-5.php#5.1.0 -- Jim Lucas http://www.cmsws.com/ http://www.cmsws.com/examples

[PHP] Re: Novice MySQL problem

2011-11-14 Thread Jim Giner
Actually, no it doesn't, since I have a well-developed sense of all of that, but that's not helping to answer the OP's question now, is it? Stay on point. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Novice MySQL problem

2011-11-13 Thread Jim Giner
drive view drivev...@gmail.com wrote in message news:cam4sn2ip7yncw2-2soq-vjk8suer7u5x96fvpeqoitkkcaj...@mail.gmail.com... Hi, I'm a novice to MySQL and am currently facing the following difficulty. I'm trying to update a table with a row of data the primary key of which is an ID which I

Re: [PHP] json_encode confusion

2011-11-10 Thread Jim Lucas
with his example is that the input key values do not have a trailing spaces. json is probably having an issue with that trailing spaces. -- Jim Lucas http://www.cmsws.com/ http://www.cmsws.com/examples/ http://www.bendsource.com/ C - (541) 408-5189 O - (541) 323-9113 H - (541) 323-4219 -- PHP

[PHP] Re: delete and recreate

2011-11-09 Thread Jim Giner
This really doesn't tell me what you are trying to do. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] delete and recreate

2011-11-09 Thread Jim Giner
Is anyone concerned about the OP's original statement about receives a password via query string. Perhaps that is his problem since he did mention it? I didn't attempt to answer it because I didn't know what/why he was prompting for a password. -- PHP General Mailing List

Re: [PHP] delete and recreate

2011-11-09 Thread Jim Lucas
. a) What the code is doing. b) What you expect the code to be doing. -- Jim Lucas http://www.cmsws.com/ http://www.cmsws.com/examples/ http://www.bendsource.com/ H - (541) 323-4219 C - (541) 408-5189 O - (541) 323-9113 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit

[PHP] Re: Writing out errors to a file

2011-11-03 Thread Jim Giner
Try reading the manual on set_error_handler. I've never needed to do this kind of thing, but this sure looks like something that could do it. Basically, I'm imagining that it would open a file handle on some text file in some folder, then append a write of mysql_error() to that file and

[PHP] Re: Placing the masterpassword

2011-11-01 Thread Jim Giner
I've always thought that it was pretty safe to store this kind of material outside of the web-browser accessible path of your host. Of course, you then have to be careful who has access to your site via ftp. Let's see what comes of this question :) -- PHP General Mailing List

Re: [PHP] Placing the masterpassword

2011-11-01 Thread Jim Giner
I store things like this in a file above the document root - so not grabbable by URL. Don't store it in the code ... you then end up with the password stored in several places then difficult to change. -- Alain Williams Linux/GNU Consultant - Mail systems, Web sites, Networking,

Re: [PHP] Exporting large data from mysql to html using php

2011-10-31 Thread Jim Lucas
records in all. Will you show us your DB schema? -- Jim Lucas http://www.cmsws.com/ http://www.cmsws.com/examples/ http://www.bendsource.com/ C - (541) 408-5189 O - (541) 323-9113 H - (541) 323-4219 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net

[PHP] Why does this script run out of memory?

2011-10-28 Thread Jim Long
the row size doesn't seem very large. Why is this running out of memory? Thank you! Jim ?php $test_db_host = localhost; $test_db_user = foo; $test_db_pwd = bar; $test_db_name = farkle; $db_host = $test_db_host; $db_user = $test_db_user; $db_name = $test_db_name; $db_pwd = $test_db_pwd

Re: [PHP] Why does this script run out of memory?

2011-10-28 Thread Jim Long
On Fri, Oct 28, 2011 at 01:21:36PM -0400, Eric Butera wrote: On Fri, Oct 28, 2011 at 12:38 PM, Jim Long p...@umpquanet.com wrote: I'm running PHP 5.3.8 on FreeBSD 8.2 with MySQL 5.1.55. The script below is designed to be able to WHILE it's way through a MySQL query result set, and process

Re: Re: [PHP] Why does this script run out of memory?

2011-10-28 Thread Jim Long
On Fri, Oct 28, 2011 at 01:32:32PM -0400, James wrote: On Fri, Oct 28, 2011 at 12:38 PM, Jim Long p...@umpquanet.com wrote: I'm running PHP 5.3.8 on FreeBSD 8.2 with MySQL 5.1.55. The script below is designed to be able to WHILE it's way through a MySQL query result set, and process

Re: [PHP] BP for Looping through an Array

2011-10-28 Thread Jim Long
On Fri, Oct 28, 2011 at 12:09:24PM -0600, George Langley wrote: Hi all. Am wondering if there is a best practice for looping through an array, when you need both the item and its position (ie. 1, 2, 3). The two ways I know of: // the for loop tracks the position and you get each

Re: [PHP] Why does this script run out of memory?

2011-10-28 Thread Jim Giner
If all you want to do is count the records, why are you not letting sql do it for you instead of doing the while loop? That's all that script is doing, if that is the exact code you ran. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Why does this script run out of memory?

2011-10-28 Thread Jim Long
On Fri, Oct 28, 2011 at 03:24:37PM -0400, Jim Giner wrote: If all you want to do is count the records, why are you not letting sql do it for you instead of doing the while loop? That's all that script is doing, if that is the exact code you ran. Hi, Jim. Thank you for replying. One

Re: [PHP] Why does this script run out of memory?

2011-10-28 Thread Jim Long
On Fri, Oct 28, 2011 at 03:42:48PM -0400, Eric Butera wrote: On Fri, Oct 28, 2011 at 3:29 PM, Daniel Brown danbr...@php.net wrote: On Fri, Oct 28, 2011 at 13:25, Jim Long p...@umpquanet.com wrote: Eric: Thanks for your reply. process row here is a comment. ??It doesn't do anything

Re: [PHP] Why does this script run out of memory?

2011-10-28 Thread Jim Long
On Fri, Oct 28, 2011 at 02:57:02PM -0700, Tommy Pham wrote: On Fri, Oct 28, 2011 at 9:38 AM, Jim Long p...@umpquanet.com wrote: I'm running PHP 5.3.8 on FreeBSD 8.2 with MySQL 5.1.55. Jim, Installed from packages or standard port tree build? Did you do any tweak for the ports build

Re: [PHP] mysql_fetch_array() vs mysql_fetch_assoc() WAS: Re: [PHP] Why does this script run out of memory?

2011-10-28 Thread Jim Long
On Fri, Oct 28, 2011 at 06:19:56PM -0400, Daniel Brown wrote: On Fri, Oct 28, 2011 at 18:13, Paul Halliday paul.halli...@gmail.com wrote: Whats the difference between fetch_assoc and fetch_row? I use: while ($row = mysql_fetch_row($theQuery)) { ? ?doCartwheel; } on just under

[PHP] Re: array_unique by id multi-dimensional array

2011-10-27 Thread Jim Giner
i want to filter the array by [id] sub value? The PHP manual is a source of infinite knowledge. A simple entry of array in the search for field brings up just what you need. Have at it! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] Exporting large data from mysql to html using php

2011-10-27 Thread Jim Giner
Good luck, that's a LOT of reading. I'd estimate that's about 3k+ pages of reading. :) Regards, Tommy nice to see someone else is finally getting the point that I'm been making. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] Exporting large data from mysql to html using php

2011-10-26 Thread Jim Giner
Your boss wants to give access to phone numbers to the public in general? Then what? Glad mine's unlisted. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Exporting large data from mysql to html using php

2011-10-25 Thread Jim Giner
I disagree. It's not about tuning the queries, it is more about the appl. design that currently thinks it SHOULD do such huge queries. My approach would be to prompt the user for filtering criteria that automatically would reduce the result set size. Although at this time I believe the OP

Re: [PHP] Exporting large data from mysql to html using php

2011-10-25 Thread Jim Giner
, 2011, at 10:51 AM, Jim Giner wrote: I disagree. It's not about tuning the queries, it is more about the appl. design that currently thinks it SHOULD do such huge queries. My approach would be to prompt the user for filtering criteria that automatically would reduce the result set size

Re: [PHP] Exporting large data from mysql to html using php

2011-10-25 Thread Jim Giner
David Robley robl...@aapt.net.au wrote in message news:49.50.34068.1b567...@pb1.pair.com... Consider running EXPLAIN on all your queries to see if there is something Mysql thinks could be done to improve performance. Why do so many responders seem to think the problem here is in the

Re: [PHP] Exporting large data from mysql to html using php

2011-10-25 Thread Jim Giner
- Original Message - From: Jason Pruim li...@pruimphotography.com To: Jim Giner jim.gi...@albanyhandball.com Cc: php-general@lists.php.net Sent: Tuesday, October 25, 2011 10:06 PM Subject: Re: [PHP] Exporting large data from mysql to html using php It turns out the issue was actually

Re: [PHP] Exporting large data from mysql to html using php

2011-10-24 Thread Jim Giner
Why would any user need to have access to 89M records? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Exporting large data from mysql to html using php

2011-10-24 Thread Jim Giner
Yes - but - we're talking about a user-app that the OP is trying to provide 89M records to. Sure - some users might have need of looking at even as much as a million records IF they were researching something that needed it. But - for the 'general' user of an app - I cannot see a need to be

Re: [PHP] Re: Problem of load balance among php-cgi process

2011-10-20 Thread Jim Lucas
On 10/20/2011 5:20 AM, sean chen wrote: The red one is busy My email client is color blind. -- Jim Lucas http://www.cmsws.com/ http://www.cmsws.com/examples/ http://www.bendsource.com/ C - (541) 408-5189 O - (541) 323-9113 H - (541) 323-4219 -- PHP General Mailing List (http://www.php.net

Re: [PHP] Questions Regarding Recent Ubuntu PHP5 Security Announcement

2011-10-19 Thread Jim Lucas
still apply, but it is going to be up to you to figure out what the security issue is and verify your system in some manor. -- Jim Lucas http://www.cmsws.com/ http://www.cmsws.com/examples/ http://www.bendsource.com/ C - (541) 408-5189 O - (541) 323-9113 H - (541) 323-4219 -- PHP General Mailing

Re: [PHP] Questions Regarding Recent Ubuntu PHP5 Security Announcement

2011-10-19 Thread Jim Lucas
On 10/19/2011 8:05 AM, Jon Watson wrote: On Wed, Oct 19, 2011 at 11:54 AM, Jim Lucas li...@cmsws.com wrote: On 10/19/2011 7:00 AM, Jon Watson wrote: Hello All, I am trying to make some sense of this PHP5 security vulnerability notice from 18 October 2011: http://comments.gmane.org

Re: [PHP] Check variable value if change inside the Loop

2011-10-19 Thread Jim Lucas
. 'br /'; } ... } Either one should give you the same results. -- Jim Lucas http://www.cmsws.com/ http://www.cmsws.com/examples/ http://www.bendsource.com/ C - (541) 408-5189 O - (541) 323-9113 H - (541) 323-4219 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http

[PHP] Re: PHP Version: 5.2.5.

2011-10-17 Thread Jim Giner
what did you name your file? If it didn't have a .php extension, it won't work. Joseph Adenuga jadenu...@yahoo.com wrote in message news:1318859708.50026.yahoomailclas...@web29517.mail.ird.yahoo.com... Operating System: Window XP PHP Version: 5.2.5. with Apache 2.2.8 My Firefox browser

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

2011-10-16 Thread Jim Giner
tamouse mailing lists tamouse.li...@gmail.com wrote in message news:cahuc_t8icx4y4mca05rrgzopv4ze7hwsndaiyjjmdvbambv...@mail.gmail.com... In Sat, Oct 15, 2011 at 7:57 PM, Stephen stephe...@rogers.com wrote: \label for=category_oneCategory One/label input type=text name=category_one

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

2011-10-16 Thread Jim Giner
Tedd Sperling tedd.sperl...@gmail.com wrote in message news:4c4ff11f-24ea-48cc-a367-48803df58...@gmail.com... 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

<    1   2   3   4   5   6   7   8   9   10   >