[PHP] Re: isset empty or ...?

2013-03-31 Thread Jim Giner
On 3/31/2013 12:53 AM, John Taylor-Johnston wrote: I'm using if($mydata->DPRresponselocationaddress1 != "") is this the same as if (!isset($mydata->DPRresponselocationaddress)) http://php.net/manual/en/function.isset.php or if (!empty($mydata->DPRresponselocationaddress)) http://php.net/manu

[PHP] A relative date puzzle

2013-04-01 Thread Jim Giner
I'm looking for some ideas on how to handle the following get a datetime value that is relative to a specific future date when presented with a partial day &time value. Specifically, I have an appl that requires some lengthy input involving days and times. I have streamlined the d/e effort so

Re: [PHP] A relative date puzzle

2013-04-01 Thread Jim Giner
On 4/1/2013 2:32 PM, Mattias Thorslund wrote: On 4/1/13 11:15 AM, Mattias Thorslund wrote: On 4/1/13 11:05 AM, Jim Giner wrote: I'm looking for some ideas on how to handle the following get a datetime value that is relative to a specific future date when presented with a partial day

[PHP] Re: A relative date puzzle

2013-04-02 Thread Jim Giner
On 4/1/2013 2:05 PM, Jim Giner wrote: I'm looking for some ideas on how to handle the following get a datetime value that is relative to a specific future date when presented with a partial day &time value. Specifically, I have an appl that requires some lengthy input involving days

Re: [PHP] Empty $_POST after submit.

2013-04-04 Thread Jim Giner
On 4/4/2013 7:02 AM, Ashley Sheridan wrote: I've noticed the first line looks a little odd. It might be valid, just probably not the way I've ever done it. For my own sanity, could you try changing it to: if (isset($_POST['lastname']) && isset($_POST['lastname'])) Thanks, Ash http://www.ash

[PHP] Re: Empty $_POST after submit.

2013-04-04 Thread Jim Giner
I took your script and added some stuff. Call it "testisset.php", upload it and try to run it. Script below - Please copy and run it EXACTLY as written: "; foreach($_POST as $k=>$v) $errmsg .= "$k is $v"; if (isset($_POST['submit'])) { if (isset($_POST['lastname'], $_POST['last

[PHP] Re: how to insert html code with PHP

2013-04-11 Thread Jim Giner
On 4/11/2013 7:34 AM, Rafnews wrote: Hi, I would like to insert a piece of HTML code inside several pages. all pages are differently named. i need in each page to find a particular tag, let's say ... (so based on its ID and tagname) and inside it to insert my PHP/HTML code. how can i do that ?

[PHP] Re: how to insert html code with PHP

2013-04-11 Thread Jim Giner
On 4/11/2013 10:48 AM, Rafnews wrote: On 11.04.2013 13:34, Rafnews wrote: Hi, I would like to insert a piece of HTML code inside several pages. all pages are differently named. i need in each page to find a particular tag, let's say ... (so based on its ID and tagname) and inside it to insert

Re: [PHP] mysql_connect noob question

2013-04-19 Thread Jim Giner
On 4/19/2013 9:33 PM, Glob Design Info wrote: They aren't on the same server. The DB is on xeround.com, the web server is localhost. The host value is set and working. If I hard-code the user and password values in the mysql_connect() call and leave the host value as is, it connects fine. Only p

Re: [PHP] mysql_connect noob question

2013-04-19 Thread Jim Giner
On 4/20/2013 12:23 AM, Glob Design Info wrote: No, no spaces. I am wondering if I need to use htmlspecialchars() On Apr 19, 2013, at 7:17 PM, Jim Giner wrote: On 4/19/2013 9:33 PM, Glob Design Info wrote: They aren't on the same server. The DB is on xeround.com, the web server is loca

Re: [PHP] mysql_connect noob question

2013-04-20 Thread Jim Giner
Why are you allowing anyone to connect to your database from a form? Cheers, tedd _ tedd.sperl...@gmail.com http://sperling.com A little OT, but... What do you mean by this question? How do you check someone's credentials if not by connecting to a db to verify the login

Re: [PHP] mysql_connect noob question

2013-04-20 Thread Jim Giner
On 4/20/2013 11:44 AM, Stuart Dallas wrote: On 20 Apr 2013, at 16:25, Jim Giner wrote: Why are you allowing anyone to connect to your database from a form? A little OT, but... What do you mean by this question? How do you check someone's credentials if not by connecting to a db to v

Re: [PHP] mysql_connect noob question

2013-04-22 Thread Jim Giner
On 4/21/2013 7:35 PM, Glob Design Info wrote: A very complex solution that takes time to learn, configure, and install, vs. a single file I can toss on the server. Over-engineering is what is daft. As has been pointed out to you - your simplistic approach to this task is going to cost you big

Re: [PHP] mysql_connect noob question

2013-04-23 Thread Jim Giner
On 4/23/2013 10:39 AM, Glob Design Info wrote: Well all, it turns out the *correct* answer to my question, which no one answered, and which only degenerated into a kindergarten-like argument is: "You need to add the port # to the *end* of the mysql_connect() call". i.e.: $link = mysqli_connect

[PHP] IE 10 bug?

2013-04-24 Thread Jim Giner
I know - it sounds OT, but listen. I have a form that has a "sign in " button which attempts to sent the user to a form in a password-protected folder. In order to get there the user must provide credentials. Once there the receiving script simply sets a session var and does a header() back

Re: [PHP] Updated PHP breaks processing-intense Procedure

2013-04-24 Thread Jim Lucas
nt machine). The appearance is wrong; it is still broken. No errors are being thrown. We are baffled. Ken If you have the Suhosin patch installed, it also introduces other limits to GET and POST variable counts within PHP. -- Jim Lucas http://www.cmsws.com/ http://www.cmsws.com/examples/ -- P

Re: [PHP] Updated PHP breaks processing-intense Procedure

2013-04-24 Thread Jim Lucas
On 04/24/2013 03:24 PM, Ken Kixmoeller wrote: Thanks, Jim --- Is this different from the "max_input_vars" discussion above? (from David OBrien) yes. For example... php.ini:[suhosin] php.ini:;suhosin.log.syslog = php.ini:;suhosin.log.syslog.facility = php.ini:;suhosin.log.syslo

[PHP] Re: IE 10 bug? Ignore this post - definitely OT

2013-04-26 Thread Jim Giner
On 4/24/2013 2:01 PM, Jim Giner wrote: I know - it sounds OT, but listen. I have a form that has a "sign in " button which attempts to sent the user to a form in a password-protected folder. In order to get there the user must provide credentials. Once there the receiving script sim

Re: [PHP] generate onfly PDF

2013-05-04 Thread Jim Giner
On 5/4/2013 6:31 PM, Rafnews wrote: On 04.05.2013 23:05, Tedd Sperling wrote: On May 4, 2013, at 5:00 PM, Ashley Sheridan wrote: Rafnews wrote: Is there a solution to generate onfly PDF from HTML page, and from data user typed in form (let's say like a template) without using PECL ? i read t

[PHP] Re: array_map() with multiple callback functions

2013-05-08 Thread Jim Giner
On 5/7/2013 5:29 PM, George Langley wrote: Hi all. I want to apply strtolower() AND trim() to all items in an array. But I don't see a way to call multiple callbacks with the array_map() function. Are my two choices the following: // 1) nesting two array_map() calls $cleanData = array_map('trim

[PHP] Re: Sync CSV files with MySQL Database.

2013-05-11 Thread Jim Giner
On 5/11/2013 12:57 AM, Carlos Sura wrote: Hello mates, Perhaps this seems to be a silly question, but it is not to me, here is the scenario: I know how to import CSV files with PHP to a MySQL database, the thing is, that CSV file is automatically feed by a third-party application, I want to do

Re: [PHP] undef func - any more clues ?

2013-05-13 Thread Jim Lucas
odbc working at the CLI and with Apache. Here first is an example of what I got when trying to call odbc_connect() without the proper packages installed from the CLI. [root@jim ~]# php -r "odbc_connect();" PHP Fatal error: Call to undefined function odbc_connect() in Command line co

Re: [PHP] undef func - any more clues ?

2013-05-14 Thread Jim Lucas
- Original Message - From: "Jim Lucas" To: "georg" Cc: ; Sent: Tuesday, May 14, 2013 3:25 AM Subject: Re: [PHP] undef func - any more clues ? On 05/12/2013 10:34 AM, georg wrote: Hi Im not really following, I have done: pecl list-all ; but dont find anything that

[PHP] Re: pass parameter via URL

2013-05-20 Thread Jim Giner
On 5/20/2013 9:17 AM, iccsi wrote: I would like to know how can I pass a parameter via URL using control value on the form. something like myPage.php?MyID=txtMyID.value I can use myPage.php?MyID=1, but cannot use myPage.php?MyID=txtMyID.value. Your help and information is great appreciated, Reg

[PHP] Re: pass parameter via URL

2013-05-20 Thread Jim Giner
On 5/20/2013 10:06 AM, iccsi wrote: Thanks a million for helping, I just need to have a JS function to return a string var which contains my variable from sending page and call the function onClick on the button. Please let me know if I am wrong, Thanks again for helping, Regards, Iccsi, &quo

Re: [PHP] Random

2013-05-24 Thread Jim Giner
On 5/24/2013 3:04 AM, Last Hacker Always onpoint wrote: I needed something like this echo(rand(1,30)) On 5/24/13, Last Hacker Always onpoint wrote: okay thanks tamouse and others you think am not on point hmmm? I'll show you i am. On 5/24/13, tamouse mailing lists wrote: On Thu, May 23, 201

[PHP] Re: Can javascript or php help with this

2013-05-25 Thread Jim Giner
On 5/25/2013 4:33 PM, dealTek wrote: Hi all, I have a php form that has a pull down select for MONTH and one for YEAR - usually when the form is submitted you would combine them at the other end like 0517 (like credit card exp date) - but in this case I need to combine them prior to submittin

[PHP] Re: Can javascript or php help with this

2013-05-25 Thread Jim Giner
On 5/25/2013 4:33 PM, dealTek wrote: Hi all, I have a php form that has a pull down select for MONTH and one for YEAR - usually when the form is submitted you would combine them at the other end like 0517 (like credit card exp date) - but in this case I need to combine them prior to submittin

Re: [PHP] Re: Can javascript or php help with this

2013-05-26 Thread Jim Giner
On 5/25/2013 9:11 PM, dealTek wrote: On May 25, 2013, at 4:30 PM, Jim Giner wrote: So - create another field on your form. Add an onclick event to your submit button. Have it run a js function that takes the two fields and places them into the new field. function combineFields

[PHP] Re: Webpage Persistence Load balancing

2013-05-29 Thread Jim Giner
On 5/29/2013 8:03 AM, Al wrote: I'm having a webpage Persistence problem, it is intermittent. I suspect it is caused by load-balancing. Specifically: Users are connected to a webpage form to complete. Generally, everything is OK if they take a minute or even more to complete the form. However

Re: [PHP] REQUEST

2013-05-29 Thread Jim Giner
On 5/29/2013 12:51 PM, Stuart Dallas wrote: Please find your caps-lock key and turn it off! Also, please include the list when replying, or expect an invoice for my consulting services. On 29 May 2013, at 17:36, Last Hacker Always onpoint wrote: A SIMPLE MACHINE FUNCTION, IS A FORUM SITE S

Re: [PHP] REQUEST

2013-05-29 Thread Jim Giner
And after all I said - a few minutes of searching tells me that the SMF forum software (according to the simplemachines.org site itself) is written in a very familiar language - PHP. WITH a very familiar (to me) MySQL DB behind it. So apparently our erstwhile hacker can't yet recognize PHP sc

[PHP] Re: include() Error

2013-05-29 Thread Jim Giner
On 5/29/2013 1:39 PM, Ron Piggott wrote: Good morning all: I have recently purchased a computer and am using it as a dedicated server. A friend helped me install PHP and configure. I am saying this because I wonder if using a newer version of PHP (compared to my commercial web host) may be

Re: [PHP] REQUEST

2013-05-29 Thread Jim Giner
On 5/29/2013 5:45 PM, Tedd Sperling wrote: PS: I think it probably best not to rise to the bait from people who forgot to turn off their cap's key. You call it "bait"? I call it stupidity. Once no, more than once YES. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visi

Re: [PHP] REQUEST

2013-05-29 Thread Jim Giner
On 5/29/2013 5:53 PM, Matijn Woudt wrote: I'm surprised he didn't call himself la5T hax0R alwayZ 0nP01nT :) He apparently can't find the caps key - how would he ever type that string correctly on a consistent basis? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

[PHP] Re: limit access to php page

2013-05-29 Thread Jim Giner
On 5/29/2013 7:11 PM, Tim Dunphy wrote: Hello list, I've created an authentication page (index.php) that logs into an LDAP server, then points you to a second page that some folks are intended to use to request apache redirects from the sysadmin group (redirect.php). Everything works great so

Re: [PHP] Re: limit access to php page

2013-05-29 Thread Jim Giner
On 5/29/2013 9:20 PM, Glob Design Info wrote: On 5/29/13 6:14 PM, Jim Giner wrote: On 5/29/2013 7:11 PM, Tim Dunphy wrote: Hello list, I've created an authentication page (index.php) that logs into an LDAP server, then points you to a second page that some folks are intended to u

Re: [PHP] Re: limit access to php page

2013-05-30 Thread Jim Giner
On 5/29/2013 9:38 PM, tamouse mailing lists wrote: Okay, first off, your application *has* to have some entry point that *is* accessible to a browser; otherwise nothing will find it. Once again - I was wrong in my suggestion as Ashley has pointed out so correctly. Had to test it out this m

Re: [PHP] Re: limit access to php page

2013-05-30 Thread Jim Giner
On 5/30/2013 10:22 AM, tamouse mailing lists wrote: So - the include method still works, as would the single script 'controller' method. Within a php script any file is accessible (within your domain at least) and may therefore be included and execute. I want to throw in a caveat here, and th

[PHP] basic authentication usage

2013-06-10 Thread Jim Giner
Trying to learn how this works for a simple security need I have. Nothing serious, hence this experiment. My code: if (!isset($_SERVER['PHP_AUTH_USER'])) { header('WWW-Authenticate: Basic realm="My Realm"'); header('HTTP/1.0 401 Unauthorized'); echo 'You have chosen not to signin'; e

Re: [PHP] basic authentication usage

2013-06-10 Thread Jim Giner
On 6/10/2013 4:33 PM, Julian Wanke wrote: I think that the problem here is, that the unset of the $_SERVER["PHP_AUTH_USER"] variable is not affecting the client's browser. If you've got a directory protection, the browser needs a restart to show the login dialog before. I may be wrong because I'm

[PHP] Re: Newbie form question

2013-06-21 Thread Jim Giner
On 6/21/2013 10:09 AM, Karl-Arne Gjersøyen wrote: Hello. I have an application that generete HTML5 form in PHP. The form is written in a while loop and therefore the form field has exact same name for every row in the loop. And that is the problem. Because when my PHP document shall handle submi

[PHP] Re: Problem with variables

2013-06-25 Thread Jim Giner
On 6/25/2013 5:46 PM, Fernando A wrote: Hello, I am working with php and codeigniter, but I have not yet experienced. I need create a variable that is available throughout system. This variable contains the number of company and can change. as I can handle this? Thank you, very much! Ferd O

Re: [PHP] Reseting the auto-increment number in a MySQL database.

2013-06-26 Thread Jim Giner
On 6/26/2013 1:30 PM, Tedd Sperling wrote: On Jun 26, 2013, at 1:13 PM, Stuart Dallas wrote: On Wednesday, 26 June 2013 at 18:07, Tedd Sperling wrote: Hi gang: I have a client where their next auto-increment number just jumped from 2300 to 10 for reasons not understood. They want it

Re: [PHP] Reseting the auto-increment number in a MySQL database.

2013-06-26 Thread Jim Lucas
turned on, you might be able to rummage through the logs and see what happened and when it happened. -- Jim Lucas http://www.cmsws.com/ http://www.cmsws.com/examples/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Web dev, DB and "proper db design".

2013-07-04 Thread Jim Giner
On 7/4/2013 6:42 AM, Richard Quadling wrote: Hi. I've just had a conversation regarding DB, foreign keys and their benefits. I was told "I've never worked on a web application where foreign keys were used in the database". As someone who has spent 25 years working on accounting/epos systems on

[PHP] strlen ?

2013-07-05 Thread Jim Giner
Trying to manage line breaks in some output I'm generating and using strlen to measure the lengths of the strings I'm printing. Discovered something strange (to me!) in that strlen is returning +1 more than it should. The strings are from a query of my database - simple name fields. But eve

Re: [PHP] strlen ?

2013-07-05 Thread Jim Giner
On 7/5/2013 1:32 PM, shiplu wrote: On Fri, Jul 5, 2013 at 11:10 PM, Jim Giner wrote: Mike Hall comes back as 10, not 9 F.B. comes back as 5, not 4. Doesn't work for me. php > var_dump("Mike Hall", strlen("Mike Hall")); string(9) "Mike Hall" int(9)

Re: [PHP] strlen ?

2013-07-05 Thread Jim Giner
On 7/5/2013 2:42 PM, Matijn Woudt wrote: On Fri, Jul 5, 2013 at 8:39 PM, Jim Giner wrote: I checked them in the db manually. Clicked on the name, selected it, no extra space highlighted. Cursored through the length of the value - no extra movements. That does still not guarantee there

Re: [PHP] strlen ?

2013-07-05 Thread Jim Giner
On 7/5/2013 3:02 PM, Stephen wrote: On 13-07-05 02:50 PM, Jim Giner wrote: Now the question is - how the heck did I put that in there? Certainly not intentionally. The data is captured from a d/e screen I wrote and it simply grabs the post value and inserts a new record with that value along

Re: [PHP] strlen ?

2013-07-06 Thread Jim Giner
On 7/6/2013 2:59 AM, Lester Caine wrote: Jim Giner wrote: And the answer is - yes, there is a LF char at the end of my data in my whole table. Now the question is - how the heck did I put that in there? Certainly not intentionally. The data is captured from a d/e screen I wrote and it simply

[PHP] syntax question

2013-07-10 Thread Jim Giner
Can someone tell me what this syntax is? I looked around but don't see any mention of it. while(condition) : (statement); -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] syntax question

2013-07-10 Thread Jim Giner
Thanks! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Hmmm.. I think I need your advice here to get in correct direction...

2013-07-10 Thread Jim Giner
On 7/10/2013 8:30 AM, Karl-Arne Gjersøyen wrote: I am almost ready with my learning project in PHP/MySQL. I can register new product in stock. Add and increase the number and weight. I can move products between different storehouses I can also transfer products from store and onto a "truck docume

[PHP] Re: Fwd: Hmmm.. I think I need your advice here to get in correct direction...

2013-07-10 Thread Jim Giner
On 7/10/2013 8:37 AM, Karl-Arne Gjersøyen wrote: Sorry, the first mail in this subject run out for me. This is an updated one. I am almost ready with my learning project in PHP/MySQL. I can register new product in stock. Add and increase the number and weight. I can move products between diffe

Re: [PHP] Re: Fwd: Hmmm.. I think I need your advice here to get incorrect direction...

2013-07-10 Thread Jim Giner
On 7/10/2013 9:07 AM, Karl-Arne Gjersøyen wrote: 2013/7/10 Jim Giner On 7/10/2013 8:37 AM, Karl-Arne Gjersøyen wrote: Sorry, the first mail in this subject run out for me. This is an updated one. I am almost ready with my learning project in PHP/MySQL. I can register new product in stock

[PHP] Re: Query regarding temporarily-uploaded files

2013-07-10 Thread Jim Giner
On 7/10/2013 1:21 PM, Ajay Garg wrote: Hi all. I have a requirement, wherein I need to allow vanilla uploads of files to a HTTPD server. Any client can upload any number of files (one at a time). Also, there is just one directory, where the files get stored "finally" (that is, after being copie

Re: [PHP] Query regarding temporarily-uploaded files

2013-07-10 Thread Jim Giner
On 7/10/2013 2:15 PM, Ajay Garg wrote: Thanks Jim and Matijn for the quick replies. I will try to have a workaround. On Wed, Jul 10, 2013 at 11:09 PM, Matijn Woudt wrote: On Wed, Jul 10, 2013 at 7:21 PM, Ajay Garg wrote: Hi all. I have a requirement, wherein I need to allow vanilla

Re: [PHP] Query regarding temporarily-uploaded files

2013-07-10 Thread Jim Giner
On 7/10/2013 3:37 PM, Ajay Garg wrote: Thanks Jim and Anthony. Jim, You are right, your solution is doable. But one thing I am a little skeptical about, is what would be the percentage of the people willing to suggest a new name "immediately", versus the percentage of people who wou

[PHP] Re: Premature end of script

2013-07-17 Thread Jim Giner
On 7/17/2013 11:22 AM, R B wrote: Hello, 5 years ago, y developed a php system and was working fine. But 20 days ago, when y try to access to some pages (not all the pages), in the log appears this message and the page is not displayed: ==> /usr/local/apache/logs/error_log <== [Wed Jul 3 02:36:

[PHP] Re: Error checking ON

2013-07-17 Thread Jim Giner
On 7/17/2013 11:49 AM, Tedd Sperling wrote: Hi gang: Considering: On Jul 17, 2013, at 11:41 AM, Jim Giner wrote: Since you state that you haven't made any changes to the system (in general), I'm going to guess that you modified an 'included' file and it has an erro

Re: [PHP] Error checking ON

2013-07-17 Thread Jim Lucas
code that cannot be parsed, your commands listed above will never be executed. Therefor they will never do any good. -- Jim Lucas http://www.cmsws.com/ http://www.cmsws.com/examples/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: query order issue

2013-07-20 Thread Jim Giner
On 7/20/2013 12:21 PM, dealTek wrote: Hi all, I have a page that starts with several mysql sql query searches and displays data below... then I added a form (with hidden line "do-update" value "UPDATE") on the same page with action to same page... then above other sql queries - I put... i

[PHP] Re: query order issue

2013-07-20 Thread Jim Giner
On 7/20/2013 12:21 PM, dealTek wrote: Hi all, I have a page that starts with several mysql sql query searches and displays data below... then I added a form (with hidden line "do-update" value "UPDATE") on the same page with action to same page... then above other sql queries - I put... i

Re: [PHP] query order issue

2013-07-21 Thread Jim Lucas
On 7/20/2013 9:21 AM, dealTek wrote: Hi all, I have a page that starts with several mysql sql query searches and displays data below... then I added a form (with hidden line "do-update" value "UPDATE") on the same page with action to same page... then above other sql queries - I put... if

Re: [PHP] Foreach and mydql_query problem

2013-07-22 Thread Jim Giner
Your original code snippet had some errors. It really couldn't have been what you wanted to do. Example: You have a named field of 'number_of_items' and then you try to retreive $_POST['number_of_itemsi']. That won't work. Then you have a var called $number_of_items which we don't see defi

Re: [PHP] Foreach and mydql_query problem

2013-07-22 Thread Jim Lucas
kg = $rad['adr_vekt_kg']; $varenavn = $rad['varenavn']; $emb = $rad['emb']; ?> Sprengstoff, 1.1D   "> " required="required"> " required="required"> -- Jim Lucas http://www.cmsws.com/ http://www.cmsws.com/examples/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: What wrong am I doing now?

2013-07-24 Thread Jim Giner
On 7/24/2013 8:19 AM, Karl-Arne Gjersøyen wrote: mysql> SELECT DATE_FORMAT(dato, '%e-%c-%Y') FROM transportdokument WHERE dato >= '2013-07-20' AND dato <= '2013-07-24' GROUP BY dato DESC; +---+ | DATE_FORMAT(dato, '%e-%c-%Y') | +---+ | 24-7-

Re: [PHP] Re: What wrong am I doing now?

2013-07-24 Thread Jim Giner
Jim, He already has that... - Matijn oops -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] From 24/7/2013 to 2013-07-24

2013-07-26 Thread Jim Giner
I think you should change from using 'rsort' ( a SORT function) to 'array_reverse', a simple reverse function. Your example of what you desire is wrong. 24-7-2013 will give you the 2013-24-7 that you want. Here is my sample code. Try it yourself. **"; echo "Try using rsort"; $dagparts =

Re: [PHP] From 24/7/2013 to 2013-07-24

2013-07-26 Thread Jim Giner
On 7/26/2013 10:10 AM, Jim Giner wrote: I think you should change from using 'rsort' ( a SORT function) to 'array_reverse', a simple reverse function. Your example of what you desire is wrong. 24-7-2013 will give you the 2013-24-7 that you want. oops. I meant to say "w

Re: [PHP] From 24/7/2013 to 2013-07-24

2013-07-26 Thread Jim Giner
On 7/26/2013 5:29 PM, Robert Cummings wrote: On 13-07-26 04:38 PM, jomali wrote: On Fri, Jul 26, 2013 at 1:08 PM, Robert Cummings wrote: On 13-07-26 11:42 AM, jomali wrote: On Fri, Jul 26, 2013 at 5:18 AM, Karl-Arne Gjersøyen wrote: Below is something I try that ofcourse not work becaus

Re: [PHP] POST action

2013-07-28 Thread Jim Giner
On 7/28/2013 1:26 PM, Larry Garfield wrote: On 07/28/2013 12:14 PM, iccsi wrote: Your name: Your age: In the PHP tutorial manual, it says that we can have post action to the form itself just like above coding.I would like to know in the real projects, can we have action to the same PHP file,

Re: [PHP] POST action

2013-07-28 Thread Jim Giner
On 7/28/2013 1:38 PM, Ashley Sheridan wrote: On Sun, 2013-07-28 at 13:37 -0400, Jim Giner wrote: On 7/28/2013 1:26 PM, Larry Garfield wrote: > On 07/28/2013 12:14 PM, iccsi wrote: >> >> Your name: >> Your age: >> >> In the PHP tutorial manual, it says that

[PHP] Re: SELECT data base on a upper level SELECT

2013-08-01 Thread Jim Giner
On 7/31/2013 9:37 PM, iccsi wrote: I have 5 SELECT for Department, Manager, supervisor, Group Leader and Employees I want to every SELECT list narrow down for an upper SELECT. For example, once user select Department then all Manager, Supervisor, Group Leader and Employee list will be narrow down

[PHP] Re: How to delete 3 months old records in my database?

2013-08-02 Thread Jim Giner
On 8/2/2013 6:58 AM, Karl-Arne Gjersøyen wrote: Hello again, folks! I wish to delete records in my database that is older than 3 months. $todays_date = date('Y-m-d'); $old_records_to_delete = ??? if($old_records_to_delete){ include(connect.php); $sql = "DELETE FROM table WHERE date >= '$old_re

[PHP] Re: Operand error...

2013-08-08 Thread Jim Giner
On 8/8/2013 1:32 PM, Karl-Arne Gjersøyen wrote: $oppdater_lager_med_antall_kg = $kg_pa_lager + $kg_fra_transportdokument_inn_pa_valgt_lager; result: *Fatal error*: Unsupported operand types in * /Users/karl/Sites/kasen/io/kp/index.php* on line *2970 *I have also tried this: $kg_pa_lager += $kg

Re: [PHP] Re: Operand error...

2013-08-08 Thread Jim Giner
On 8/8/2013 1:43 PM, Karl-Arne Gjersøyen wrote: 2013/8/8 Jim Giner On 8/8/2013 1:32 PM, Karl-Arne Gjersøyen wrote: $oppdater_lager_med_antall_kg = $kg_pa_lager + $kg_fra_transportdokument_inn_**pa_valgt_lager; result: *Fatal error*: Unsupported operand types in * /Users/karl/Sites/kasen

Re: [PHP] Re: Operand error...

2013-08-08 Thread Jim Giner
On 8/8/2013 1:56 PM, Karl-Arne Gjersøyen wrote: 2013/8/8 Jim Giner On 8/8/2013 1:43 PM, Karl-Arne Gjersøyen wrote: 2013/8/8 Jim Giner On 8/8/2013 1:32 PM, Karl-Arne Gjersøyen wrote: $oppdater_lager_med_antall_kg = $kg_pa_lager + $kg_fra_transportdokument_inn_pa_valgt_lager

Re: [PHP] Re: Operand error...

2013-08-08 Thread Jim Giner
On 8/8/2013 2:11 PM, Karl-Arne Gjersøyen wrote: 2013/8/8 Jim Giner On 8/8/2013 1:56 PM, Karl-Arne Gjersøyen wrote: 2013/8/8 Jim Giner On 8/8/2013 1:43 PM, Karl-Arne Gjersøyen wrote: 2013/8/8 Jim Giner On 8/8/2013 1:32 PM, Karl-Arne Gjersøyen wrote

[PHP] fpdf problem?

2013-08-09 Thread Jim Giner
I've been using fpdf to create pdf files for my site. All has been well for over a year. Suddenly I have a problem wherein IE 10 on W7 crashes when I try to print one of these pdfs created by my php scripts. The pdf files that I create seem fine. If I bring one up in IE and then save it to

Re: [PHP] fpdf problem?

2013-08-09 Thread Jim Giner
On 8/9/2013 12:06 PM, Tamara Temple wrote: On Aug 9, 2013, at 10:50 AM, Jim Giner wrote: I've been using fpdf to create pdf files for my site. All has been well for over a year. Suddenly I have a problem wherein IE 10 on W7 crashes when I try to print one of these pdfs created by m

Re: [PHP] fpdf problem?

2013-08-09 Thread Jim Giner
On 8/9/2013 12:11 PM, Jim Giner wrote: On 8/9/2013 12:06 PM, Tamara Temple wrote: On Aug 9, 2013, at 10:50 AM, Jim Giner wrote: I've been using fpdf to create pdf files for my site. All has been well for over a year. Suddenly I have a problem wherein IE 10 on W7 crashes when I t

Re: [PHP] fpdf problem?

2013-08-09 Thread Jim Giner
On 8/9/2013 1:56 PM, Jan Ehrhardt wrote: Jim Giner in php.general (Fri, 09 Aug 2013 12:33:30 -0400): Good question and the answer is: it happens for other pdfs as well, so I guess it's not fpdf. Sorry for the mis-post here - I'll do more research on Adobe and IE. Update: Solve

[PHP] Re: Output to File Instead of Browser

2013-08-20 Thread Jim Giner
On 8/20/2013 12:38 PM, Floyd Resler wrote: I have a php file that generates a form. Of course, this displays in the browser. How can I have the form generated from my script but either saved to a file or the output returned to another script? Thanks! Floyd Store your generated web page (fr

Re: [PHP] Output to File Instead of Browser

2013-08-20 Thread Jim Giner
On 8/20/2013 3:20 PM, Daniel Pöllmann wrote: Buffering is the more comftable way because if you write all html to a variable, output that might be created in a function, you did not modify will not be included. Non critical errors that create an output (notice/warning) will not ve included as we

[PHP] Off the wall - sub-domain question

2013-08-21 Thread Jim Giner
I have a main domain (of course) and a sub domain. I'm really trying to steer my personal stuff away from the main one and have focused all of my php development to the sub-domain. Lately I noticed that google catalogs my sub-domain site stuff under the main domain name and the links that com

Re: [PHP] Off the wall - sub-domain question

2013-08-22 Thread Jim Giner
On 8/22/2013 8:05 AM, Curtis Maurand wrote: Is the subdomain also in a subfolder of the main domain? Jim Giner wrote: I have a main domain (of course) and a sub domain. I'm really trying to steer my personal stuff away from the main one and have focused all of my php development t

Re: [PHP] Off the wall - sub-domain question

2013-08-22 Thread Jim Giner
On 8/22/2013 9:43 AM, Willie wrote: The only way that I know of to take care of that is to put a file in your main directory called "robots.txt". In that file you will put: User-agent: * Disallow: /FolderName On Thu, Aug 22, 2013 at 6:19 AM, Jim Giner wrote: On 8/22/2013 8:05

Re: [PHP] exec and system do not work

2013-08-26 Thread Jim Giner
On 8/26/2013 2:41 PM, Ethan Rosenberg wrote: On 08/26/2013 11:36 AM, ma...@behnke.biz wrote: Tamara Temple hat am 26. August 2013 um 08:33 geschrieben: On Aug 25, 2013, at 10:41 PM, Ethan Rosenberg wrote: Dear List - I'm lost on this one - This works - $out = system("ls -l ",$retva

Re: [PHP] exec and system do not work

2013-08-27 Thread Jim Giner
On 8/26/2013 5:01 PM, Ethan Rosenberg, PhD wrote: On 08/26/2013 03:28 PM, Jim Giner wrote: On 8/26/2013 2:41 PM, Ethan Rosenberg wrote: On 08/26/2013 11:36 AM, ma...@behnke.biz wrote: Tamara Temple hat am 26. August 2013 um 08:33 geschrieben: On Aug 25, 2013, at 10:41 PM, Ethan

[PHP] Basic Auth

2013-08-27 Thread Jim Giner
I"m using basic auth for a few of my pages that I want to limit access to - nothing of a sensitive nature, but simply want to limit access to. Want to implement a signoff process, but can't figure it out. From the comments in the manual I take it one can't do this by simply unsetting the PHP_

Re: [PHP] Basic Auth

2013-08-27 Thread Jim Giner
On 8/27/2013 9:46 AM, Stuart Dallas wrote: On 27 Aug 2013, at 14:37, Jim Giner wrote: I"m using basic auth for a few of my pages that I want to limit access to - nothing of a sensitive nature, but simply want to limit access to. Want to implement a signoff process, but can't fig

Re: [PHP] Basic Auth

2013-08-27 Thread Jim Giner
On 8/27/2013 10:14 AM, Stuart Dallas wrote: It's not really confusing so long as you understand how PHP works. Each request is brand new - nothing is retained from previous requests. The two variable you're changing are set by PHP when the request comes in from the browser. The fact you chang

Re: [PHP] Basic Auth

2013-08-27 Thread Jim Giner
On 8/27/2013 10:39 AM, Stuart Dallas wrote: On 27 Aug 2013, at 15:18, Jim Giner wrote: On 8/27/2013 10:14 AM, Stuart Dallas wrote: It's not really confusing so long as you understand how PHP works. Each request is brand new - nothing is retained from previous requests. The two var

Re: [PHP] Basic Auth

2013-08-27 Thread Jim Giner
On 8/27/2013 10:55 AM, Stuart Dallas wrote: On 27 Aug 2013, at 15:51, Jim Giner wrote: On 8/27/2013 10:39 AM, Stuart Dallas wrote: On 27 Aug 2013, at 15:18, Jim Giner wrote: On 8/27/2013 10:14 AM, Stuart Dallas wrote: It's not really confusing so long as you understand how PHP

Re: Fwd: [PHP] Basic Auth

2013-08-27 Thread Jim Giner
@lists.php.net On 27 Aug 2013, at 15:59, Jim Giner wrote: On 8/27/2013 10:55 AM, Stuart Dallas wrote: On 27 Aug 2013, at 15:51, Jim Giner wrote: On 8/27/2013 10:39 AM, Stuart Dallas wrote: On 27 Aug 2013, at 15:18, Jim Giner wrote: On 8/27/2013 10:14 AM, Stuart Dallas wrote: It's not r

Re: [PHP] Basic Auth

2013-08-27 Thread Jim Giner
On 8/27/2013 12:53 PM, Stuart Dallas wrote: On 27 Aug 2013, at 17:28, Jim Giner wrote: On 8/27/2013 11:56 AM, Stuart Dallas wrote: Oops, sent this message from the wrong email address, so the list rejected it. Begin forwarded message: From: Stuart Dallas Subject: Re: [PHP] Basic Auth

Re: [PHP] Basic Auth

2013-08-28 Thread Jim Giner
Stuart, Just wanted to follow up with my thanks for your excellent help in providing understanding of how to generate the 401 error page and getting me thru the process of performing a sign-out from basic auth. Without your patience it never would have happened. Also wanted to tell you that

[PHP] Re: refernces, arrays, and why does it take up so much memory?

2013-09-02 Thread Jim Giner
On 9/2/2013 9:30 PM, Daevid Vincent wrote: I'm confused on how a reference works I think. I have a DB result set in an array I'm looping over. All I simply want to do is make the array key the "id" of the result set row. This is the basic gist of it: private function _normalize_result_

<    9   10   11   12   13   14   15   16   17   18   >