Re: [PHP] MD5 & bot Question

2007-04-11 Thread tedd
At 7:50 PM -0500 4/10/07, Richard Lynch wrote: On Sun, April 8, 2007 11:12 am, tedd wrote: chose from. Unless, there is something here that I don't understand (which very well could be), I can't see how anyone, without massive computer resources, could break that. Am I wrong?

Re: [PHP] MD5 & bot Question

2007-04-11 Thread tedd
At 8:11 PM -0500 4/10/07, Richard Lynch wrote: On Tue, April 10, 2007 7:47 am, tedd wrote: Your use of metaphor is quite colorful, but if you if change a single pixel in an image, then you change the MD5 signature -- that is what I was talking about -- and that is not wrong. Unless I look

Re: [PHP] MD5 & bot Question

2007-04-11 Thread tedd
At 7:52 PM -0500 4/10/07, Richard Lynch wrote: On Sun, April 8, 2007 11:26 am, tedd wrote: The way I figure it, in an image I have 72 dot per square inch -- so, in one square inch that's 5,184 places for me to store a 24 bit key. To me, that's a lot of places to hid my Easter egg

Re: [PHP] MD5 & bot Question

2007-04-11 Thread tedd
eir website -- assuming they have categorized their Petfinder images by species/genus? Good point. Cheers, tedd -- --- http://sperling.com http://ancientstones.com http://earthstones.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Retrieving parameters passed from .html...?

2007-04-11 Thread tedd
one I wouldn't recommend using $_REQUEST -- it can be problematic in a couple of ways. 1) You don't know where the data came from; 2) One (GET or POST) takes precedence over the other -- I don't remember which at the moment. Cheers, tedd -- --- http://spe

Re: [PHP] mysql if empty

2007-04-11 Thread tedd
} } ?> Does this satisfy you? Actually, it's $result and not $results. Other than that, it works fine as far as I can tell. Cheers, tedd -- --- http://sperling.com http://ancientstones.com http://earthstones.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] WWE in Stamford, CT needs a kick ass PHP Developer!

2007-04-12 Thread tedd
s business and his clients a disservice. Cheers, tedd -- --- http://sperling.com http://ancientstones.com http://earthstones.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] WWE in Stamford, CT needs a kick ass PHP Developer!

2007-04-12 Thread tedd
when you consider the entire web site. There's more to a web site than a Photoshop image. Sorry for the rant -- but sometimes things are so obvious it's frustrating to hear people supporting poor practice. Cheers, tedd -- --- http://sperling.com http://ancientstones.com h

Re: [PHP] WWE in Stamford, CT needs a kick ass PHP Developer!

2007-04-12 Thread tedd
At 7:41 PM +0100 4/12/07, Stut wrote: Yes you'll need to put in a bit more work, but the result will be that much better. -Stut Sorry Stut -- I know you know this, but it's more work to NOT use css. Cheers, tedd -- --- http://sperling.com http://ancientstones

Re: [PHP] WWE in Stamford, CT needs a kick ass PHP Developer!

2007-04-12 Thread tedd
How many times have you had to use javascript to accomplish a task instead of using just php? One could call that a gnarly disgusting hack, but it's just a solution. As this list proves, no language is without problems. Cheers, tedd -- --- http://sperling.com http://ancientston

Re: [PHP] WWE in Stamford, CT needs a kick ass PHP Developer!

2007-04-12 Thread tedd
one of us in the trenches tell them what they need to hear? I'm just giving them good advice how to support their "leading edge" claim. Cheers, tedd -- --- http://sperling.com http://ancientstones.com http://earthstones.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] WWE in Stamford, CT needs a kick ass PHP Developer!

2007-04-13 Thread tedd
At 3:17 AM -0400 4/13/07, Robert Cummings wrote: Dear Tedd, Please put me down for one pint of asshole, because while you sit on that glass pedestal of CSS superiority I can't help but notice how http://ancientstones.com/ looks completely fucked up in Opera. Opera I might add is ACID2 comp

Re: [PHP] WWE in Stamford, CT needs a kick ass PHP Developer!

2007-04-13 Thread tedd
do/use but rather what they claim to be. If people are claiming to be the "leading edge" of web development and are still stuck in using tables for layout, then I find fault with that because using tables that way is certainly not leading edge. Cheers, tedd -- --- http:

RE: [PHP] WWE in Stamford, CT needs a kick ass PHP Developer!

2007-04-13 Thread tedd
n for this list -- just because someone tells you to shove it, doesn't mean you have to. :-) Besides, it fun. Cheers, tedd -- --- http://sperling.com http://ancientstones.com http://earthstones.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: WYSIWYG vs. the 'power-user'

2007-04-13 Thread tedd
own the line, we all arrive at the same place. The question is, does it work for what you want? Cheers, tedd PS: Side note -- if you knew all that could be, you would still want what you want? -- --- http://sperling.com http://ancientstones.com http://earthstones.com -- PHP General

Re: [PHP] Cheap Ping

2007-04-13 Thread tedd
system("ping -n $count $host"); } Cheers, tedd -- --- http://sperling.com http://ancientstones.com http://earthstones.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Cheap Ping

2007-04-13 Thread tedd
At 12:37 PM -0700 4/13/07, Paul Novitski wrote: At 11:16 PM -0600 4/12/07, [EMAIL PROTECTED] wrote: I am trying to find a simple way to test to see if a web site is up or not. At 4/13/2007 08:56 AM, tedd wrote: Try: if ($unix) { system ("ping -c$count -w$count $host");

Re: [PHP] WWE in Stamford, CT needs a kick ass PHP Developer!

2007-04-14 Thread tedd
you see where/how everything fits together, it's simple to fix it. Look, you're a competent programmer and php is far more complex than css will ever be. You're doing yourself a disservice by letting simple stumbling blocks deter you from using css because you have a misconc

Re: [PHP] sendmail loop

2007-04-14 Thread tedd
all the emails will be sent. Is there a way to trigger a script to run on the server (in the background)? Google cron and php. tedd -- --- http://sperling.com http://ancientstones.com http://earthstones.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit

Re: [PHP] Protecting individual files/dirs from access

2007-04-14 Thread tedd
then nothing is safe, but barring that -- how safe would that be? Thanks, tedd -- --- http://sperling.com http://ancientstones.com http://earthstones.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] WWE in Stamford, CT needs a kick ass PHP Developer!

2007-04-14 Thread tedd
re of using borders to reveal where things are. Again, my apologies I'm not trying to treat you like an idiot -- there are other people reading this list and I don't want them to get the misconception you promote that css is flawed and tables are the only solution. In any event, we

Re: [PHP] WWE in Stamford, CT needs a kick ass PHP Developer!

2007-04-14 Thread tedd
ce to the css-discuss list, I would estimate that there are more people coming on board the css boat than choosing tables. Cheers, tedd -- --- http://sperling.com http://ancientstones.com http://earthstones.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] WWE in Stamford, CT needs a kick ass PHP Developer!

2007-04-14 Thread tedd
At 12:37 PM -0400 4/14/07, Robert Cummings wrote: but truth be told, the web is still evolving into what visionaries see for its potential. Agreed, but some are reluctant to listen to visionaries. :-) Cheers, tedd -- --- http://sperling.com http://ancientstones.com http

Re: [PHP] WWE in Stamford, CT needs a kick ass PHP Developer!

2007-04-14 Thread tedd
ability figures are significantly higher. Maybe Google isn't accessible enough for you (it uses tables after all ;) Nope, Google doesn't have it right either -- they still use graphic captcha's as well. And, they (like others) are not going to change until they un

Re: [PHP] WWE in Stamford, CT needs a kick ass PHP Developer!

2007-04-15 Thread tedd
ation is disabled and then to support your claim you provide a link that says something different. Instead, the link quotes a figure twenty times your estimation, so what is your claim? Is the percent of disabled one or twenty? Cheers, tedd -- --- http://sperling.com http://ancientstones.com

Re: [PHP] secure login

2007-04-15 Thread tedd
in an php configuration script. I think that method is secure. In [2] the password is emailed to you AND your user id and password are stored in a MySQL. Cheers, tedd -- --- http://sperling.com http://ancientstones.com http://earthstones.com -- PHP General Mailing List (http://www.ph

Re: [PHP] auto page generation

2007-04-16 Thread tedd
P Security (not a cookbook). As you see, I'm big into Cookbooks. However, that's a minor fraction of the php, mysql, javascript, and other books I've purchased to do what you're wanting to do. It might be cheaper and quicker to hire one of us. Cheers, tedd --

[PHP] NEWBIE guide

2007-04-16 Thread tedd
Hi gang: What ever happened to the NEWBIE guide we were talking about providing last year? Did anyone do anything about it? Cheers, tedd -- --- http://sperling.com http://ancientstones.com http://earthstones.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit

Re: [PHP] isset

2007-04-16 Thread tedd
{ // Do stuff } Clean to read, easy defaults, (reasonably) type-safe, and E_NOTICE friendly. Larry: Slick. Thanks, tedd -- --- http://sperling.com http://ancientstones.com http://earthstones.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Json.php

2007-04-16 Thread tedd
function json_encode($data) { $json = new JSON; // or whatever the class is called. return $json->encode($data); } } omg that was hard. Can't you just feel the love in the room? That's the kind of support I like to see! =P ~PT Yep,

Re: [PHP] isset

2007-04-16 Thread tedd
"" and isset thinks "" is set I use this combination a lot: if ( isset($_GET['something']) && !empty($_GET['something']) ) { // do something here with $_GET['something'] } The isset is a pointless waste of cycles. -Stut

Re: [PHP] Protecting individual files/dirs from access

2007-04-17 Thread tedd
http://sperling.com/a/pw/girl.jpg Now you got me going, how did you get that? Even my php scripts can't read it. Or are you putting me on? Send me a copy of it back-channel. :-) Cheers, tedd -- --- http://sperling.com http://ancientstones.com http://earthstones.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] CSS vs. Tables OT

2007-04-18 Thread tedd
e to dwell on the lunacy of the statement -- take it to a css-discuss list. Cheers, tedd -- --- http://sperling.com http://ancientstones.com http://earthstones.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] CSS vs. Tables OT

2007-04-19 Thread tedd
and appreciation of issues where our actions may have far reaching influence on important matters of which we may not be aware. Knowledge carries with it responsibility. Cheers, tedd -- --- http://sperling.com http://ancientstones.com http://earthstones.com -- PHP General Mailing List

Re: [PHP] CSS vs. Tables OT

2007-04-19 Thread tedd
wser window" three column with only a header -- it's there too! In fact, I may be going out on a limb here, but I challenge anyone to describe a layout that isn't covered. I'm hoping "some day" (soon) this will all be worked out all nicey-nice. Similar to most

Re: [PHP] vote package

2009-08-27 Thread tedd
fails under that, adn it had known issues so we dumped it... TIA Noel: I think you'll run into exploitation problems regardless. Cheers, tedd -- --- http://sperling.com http://ancientstones.com http://earthstones.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe,

Re: [PHP] vote package

2009-08-27 Thread tedd
At 7:18 AM +1000 8/28/09, Noel Butler wrote: On Thu, 2009-08-27 at 10:55 -0400, tedd wrote: I think you'll run into exploitation problems regardless. I'm getting that impression from the hours and hours I wasted yesterday prior to my post trying to find a good one :( There'

Re: [PHP] Date Comparison

2009-08-28 Thread tedd
current date, then the entry is past. Understand? Cheers, tedd -- --- http://sperling.com http://ancientstones.com http://earthstones.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: Best way to test for form submission?

2009-08-28 Thread tedd
lean/scrub it for storage in MySQL, or use it to determine a course of processing, or any number of other things. The point is to check IF a $_POST has occurred, without triggering an error if it hasn't, and to deal with the outcome either way. Cheers, tedd -- --- http://sperling.c

Re: [PHP] Re: Best way to test for form submission?

2009-08-28 Thread tedd
from the form action attribute, and gets them a bit confused. It's similar to the IE name/id bug. Thanks, Ash Good catch. I actually never use the word $action -- that's just a placeholder. Cheers, tedd -- --- http://sperling.com http://ancientstones.com http://earthstones.c

Re: [PHP] Re: Best way to test for form submission?

2009-08-28 Thread tedd
lways work! Sometimes I have to do this -- $my_session_name = $_SESSION['session_name']; -- to get around the problem. I have experienced this error more than once -- it's strange. Cheers, tedd -- --- http://sperling.com http://ancientstones.com http://earthst

Re: [PHP] Re: Best way to test for form submission?

2009-08-29 Thread tedd
At 5:33 PM +0100 8/28/09, Ashley Sheridan wrote: On Fri, 2009-08-28 at 12:28 -0400, tedd wrote: > Ash: What catches me every once in a while is using variable names that are the same as $_SESSION indexes, such as: $session_name = $_SESSION['session_name']; Believe it

Re: [PHP] Re: Best way to test for form submission?

2009-08-29 Thread tedd
knowing where my data originated ($_GET, $_POST, or $_COOKIE) and having the possibility of what I was expecting overridden in a $_REQUEST is what I would call a drawback. Cheers, tedd -- --- http://sperling.com http://ancientstones.com http://earthstones.com -- PHP General Mailing

RE: [PHP] Re: Best way to test for form submission?

2009-08-29 Thread tedd
."] [".$val."]"; Checkboxes and radio buttons only send their value if the control is "checked". That's correct, here's the way I solve both types: http://php1.net/b/form-radio http://php1.net/b/form-radio1 http://php1.net/b/form-checkbox/

RE: [PHP] Date Comparison

2009-08-29 Thread tedd
d take the time to understand what you read -- it would cut down on post that demonstrate just how ignorant and thankless you are at this. Cheers, tedd -- --- http://sperling.com http://ancientstones.com http://earthstones.com -- PHP General Mailing List (http://www.php.net/) To unsubscr

Re: [PHP] Write Japanese text into an existing PDF

2009-08-31 Thread tedd
ink as long as you have a font for it, it should work. Good luck. tedd -- --- http://sperling.com http://ancientstones.com http://earthstones.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Write Japanese text into an existing PDF

2009-09-01 Thread tedd
At 10:23 PM -0600 8/31/09, George Langley wrote: On 31-Aug-09, at 6:37 AM, tedd wrote: I used the PDFB library to create this: http://webbytedd.com/bb/pdf/ Here's a link for more information: http://chir.ag/projects/pdfb/ While I've never used Japanese text, I think as long as

Re: [PHP] I'm not crazy I swear it... IE vs Safari and Firefox - The impossible!

2009-09-01 Thread tedd
for us to look at as well. Cheers, tedd -- --- http://sperling.com http://ancientstones.com http://earthstones.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] IRC and English

2009-09-01 Thread tedd
e English speakers. It's often accompanied by English so broken I don't even bother trying to decypher it, and sometimes an *attitude* (after which, I blacklist the poster). Am I the only one? It's okay if I am. Just wondering. Paul Paul: u r not the only 1. I h8 that 2! l8er :

Re: [PHP] IRC and English

2009-09-01 Thread tedd
d your problem, then don't make our work harder by requiring us to first figure out the syntax of your question. I ignore anyone using shortened words, such as "u" instead of "you". I figure that they don't want to take the time to ask correctly, then I

Re: [PHP] Date +30 comparison

2009-09-01 Thread tedd
ike so: $the_date = date('m/d/Y', $next_date); Here's the example: http://www.webbytedd.com//future-date/ Cheers, tedd -- --- http://sperling.com http://ancientstones.com http://earthstones.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] IRC and English

2009-09-01 Thread tedd
At 11:16 AM -0300 9/1/09, Martin Scotta wrote: As a non-english speaker I feel very uncomfortable with this thread. You shouldn't feel uncomfortable because no one is talking about you. Cheers, tedd -- --- http://sperling.com http://ancientstones.com http://earthstones.com -

RE: [PHP] Date +30 comparison

2009-09-01 Thread tedd
onds (taken from other dates) and evaluate. Dead simple. Also note that the strtotime() and date() combination provides some very nice features like keeping track of the resultant date. You don't have to worry about leap years, or months having 28-31 days, or anything like that -- it's a

Re: [PHP] Date +30 comparison

2009-09-01 Thread tedd
At 2:47 PM -0400 9/1/09, Andrew Ballard wrote: On Tue, Sep 1, 2009 at 1:27 PM, tedd wrote: First get the date to seconds, like so: $today_date = '8/26/2009'; $next_date = strtotime($today_date) + (86400 * 30); No. Due to Daylight Saving Time, many time zones have two days each

Re: [PHP] IRC and English

2009-09-01 Thread tedd
began with a mention of the "attitude" that non-native English speakers have, as if non-native English speakers are a unified group that are are more likely to have a bad attitude than native English speakers. Of course such a generalization could make people uncomfortable. -jessi

Re: [PHP] IRC and English (Bible)

2009-09-02 Thread tedd
the writing of the Bible, but I find it interesting speculation. Cheers, tedd -- --- http://sperling.com http://ancientstones.com http://earthstones.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Date +30 comparison

2009-09-02 Thread tedd
At 4:06 PM +0100 9/2/09, Ford, Mike wrote: > -Original Message- From: tedd [mailto:tedd.sperl...@gmail.com] Sent: 01 September 2009 21:52 At 2:47 PM -0400 9/1/09, Andrew Ballard wrote: >On Tue, Sep 1, 2009 at 1:27 PM, tedd wrote: >> First get the date to seco

Re: [PHP] Date Comparison

2009-09-03 Thread tedd
ulted. Well that's your prerogative to do as you want. But it's a bit arrogant of you to tell others how to conduct themselves on this list, don't you think? Who made you list monitor? And Tedd your condescending response caused me to lose respect for you. No offense, but let

Re: [PHP] Just a tip from one of your peers

2009-09-03 Thread tedd
g the subject line. Cheers, tedd -- --- http://sperling.com http://ancientstones.com http://earthstones.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Calendar tutorial

2009-09-08 Thread tedd
et a working example, you can also learn and improve it on your own. Check out: http://www.php-calendar.com/ Here's an example of it working: http://php1.net/my-php-calendar/ I've had good luck with it and have been able to change things as I wanted. Cheers, tedd -- ---

Re: [PHP] Reading files in PHP 5.3.0

2009-09-11 Thread tedd
yone else see every line above ending with a square? If so, what causes that. I only see them from Tommy post. Cheers, tedd -- --- http://sperling.com http://ancientstones.com http://earthstones.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] RE: [Formaldehyde] The Most Basic Ajax - PHP Error Debugger

2009-09-11 Thread tedd
round that. Cheers, tedd -- --- http://sperling.com http://ancientstones.com http://earthstones.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Reading files in PHP 5.3.0

2009-09-11 Thread tedd
At 1:15 PM +0100 9/11/09, Ashley Sheridan wrote: On Fri, 2009-09-11 at 08:04 -0400, tedd wrote: At 5:06 PM -0700 9/10/09, Tommy Pham wrote: > > So did anything change in PHP5.3.0 that would preclude the > code >below > from working? Am I going crazy? Or did Apple > f..

Re: [PHP] Creating alphanumeric id for a table

2009-09-11 Thread tedd
re answered, then we can help with more informed advice. Cheers, tedd -- --- http://sperling.com http://ancientstones.com http://earthstones.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] RE: [Formaldehyde] The Most Basic Ajax - PHP Error Debugger

2009-09-11 Thread tedd
stuff and you read stuff. You don't need to rewrite the US Postal Service every time you send/receive a letter. Cheers, tedd -- --- http://sperling.com http://ancientstones.com http://earthstones.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] htaccess question

2009-09-11 Thread tedd
ncrypted passwords in the file system. Instead, I want to move the user ids and passwords into the database and out of the file system. I can do this with an authorization script, but I don't want to alter 100 scripts to do it. Opinions and suggestions welcomed. Thanks, tedd --

RE: [PHP] RE: [Formaldehyde] The Most Basic Ajax - PHP Error Debugger

2009-09-11 Thread tedd
it's simply just another way to handle GET's. Why make it more complicated than need be? Cheers, tedd -- --- http://sperling.com http://ancientstones.com http://earthstones.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: htaccess question

2009-09-11 Thread tedd
HP_INI_PERDIR* Entry can be set in php.ini, .htaccess or httpd.conf Bingo! I figured there had to be something like that. Thanks guys. tedd -- --- http://sperling.com http://ancientstones.com http://earthstones.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe

Re: [PHP] APC - Upload progress problem. apc

2009-09-11 Thread tedd
des, what does the user have to know anyway that makes it so important that they see a progress bar? Cheers, tedd -- --- http://sperling.com http://ancientstones.com http://earthstones.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] RE: [Formaldehyde] The Most Basic Ajax - PHP Error Debugger

2009-09-12 Thread tedd
before I replied. YOU asked a question and I replied (read the thread) -- I'm sorry that I did. I'll refrain from doing it again. tedd -- --- http://sperling.com http://ancientstones.com http://earthstones.com -- PHP General Mailing List (http://www.php.net/) To unsubs

Re: [PHP] Creating alphanumeric id for a table

2009-09-12 Thread tedd
mysql_query($query) or die('Error, query failed'); That way you should not have any duplications and you have application-numbers (as you want )that are tied to the auto-numbering of the table's index. HTH's tedd -- --- http://sperling.com http://ancientstones.com http://earthstones.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Reading files in PHP 5.3.0

2009-09-12 Thread tedd
Now, maybe Hurricane Electric has changed its ways, but they can't change their past. In my opinion, there are more than enough hosting companies who care about the damage they might cause and take steps to reduce the about spam and porn on the net. My advice, seek hosts other than H

Re: [PHP] Reading files in PHP 5.3.0

2009-09-13 Thread tedd
At 12:32 AM -0400 9/13/09, Paul M Foster wrote: On Sat, Sep 12, 2009 at 10:22:10AM -0400, tedd wrote: At 6:02 PM -0400 9/11/09, Paul M Foster wrote: I typically use us2.php.net, which is hosted by Hurricane Electric. Paul Paul: I wouldn't use Hurricane Electric if their acc

RE: [PHP] RE: [Formaldehyde] The Most Basic Ajax - PHP Error Debugger

2009-09-13 Thread tedd
f and bragging about your credentials (as if the rest of us can't do better) -- I'm not sure who you think you are, but you sure act like an noob. If nothing else, you have a lot to learn about making a point. tedd -- --- http://sperling.com http://ancientstones.com http://

Re: [PHP] RE: [Formaldehyde] The Most Basic Ajax - PHP Error Debugger

2009-09-14 Thread tedd
At 7:28 AM +0200 9/14/09, J DeBord wrote: In all fairness Tedd, your example is a bit of a joke. Send some JSON back and forth, do some database queries, and use a webservice all at the same time. Your AJAX calls won't be so simple then. Okay, so my work is a joke. Been there, done

Re: [PHP] how i assign a js variable to a php variable

2009-09-19 Thread tedd
munication mechanism between the two. Your choices are the standard GET/POST or ajax. Cheers, tedd -- --- http://sperling.com http://ancientstones.com http://earthstones.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Ckeckbox list populated from database

2009-09-20 Thread tedd
me concept yet using HTML check boxes I aM complety stumped. It seems easy but I've been staring at the same problem for hours. Any hints are greatly appreciated. Thanks Haig Sent from my iPhone Haig: This might help: http://php1.net/b/form-checkbox http://php1.net/b/form-checkbox1

Re: [PHP] Question: Correcting MySQL's ID colomn when removing an entry

2009-09-20 Thread tedd
imply is an internal thing that the database needs to keep track of unique records. My advice, allow the database to use the index as it needs and you use the data as you need. Cheers, tedd -- --- http://sperling.com http://ancientstones.com http://earthstones.com -- PHP General Ma

Re: [PHP] Extract links from strings

2009-09-21 Thread tedd
&=+$,]+|(?:%[a-fA-F0-9][a-fA-F0-9]))*))*))*))(?:[?](?:(?:(?:[;/?:@&=+$,a-zA-Z0-9\\-_.!~*\'()]+|(?:%[a-fA-F0-9][a-fA-F0-9]))*)))?))?)>'; $output = preg_replace($url_regexp, '$0', $textString); print $output; ?> Cheers, tedd -- --- http://sperling.com http://

Re: [PHP] RIGHT Function?

2009-09-25 Thread tedd
following are some functions I use, namely right(), left() and mid(). These were built-in functions in different language I used many years ago. They just seemed natural to me so I wrote them for php. Cheers, tedd - // == returns the middle number of characters from a string starting

Re: [PHP] nl2br() question

2009-09-26 Thread tedd
At 11:27 AM -0400 9/26/09, Daniel Brown wrote: On Sat, Sep 26, 2009 at 11:22, tedd wrote: I am using PHP Version 5.2.10 whereas the `is_xhtml` parameter was added in 5.3.0. And 5.3.0 > 5.2.10. ;-P -- Ahhh, I didn't look far enough down the page. Thanks -- I figur

[PHP] nl2br() question

2009-09-26 Thread tedd
Hi gang: The manual says: http://www.php.net/nl2br That I could use the function like so (Example #2): $new = nl2br($string, false); But when I do, I get: Warning: Wrong parameter count for nl2br() in /home... What's up with that? I am using PHP Version 5.2.10 Cheers,

RE: [PHP] Self-Process php forms or not?

2009-10-01 Thread tedd
in the first form so that IF you send the user back to the first form, the user doesn't have to reenter everything. HTH, tedd -- --- http://sperling.com http://ancientstones.com http://earthstones.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Self-Process php forms or not?

2009-10-02 Thread tedd
. Cheers, tedd -- --- http://sperling.com http://ancientstones.com http://earthstones.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Self-Process php forms or not?

2009-10-02 Thread tedd
ot dealing with a confirmation page, or a multi-step form, the hidden field isn't necessary. It's this correct assumptions? Please advice, Regards, Márcio You can set it up any number of ways. There is no absolute need for a redirect. Everything can be done in one form, or not -- your

Re: [PHP] PHP/MySQL Superstars

2009-10-02 Thread tedd
At 4:29 PM -0400 10/1/09, Robert Cummings wrote: I'm a superstar... send me a check for $500,000 and I'll fly on over. Or did you completely misuse the word "superstar"? Cheers, Rob. Rob: Well, in my book you are a superstar. Cheers, tedd -- --- http:

RE: [PHP] Self-Process php forms or not?

2009-10-02 Thread tedd
At 3:35 PM +0100 10/2/09, MEM wrote: > You can set it up any number of ways. There is no absolute need for a redirect. Everything can be done in one form, or not -- your choice. Cheers, tedd Yes. But since I don't want to display a success information + form fields, but

RE: [PHP] Self-Process php forms or not?

2009-10-03 Thread tedd
rking example: http://www.webbytedd.com/aa/step-form/ This only one of many ways to solve your problem, but it does solve it. Cheers, tedd PS: Please reply to the list and not me privately, unless you are hiring me (learned that from Stut) -- --- http://sperling.com http://ancientstones.com ht

Re: [PHP] Self-Process php forms or not?

2009-10-03 Thread tedd
At 9:42 AM -0400 10/3/09, Tom Worster wrote: On 10/2/09 10:24 AM, "tedd" wrote: At 1:55 PM +0530 10/2/09, kranthi wrote: and yes i forgot to mention... i avoid hidden form elements because they can be modified very easily and hence pose a security threat. That depends upon

Re: [PHP] A really wacky design decision

2009-10-03 Thread tedd
m++; It's usually easier to understand if one doesn't compound statements with ++ operator. Cheers, tedd -- --- http://sperling.com http://ancientstones.com http://earthstones.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Whacky increment/assignment logic with $foo++ vs ++$foo

2009-10-03 Thread tedd
statement like that. Cheers, tedd -- --- http://sperling.com http://ancientstones.com http://earthstones.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Whacky increment/assignment logic with $foo++ vs ++$foo

2009-10-03 Thread tedd
do the same thing myself. The problem I see here is with the original statement of: $num = $$num++; That's just bad form -- it doesn't do anything except inject confusion. Cheers, tedd -- --- http://sperling.com http://ancientstones.com http://earthstones.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Whacky increment/assignment logic with $foo++ vs ++$foo

2009-10-03 Thread tedd
That statement is just bad form. The increment is never realized. Cheers, tedd -- --- http://sperling.com http://ancientstones.com http://earthstones.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Whacky increment/assignment logic with $foo++ vs ++$foo

2009-10-03 Thread tedd
a++; will do what is intended? Cheers, tedd -- --- http://sperling.com http://ancientstones.com http://earthstones.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Whacky increment/assignment logic with $foo++ vs ++$foo

2009-10-03 Thread tedd
variable, it's modified before being processed. If it's after, then it's evaluated immediately after the variable is processed. That's absolutely true. The problem here is in the statement of: $num = $num++; Cheers, tedd -- --- http://sperling.com ht

Re: [PHP] A really wacky design decision

2009-10-03 Thread tedd
At 1:37 PM -0400 10/3/09, Robert Cummings wrote: tedd wrote: At 9:21 PM +1000 10/3/09, clanc...@cybec.com.au wrote: Daevid Vincent is surprised that: $num = 123; $num = $num++; print $num; //this prints 123 and not 124 ?!! I can understand why someone might think this is not correct, but

RE: [PHP] Self-Process php forms or not?

2009-10-04 Thread tedd
illing to write a simple example and get that to work. Instead, you complicate things beyond your ability to understand. My advice, step back -- write a simple example that does what you want and then expand it. Cheers, tedd -- --- http://sperling.com http://ancientstones.com http://e

[PHP] a trivial little function (PostToHost)

2009-10-04 Thread tedd
ost A accessible by host B via a POST, or does it write to a writable file, or what? Any help would be appreciated. Cheers, tedd -- --- http://sperling.com http://ancientstones.com http://earthstones.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Self-Process php forms or not?

2009-10-05 Thread tedd
At 7:25 PM +0100 10/4/09, MEM wrote: Unfortunately, I'm really REALLY on a rush. I saw a bumper sticker the other day which read: Humpty Dumpty was rushed Cheers, tedd -- --- http://sperling.com http://ancientstones.com http://earthstones.com -- PHP General Mailing List

Re: [PHP] a trivial little function (PostToHost)

2009-10-05 Thread tedd
At 12:27 PM -0600 10/4/09, kirk.john...@zootweb.com wrote: tedd wrote on 10/04/2009 08:51:13 AM: [PHP] a trivial little function (PostToHost) tedd to: php-general 10/04/2009 09:05 AM Hi gang: The following 'trivial little' function I'm trying to get my head

<    3   4   5   6   7   8   9   10   11   12   >