Re: [PHP] Re: [BULK] Re: [PHP] OK to have many files in one folder?

2007-06-18 Thread Jim Lucas
filesystem. -- Jim Lucas Some men are born to greatness, some achieve greatness, and some have greatness thrust upon them. Twelfth Night, Act II, Scene V by William Shakespeare -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] subtracting time from date and time

2007-06-18 Thread Jim Lucas
', $timestamp - ( $oneHour * 8)); -- Jim Lucas Some men are born to greatness, some achieve greatness, and some have greatness thrust upon them. Twelfth Night, Act II, Scene V by William Shakespeare -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http

Re: [PHP] file_exists, Windows, and EasyPHP

2007-06-18 Thread Jim Lucas
else's thread. Secondly, I think it might have something to do with the space in the file name. Try changing all spaces to %20 and see what happens. $string = str_replace(' ', '%20', $string); should do the trick -- Jim Lucas Some men are born to greatness, some achieve greatness

Re: [PHP] file_exists, Windows, and EasyPHP

2007-06-18 Thread Jim Lucas
Daniel Brown wrote: On 6/18/07, Jim Lucas [EMAIL PROTECTED] wrote: First off, don't jack someone else's thread. Am I not getting all of the list messages today? I didn't see where the thread hijacking occurred -- Jim Lucas Some men are born to greatness, some achieve greatness

Re: [PHP] PHP calling an ISAPI Extension

2007-06-18 Thread Jim Lucas
function without reloading the page, and get a result back? That's one tall order. Anyone want to give it a shot? [/snip] Do the POST with an AJAX call perform an ajax call the a php script that calls curl to do a post to the ISAPI extension -- Jim Lucas Some men are born to greatness, some

Re: [PHP] PHP calling an ISAPI Extension

2007-06-18 Thread Jim Lucas
Dan wrote: I wish I could, I can't count on the script being on a linux machine. I also can't expect people to rebuild PHP with the curl library just to use my script. Is there any other way to do a post to a page from a php function? - Daniel Jim Lucas [EMAIL PROTECTED] wrote in message

Re: [PHP] PHP calling an ISAPI Extension

2007-06-19 Thread Jim Lucas
Tijnema wrote: On 6/19/07, Jim Lucas [EMAIL PROTECTED] wrote: Dan wrote: I wish I could, I can't count on the script being on a linux machine. I also can't expect people to rebuild PHP with the curl library just to use my script. Is there any other way to do a post to a page from a php

Re: [PHP] Comparing string to array

2007-06-19 Thread Jim Lucas
in the code above won't play because it's got a totally useless array key passed to it. I need a way to turn the string: test['sam'][] into something I can look into $_POST for. Any ideas? The coffee boost is wearing off, but I want to get this licked tonight :-\ Cheers, Rich -- Jim Lucas Some

Re: [PHP] Comparing string to array

2007-06-19 Thread Jim Lucas
in this case, it isn't a valid char. Look at his output, you will see that the single quotes are being included in the actual value of the submitted array. So, in this case, they will mess with his comparison. you'll be comparing 'bob' not bob Look at the output a little closer... -- Jim Lucas

Re: [PHP] Comparing string to array

2007-06-19 Thread Jim Lucas
use var_dump() instead of print_r() you will see what I am talking about. -- Jim Lucas Some men are born to greatness, some achieve greatness, and some have greatness thrust upon them. Twelfth Night, Act II, Scene V by William Shakespeare -- PHP General Mailing List (http

Re: [PHP] Comparing string to array

2007-06-19 Thread Jim Lucas
but a single quote is a perfectly valid (if somewhat stupid choice of) character for inclusion in an array key. Cheers, Rich -- Jim Lucas Some men are born to greatness, some achieve greatness, and some have greatness thrust upon them. Twelfth Night, Act II, Scene V by William

Re: [PHP] Comparing string to array

2007-06-19 Thread Jim Lucas
Stut wrote: Jim Lucas wrote: Richard Davey wrote: Hi Jim, Tuesday, June 19, 2007, 5:06:47 PM, you wrote: DON'T USE SINGLE QUOTES IN YOUR NAME= ATTRIBUTE Hate to piss on your bonfire but a single quote is a perfectly valid (if somewhat stupid choice of) character for inclusion in an array

Re: [PHP] Comparing string to array

2007-06-19 Thread Jim Lucas
Jim Lucas wrote: $userparam = test['sam'][]; then what you are saying it that this HAS to be your search string? -- Jim Lucas Some men are born to greatness, some achieve greatness, and some have greatness thrust upon them. Twelfth Night, Act II, Scene V by William

Re: [PHP] Comparing string to array

2007-06-19 Thread Jim Lucas
Richard Davey wrote: Hi Jim, Tuesday, June 19, 2007, 5:47:29 PM, you wrote: Jim Lucas wrote: $userparam = test['sam'][]; then what you are saying it that this HAS to be your search string? Heck no, it doesn't *have* to be. Feel free to remove the quotes from it and then attempt

Re: [PHP] Comparing string to array

2007-06-19 Thread Jim Lucas
Richard Davey wrote: Hi Jim, Tuesday, June 19, 2007, 5:47:29 PM, you wrote: Jim Lucas wrote: $userparam = test['sam'][]; then what you are saying it that this HAS to be your search string? Heck no, it doesn't *have* to be. Feel free to remove the quotes from it and then attempt

Re: [PHP] Comparing string to array

2007-06-19 Thread Jim Lucas
Stut wrote: Jim Lucas wrote: Richard Davey wrote: Hi Jim, Tuesday, June 19, 2007, 5:47:29 PM, you wrote: Jim Lucas wrote: $userparam = test['sam'][]; then what you are saying it that this HAS to be your search string? Heck no, it doesn't *have* to be. Feel free to remove

Re: [PHP] Comparing string to array

2007-06-19 Thread Jim Lucas
[sam][colors][] value=bluebluebr input type=submit /form -- Jim Lucas Some men are born to greatness, some achieve greatness, and some have greatness thrust upon them. Twelfth Night, Act II, Scene V by William Shakespeare -- PHP General Mailing List (http://www.php.net

Re: [PHP] If statement duplicating mysql records?

2007-06-19 Thread Jim Lucas
, visit: http://www.php.net/unsub.php -- Jim Lucas Some men are born to greatness, some achieve greatness, and some have greatness thrust upon them. Twelfth Night, Act II, Scene V by William Shakespeare -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http

Re: [PHP] If statement duplicating mysql records?

2007-06-20 Thread Jim Lucas
Jason Pruim wrote: On Jun 19, 2007, at 4:20 PM, Jim Lucas wrote: Jason Pruim wrote: Okay, so I have a question... Probably pretty easy, but why would my if statement show more records then what are in the database? if($row[5] =='Level4'){ // White Highlight echo TRTD bgcolor

Re: [PHP] POST adding extra characters

2007-06-20 Thread Jim Lucas
); $_REQUEST = array_map(stripslashes, $_REQUEST); } -- Jim Lucas Some men are born to greatness, some achieve greatness, and some have greatness thrust upon them. Twelfth Night, Act II, Scene V by William Shakespeare -- PHP General Mailing List (http://www.php.net

Re: [PHP] POST adding extra characters

2007-06-20 Thread Jim Lucas
[EMAIL PROTECTED] wrote: Thanks Jim worked a treat - Original Message - From: Jim Lucas [EMAIL PROTECTED] To: [EMAIL PROTECTED] Cc: php-general@lists.php.net Sent: Thursday, June 21, 2007 4:03 AM Subject: Re: [PHP] POST adding extra characters [EMAIL PROTECTED] wrote: Hi.. when using

Re: [PHP] Re: php framework, large site

2007-06-21 Thread Jim Lucas
wants to build his own. Now, to me, he wants to start his own PHP Framework. Now, if you can't suggest any good sources for the op to read/investigate. Keep your mouth shut and don't waist everybody's bandwidth and time! -- Jim Lucas Some men are born to greatness, some achieve greatness

Re: [PHP] Re: php framework, large site

2007-06-21 Thread Jim Lucas
Robert Cummings wrote: On Thu, 2007-06-21 at 09:15 -0700, Jim Lucas wrote: Since this has really nothing to do with helping the OP with his original question, and honestly sounds like a bitch fest from hell. Why don't you take your disagreement of list Please. The one thing I hate

Re: [PHP] If statement duplicating mysql records?

2007-06-21 Thread Jim Lucas
Research and Application Development (IRAD) SAS Computing --PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- Jim Lucas Some men are born to greatness, some achieve greatness, and some have greatness thrust upon them. Twelfth

Re: [PHP] Small LAMP install/distro

2007-06-22 Thread Jim Lucas
sure and run 'yum update' seems like there are updates every couple hours. -- Jim Lucas Some men are born to greatness, some achieve greatness, and some have greatness thrust upon them. Twelfth Night, Act II, Scene V by William Shakespeare -- PHP General Mailing List (http

Re: [PHP] Small LAMP install/distro

2007-06-22 Thread Jim Lucas
explain further. -- Jim Lucas Some men are born to greatness, some achieve greatness, and some have greatness thrust upon them. Twelfth Night, Act II, Scene V by William Shakespeare -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Small LAMP install/distro

2007-06-22 Thread Jim Lucas
Jim Lucas wrote: [EMAIL PROTECTED] wrote: Excellent information Jim! Thanks a ton! I really wish I knew linux more intimately so I knew what was a vital organ and what was an appendix :) one other thing. fedore + yum will do all the work for you with regards to decencies and system

Re: [PHP] Small LAMP install/distro

2007-06-22 Thread Jim Lucas
. http://fedoraproject.org/wiki/FedoraLiveCD Look at option 8 -- Jim Lucas Some men are born to greatness, some achieve greatness, and some have greatness thrust upon them. Twelfth Night, Act II, Scene V by William Shakespeare -- PHP General Mailing List (http://www.php.net

Re: [PHP] PHP Color Coding in Gmail (was: open a file in a folder without knowing the filename)

2007-06-22 Thread Jim Lucas
highlighting. :) Then maybe, when the final product was completed, paste that into the final email to the list for archiving purpose. -- Jim Lucas Some men are born to greatness, some achieve greatness, and some have greatness thrust upon them. Twelfth Night, Act II, Scene V

Re: [PHP] path finder

2007-06-25 Thread Jim Lucas
This link is base from the web root src='/img/{$photoFileName}' This link is base on relative path src='img/{$photoFileName}' This might help -- Jim Lucas Some men are born to greatness, some achieve greatness, and some have greatness thrust upon them. Twelfth Night, Act II

Re: [PHP] Setting Different Temp Directory for Different Application Users

2007-06-25 Thread Jim Lucas
? Thanks in Advance. Zareef Ahmed --PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php Are you trying to keep user data/files separate? What are you trying to accomplish? -- Jim Lucas Some men are born to greatness, some achieve greatness

Re: [PHP] Re: strange include path error

2007-06-28 Thread Jim Lucas
it was. I guess i'll have to wait until tuesday to get more info from the client. brian you could always cross reference the time stamp in the error log to the access log and see what matches. -- Jim Lucas Some men are born to greatness, some achieve greatness, and some have

Re: [PHP] HELP - I have tried to unsubscribe from this listmutipletimes but cannot.

2007-06-29 Thread Jim Lucas
and responses that you have gotten back. -- Jim Lucas Some men are born to greatness, some achieve greatness, and some have greatness thrust upon them. Twelfth Night, Act II, Scene V by William Shakespeare -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit

Re: [PHP] HELP - I have tried to unsubscribe from this listmutipletimes but cannot.

2007-06-29 Thread Jim Lucas
a suggestion from someone that went through the exact same problem. -- Jim Lucas Some men are born to greatness, some achieve greatness, and some have greatness thrust upon them. Twelfth Night, Act II, Scene V by William Shakespeare -- PHP General Mailing List (http://www.php.net

Re: [PHP] Selecting Rows Based on Row Values Being in Array

2007-06-30 Thread Jim Lucas
kvigor wrote: Hello All, I'm attempting to return rows from a mysql DB based on this criteria: I have a list, in the form of an array that I need to compare against each row in the table. Where theres a match I need that entire row returned. e.g.$varListof 3outOf_10Fields =

Re: [PHP] Selecting Rows Based on Row Values Being in Array

2007-06-30 Thread Jim Lucas
K. Hayes wrote: Will do. Thanks. - Original Message - From: Jim Lucas [EMAIL PROTECTED] To: kvigor [EMAIL PROTECTED] Cc: php-general@lists.php.net Sent: Saturday, June 30, 2007 1:46 AM Subject: Re: [PHP] Selecting Rows Based on Row Values Being in Array kvigor wrote: Hello All

Re: [PHP] Selecting Rows Based on Row Values Being in Array

2007-07-02 Thread Jim Lucas
CONCAT(size,color,weight) IN( ); Jim Lucas [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] K. Hayes wrote: Will do. Thanks. - Original Message - From: Jim Lucas [EMAIL PROTECTED] To: kvigor [EMAIL PROTECTED] Cc: php-general@lists.php.net Sent: Saturday, June 30, 2007 1:46 AM

Re: [PHP] calling parent class method from the outside

2007-07-02 Thread Jim Lucas
class, then you can extend your class with class A and have all the methods/properties available to you within your current class. It is good to practice the DRY principle here. Note: Richard Heyes thanks for the code snippet -- Jim Lucas Some men are born to greatness, some achieve

Re: [PHP] Re: calling parent class method from the outside

2007-07-02 Thread Jim Lucas
-setBaz('my value for baz'); $Foo-setXyzzy('my value for xyzzy'); -- Jim Lucas Some men are born to greatness, some achieve greatness, and some have greatness thrust upon them. Twelfth Night, Act II, Scene V by William Shakespeare -- PHP General Mailing List (http://www.php.net

Re: [PHP] Re: calling parent class method from the outside

2007-07-02 Thread Jim Lucas
= new Foo1(); $Foo1-setBar('my value for bar'); $Foo1-setBaz('my value for baz'); $Foo1-setXyzzy('my value for xyzzy'); $Foo2 = new Foo2(); $Foo2-setBar('my value for bar'); $Foo2-setBaz('my value for baz'); $Foo2-setXyzzy('my value for xyzzy'); -- Jim Lucas Some men are born to greatness

Re: [PHP] str_replace new line

2007-07-02 Thread Jim Lucas
jekillen wrote: On Jul 2, 2007, at 6:07 PM, jekillen wrote: On Jul 2, 2007, at 3:15 PM, Greg Donald wrote: On 6/30/07, jekillen [EMAIL PROTECTED] wrote: Hello; I have the following code: $prps = str_replace(\n, ' ', $input[3]); Are you sure $input[3] doesn't have two newlines at the

Re: [PHP] Selecting Rows Based on Row Values Being in Array

2007-07-03 Thread Jim Lucas
' This is because you took out the quotes from above. Put them back and it might just work. SQL will see the un-quoted 6blue40lbs and think that it is a string. If it was quoted, it would not. // where am I going wrong? -- Jim Lucas Some men are born to greatness, some achieve greatness

Re: [PHP] task Scheduler driving me crazy!

2007-07-03 Thread Jim Lucas
--PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- Jim Lucas Some men are born to greatness, some achieve greatness, and some have greatness thrust upon them. Twelfth Night, Act II, Scene V by William Shakespeare -- PHP General

Re: [PHP] Removing Spaces from Array Values

2007-07-03 Thread Jim Lucas
) { $someArray[$k] = preg_replace('!\s!', '', $v); // Removes white space ' ', \n, \r\n, etc... $someArray[$k] = str_replace(' ', '', $v); // Removes only spaces } print_r($someArray); -- Jim Lucas Some men are born to greatness, some achieve greatness, and some have

Re: [PHP] how PHP is batter?

2007-07-03 Thread Jim Lucas
applications. Ummm... Windows? For which part? The server? I may be wrong, but can't this be done under Apache now? Isn't there a module for this? Writing ASP? Basic vi, joe, emacs, mg, etc... they work just fine. ;) Ed -- Jim Lucas Some men are born

Re: [PHP] Re: PHP Brain Teasers

2007-07-03 Thread Jim Lucas
{ protected function the() { } } class thetrees extends wood { public function foo() { } } $u = new thetrees(); $u-wood(); // Blerg Maybe.. Protect our public forests -- Jim Lucas Some men are born to greatness, some achieve greatness, and some have greatness

Re: [PHP] Selecting Rows Based on Row Values Being in Array

2007-07-03 Thread Jim Lucas
aren't rows returning? //END DETAILS== -- Jim Lucas Some men are born to greatness, some achieve greatness, and some have greatness thrust upon them. Twelfth Night, Act II, Scene V by William Shakespeare -- PHP General

Re: [PHP] Selecting Rows Based on Row Values Being in Array

2007-07-05 Thread Jim Lucas
kvigor wrote: where is the part that it join()'s things together? it's: $in_list = '.join(',',$list).'; Good what is the output of the join() call it's: '7orange50lbs','8purple60lbs' //once echo'd Fine $query_One = SELECT * FROM shoe WHERE CONCAT(size,color,weight) IN({$in_list});

Re: [PHP] Selecting Rows Based on Row Values Being in Array

2007-07-05 Thread Jim Lucas
and see if combined_string looks like what we think it should be. This you can do in phpmyadmin. oh, what is up with the naming conventions? Trying to trick us? To me it would not be obvious that you are storing colors in column for what looks like a city name. Just wondering... -- Jim Lucas

Re: [PHP] Selecting Rows Based on Row Values Being in Array

2007-07-05 Thread Jim Lucas
,' ',strState) it worked. So what do I owe you? - Original Message - From: Jim Lucas [EMAIL PROTECTED] To: kvigor [EMAIL PROTECTED] Cc: php-general@lists.php.net Sent: Thursday, July 05, 2007 10:10 AM Subject: Re: [PHP] Selecting Rows Based on Row Values Being in Array kvigor wrote

Re: [PHP] Adding the array in to each element of another one array

2007-07-06 Thread Jim Lucas
[] = %uy; $tmp[] = %xc; foreach ( $values AS $k = $v ) { if ( isset( $tmp[$k] ) ) { $values[$k] = $v . $tmp[$k]; // This puts it on the end $values[$k] = $tmp[$k] . $v; // This puts it at the start } } print_r($values); ? Hope this helps Jim Lucas -- PHP General Mailing List (http

Re: [PHP] Using PHP to retrieve a Yahoo Groups Web Page

2007-07-06 Thread Jim Lucas
curl_setopt($ch, CURLOPT_COOKIEFILE, './cookie.txt'); // Make sure location is writable -- Jim Lucas Some men are born to greatness, some achieve greatness, and some have greatness thrust upon them. Twelfth Night, Act II, Scene V by William Shakespeare -- PHP General Mailing List

Re: [PHP] Inserting single quotes

2007-07-07 Thread Jim Lucas
on, no matter what. -- Jim Lucas Some men are born to greatness, some achieve greatness, and some have greatness thrust upon them. Twelfth Night, Act II, Scene V by William Shakespeare -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net

Re: [PHP] triming utf8 (?) a string

2007-07-08 Thread Jim Lucas
from the beginning and ending of a string. http://us2.php.net/str_replace is meant to remove a set of chars from a string. Anywhere within the string. -- Jim Lucas Some men are born to greatness, some achieve greatness, and some have greatness thrust upon them. Twelfth Night, Act II

Re: [PHP] triming utf8 (?) a string

2007-07-09 Thread Jim Lucas
Rick Pasotto wrote: On Sun, Jul 08, 2007 at 06:30:54PM -0700, Jim Lucas wrote: Rick Pasotto wrote: I'm using the PEAR Crypt_Blowfish module. When I decrypt the encrypted string the result is the original plus some '\ufffd' bytes. How can I get rid of those extra bytes? I've tried both trim($x

Re: [PHP] Another simple question (Probably)

2007-07-09 Thread Jim Lucas
and ask for help :) Besides, the boss wants this done :) Jason ?PHP if($brain ==Monday){ echo Let me go home! }; ? --PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- Jim Lucas Some men are born to greatness, some

Re: [PHP] triming utf8 (?) a string

2007-07-09 Thread Jim Lucas
Rick Pasotto wrote: On Mon, Jul 09, 2007 at 07:45:10AM -0700, Jim Lucas wrote: Rick Pasotto wrote: On Sun, Jul 08, 2007 at 06:30:54PM -0700, Jim Lucas wrote: Rick Pasotto wrote: I'm using the PEAR Crypt_Blowfish module. When I decrypt the encrypted string the result is the original plus some

Re: [PHP] Re: Simple PHP setting arrays with keys question

2007-07-10 Thread Jim Lucas
['actualValue']; OR $products[] = array( $value['productName'] = $value['actualValue'] ); But these are not the same... -- Jim Lucas Some men are born to greatness, some achieve greatness, and some have greatness thrust upon them. Twelfth Night, Act II, Scene V by William Shakespeare

Re: [PHP] Another simple question (Probably)

2007-07-10 Thread Jim Lucas
Jason Pruim wrote: On Jul 9, 2007, at 10:56 AM, Jim Lucas wrote: Jason Pruim wrote: Okay so given this section of code: $taskTime=mktime(00,00,00,$_POST['txtReschedule']); where are you getting the $_POST['txtReschedule'] var from? in the html below, your var is $_POST['tasks

Re: [PHP] Creating 'Next' 'Previous' for PHP Photo Gallery

2007-07-10 Thread Jim Lucas
://www.rahulsjohari.com E: [EMAIL PROTECTED] ³I morti non sono piu soli ... The dead are no longer lonely² -- Jim Lucas Some men are born to greatness, some achieve greatness, and some have greatness thrust upon them. Twelfth Night, Act II, Scene V by William Shakespeare -- PHP

Re: [PHP] Another simple question (Probably)

2007-07-10 Thread Jim Lucas
] = Array ( [txtReschedule] = ) [32] = Array ( [txtReschedule] = ) [33] = Array ( [txtReschedule] = ) [37] = Array ( [txtReschedule] = ) [38] = Array ( [txtReschedule] = ) ) ) Just to clarify, your date format is YY/MM/DD ? -- Jim Lucas Some men are born to greatness, some achieve greatness

Re: [PHP] Creating 'Next' 'Previous' for PHP Photo Gallery

2007-07-10 Thread Jim Lucas
Jim Lucas wrote: Rahul Sitaram Johari wrote: I¹m trying to write a Photo Gallery in PHP. Everything else is pretty much worked out ­ like thumbnails, indexes, titles all ­ the one thing I¹m stuck at is the Next Previous links for the Photos on the main Photo Page. It¹s a simple program

Re: [PHP] Re: Simple PHP setting arrays with keys question

2007-07-10 Thread Jim Lucas
Tijnema wrote: On 7/10/07, Jim Lucas [EMAIL PROTECTED] wrote: Fredrik Thunberg wrote: Dan skrev: Oh yeah, the problem isn't that I'm using - instead of =. Well that was a problem but I fixed that and it's still not working. - Dan Dan [EMAIL PROTECTED] wrote in message news:[EMAIL

Re: [PHP] Another simple question (Probably)

2007-07-10 Thread Jim Lucas
= mktime(0,0,0,(int)$month,(int)$day,(int)'20'.$year); echo date('c', $utime).\n; } -- Jim Lucas Some men are born to greatness, some achieve greatness, and some have greatness thrust upon them. Twelfth Night, Act II, Scene V by William Shakespeare -- PHP General Mailing

Re: [PHP] Another simple question (Probably)

2007-07-10 Thread Jim Lucas
Jason Pruim wrote: On Jul 10, 2007, at 11:56 AM, Jim Lucas wrote: Jason Pruim wrote: here is the print_r($_POST); Array ( [tasks] = Array ( [31] = Array ( [txtReschedule] = 07/07/08 [chkDone] = 31 ) [39] = Array ( [txtReschedule] = 07/08/08 [chkDone] = 39 ) [34] = Array ( [txtReschedule

Re: [PHP] Another simple question (Probably)

2007-07-10 Thread Jim Lucas
? -- Jim Lucas Some men are born to greatness, some achieve greatness, and some have greatness thrust upon them. Twelfth Night, Act II, Scene V by William Shakespeare -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Problem with GD after upgrading Entropy 5.1.6 - 5.2.2

2007-07-10 Thread Jim Lucas
. ?php error_reporting(E_ALL); ini_set('display_errors', 'On'); ... now browse to the page and see what it says. Make sure you comment out the header part that sends a custom Content-type also. -- Jim Lucas Some men are born to greatness, some achieve greatness, and some have

Re: [PHP] getting the next element of an associative array

2007-07-12 Thread Jim Lucas
Olav Mørkrid wrote: let's say we have the following associative array: $array = array( red = ferrari, yellow = volkswagen, green = mercedes, blue = volvo ); then we have a current index into the array: $index = yellow; $current = $array[$index]; now: how do i get the key of the next

Re: [PHP] Array Push question

2007-07-12 Thread Jim Lucas
can avoid having to use 'count'. TIA, JC -- Jim Lucas Some men are born to greatness, some achieve greatness, and some have greatness thrust upon them. Twelfth Night, Act II, Scene V by William Shakespeare -- PHP General Mailing List (http://www.php.net/) To unsubscribe

Re: [PHP] Displaying HTML characters in real format

2007-07-12 Thread Jim Lucas
htmlspecialchars() or htmlentities() on it? and then have it displayed as and not quot? which is it? -- Jim Lucas Some men are born to greatness, some achieve greatness, and some have greatness thrust upon them. Twelfth Night, Act II, Scene V by William Shakespeare -- PHP

Re: [PHP] Alter an Array Key

2007-07-13 Thread Jim Lucas
of how you are using the $_POST array and maybe we can give you a better solution. -- Jim Lucas Some men are born to greatness, some achieve greatness, and some have greatness thrust upon them. Twelfth Night, Act II, Scene V by William Shakespeare -- PHP General Mailing List (http

Re: [PHP] preg_replace() help

2007-07-13 Thread Jim Lucas
so it loops forever. What am I doing wrong? Maybe this ?php $txt = 'A promise is a debt. -- Irish Proverb'; $parts = explode('--', $txt, 2); $parts[1] = str_replace(' ', 'nbsp;', $parts[1]); echo join('--', $parts); ? -- Jim Lucas Some men are born to greatness, some achieve greatness

Re: [PHP] preg_replace() help

2007-07-13 Thread Jim Lucas
so it loops forever. What am I doing wrong? What is your goal for this? -- Jim Lucas Some men are born to greatness, some achieve greatness, and some have greatness thrust upon them. Twelfth Night, Act II, Scene V by William Shakespeare -- PHP General Mailing List (http

Re: [PHP] problem with array

2007-07-15 Thread Jim Lucas
this echo $result[0]['description']; notice the sub-array... -- Jim Lucas Some men are born to greatness, some achieve greatness, and some have greatness thrust upon them. Twelfth Night, Act II, Scene V by William Shakespeare -- PHP General Mailing List (http://www.php.net

Re: [PHP] mysql_fetch_array to associative array

2007-07-16 Thread Jim Lucas
) ) { $result[] = $row; } mysql_free_result($get); return $result; } I searched a lot but didn't find anything. Thanks for any help :) Andras -- Jim Lucas Some men are born

Re: [PHP] repetition of tedious references

2007-07-18 Thread Jim Lucas
this? ?php $v = @$_SERVER['xpy']; echo ( empty($v) ? '*' : $v ); -- Jim Lucas Some men are born to greatness, some achieve greatness, and some have greatness thrust upon them. Twelfth Night, Act II, Scene V by William Shakespeare -- PHP General Mailing List (http://www.php.net

Re: [PHP] Session Issues with Certain ISPs

2007-07-18 Thread Jim Lucas
machine A and then they are shot over to machine B. That machine B would not then have the session data from machine A. Might look into doing DB session storage if that is the case. -- Jim Lucas Some men are born to greatness, some achieve greatness, and some have greatness thrust upon

Re: [PHP] Denial of Service Attack

2007-07-20 Thread Jim Lucas
back to my web server. What does everybody else think? Jim Lucas -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] About XML XSLT

2007-07-20 Thread Jim Lucas
be accessed normally through the browser. What you are suggesting would be the best way of making the file in accessible from the web server. But their is another ways. If you are running apache, you could setup apache to not serve that file, or file type. -- Jim Lucas Some men are born

Re: [PHP] How to skipping the range of values from each element of array??

2007-07-21 Thread Jim Lucas
, do you want to leave them out of the results, or skip the entire row of data? -- Jim Lucas Some men are born to greatness, some achieve greatness, and some have greatness thrust upon them. Twelfth Night, Act II, Scene V by William Shakespeare -- PHP General Mailing List (http

Re: [PHP] Pirate PHP books online?

2007-07-21 Thread Jim Lucas
Crayon Shin Chan wrote: On Saturday 21 July 2007 04:15, Tijnema wrote: Old paper can be recycled, lost energy from computers can't ;) Recycling old paper use energy as well. more then likely, recycling a stack of newspapers would cost more then running my computer for a month. -- Jim

Re: [PHP] Denial of Service Attack

2007-07-21 Thread Jim Lucas
Crayon Shin Chan wrote: On Saturday 21 July 2007 10:24, Jim Lucas wrote: So, I guess to sum up what the guy is talking about, I think he is right. Some of us might have been DDOSed from making posts on this list. my email address points right back to my web server. What does everybody

Re: [PHP] Denial of Service Attack

2007-07-21 Thread Jim Lucas
Dotan Cohen wrote: On 21/07/07, Crayon Shin Chan [EMAIL PROTECTED] wrote: On Saturday 21 July 2007 10:24, Jim Lucas wrote: So, I guess to sum up what the guy is talking about, I think he is right. Some of us might have been DDOSed from making posts on this list. my email address points

Re: [PHP] RecursiveArrayIterator

2007-07-22 Thread Jim Lucas
; } } } ? This seems like a few less lines of code Maybe I am missing the point... ??? Jim Lucas -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] No is_date() function?

2007-07-26 Thread Jim Lucas
', 'next week', 'last year', 'April 1st', 'December 23, 1999 4pm', ); foreach ( $dates AS $row ) { echo Time is: .date('c', strtotime($row)); echo {$row} is ; var_dump(is_date($row)); } ? -- Jim Lucas

Re: [PHP] Authentication

2007-07-27 Thread Jim Lucas
functions you can pull the IP of the machine and other data, is there a function within this family that would work? Thanks, Dan This is used for http authenticated user. not local system user -- Jim Lucas Some men are born to greatness, some achieve greatness, and some have

Re: [PHP] need insights on encrypting and uploading ASCII file using PHP

2007-07-27 Thread Jim Lucas
and purchase a CERT. -- Jim Lucas Some men are born to greatness, some achieve greatness, and some have greatness thrust upon them. Twelfth Night, Act II, Scene V by William Shakespeare -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net

Re: [PHP] Unexpected values in an associative array

2007-07-31 Thread Jim Lucas
Ken Tozier wrote: foreach ($this-db-query($query) as $row) Well, this is what I was going to say, is that probably query is using *_fetch_array() instead of *_fetch_assoc() or *_fetch_row() -- Jim Lucas Some men are born to greatness, some achieve greatness, and some

Re: [PHP] addSlashes Question

2007-08-01 Thread Jim Lucas
of most of the chars that need escaping. -- Jim Lucas Some men are born to greatness, some achieve greatness, and some have greatness thrust upon them. Twelfth Night, Act II, Scene V by William Shakespeare -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http

Re: [PHP] Validating Email Conditional

2007-08-01 Thread Jim Lucas
server if(fsockopen($domaintld,25,$errno,$errstr,30)) { $valid = true; } else { $valid = false; } return $valid; } if (validate_email($email)) echo Email is valid!; else echo Email is invalid!; ? -- Jim Lucas Some men are born to greatness, some achieve

Re: [PHP] Downloading PHP 521

2007-08-03 Thread Jim Lucas
WyleySam wrote: Exactly where does one go to download PHP 521, not 523, not 522 but 521??? Every link I clicked on at http://www.php.net/ took me to 523, which I don't want. http://us3.php.net/get/php-5.2.1.tar.gz/from/this/mirror -- Jim Lucas Some men are born to greatness, some

Re: [PHP] get domain component from email

2007-08-07 Thread Jim Lucas
off the end and anything before that and the next . is the domain? also, somebody told me .co.uk was a tld, but I cannot see it listed http://www.iana.org/root-whois/index.html Kind regards Kevin Give this a try http://www.cmsws.com/examples/php/domain_verification/example.php -- Jim Lucas

Re: [PHP] Re: get domain component from email

2007-08-07 Thread Jim Lucas
.co.uk was a tld, but I cannot see it listed http://www.iana.org/root-whois/index.html Kind regards Kevin -- Democracy is two wolves and a lamb voting on what to have for lunch. Liberty is a well-armed lamb contesting the vote. -- Jim Lucas Some men are born to greatness, some achieve

Re: [PHP] get domain component from email

2007-08-07 Thread Jim Lucas
Dan wrote: Yup, that's pretty much what I wrote but with a bit more feedback for invalid addresses. not exactly - Dan Jim Lucas [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Kevin Waterson wrote: Hi all. Im looking for a way to get the domain from an email address. Not sub

Re: [PHP] Re: get domain component from email

2007-08-07 Thread Jim Lucas
Stut wrote: Jim Lucas wrote: Dan wrote: What are you trying to do exactly, maybe there's a better way. If you're trying to determine if an email address is valid there's a pretty cool way to do so by using dns records. It's like 5 lines, here's the site http://www.sitepoint.com/article

Re: [PHP] Re: get domain component from email

2007-08-07 Thread Jim Lucas
Stut wrote: Jim Lucas wrote: Dan wrote: What are you trying to do exactly, maybe there's a better way. If you're trying to determine if an email address is valid there's a pretty cool way to do so by using dns records. It's like 5 lines, here's the site http://www.sitepoint.com/article

Re: [PHP] Re: get domain component from email

2007-08-07 Thread Jim Lucas
Stut wrote: Jim Lucas wrote: Stut wrote: Jim Lucas wrote: Dan wrote: What are you trying to do exactly, maybe there's a better way. If you're trying to determine if an email address is valid there's a pretty cool way to do so by using dns records. It's like 5 lines, here's the site http

Re: [PHP] Re: get domain component from email

2007-08-07 Thread Jim Lucas
Stut wrote: Jim Lucas wrote: Are all domains that use ccTLD's created/formatted like other not ccTLD's just with the .uk or whatever tagged on the end? Something like this your example stut.co.uk is this the base for your domain. Basically, would this be stut.com if it were a dot.com

Re: [PHP] Move and rename help...

2007-08-08 Thread Jim Lucas
= preg_replace('|@[0-9]+|', '', $filename); echo {$filename}\n; ? -- Jim Lucas Some men are born to greatness, some achieve greatness, and some have greatness thrust upon them. Twelfth Night, Act II, Scene V by William Shakespeare -- PHP General Mailing List (http://www.php.net

Re: [PHP] I know this is not easy and I'm not stupid but...

2007-08-09 Thread Jim Lucas
this will help That would be the type in the database, not the type of that variable at that time. -Stut -- Jim Lucas Some men are born to greatness, some achieve greatness, and some have greatness thrust upon them. Twelfth Night, Act II, Scene V by William Shakespeare -- PHP

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