[PHP] Re: Email Antispam

2012-04-17 Thread Jim Giner
"David Mehler" 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 mailto links wo

[PHP] Re: Email Antispam

2012-04-17 Thread Jim Giner
"Ross McKay" 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 >>solution

[PHP] Re: Email Antispam

2012-04-18 Thread Jim Giner
"Ross McKay" 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

[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" wrote in message news:CAKDXFkMOH63=hnlekxugampqwrhvvet2x4iw-42soqkisrg...@mail.gmail.com... > Given this code: > > error_reporting(-1); -- PHP General Mailing List (http://www.php.net/) To unsubscribe,

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" wrote in message news:cakdxfkn+6mn9chuqdwevx5ap0km-rkls0q+carbf5hktvuo...@mail.gmail.com... On Mon, Apr 23, 2012 at 16:53, Jim Lucas wrote: >> Possibly, thanks. I actually don't have acce

Re: [PHP] url string being split

2012-04-26 Thread Jim Giner
I"m 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 N

Re: [PHP] undefined offset

2012-04-26 Thread Jim Giner
Thanks. That was it -my last line was null. - Original Message - From: "Stuart Dallas" To: "Jim Giner" Cc: Sent: Thursday, April 26, 2012 4:21 PM Subject: Re: [PHP] undefined offset On 26 Apr 2012, at 21:20, Jim Giner wrote: Sorry - can't seem to fi

[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 element

[PHP] Re: Array_diff problems

2012-04-27 Thread Jim Giner
"Rick Dwyer" 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] => 10 [Frequency

[PHP] Re: function

2012-05-04 Thread Jim Giner
""Ron Piggott"" 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? How am I able to do this?

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 he

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"" 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 respons

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" wrote in message news:cahuc_t-416_-lpcn3mo8qqxwrh4pnq5fmwouhwpdk+hmkgh...@mail.gmail.com... On Thu, May 3, 2012 at 9:12 PM, Ron Piggott wrote: Where i

[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 rows"; 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: http://www.php.net/unsub.ph

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"" 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, > overwri

[PHP] Re: Variables via url

2012-05-12 Thread Jim Giner
""Ashley M. Kirchner"" 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 /variab

[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 (0

[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" 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: >>

Re: [PHP] regexp novice

2012-05-17 Thread Jim Giner
Thank you ! "Govinda" 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 pattern (needle) in the

Re: [PHP] regexp novice

2012-05-17 Thread Jim Giner
"Jim Lucas" 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 >> Ginerwrote: >> >>> 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

Re: [PHP] regexp novice

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

Re: [PHP] regexp novice

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

Re: [PHP] regexp novice

2012-05-18 Thread Jim Giner
"Stuart Dallas" 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 v

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" wrote in message news:79538829-bfc4-43a4-a413-72247b145...@3ft9.com... On 18 May 2012, at 14:41, Jim Giner wrote: > "Stuart Dallas" wrote in message > news:cc22e241-c1df-48e9-bf06-8a638a356...@3ft9.com... >> On 18 May 2012, at 14:32, Jim Gine

Re: [PHP] regexp novice

2012-05-18 Thread Jim Giner
"Stuart Dallas" 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 concern

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

2012-06-05 Thread Jim Giner
"Govinda" 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. > >>> Hi All, >>> >>> I am

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

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

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" 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 >> &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 (http://www

[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

[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 P

Re: [PHP] phpinfo

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

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, visi

Re: [PHP] slicing and dicing strings

2012-06-27 Thread Jim Giner
"Stuart Dallas" 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 to use the ma

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

2012-06-27 Thread Jim Giner
"Tim Dunphy" 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 /Library/WebServer/Documents/

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

2012-06-28 Thread Jim Giner
"Gary Lebowitz" 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 into their

[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 ea

[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 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 l

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/to

[PHP] Re: get question

2012-08-27 Thread Jim Giner
On 8/27/2012 3:17 PM, Jack S wrote: Hello All, Trying to figure out why when I include the page that contains this code, I'm not able to get the $calling_page populated with any values. Any help appreciated... "; } elseif ($calling_page == "index") { $title = "Title 2 - $calling_page

Re: [PHP] Re: get question

2012-08-27 Thread Jim Giner
On 8/27/2012 7:21 PM, Ashley Sheridan wrote: On Mon, 2012-08-27 at 18:54 -0400, Jack S wrote: OK yes, wrote: On Mon, 2012-08-27 at 16:37 -0400, Jack S wrote: > > How are you including this in your code? GET data won't be passed in a > > call like require("some_fil

[PHP] The end of "mysql"

2012-09-07 Thread Jim Giner
So with the announced end of the mysql functions (and switching to a different extension), one would think that my isp/hoster would be a bit more interested in my dilemma. I tried today to create my first mysqli-based test script and found that I didn't have that extension. A series of emails

Re: [PHP] The end of "mysql"

2012-09-08 Thread Jim Giner
Nope. No PDO as yet either jg On Sep 7, 2012, at 11:22 PM, Adam Richardson wrote: > On Fri, Sep 7, 2012 at 9:58 PM, Jim Giner > wrote: >> So with the announced end of the mysql functions (and switching to a >> different extension), one would think that my isp/hoster w

Re: [PHP] The end of "mysql"

2012-09-08 Thread Jim Giner
On 9/8/2012 10:40 AM, Bastien wrote: Change hosts. They are not keeping up That's not entirely true. They have kept up to date with most things for the 10 years I've been with them. I think they just have to get their heads around the idea that the PHP community is moving ahead on something

Re: [PHP] The end of "mysql"

2012-09-08 Thread Jim Giner
On 9/8/2012 9:54 AM, Jim Giner wrote: Nope. No PDO as yet either jg On Sep 7, 2012, at 11:22 PM, Adam Richardson wrote: On Fri, Sep 7, 2012 at 9:58 PM, Jim Giner wrote: So with the announced end of the mysql functions (and switching to a different extension), one would think that my isp

[PHP] Re: Programmers and developers needed

2012-09-13 Thread Jim Giner
On 9/13/2012 3:45 AM, agbo onyador wrote: Hello there! We are looking for programmers and developers to create a world wide system. Your comments are welcome. really?? A "world wide system"? And this is how you advertise it? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, v

[PHP] tricky code problem

2012-09-17 Thread Jim Giner
This is a tricky one but let's see if I can explain it. 1 - using a menu screen I have a link that calls a js function that opens a popup with a form in it; 2 - the form receives some user input (a login) and then the user clicks a submit button; 3 - the button has an onclick that calls a j

Re: [PHP] Re: Programmers and developers needed

2012-09-18 Thread Jim Giner
How naive you are to think that technology will promote world peace. People promote world peace and all the technology in the world cannot help them. You want world peace - stop chasing the "easy solution" and go do something. Look at the great "social networks" of today - they amount to pic

[PHP] Re: Joining a team, where no wiki or docs are available

2012-09-24 Thread Jim Giner
On 9/24/2012 10:05 AM, AmirBehzad Eslami wrote: Hi, i'm going to join a mid-size company with a few PHP-driven projects written in procedural PHP, million years old. At the moment, they don't have a wiki or any documentation about their projects. For me, the first challenge in probation period

[PHP] Re: PHP as Application Server

2012-09-26 Thread Jim Giner
On 9/26/2012 5:58 AM, Maciej Liżewski wrote: Hi, Maybe this topic have been already on board, but I could not find nothing in google, so my question to PHP maintaneers (and other users too) is: Why there is no possibility to run PHP in "application server" way among other SAPI modules and other

Re: [PHP] Re: PHP as Application Server

2012-09-26 Thread Jim Giner
and whole things works as expected... 2012/9/26 Jim Giner : On 9/26/2012 5:58 AM, Maciej Liżewski wrote: Hi, Maybe this topic have been already on board, but I could not find nothing in google, so my question to PHP maintaneers (and other users too) is: Why there is no possibility to run PHP

Re: [PHP] about lock some codes.

2012-09-27 Thread Jim Giner
On 9/27/2012 7:05 AM, Maciek Sokolewicz wrote: On 27-09-2012 11:31, lx wrote: Hello: I have a question now.the code is: $ftemp = fopen("$fdoc_tmp/temp_proxy", 'w'); fwrite($ftemp, $content); fclose($ftemp); exec("/usr/

Re: [PHP] Here's my rounding

2012-09-28 Thread Jim Giner
On 9/28/2012 2:11 AM, Simon J Welsh wrote: On 28/09/2012, at 6:08 PM, Chris Payne wrote: $test2 = '253177'; echo $tes2 . " rounded to: "; $rounded_number = round($test2,-3); echo $rounded_number; Is it SUPPOSED to happy a number is sent to this little system and it's SUPPOSED to round the num

[PHP] Re: php can't insert data mysql table

2012-10-01 Thread Jim Giner
On 10/1/2012 12:32 AM, Tim Dunphy wrote: Hello list, I'm trying to learn and get comfortable with HTML forms in PHP. In one example I am trying to include a file upload in one of the forms. I can connect to the database but for some reason the MySQL query string is bad. I've been over this for

Re: [PHP] Re: php can't insert data mysql table

2012-10-01 Thread Jim Giner
On 10/1/2012 9:12 AM, Tommy Pham wrote: On Mon, Oct 1, 2012 at 6:03 AM, Jim Giner wrote: In this case, I do think that your insert statement is incorrect - I could be wrong. I think the VALUES clause s/b just 'VALUE'. Also if you added MYSQLI_ERROR to your error handling you sh

[PHP] Re: php can't insert data mysql table

2012-10-01 Thread Jim Giner
On 10/1/2012 12:32 AM, Tim Dunphy wrote: Hello list, I'm trying to learn and get comfortable with HTML forms in PHP. In one example I am trying to include a file upload in one of the forms. I can connect to the database but for some reason the MySQL query string is bad. I've been over this for

[PHP] Re: php can't insert data mysql table

2012-10-01 Thread Jim Giner
oops - I added a an extra "id" field. There were only 4 in OP's DESCRIBE email. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: php can't insert data mysql table

2012-10-01 Thread Jim Giner
On 10/1/2012 12:20 PM, Tim Dunphy wrote: hey thanks guys adding debugging info worked. Actually it was mysqli_error() providing me with a specific error of where the problem was. Cannot insert query:Duplicate entry '0' for key 'PRIMARY' This is the data in the table mysql> select * from guita

[PHP] Re: Differences

2012-10-04 Thread Jim Giner
On 10/3/2012 8:48 PM, David McGlone wrote: Hi everyone, I have been playing around with some code the list helped me with a while back and I'm not grasping the concept between return and echo and the PHP manual doesn't answer this, unless I'm missing something. There is an example at the very bot

Re: [PHP] Re: Differences

2012-10-04 Thread Jim Giner
On 10/4/2012 7:08 PM, David McGlone wrote: On Thursday, October 04, 2012 06:06:50 PM Jim Giner wrote: On 10/3/2012 8:48 PM, David McGlone wrote: Hi everyone, I have been playing around with some code the list helped me with a while back and I'm not grasping the concept between return and

[PHP] Re: building upon the code RE: Differences

2012-10-04 Thread Jim Giner
On 10/4/2012 10:15 PM, David McGlone wrote: I hope I'm not being a pest. I've played with the return and echo so much today I've finally realized I'm going in circles. But I can say I understand it more than ever. Now whats on my mind is breaking out of this circle and doing more with this code

[PHP] Re: building upon the code RE: Differences

2012-10-04 Thread Jim Giner
On 10/4/2012 10:15 PM, David McGlone wrote: I hope I'm not being a pest. I've played with the return and echo so much today I've finally realized I'm going in circles. But I can say I understand it more than ever. Now whats on my mind is breaking out of this circle and doing more with this code

Re: [PHP] Re: building upon the code RE: Differences

2012-10-05 Thread Jim Giner
On 10/5/2012 8:09 AM, David McGlone wrote: On Thursday, October 04, 2012 10:41:17 PM Jim Giner wrote: On 10/4/2012 10:15 PM, David McGlone wrote: I hope I'm not being a pest. I've played with the return and echo so much today I've finally realized I'm going in circ

[PHP] Re: limiting

2012-10-09 Thread Jim Giner
On 10/8/2012 11:11 PM, David McGlone wrote: Hi all, is there any other way to limit this code to only displaying 1 image other than using return. When I use return, I can't get the other images to display in lightbox, but when I use echo, all 5 of the images will correctly display in lightbox, b

Re: [PHP] Re: limiting

2012-10-09 Thread Jim Giner
PLEASE SEE MY COMMENTS INTERSPERSED AND BELOW. (yes this is a top post) On 10/9/2012 3:18 PM, David McGlone wrote: On Tuesday, October 09, 2012 12:18:06 PM Jim Giner wrote: On 10/8/2012 11:11 PM, David McGlone wrote: Hi all, is there any other way to limit this code to only displaying 1

Re: [PHP] Re: limiting

2012-10-09 Thread Jim Giner
On 10/9/2012 3:46 PM, Matijn Woudt wrote: On Tue, Oct 9, 2012 at 9:18 PM, David McGlone wrote: On Tuesday, October 09, 2012 12:18:06 PM Jim Giner wrote: Sorry to be so blunt. It's fine I kinda figured I'd be either ignored, or yelled at when I asked and I now know that I ne

Re: RES: [PHP] Re: limiting

2012-10-09 Thread Jim Giner
for the newcomers. Everything should be interpreted as directions and hints, and not as yells or other bad things, doesn't matter how bad the words appear to be. Good luck in your path. -Mensagem original- De: Jim Giner [mailto:jim.gi...@albanyhandball.com] Enviada em: terça-fe

Re: [PHP] Re: limiting

2012-10-10 Thread Jim Giner
On 10/10/2012 10:07 AM, Floyd Resler wrote: On Oct 10, 2012, at 9:12 AM, Andy McKenzie wrote: Have you read a book on php and perhaps one on CSS to help with your "hiding" problem? (BTW - that last was a hint.) I've read plenty of PHP books I own at least 5 and ALL of them I've read har

Re: [PHP] Re: limiting

2012-10-10 Thread Jim Giner
On 10/10/2012 1:19 PM, David McGlone wrote: With that said, I just may leave the list. After all if this is all I'm going to get out of it, it's not worth it! -- David M. This list has given you some very good advice, much of it from others. It may not have solved your understanding of 'gl

[PHP] Re: limiting

2012-10-10 Thread Jim Giner
On 10/10/2012 2:36 PM, Tim Streater wrote: On 10 Oct 2012 at 19:17, David McGlone wrote: BTW - in any of your other computer languages didn't they utilize a 'return' statement? PHP's is no different. back in like '85, I learned Pascal that's the only language I learned and I don't recall

Re: [PHP] Re: limiting

2012-10-10 Thread Jim Giner
On 10/10/2012 4:27 PM, Matijn Woudt wrote: On Wed, Oct 10, 2012 at 10:26 PM, Ashley Sheridan wrote: On Wed, 2012-10-10 at 14:53 -0400, David McGlone wrote: On Wednesday, October 10, 2012 07:36:00 PM Tim Streater wrote: On 10 Oct 2012 at 19:17, David McGlone wrote: BTW - in any of your

[PHP] Re: PHP The Right Way (website)

2012-10-14 Thread Jim Giner
On 10/14/2012 1:10 AM, tamouse mailing lists wrote: This just dropped in my inbox the other day from Smashing #69: 2. PHP The Right Way If you are developing for the Web, the chances are high that you have to deal with PHP on a regular basis. However, once you've stumbled upon a problem that y

Re: [PHP] Re: PHP The Right Way (website)

2012-10-14 Thread Jim Giner
On 10/14/2012 12:06 PM, tamouse mailing lists wrote: On Sun, Oct 14, 2012 at 10:48 AM, Jim Giner wrote: On 10/14/2012 1:10 AM, tamouse mailing lists wrote: This just dropped in my inbox the other day from Smashing #69: 2. PHP The Right Way If you are developing for the Web, the chances

Re: [PHP] Re: PHP The Right Way (website)

2012-10-14 Thread Jim Giner
On 10/14/2012 12:12 PM, Daniel Brown wrote: On Sun, Oct 14, 2012 at 11:48 AM, Jim Giner wrote: Sounds like a good idea, but as for me - if I was a newbie I'd have a problem with their very first instructions. It says right off the start to type in the following: php -5 localhost

Re: [PHP] foreach

2012-10-16 Thread Jim Giner
On 10/15/2012 8:39 PM, Jim Lucas wrote: On 10/15/2012 05:16 PM, David McGlone wrote: I've been sitting here playing around with foreach() and I'm wondering why I am getting these results. here's what I've been fooling around with. the code has no perticular meaning, but I noticed if the script f

Re: [PHP] Table help needed

2012-10-20 Thread Jim Giner
On 10/20/2012 8:26 AM, Maciek Sokolewicz wrote: On 20-10-2012 07:52, tamouse mailing lists wrote: Surprised no one else has jumped on the "Don't use mysql anymore" thing here. Quick and dirty PDO implementation: https://gist.github.com/3922192 I'm actually more surprised that the OP hasn't e

[PHP] cron job problem

2012-10-23 Thread Jim Giner
I have a php script that has been triggered by my hoster's cron process(?) to run once a day since last March. It's been running fine - and I've made no changes to it. Suddenly in the last couple of days it is running twice it seems. The whole process sends an email at its conclusion and the

Re: [PHP] cron job problem

2012-10-23 Thread Jim Giner
On 10/23/2012 4:56 PM, Daniel Brown wrote: On Tue, Oct 23, 2012 at 4:48 PM, Jim Giner wrote: I have a php script that has been triggered by my hoster's cron process(?) to run once a day since last March. It's been running fine - and I've made no changes to it. Suddenly in the

Re: [PHP] cron job problem

2012-10-23 Thread Jim Giner
On 10/23/2012 6:18 PM, David OBrien wrote: On Tue, Oct 23, 2012 at 5:31 PM, Daniel Brown wrote: On Tue, Oct 23, 2012 at 5:34 PM, Ashley Sheridan wrote: Crontab is the daemon which runs cron jobs, and some distros have set up special files called cron.daily (or daily.cron I don't recall), c

Re: [PHP] cron job problem

2012-10-23 Thread Jim Giner
On 10/23/2012 6:57 PM, Ashley Sheridan wrote: On Tue, 2012-10-23 at 18:36 -0400, Jim Giner wrote: On 10/23/2012 6:18 PM, David OBrien wrote: On Tue, Oct 23, 2012 at 5:31 PM, Daniel Brown wrote: On Tue, Oct 23, 2012 at 5:34 PM, Ashley Sheridan wrote: Crontab is the daemon which runs

[PHP] Re: Date comparison going wrong, wrong, wrong

2012-11-11 Thread Jim Giner
On 11/11/2012 1:30 PM, Terry Ally (Gmail) wrote: Hi all, I am having a problem with comparing time. I am using the following: $todaydate = date("D, M jS, Y g:i:s a"); $showenddate = date("D, M jS, Y g:i:s a", strtotime($showsRecord['end_date'])); if ($todaydate > $showenddate): echo "The

[PHP] Re: Date comparison going wrong, wrong, wrong

2012-11-11 Thread Jim Giner
BTW - this is the code I used to test out your process: $showenddate) echo "The date of the show has not yet arrived"; else echo "The show has ended"; -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Switch - Case Statement Questions

2012-11-16 Thread Jim Giner
On 11/16/2012 12:38 PM, Tim Streater wrote: On 16 Nov 2012 at 12:10, Omar Muhsin wrote: Hello, I was just wondering after writting the code in version 2 here below, it turns out in testing that it actually PHP is not validating the expressions instead always I get the first case. 1.Using nes

Re: [PHP] Re: Switch - Case Statement Questions

2012-11-19 Thread Jim Giner
On 11/16/2012 8:33 PM, Iñigo Medina wrote: On Fri, 16 Nov 2012, Jim Giner wrote: On 11/16/2012 12:38 PM, Tim Streater wrote: On 16 Nov 2012 at 12:10, Omar Muhsin wrote: Hello, I was just wondering after writting the code in version 2 here below, it turns out in testing that it actually

[PHP] Re: PDO question

2012-11-28 Thread Jim Giner
On 11/28/2012 3:58 PM, ad...@buskirkgraphics.com wrote: Guys, I am not quiet sure what is happening but every time i try to connect to a remote host it refers back to localhost. $pdo = new PDO('mysql:host=171.16.23.44;dbname=test', 'user','password'); ERROR: Access denied for user 'user'@'loca

Re: [PHP] Re: PDO question

2012-11-28 Thread Jim Giner
On 11/28/2012 4:18 PM, ad...@buskirkgraphics.com wrote: On November 28, 2012 at 4:11 PM Jim Giner wrote: On 11/28/2012 3:58 PM, ad...@buskirkgraphics.com wrote: Guys, I am not quiet sure what is happening but every time i try to connect to a remote host it refers back to localhost. $pdo

Re: [PHP] Re: PDO question

2012-11-28 Thread Jim Giner
On 11/28/2012 4:22 PM, ad...@buskirkgraphics.com wrote: On November 28, 2012 at 4:11 PM Jim Giner wrote: On 11/28/2012 3:58 PM, ad...@buskirkgraphics.com wrote: Guys, I am not quiet sure what is happening but every time i try to connect to a remote host it refers back to localhost. $pdo

[PHP] Session ?

2012-12-07 Thread Jim Giner
Something new for me - working with scripts on two of my sub-domains. I want to call script 2 in my B domain from script 1 in my A domain. It appears that the session vars established in script 1 do not show up in script 2. Is that because the domain name is different? Is this where one must

Re: [PHP] Session ?

2012-12-07 Thread Jim Giner
On 12/7/2012 2:36 PM, Daniel Brown wrote: On Fri, Dec 7, 2012 at 2:33 PM, Jim Giner wrote: Something new for me - working with scripts on two of my sub-domains. I want to call script 2 in my B domain from script 1 in my A domain. It appears that the session vars established in script 1 do

Re: [PHP] Session ?

2012-12-07 Thread Jim Giner
On 12/7/2012 2:41 PM, Daniel Brown wrote: On Fri, Dec 7, 2012 at 2:38 PM, Jim Giner wrote: On 12/7/2012 2:36 PM, Daniel Brown wrote: On Fri, Dec 7, 2012 at 2:33 PM, Jim Giner wrote: Something new for me - working with scripts on two of my sub-domains. I want to call script 2 in my B

Re: [PHP] Session ?

2012-12-07 Thread Jim Giner
On 12/7/2012 2:58 PM, Sebastian Krebs wrote: 2012/12/7 Jim Giner On 12/7/2012 2:41 PM, Daniel Brown wrote: On Fri, Dec 7, 2012 at 2:38 PM, Jim Giner wrote: On 12/7/2012 2:36 PM, Daniel Brown wrote: On Fri, Dec 7, 2012 at 2:33 PM, Jim Giner wrote: Something new for me - working

Re: [PHP] Session ?

2012-12-07 Thread Jim Giner
On 12/7/2012 2:59 PM, Daniel Brown wrote: On Fri, Dec 7, 2012 at 2:54 PM, Jim Giner wrote: What if my sub-domain names are not in the form of 'a.domain.com' and 'b.domain.com'. A subdomain is a subdomain. Unless you've discovered a new magical form of subdomai

Re: [PHP] Session ?

2012-12-07 Thread Jim Giner
So i need the ini set in both scripts. Thx. Ill try that later jg -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Session ?

2012-12-08 Thread Jim Giner
On 12/7/2012 3:20 PM, Sebastian Krebs wrote: 2012/12/7 Daniel Brown On Fri, Dec 7, 2012 at 3:04 PM, Jim Giner wrote: OK - now that I've messed us all up, help me to understand your proposed solution. I added the ini-set line to my first script. Then I called my second one and stil

  1   2   3   4   5   >