Re: [PHP] Cost of redirect and site domain switch? Good Practice/ Bad Practice / Terrible Practice

2012-08-20 Thread Jim Giner
On 8/20/2012 12:19 AM, Jim Lucas wrote: On 8/17/2012 6:35 PM, Jim Giner wrote: On 8/17/2012 7:16 PM, Jim Lucas wrote: You could simply remove all full domain+path URL links and replace them with absolute path urls only. turn http://www.somedomain.com/path/to/my/webpage.html into /path

Re: [PHP] Cost of redirect and site domain switch? Good Practice/ Bad Practice / Terrible Practice

2012-08-19 Thread Jim Lucas
On 8/17/2012 6:35 PM, Jim Giner wrote: On 8/17/2012 7:16 PM, Jim Lucas wrote: You could simply remove all full domain+path URL links and replace them with absolute path urls only. turn http://www.somedomain.com/path/to/my/webpage.html into /path/to/my/webpage.html This would work

Re: [PHP] OT (maybe not): Drupal vs WordPress

2012-08-19 Thread Jim Lucas
On 8/19/2012 2:39 PM, Michael Shadle wrote: Yes this is going to spawn a religious debate. But joomla sucks. Sorry folks. 1+ -- Jim Lucas http://cmsws.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Need to have form protection techniques

2012-08-17 Thread Jim Giner
On 8/17/2012 12:05 AM, Ansry User 01 wrote: I need to know the forms validity techniques for Php. Really? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Cost of redirect and site domain switch? Good Practice / Bad Practice / Terrible Practice

2012-08-17 Thread Jim Lucas
://www.somedomain.com/path/to/my/webpage.html into /path/to/my/webpage.html This would work with either domain. -- 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

Re: [PHP] Cost of redirect and site domain switch? Good Practice/ Bad Practice / Terrible Practice

2012-08-17 Thread Jim Giner
On 8/17/2012 7:16 PM, Jim Lucas wrote: On 08/17/2012 01:09 PM, Tristan wrote: Sebastian, I'll check into 307 I haven't used that before but, this really is a permanent redirect. They are going to a shorter domain. About the SEO part of it though. Would it be good to find replace all internal

Re: [PHP] Reading class variable value always returns NULL

2012-08-14 Thread Jim Lucas
have display errors turned on? Are you saving your errors to a log file? -- 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

Re: [PHP] Is PHP unsuitable for HTML5 WebSockets?

2012-08-13 Thread Jim Lucas
, I wrote a cli php script to run as a socket server for a game I was playing at the time. It has been running on every server I've put together since then. To say that PHP isn't suited to this type of service is wrong. Give it a shot. Can't hurt to try. Jim -- PHP General Mailing List

Re: [PHP] PHP session variables

2012-08-09 Thread Jim Lucas
On 08/09/2012 01:45 PM, Tedd Sperling wrote: On Aug 8, 2012, at 5:41 PM, Jim Ginerjim.gi...@albanyhandball.com wrote: On 8/8/2012 11:24 AM, Ansry User 01 wrote: I am setting the _SESSION variables in one of my file, but whenever I leave the php page session variables are not accessible

Re: [PHP] Too many open files

2012-08-09 Thread Jim Lucas
/grap/close your batch of files? You could replace a call like this: $data = file_get_contents($filename); with this: if ( $fh = fopen($filename, 'r') ) { $data = fread($fh, filesize($filename)); fclose($fh); } This should take care of your issue. Jim Lucas -- PHP General Mailing List

Re: [PHP] Too many open files

2012-08-09 Thread Jim Lucas
read('hello-world2.txt'); echo read('hello-world3.txt'); This way you will close one file before start reading the other one. -- Att, Alan Hoffmeister You top posted AND you didn't send it to the list... Jim 2012/8/10 Jim Lucas li...@cmsws.com: On 8/9/2012 5:01 PM, Al wrote: Getting Too

[PHP] Re: PHP session variables

2012-08-08 Thread Jim Giner
On 8/8/2012 11:24 AM, Ansry User 01 wrote: I am setting the _SESSION variables in one of my file, but whenever I leave the php page session variables are not accessible. Not sure what I need to do additionally other then defining _SESSION[]. Any pointer. You must make it a habit to start

Re: [PHP] magic getter

2012-07-19 Thread Jim Lucas
created. with this example, you are never using the __get() magic function to retrieve the value of color. -- 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

Re: [PHP] Reverse DNS testing

2012-07-12 Thread Jim Lucas
checks also report rDNS fails. Any suggestions how I can handle this? -- 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] PDO Prevent duplicate field names?

2012-07-02 Thread Jim Lucas
, and the SQL was easily fixed. But it woulda been nice to have PHP realize there was a dupe when it was building that array to return to me. You could always do this. SELECT b.*, a.CustID FROM Customer a LEFT JOIN Sales B USING (CustID) WHERE a.CustID = 1234; -- Jim Lucas http://www.cmsws.com/ http

Re: [PHP] How does this code work?

2012-07-02 Thread Jim Lucas
On 7/2/2012 7:15 PM, Robert Williams wrote: I found this code in a user comment in the PHP docs for htmlentities(): ?php function xml_character_encode($string, $trans='') { $trans = (is_array($trans)) ? $trans : get_html_translation_table(HTML_ENTITIES, ENT_QUOTES); foreach ($trans as $k=$v)

[PHP] Re: Depreciation message I can't make out....

2012-06-28 Thread Jim Giner
Gary Lebowitz gurqi...@gmail.com wrote in message news:cafbvbik1ga9eyxkstpshxk+ddfax0fqoy-gnpdymfl_26_g...@mail.gmail.com... Hi, I am running Moodle 2.2.3 and using PHP 5.3 on a Linux server with GoDaddy and am getting the message about depreciation after having typed the following command

Re: [PHP] slicing and dicing strings

2012-06-27 Thread Jim Giner
Stuart Dallas stu...@3ft9.com wrote in message news:d889b8e1-2eab-4f36-83cb-8a52b5ec6...@3ft9.com... WARNING: May contain traces of sarcasm. If it would really take you 4 hours to find this out via the manual or Google then I think it would be 4 hours well spent: 3 hours 55 minutes learning how

Re: [PHP] Re: php form action breaks script

2012-06-27 Thread Jim Giner
Tim Dunphy bluethu...@gmail.com wrote in message news:caozy0em5duhby-qv+y1u-e+c5yd7g5utauhomoyu3z7jma-...@mail.gmail.com... Notice: Undefined index: subject in /Library/WebServer/Documents/examples/ch03/final/makemeelvis/sendemail.php on line 23 Notice: Undefined index: elvismail in

[PHP] phpinfo

2012-06-17 Thread Jim Giner
When one executes a phpinfo call, the display of info broken into the various sections mostly makes sense. The $_SERVER vars are listed with a _SERVER name, the environment ones show _ENV, and so on. But I question what are the duplicate ones that dont' have a prefix name. My concern is the

Re: [PHP] phpinfo

2012-06-17 Thread Jim Giner
Matijn Woudt tijn...@gmail.com wrote in message news:cac_gtumpirenkswm2-lucwhbycmxdgg3a+hwr1aoqwiyz40...@mail.gmail.com... On Sun, Jun 17, 2012 at 10:22 PM, Jim Giner jim.gi...@albanyhandball.com wrote: When one executes a phpinfo call, the display of info broken into the various sections

Re: [PHP] phpinfo

2012-06-17 Thread Jim Giner
oops - read the notes for PUTENV. Did the 'delete' properly and now I have no entries for php_auth_pw. For those reading along - to remove the variable use putenv(varname) NOT putenv(varname= '' ); Thanks Martijn!! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] else if vs switch

2012-06-17 Thread Jim Lucas
...@domain.tld', ... ); ... if ( isset($mapping[$city]) ) { $toaddress = $mapping[$city]; } else { $toaddress = $mapping['default']; } Jim -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: php form action breaks script

2012-06-15 Thread Jim Giner
Hear, Hear for heredocs. The only way to code up your html. Took me a few months to discover it and haven't looked back since. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: php form action breaks script

2012-06-15 Thread Jim Lucas
On 06/15/2012 06:35 AM, Jim Giner wrote: Hear, Hear for heredocs. The only way to code up your html. Took me a few months to discover it and haven't looked back since. The only problem I have with HEREDOC is I cannot use constants within them. -- Jim Lucas http://www.cmsws.com/ http

Re: [PHP] global array

2012-06-14 Thread Jim Giner
Yes - PHP is very picky. Hence I never capitalize anything! I use underscores to make varnames more understandable, as in $inv_req -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] global array

2012-06-14 Thread Jim Giner
Al n...@ridersite.org wrote in message news:6b.c0.39100.4ef1a...@pb1.pair.com... On 6/14/2012 12:49 PM, Jim Giner wrote: Yes - PHP is very picky. Hence I never capitalize anything! I use underscores to make varnames more understandable, as in $inv_req There is another nice custom e.g

Re: [PHP] global array

2012-06-14 Thread Jim Giner
See - I didn't even notice he used camel-case - I thought he typed the same thing that got the OP in trouble. See how difficult that custom is? That's why for any case sensitive syntax, I stick to all lower case to avoid just that kind of bug-a-boo. -- PHP General Mailing List

Re: [PHP] Re: show info from mysql db

2012-06-11 Thread Jim Lucas
, fast, and security-focused PHP framework http://nephtaliproject.com -- 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] SQL Injection

2012-06-08 Thread Jim Lucas
facts. Thanks -Govinda Ah, but what if I use sqlite or postgres? IMHO, the discussion needs to be a the best way to prevent SQL injection across all possible DB types. Not just mysql. -- Jim Lucas http://www.cmsws.com/ http://www.cmsws.com/examples/ http://www.bendsource.com/ -- PHP General

Re: [PHP] help with query

2012-06-07 Thread Jim Lucas
AND a.categoryid = c.categoryid -- You need to add this line to make it work, but keep the previous line AND a.categoryid = 1 ORDER BY a.startdate DESC ; -- Jim Lucas http://www.cmsws.com/ http://www.cmsws.com/examples/ http://www.bendsource.com/ -- PHP General Mailing List (http

Re: [PHP] Read dynamic variable from HTML form into PHP

2012-06-06 Thread Jim Giner
Maciek Sokolewicz maciek.sokolew...@gmail.com wrote in message news:4fcf23af.7040...@php.net... On 06-06-2012 05:11, Jim Giner wrote: Govindagovinda.webdnat...@gmail.com wrote in message news:72497398-3a6c-4faa-89f2-565c18fd2...@gmail.com... On 2012-06-05, at 10:54 PM, Devangnp wrote: I

Re: [PHP] Read dynamic variable from HTML form into PHP

2012-06-05 Thread Jim Giner
Govinda govinda.webdnat...@gmail.com wrote in message news:72497398-3a6c-4faa-89f2-565c18fd2...@gmail.com... On 2012-06-05, at 10:54 PM, Devangnp wrote: I know how to pass variable but having difficulties when I use the dynamic form field in HTML that add more boxes as per user require.

Re: [PHP] Uploading large files with HTTP_Request class

2012-05-31 Thread Jim Lucas
PHP 5.3.0. Thank you and best regards, Marko -- 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] Uploading large files with HTTP_Request class

2012-05-31 Thread Jim Lucas
On 05/31/2012 11:34 AM, Bastien Koert wrote: On Thu, May 31, 2012 at 12:24 PM, Jim Lucasli...@cmsws.com wrote: On 05/31/2012 03:28 AM, Voß, Marko wrote: Hello, I need to perform uploading of large files using the HTTP_Request class: http://pear.php.net/manual/package.http.http-request.php

Re: [PHP] w.r.t. mail() function

2012-05-24 Thread Jim Lucas
On 05/24/2012 04:39 AM, Matijn Woudt wrote: On Wed, May 23, 2012 at 10:25 PM, Jim Lucasli...@cmsws.com wrote: On 05/22/2012 09:12 PM, Ashwani Kesharwani wrote: Hi , I have a query w.r.t. mail() function in php. I have hosted my site and i have created an email account as well. when i am

Re: [PHP] w.r.t. mail() function

2012-05-23 Thread Jim Lucas
want it to be. -- 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] regexp novice

2012-05-18 Thread Jim Giner
Jim Lucas li...@cmsws.com wrote in message news:4fb5decc.20...@cmsws.com... On 5/17/2012 9:52 PM, Jim Lucas wrote: How about this instead? pre?php $times = array( '100', # valid '1100', # valid '1300', # invalid '01:00', # valid '12:59', # valid '00:01', # valid '00:25pm

Re: [PHP] regexp novice

2012-05-18 Thread Jim Giner
Jim Lucas li...@cmsws.com wrote in message news:4fb5decc.20...@cmsws.com... On 5/17/2012 9:52 PM, Jim Lucas wrote: How about this instead? pre?php $times = array( '100', # valid '1100', # valid '1300', # invalid '01:00', # valid '12:59', # valid '00:01', # valid '00:25pm

Re: [PHP] regexp novice

2012-05-18 Thread Jim Giner
Stuart Dallas stu...@3ft9.com wrote in message news:cc22e241-c1df-48e9-bf06-8a638a356...@3ft9.com... On 18 May 2012, at 14:32, Jim Giner wrote: OK - I don't yet understand how this works, but it seems to work for almost all cases. The one erroneous result I get is from a value of 0040

Re: [PHP] regexp novice

2012-05-18 Thread Jim Giner
times so 40 minutes after minute would be a) not practical and b) still not I meant to say 40 minutes after MIDNIGHT. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] regexp novice

2012-05-18 Thread Jim Giner
Stuart Dallas stu...@3ft9.com wrote in message news:79538829-bfc4-43a4-a413-72247b145...@3ft9.com... On 18 May 2012, at 14:41, Jim Giner wrote: Stuart Dallas stu...@3ft9.com wrote in message news:cc22e241-c1df-48e9-bf06-8a638a356...@3ft9.com... On 18 May 2012, at 14:32, Jim Giner wrote: OK

Re: [PHP] regexp novice

2012-05-18 Thread Jim Giner
Stuart Dallas stu...@3ft9.com wrote in message news:aba011df-8cdf-4492-be4d-51c2b54c4...@3ft9.com... On 18 May 2012, at 14:50, Jim Giner wrote: Daft is a little harsh. :) 00:40 is just not a time value that is generally accepted. It may appear harsh, but as far as I'm concerned it is daft

[PHP] regexp novice

2012-05-17 Thread Jim Giner
ok - finally had to come up with my own regexp - and am failing. Trying to validate an input of a time value in the format hh:mm, wherein I'll accept anything like the following: hmm hhmm h:mm hh:mm in a 12 hour format. My problem is my test is ok'ing an input of 1300. Here is my test: if

[PHP] Re: regexp novice

2012-05-17 Thread Jim Giner
OOPS FORGOT to mention that I modify the string to add a colon if it is entered without one, so my regexp always expects a : to be in the middle. So in actuality - my regexp is 'passing' a value of 13:00 as legitimate, when it should not be. -- PHP General Mailing List (http://www.php.net/)

Re: [PHP] regexp novice

2012-05-17 Thread Jim Giner
Yared Hufkens y4...@yahoo.de wrote in message news:4fb5667d.7020...@yahoo.de... Try this: /(0?[1-9]|[12][0-9]):?[0-5][0-9]/ FYI: ? is equal to {0,1}, and [1-9] to [123456789] (and therefore [1-2] to [12]). Am 17.05.2012 22:37, schrieb Jim Giner: ok - finally had to come up with my own

Re: [PHP] regexp novice

2012-05-17 Thread Jim Giner
Thank you ! Govinda govinda.webdnat...@gmail.com wrote in message news:3e5dce87-29c1-4679-ad3a-53326435f...@gmail.com... FWIW - I couldn't find much in the way of tutorials on the meanings of the various chars in regexp's. this helps alot: http://www.gskinner.com/RegExr/ you can paste your

Re: [PHP] regexp novice

2012-05-17 Thread Jim Lucas
On 5/17/2012 1:57 PM, shiplu wrote: On Fri, May 18, 2012 at 2:37 AM, Jim Ginerjim.gi...@albanyhandball.comwrote: ok - finally had to come up with my own regexp - and am failing. Trying to validate an input of a time value in the format hh:mm, wherein I'll accept anything like the following

Re: [PHP] regexp novice

2012-05-17 Thread Jim Giner
Jim Lucas li...@cmsws.com wrote in message news:4fb5b89e.8050...@cmsws.com... On 5/17/2012 1:57 PM, shiplu wrote: On Fri, May 18, 2012 at 2:37 AM, Jim Ginerjim.gi...@albanyhandball.comwrote: ok - finally had to come up with my own regexp - and am failing. Trying to validate an input

Re: [PHP] regexp novice

2012-05-17 Thread Jim Lucas
On 5/17/2012 8:07 PM, Jim Giner wrote: Jim Lucasli...@cmsws.com wrote in message news:4fb5b89e.8050...@cmsws.com... On 5/17/2012 1:57 PM, shiplu wrote: On Fri, May 18, 2012 at 2:37 AM, Jim Ginerjim.gi...@albanyhandball.comwrote: ok - finally had to come up with my own regexp - and am

Re: [PHP] regexp novice

2012-05-17 Thread Jim Lucas
On 5/17/2012 9:52 PM, Jim Lucas wrote: How about this instead? pre?php $times = array( '100', # valid '1100', # valid '1300', # invalid '01:00', # valid '12:59', # valid '00:01', # valid '00:25pm', # invalid '', # valid 'a00', # invalid '00', # invalid ); foreach ( $times AS $time ) echo

Re: [PHP] alias address in REMOTE_ADDR

2012-05-12 Thread Jim Lucas
can cause this? I really need the eth0 IP address back in REMOTE_ADDR. Regards, Csaba What IP address is your Apache bound to? You eth0 or one of the alias IPs? Jim -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Variables via url

2012-05-12 Thread Jim Giner
Ashley M. Kirchner ash...@pcraft.com wrote in message news:4fad9d8b.4020...@pcraft.com... Can someone point me at examples or directions on how I can pass a variable via a URL in the following way: http://server.domain.com//script///variable/ I will only be passing one single

Re: [PHP] Converting date string to unix timestamp

2012-05-11 Thread Jim Lucas
/php/jquery_time_stamp.php http://www.cmsws.com/examples/php/jquery_time_stamp.phps Jim CODE [ ... } else { $dt_start = $_POST[field20] ? $_POST[field20] : $_POST[field21]; //Saturday, January 1, 2012 $dt_end = $_POST[field22]; //Saturday, January 1, 2012 $t_start = $_POST[field24]; //4:20 pm $t_end

Re: [PHP] Converting date string to unix timestamp

2012-05-11 Thread Jim Lucas
On 05/11/2012 05:55 PM, Karl DeSaulniers wrote: Thanks Jim, To tell you the truth, this was handed off to me. Thank you for the response. I knew this was just bloated code. Thanks for verifying that for me. :) Just one question, why does it echo the 7th and not the 1st? I see

Re: [PHP] How to send XML requests from PHP?

2012-05-08 Thread Jim Lucas
/Evening Michelle Konzack Look into cURL http://php.net/curl -- 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: How to send XML requests from PHP?

2012-05-08 Thread Jim Lucas
On 05/08/2012 11:25 AM, Michelle Konzack wrote: Hello Jim Lucas, Am 2012-05-08 11:08:13, hacktest Du folgendes herunter: Look into cURL http://php.net/curl I know curl but I do not know, HOW to send the XML stuff. The XML code is generated using a temp file for logging, which mean, I can

[PHP] I'm missing something

2012-05-05 Thread Jim Giner
I have a discrepancy in the number of elements in my arrays and can't see why. Here is some code: Note the lines with the *** *** $plyrs = 0; unset($plyrnames_ar); unset($js_names); unset($js_seeds); *** $rows = mysql_num_rows($qrslts); ***echo in mysql there are $rows rowsbr; while ($row =

Re: [PHP] I'm missing something

2012-05-05 Thread Jim Giner
My guess would be that you end up with 2 rows having the same $nm, overwriting the value that's already in $plyrnames_ar. - Matijn Genius at work! Thanks - I'll look into that. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] I'm missing something

2012-05-05 Thread Jim Giner
Yup that was it! Something I knew would happen during my design, but forgot to code for now. Jim Giner jim.gi...@albanyhandball.com wrote in message news:e2.dc.30075.c6ea5...@pb1.pair.com... My guess would be that you end up with 2 rows having the same $nm, overwriting the value that's

[PHP] Re: function

2012-05-04 Thread Jim Giner
Ron Piggott ron.pigg...@actsministries.org wrote in message news:499A66F0FB394E1DB44F7E0C011CF11C@RonPiggottPC... I need to access a FUNCTION I programmed within a different FUNCTION. Are these able to be passed like a variable? Or are they able to become like a $_SESSION variable in nature?

Re: [PHP] PHP Database Problems -- Code Snippets - Any more Ideas?

2012-05-04 Thread Jim Giner
I don't think posting the same voluminous code is going to generate any better responses. The suggestion to start over and make your insert/retrieve queries fool proof before starting to write some logic into your code was a very good one. Why don't you work on that so that any requests for

Re: [PHP] PHP Database Problems -- Code Snippets - Any more Ideas?

2012-05-04 Thread Jim Giner
Nor will posting to multiple lists.(Sorry to the rest of you - didn't realize it until now.) Jim Giner jim.gi...@albanyhandball.com wrote in message news:c6.f8.38082.efae3...@pb1.pair.com... I don't think posting the same voluminous code is going to generate any better responses

Re: [PHP] function

2012-05-04 Thread Jim Giner
But the OP says function is defined inside a different function. Your theories to a solution don't fit that problem. tamouse mailing lists tamouse.li...@gmail.com wrote in message news:cahuc_t-416_-lpcn3mo8qqxwrh4pnq5fmwouhwpdk+hmkgh...@mail.gmail.com... On Thu, May 3, 2012 at 9:12 PM, Ron

Re: [PHP] date conversion/extraction issues

2012-05-03 Thread Jim Lucas
of class DateTime could not be converted to string in sql.php on line 379 I think you need to double check your variable names. In one place you are using $row['PDate'] in another you are referring to $row['date'] -- Jim Lucas http://www.cmsws.com/ http://www.cmsws.com/examples/ http

Re: [PHP] Problem with AssertTag: children count wrong

2012-05-02 Thread Jim Lucas
an idea whats going on? This is really freakin me out, could not find anything about it anywhere on the web. Kind regards, Michael -- 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] PHP Database Problems

2012-05-02 Thread Jim Lucas
= 23. Index Site Medical Record Notes Weight BMI Date Notice that it is entered into record 10003 The data is First Try Index Site Medical Record Notes Weight BMI Date 2590 AA 10003 First Try 189 31.4 02 May 2012 Help and advice, please. Thanks. Ethan -- Jim Lucas http://www.cmsws.com

Re: [PHP] PHP Database Problems

2012-05-02 Thread Jim Lucas
On 5/2/2012 4:28 PM, Duken Marga wrote: But I don't see any attachments in this message. This was in the first email of this thread. I can easily extract data from the database. However, if I try to enter data, it goes into the incorrect record. Following are some screenshots. The program

[PHP] Re: Array_diff problems

2012-04-27 Thread Jim Giner
Rick Dwyer rpdw...@earthlink.net wrote in message news:0c0e6cc9-089d-4938-8b50-c9e12dfb3...@earthlink.net... Hello all. I have two arrays and when compared against each other via array_diff, I do not get any output: $myarray1 = Array ( [0] = Array ( [id] = 1 [Funding_Type] = Federal [Amount]

Re: [PHP] url string being split

2012-04-26 Thread Jim Giner
Im no expert, but why would you expose a query to the world thru the use of a GET? Why not just collect the params and build the string in your code? That is how people hack into your database - via a re-formed query. You're giving someone an open invitation. -- PHP General Mailing List

[PHP] undefined offset

2012-04-26 Thread Jim Giner
Sorry - can't seem to find anything that explains this on google. I'm using a List command to break out an array into distinct field names. I keep getting these errors as I go thru my loop:: Notice: Undefined offset: 10 in (.) on line 151 Notice: Undefined offset: 9 in (.) on line 151

Re: [PHP] undefined offset

2012-04-26 Thread Jim Giner
Thanks. That was it -my last line was null. - Original Message - From: Stuart Dallas stu...@3ft9.com To: Jim Giner jim.gi...@albanyhandball.com Cc: php-general@lists.php.net Sent: Thursday, April 26, 2012 4:21 PM Subject: Re: [PHP] undefined offset On 26 Apr 2012, at 21:20, Jim

[PHP] FPDF ?

2012-04-26 Thread Jim Giner
For those of you with FPDF experience. I've just begun using it and have figured out how it works I think. I am still having trouble with the bottom of the page tho. Seems that if I get too close to the bottom margin and my data line exceeds the amount of available space, my MultiCell

Re: [PHP] Re: No error reporting on

2012-04-24 Thread Jim Giner
Sounds like a very good reason to me? It's a development tool. Add it now, remove it later. Dotan Cohen dotanco...@gmail.com wrote in message news:cakdxfkn+6mn9chuqdwevx5ap0km-rkls0q+carbf5hktvuo...@mail.gmail.com... On Mon, Apr 23, 2012 at 16:53, Jim Lucas li...@cmsws.com wrote: Possibly

[PHP] Re: No error reporting on

2012-04-23 Thread Jim Giner
Just my $.02, but don't you need: ini_set('display_errors', '1'); as well? Dotan Cohen dotanco...@gmail.com wrote in message news:CAKDXFkMOH63=hnlekxugampqwrhvvet2x4iw-42soqkisrg...@mail.gmail.com... Given this code: error_reporting(-1); -- PHP General Mailing List (http://www.php.net/)

Re: [PHP] Re: No error reporting on

2012-04-23 Thread Jim Lucas
On 04/23/2012 01:21 PM, Dotan Cohen wrote: On Mon, Apr 23, 2012 at 14:18, Jim Ginerjim.gi...@albanyhandball.com wrote: Just my $.02, but don't you need: ini_set('display_errors', '1'); as well? Possibly, thanks. I actually don't have access to that! That line should be placed in your

[PHP] Re: Email Antispam

2012-04-18 Thread Jim Giner
Ross McKay ro...@zeta.org.au wrote in message news:795so7t0avn28a5m8i373h9tursk15c...@4ax.com... On Tue, 17 Apr 2012 21:11:45 -0400, Jim Giner wrote: So - does that mean you building the site from information contained in a database? Yes. Client wanted email addresses on the website

Re: [PHP] Re: PHP: a fractal of bad design

2012-04-17 Thread Jim Lucas
Stroustrup a simple +1 will do -- 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: Email Antispam

2012-04-17 Thread Jim Giner
David Mehler dave.meh...@gmail.com wrote in message news:CAPORhP5Cuzd0Hb9gBFLESNe5LofDODN64S2UOAuMWCb=zoh...@mail.gmail.com... Hello, I'm working on a site that has email addresses on it. I am not wanting to use mailto links so as to avoid spam harvesters, I'd like another solution so that

[PHP] Re: Email Antispam

2012-04-17 Thread Jim Giner
Ross McKay ro...@zeta.org.au wrote in message news:b4vro79ftp9423k74bnj41o1o9e3dk9...@4ax.com... On Tue, 17 Apr 2012 16:04:19 -0400, David Mehler wrote: I'm working on a site that has email addresses on it. I am not wanting to use mailto links so as to avoid spam harvesters, I'd like another

Re: [PHP] image inventoryer

2012-04-06 Thread Jim Giner
Kirk Bailey kbai...@howlermonkey.net wrote in message news:4f7e5d2f.3050...@howlermonkey.net... jim, I am a novice at this language as I said. Then you are taking on too big of a task. When I decided to pick up some web programming skills I bought a $50 book/manual on learning PHP

Re: [PHP] image inventoryer

2012-04-06 Thread Jim Giner
David OBrien dgobr...@gmail.com wrote in message news:CAF=yD_06vDEHLP-nyEJxUNt6nHexA42X90U5-6+MBzc0=tc...@mail.gmail.com... I googled php show images in folder and lo and behold the first was was a script almost exactly what you are wanting to do Damn - now the OP missed a golden

Re: [PHP] image inventoryer

2012-04-06 Thread Jim Giner
tamouse mailing lists tamouse.li...@gmail.com wrote in message news:CAHUC_t-M_dg_D+if01BQm=RPd=GgL7d=naxfadxwybse-nn...@mail.gmail.com... knowledge. Read first. Ask smart questions. There are BOATLOADS of tutorials on PHP on the net, just a google away. I like that! just a google away. :)

[PHP] Re: foreach

2012-04-05 Thread Jim Giner
I don't know about others, but I can't make sense of this - way too much presented with no idea of what I am looking at - code or output. One thing: $_Request is not the same var as $_REQUEST. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] image inventoryer

2012-04-05 Thread Jim Giner
As Tommy says - you sound like a total new user who doesn't know how to do it and furthermore doesn't know how many things you are going to have to pick up just to accomplish this task. You have to: determine the folder your script is running from collect an array of image file names from

Re: [PHP] pcntl_fork behavior with php version 5.1.2

2012-03-29 Thread Jim Lucas
, Copyright (c) 1998-2010 Zend Technologies with Suhosin v0.9.32.1, Copyright (c) 2007-2010, by SektionEins GmbH This sounds more like an OS issue then a PHP issue. What are the two OSs involved? -- Jim Lucas http://www.cmsws.com/ http://www.cmsws.com/examples/ http://www.bendsource.com

Re: [PHP] MySQL table design

2012-03-22 Thread Jim Giner
Leave the past behind. You're moving forward. And - for whatever reason that they were used originally, you now have the opportunity to rid yourself of column names that must be a pia to type all the time. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

[PHP] Re: How can I convert these to hex or strings?

2012-03-21 Thread Jim Giner
Did you do a search of the php manual? I did one on hex and found function bin2hex. Not sure how you mac address is actually built, but I would try converting it char by char and see what the function returns. Or maybe just pass the whole string to it. Just a guess. -- PHP General Mailing

Re: [PHP] Re: How can I convert these to hex or strings?

2012-03-21 Thread Jim Giner
Not until you find out if it actually works. Then, maybe David OBrien dgobr...@gmail.com wrote in message news:CAF=yd_3rbr-gkonpjdbtogssiufwzeqteanqneproh6hhyu...@mail.gmail.com... Damn I'm an idiot... sorry :\ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] Thinking out loud - a continuation...

2012-03-21 Thread Jim Lucas
examples of the code that retrieves the data and some of the actual output data? Then provide a structure that you want the data to look like when done. -- 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: hello everybody

2012-03-18 Thread Jim Giner
Just so you know - someone has read your note. But - I'm not sure if anyone understands what you want to learn. From the sound of things, you need to do a lot of reading to learn the basics. Sorry I couldn't help you. -- PHP General Mailing List (http://www.php.net/) To unsubscribe,

[PHP] Re: Got HTML5 History API + caching LICKED, I think, grin

2012-03-16 Thread Jim Giner
rene7705 rene7...@gmail.com wrote in message news:cadegsebtv7ffuvcbxkothqzah3ethegdedyuarxene2d1mw...@mail.gmail.com... Hi Folks.. I could waste a lot of text on what I've accomplished during the last months, but the easiest thing is if you have a (another) look at (the source of)

Re: [PHP] Re: Got HTML5 History API + caching LICKED, I think, grin

2012-03-16 Thread Jim Giner
Floyd Resler fres...@adex-intl.com wrote in message news:f69820c8-5c91-4010-a69f-11729fe04...@adex-intl.com... On Mar 16, 2012, at 3:15 PM, Jim Giner wrote: rene7705 rene7...@gmail.com wrote in message news:cadegsebtv7ffuvcbxkothqzah3ethegdedyuarxene2d1mw...@mail.gmail.com... Hi Folks

Re: [PHP] Got HTML5 History API + caching LICKED, I think, grin

2012-03-16 Thread Jim Giner
rene7705 rene7...@gmail.com wrote in message news:CADegSEbpRnu47ub-XHyGF8JyK9BBcr7R=p157tO3R_k3+8RH=g...@mail.gmail.com... As for my files and homepage being Huge, yep, it's made for the future or current fast internet connections. Frankly, size reduction is not on my agenda. I'll wait for

Re: [PHP] Got HTML5 History API + caching LICKED, I think, grin

2012-03-16 Thread Jim Giner
Stuart Dallas stu...@3ft9.com wrote in message news:292A87F4-AEE0-449E-BF90-45e3a0b70...@3ft9.com... Anyway, your comment about waiting for the nets (sic) to catch up so it can cope with your bloat has convinced me to not bother looking any further into your project, but I wish you the best of

Re: [PHP] fgetcsv doesn't return an array?

2012-03-15 Thread Jim Lucas
(,, $csvCurrentLine); What does it say about the variable from the failing line? -- 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] Have little enough hair as it is ...

2012-03-12 Thread Jim Lucas
' second number and what the code returns is a string of the format '(number1)to(number2)' or simply '(number1)' - something fairly standard in PHP? But the nanny message says it need to be re-writen, the question is 'How?' :( -- Jim Lucas http://www.cmsws.com/ http://www.cmsws.com/examples

Re: [PHP] questions about $_SERVER

2012-03-12 Thread Jim Giner
The purpose of the global statement within a function is to let PHP know that the usage of a var name INSIDE that function is not meant to create a NEW variable, but instead, to reference the other (global) variable being used (and perhaps already defined) in your main script. Basically it

Re: [PHP] questions about $_SERVER

2012-03-10 Thread Jim Giner
Tedd Sperling tedd.sperl...@gmail.com wrote in message news:315faa8f-3103-4661-b167-d30248952...@gmail.com... On Mar 9, 2012, at 10:20 PM, Jim Giner wrote: tamouse mailing lists tamouse.li...@gmail.com wrote in message news:CAHUC_t8g43GE3xqvSU5SwFePGS1XG=tk1mhrbem9gjaarve...@mail.gmail.com

Re: [PHP] questions about $_SERVER

2012-03-09 Thread Jim Giner
tamouse mailing lists tamouse.li...@gmail.com wrote in message news:CAHUC_t8g43GE3xqvSU5SwFePGS1XG=tk1mhrbem9gjaarve...@mail.gmail.com... On Mon, Feb 13, 2012 at 2:39 PM, Tedd Sperling tedd.sperl...@gmail.com wrote: On Feb 13, 2012, at 4:10 AM, Stuart Dallas wrote: On 13 Feb 2012, at 06:28,

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