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

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

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

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

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

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
, 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/) To unsubscribe, visit: http://www.php.net/unsub.php

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

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

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

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

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

Re: [PHP] Please unsubscribe

2011-10-10 Thread Jim Lucas
On 10/10/2011 8:26 AM, Joao Coelho wrote: I have been sending emails to this list to unsubscribe and i still receive emails. To unsubscribe, visit: http://www.php.net/unsub.php -- Jim Lucas http://www.cmsws.com/ http://www.cmsws.com/examples/ http://www.bendsource.com/ C - (541) 408

Re: [PHP] using passthru or system() even and passing the $_FILES array

2011-09-28 Thread Jim Lucas
On 9/28/2011 12:07 AM, Anton Heuschen wrote: Good day, I have a question and something that either does not work, or I have not gotten it to work the way I want to. I have a start page, which is a form, that takes 2 text fields and also a Attachment field. Then it calls the first page,

Re: [PHP] Curl cost

2011-09-28 Thread Jim Lucas
On 9/28/2011 1:28 AM, muad shibani wrote: what are the costs of using PHP Curl to show another websites on my site as stumbleon do .. traffic, memory or what? That isn't how stumbleupon does it. You might want to take a closer look at the HTML to see how they do what they do. -- PHP

Re: [PHP] Curl cost

2011-09-28 Thread Jim Lucas
On 9/28/2011 9:05 AM, Daniel Brown wrote: On Wed, Sep 28, 2011 at 11:54, Jim Lucas li...@cmsws.com wrote: That isn't how stumbleupon does it. You might want to take a closer look at the HTML to see how they do what they do. He said stumbleON, actually. Looks like they simply

Re: [PHP] book quest

2011-09-28 Thread Jim Lucas
, the php-general mailing list and the wonderful members of this list, and Google have provided answers for all the questions I have ever needed to ask since. Jim Lucas -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Stop PHP execution on client connection closed

2011-09-14 Thread Jim Lucas
On 9/14/2011 1:04 AM, Marco Lanzotti wrote: Il 13/09/2011 20:58, Alex Nikitin ha scritto: Correction on Marco's post. You can absolutely stop a mysql query I know I can stop a query, but I don't know how to realize HTTP client has closed connection during query execution. My query count

Re: [PHP] Stop PHP execution on client connection closed

2011-09-13 Thread Jim Lucas
this means is PHP will not be able to do anything else until the db has finished its step and handed data back to the processing script. At that point, you can check to see if the connection is still active and take appropriate action. Jim Lucas -- PHP General Mailing List (http://www.php.net

Re: [PHP] Stop PHP execution on client connection closed

2011-09-13 Thread Jim Lucas
On 9/13/2011 11:58 AM, Alex Nikitin wrote: On Tue, Sep 13, 2011 at 11:44 AM, Jim Lucas li...@cmsws.com wrote: On 9/12/2011 7:40 AM, Marco Lanzotti wrote: Hi all, I'm new in the list and I already have a question for you. I'm running an heavy query on my DB in a PHP script called by AJAX

Re: [PHP] What would you like to see in most in a text editor?

2011-09-13 Thread Jim Lucas
On 9/13/2011 5:23 PM, tamouse mailing lists wrote: On Tue, Sep 13, 2011 at 3:35 PM, Robert Cummings rob...@interjinn.com wrote: I'm a big fan of editors that work in the terminal. You'll get my emacs when you pry it out of my cold dead hands. +1 mg too -- PHP General Mailing List

Re: [PHP] What would you like to see in most in a text editor?

2011-09-13 Thread Jim Lucas
On 9/13/2011 7:11 PM, Brad Huskins wrote: Oh geez. Didn't mean to start a flame war... Quit fanning it then... :) On 09/13/2011 08:56 PM, James Yerge wrote: On 09/13/2011 08:40 PM, Jim Lucas wrote: On 9/13/2011 5:23 PM, tamouse mailing lists wrote: On Tue, Sep 13, 2011 at 3:35 PM, Robert

Re: [PHP] Dreaded Premature end of script headers

2011-08-26 Thread Jim Lucas
does NOT fail in dev, test and stage, only production. Well, you might have to go about this the long way. I suggest you cut larger sections of code out until you get a working script. Then start putting it back together. Jim Lucas -- PHP General Mailing List (http://www.php.net

Re: [PHP] Problem with inserting numbers...

2011-08-11 Thread Jim Lucas
. Jim Lucas -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Problem with inserting numbers...

2011-08-11 Thread Jim Lucas
-indexes for 1 separate INSERT statements. Cuts the DB processing time down a lot. Also, just so you know, if you place set_time_limit(0); at the top of the script, it will allow the script to run as long as it needs to. See: http://php.net/manual/en/function.set-time-limit.php Jim Lucas

Re: [PHP] using pg_query in a function not working

2011-08-05 Thread Jim Lucas
On 8/5/2011 12:08 PM, Marc Fromm wrote: I have to sql statements in functions to use in my code. Even though the echo statements show the sql is valid the sql does not seem to execute and I get the error, PHP Warning: pg_fetch_object() expects parameter 1 to be resource, boolean given in

Re: [PHP] Sending a message

2011-08-04 Thread Jim Lucas
On 8/5/2011 9:49 PM, wil prim wrote: Ok so I have tried to create a sort of messaging system on my website and I have run into some problems storing who the message is from, ill try to take you through step by step what I am trying to do. *step #1 *(messages.php):--This is where the member

Re: [PHP] I can't execute pf commands

2011-07-29 Thread Jim Lucas
On 7/28/2011 9:09 AM, Bulent Malik wrote: Hi I use php5.3 on freebsd I also use pf ( packet filter) on it. I need to execute pfctl in php script. But I couldn't execute . I don't get any errors about that. Shell commands is allowed in php.ini My My script is below,

Re: [PHP] Re: PHP frameworks

2011-07-21 Thread Jim Lucas
On 7/21/2011 4:00 PM, Micky Hulse wrote: +1 for CI. If you search the group archives, a little while back I asked about micro PHP frameworks and got a ton of good replies. So folks, how'z about a PHP framework with a built-in admin interface? That would be pretty sweet. :) So, what

Re: [PHP] Fwd: ezmlm warning

2011-07-20 Thread Jim Lucas
People, it isn't a problem with your mail server, it is a problem with the lists.php.net IP address. It got on another SPAM list. I had to modify my SPAM filtering to allow it through a few years ago. Currently it is listed on [1], and [2] If I had to guess, qmail had an internal error and had

Re: [PHP] chained select with ajax

2011-07-18 Thread Jim Lucas
On 7/17/2011 11:38 AM, Chris Stinemetz wrote: Thanks all. I am trying to create a cascading seletct with 3 menu choices. For some reason my third select menu is not populating. It doesn't seem like my ajax is correctly sending $_post values to the final query in my PHP class I built. By the

Re: [PHP] is_null() and is_string() reversed when using in switch case statements... [SOLVED]

2011-07-15 Thread Jim Lucas
; } Can you give an example of where this might be useful? Jim Lucas -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] PEAR Mail $obj-send()

2011-07-08 Thread Jim Lucas
On 7/8/2011 9:50 AM, Brian Smither wrote: A client has: PHP 5.3 on Win7x64 running a local web app that needs to send mail. (This app was once hosted on a linux-based hosted space.) Apache 2.2 is installed but apparently not being used. I think the IIS service is actually the web server

Re: [PHP] Re: Re: Top Posting

2011-07-06 Thread Jim Lucas
On 7/5/2011 7:52 PM, Jim Giner wrote: And what do you use to cut down on spam in your in-box? This is completely off topic, but here it goes... When I received an email the other day from your mail server, I had created this crazy ass reply to your automatic request for a reply. But in turn,

Re: [PHP] Re: Top Posting

2011-07-05 Thread Jim Lucas
/SuperTool.aspx?action=blacklist%3a64.118.87.45 Jim Lucas -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Would like to subscribe to this mailing list

2011-07-04 Thread Jim Lucas
On 7/3/2011 9:37 PM, Brian Dworkin wrote: I would like to subscribe to this mailing list please. Thanks. Sincerely, Brian Dworkin Managing Partner Bright Telecom 201-892-9553 (mobile #) br...@brighttelecom.net http://www.brighttelecom.net http://php.net/mailing-lists.php will

Re: [PHP] Re: Php filter validate url

2011-06-27 Thread Jim Lucas
, $allowed) { // Protocol not valid! exit(1); // or return FALSE; whatever... } Seems a little less muddy to me. Jim Lucas -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: asynchronous launch of a script

2011-06-26 Thread Jim Lucas
On 6/26/2011 7:58 PM, Jim Giner wrote: You mean - you want a second thread to run independently of your current running script? A wonderful thing to do and helpful for long intenesive processes but do you really want to go thru the hassles of managing two processes? Won't you have to verify

Re: [PHP] jQuery to PHP

2011-06-22 Thread Jim Lucas
On 6/22/2011 12:43 PM, Tim Streater wrote: On 22 Jun 2011 at 19:44, Ethan Rosenberg eth...@earthlink.net wrote: I have a PHP program which will generate a chess board with a form in the program. I wish to fill the form by clicking one of the squares in the chess board. I am trying to use

Re: [PHP] help with an array if its possible!

2011-06-22 Thread Jim Lucas
On 6/22/2011 3:43 PM, Adam Preece wrote: Hi Gang! i have 2 assoc arrays from 2 querys, first one is page categorys it consists of: id name second is pages name cat_id now, i am using smarty, so i pass arrays into the view. this i would like to pass to

Re: [PHP] Doctrine madness!

2011-06-17 Thread Jim Lucas
-stop since August 2007 with minimal maintenance needed. Jim Lucas -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Doctrine madness!

2011-06-17 Thread Jim Lucas
On 6/17/2011 12:23 PM, Eric Butera wrote: On Fri, Jun 17, 2011 at 3:19 PM, Jim Lucas li...@cmsws.com wrote: On 6/16/2011 3:15 PM, Nathan Nobbe wrote: what it really amounts to is php is good at doing 1 thing and 1 thing only, generating web pages. for anything else, including command line

Re: [PHP] trying to combine two forms into a single form

2011-06-09 Thread Jim Lucas
On 6/9/2011 5:37 AM, matty jones wrote: formEl.action += 'title=' + formEl['_title'].value; The only thing I see inconsistent is the above line. But then again, it could be right. You might be looking for $_GET['title'] in your processing page instead of $_GET['_title'] -- PHP

Re: [PHP] trying to combine two forms into a single form

2011-06-09 Thread Jim Lucas
on jQuerry, I will look into it. On Thu, Jun 9, 2011 at 10:53 AM, Jim Lucas li...@cmsws.com wrote: On 6/9/2011 5:37 AM, matty jones wrote: formEl.action += 'title=' + formEl['_title'].value; The only thing I see inconsistent is the above line. But then again, it could be right

Re: [PHP] advice on how to build this array from an array.

2011-06-07 Thread Jim Lucas
On 6/7/2011 2:44 PM, Adam Preece wrote: hi, thanks for your reply. i have figured out, well kind of, and got the data i need but the problem is its nested within to many arrays! Array ( [threads form types] = Array ( [0] = Array ( [name] = imperial thread form

Re: [PHP] Can't use class 'DOMDocument

2011-06-06 Thread Jim Lucas
On 6/6/2011 6:49 PM, Adam Tong wrote: Hi, When I try using DOMDocument I get the following error: Fatal error: Class 'DOMDocument' not found in ... I guess something has to be fixed in my php.ini? Here is my php version: # php -version PHP 5.3.6 (cli) (built: Mar 17 2011 20:58:15) Copyright

Re: [PHP] phpsadness

2011-05-31 Thread Jim Lucas
need it. Why not do it the other way around... $alphabet_array=range('a','z'); $alphabet=join($alphabet_array); $letter_numbers=array_flip($alphabet_array); Jim Lucas -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] i need delay time in doing array_key_exists but while(true) can't work 4 it.

2011-05-20 Thread Jim Lucas
Negin, You cannot pause PHP. You need to do your checking and header() redirect on a processing page that your form is submitting to. file process form.php Displays form process.phpdecide what to you, redirect to secondary page secondary.php display your secondary page On

Re: [PHP] Customize link

2011-05-05 Thread Jim Lucas
On 5/5/2011 3:38 PM, Michael Simiyu wrote: Dan, thanks for the reply.this is the code that shows/lists the categories you need to make the following check look at $_GET instead of $_POST. Or, I hate to suggest it, you can use $_REQUEST. It includes $_GET, $_POST, and others all in one

Re: [PHP] Re: PHP delete confirmation

2011-04-29 Thread Jim Lucas
On 4/29/2011 12:06 AM, Geoff Lane wrote: On Friday, April 29, 2011, ad...@buskirkgraphics.com wrote: Personally I would use the javascript page navigation is senseless if they miss click. Javascript: Small and simple javascript. onclick=return confirm('Are you sure you want to

Re: [PHP] str_replace

2011-04-25 Thread Jim Lucas
On 4/24/2011 8:44 AM, Ron Piggott wrote: I am trying to figure out a syntax that will replace each instance of % with a different letter chosen randomly from the string $puzzle_filler. $puzzle_filler is populated with the letters of the alphabet, roughly in the same ratio as they are

Re: [PHP] the best 1 book for php

2011-04-06 Thread Jim Lucas
-- Jim Lucas www.cmsws.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] randomly random

2011-04-05 Thread Jim Lucas
be done in one line: ?php echo array_rand(@file(@$filename), 1); # if you wanted to do a couple checks, you could do the following if ( is_file(@$filename) filesize($filename) 0 ) echo array_rand(file($filename), 1); ? Jim Lucas -- PHP General Mailing List (http://www.php.net

Re: [PHP] Deleting elements from the middle of an array

2011-03-15 Thread Jim Lucas
On 3/14/2011 2:02 PM, Jim Lucas wrote: On 3/14/2011 1:31 PM, Paul M Foster wrote: Here's what I need to do: I have an indexed array, from which I need to delete elements in the middle. Once completed, the indexes should be numerically in sequence, as they were when I first encountered

Re: [PHP] Re: $_POST variable

2011-03-11 Thread Jim Lucas
=radio name=radio_?php echo $result_from_mysql; ? value=1 /One Then I would do the following: foreach ($_POST as $k = $v) { if ( strpos(trim($k), 'radio_') === 0 ) { echo $k.' is a match, and it\'s value is '.$v.'.br/'.PHP_EOL; } } Jim Lucas -- PHP General Mailing List (http://www.php.net

Re: [PHP] CanĀ“t upload files bigger than 50KB

2011-03-09 Thread Jim Lucas
On 3/9/2011 6:28 AM, Gotzon Astondoa wrote: Hi all: On my website I have an Ajax form. From this form user can upload files. My guess would be that you have an HTML form. Not AJAX Server side is a PHP script. This form works properly on my development server. Is this on localhost or is

Re: [PHP] Help translating PHP5 code to PHP4.

2011-03-08 Thread Jim Lucas
will probably have to make is to set the following in your php.ini file. allow_url_include = On and/or allow_url_fopen = On This would allow fopen to open the external URL and grab the data returned. Jim Lucas -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net

Re: [PHP] Re: Possible bug in PHP 5.3.5 with OAuth extension?

2011-03-04 Thread Jim Lucas
On 3/4/2011 5:18 PM, Daniel Hong wrote: Correction: I stated the incorrect version of PHP that does not seem to have this issue. The version of PHP that works correctly is 5.3.2, not 5.3.3. Can you give us an example of what you are doing? Jim Lucas Thanks, daniel On Fri, Mar 4

Re: [PHP] Help needed with mysql import

2011-03-02 Thread Jim Lucas
On 3/2/2011 4:25 AM, Alex wrote: You shouldn't have a default value in an auto increment field. You can set AUTO_INCREMENT to 0 and start with 1, but as auto increment is a unique field and its automagically incremented, you should not set a default value on it... This is fine and dandy

Re: [PHP] Help needed with mysql import

2011-03-02 Thread Jim Lucas
On 3/2/2011 9:48 AM, Ashley Sheridan wrote: Jim Lucas li...@cmsws.com wrote: On 3/2/2011 4:25 AM, Alex wrote: You shouldn't have a default value in an auto increment field. You can set AUTO_INCREMENT to 0 and start with 1, but as auto increment is a unique field and its automagically

Re: [PHP] Sorting an array

2011-03-01 Thread Jim Lucas
://dev.mysql.com/doc/refman/5.0/en/select.html and http://dev.mysql.com/doc/refman/5.0/en/order-by-optimization.html Jim Lucas -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Why is this array_walk_recursive action not working?

2011-02-24 Thread Jim Lucas
, $key) { $item = $key holds $item\n; } array_walk_recursive($karamohArray, 'test_print'); print_r($karamohArray); Give this a try and let us know. Jim Lucas -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: Dynamically Created Checkboxes

2011-02-23 Thread Jim Lucas
On 2/23/2011 4:35 AM, Gary wrote: Pete Ford p...@justcroft.com wrote in message news:62.c1.32612.d49d4...@pb1.pair.com... This bit? On 22/02/11 22:06, Gary wrote: for($i=1; $i=$_POST['counties']; $i++) { if ( isset($_POST[county{$i}] ) ) { You loop over $_POST['counties'] and look for

Re: [PHP] Manipulating variables

2011-02-23 Thread Jim Lucas
}; } ? -- Jim Lucas http://www.cmsws.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] code quest

2011-02-14 Thread Jim Lucas
other HTML tags to present data. Jim Lucas -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] using BOTH GET and POST in the same page.

2011-02-12 Thread Jim Lucas
] = Jim Lucas ) Array ( [page_id] = 22 [action] = DelUser [FullName] = Jim Lucas ) Check out the example that I wrote here http://www.cmsws.com/?page_id=5 Jim Lucas -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Simplifying MySql queries

2011-02-12 Thread Jim Lucas
() LIMIT 4 This will probably do the distinct after the ORDER BY RAND(), but again, completely untested. YMMV Give them a whirl and let us know how it works out. Jim Lucas -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] file upload utility ?

2011-02-07 Thread Jim Lucas
scenario you can possibly think of. Just one thing, do not try and be a cut/paste god here. Actually take time to read the examples and understand what they do before you put them into production. This will now end my How to use Google segment for the day. Jim Lucas -- PHP General Mailing List

Re: [PHP] override built-in mail()

2011-02-04 Thread Jim Lucas
as though it was sendmail, accept the same arguments, etc... but do all the phpmailer stuff inside. Jim Lucas -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] PEAR PHP

2011-01-30 Thread Jim Lucas
extension? Again, http://www.google.com Enter what is a dynamic extension ... Here is a good result from the list returned http://www.atnf.csiro.au/computing/software/karma/programmer-manual/node17.html Thanks. Ethan I hope this gets you headed down the right path. Jim Lucas -- PHP

Re: [PHP] Counting Online users, but not using a Session Table in MySQL

2011-01-28 Thread Jim Lucas
WHERE logged_in = 't' AND last_activity FROM_UNIXTIME( UNIX_TIMESTAMP() - 1800 ) Jim Lucas -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Counting Online users, but not using a Session Table in MySQL

2011-01-28 Thread Jim Lucas
in a query on the users table, but it causes performance issues. David cron it. Setup a cron script that runs every 5 minutes. A seconds work every 5 minutes isn't too much is it? Jim Lucas -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Formatting

2011-01-25 Thread Jim Lucas
/manual/en/function.header.php#92620 If in cli... well, you wouldn't be having this problem... :) Jim Lucas -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] preg_replace question

2011-01-24 Thread Jim Lucas
you have control over the building of the initial phrase = link assoc? If so, reverse the order of these two items. Jim Lucas -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Script mysteriously restarting

2011-01-21 Thread Jim Lucas
On 1/21/2011 12:37 PM, Richard S. Crawford wrote: I've got a massive PHP script which takes nearly an hour to run. Sometimes, when it comes close to the end, it mysterious restarts itself and I have to wait for another hour for it to complete. Is there any reason why a PHP script would

Re: [PHP] [PHP]: permission problem www-data

2011-01-18 Thread Jim Lucas
On 1/18/2011 1:44 AM, Moses wrote: Hi Everyone, I am creating a file in PHP script which takes a value from a form and writes it to a file. However, i don't have the mode permission for the file instead it is owned by www-data.What can i do to ensure that the file is owned by me.

Re: [PHP] [PHP]: permission problem www-data

2011-01-18 Thread Jim Lucas
use that PHP instance for your web site to process all PHP requests. This is how we have our servers at the office setup. Works great. Jim Lucas -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] email list 101

2011-01-16 Thread Jim Lucas
() ) header('Location: http://www.example.com/done.php'); ? -- Jim Lucas DISCLAIMER: Unless otherwise noted, all code is untested! -- 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   9   10   >