Re: [PHP] Been staring at the code for too long...

2009-01-10 Thread tedd
mysql_error()); } --- end of code --- This will: 1. Allow you to see your errors in more detail during development; 2. After the development, you have only to comment out one line of code (the echo) to stop reporting dB errors project-wide. It works for me. Cheers, tedd -- --- http://sp

Re: [PHP] Couple of beginner questions

2009-01-10 Thread tedd
ixing html and php, the following was the most important thing I learned about doing what you're trying to do: http://sperling.com/examples/include-demo/ I think the demo is well worth your time to go through. Hope this helps. Cheers, tedd -- --- http://sperling.com http://ancient

[PHP] Re: Couple of beginner questions

2009-01-10 Thread tedd
the interpreter to consider other files with other suffixes. For example: # handler for phpsuexec.. SetHandler application/x-httpd-php This allows me to use php in css files and such. Cheers, tedd PS: Nathan -- I know you know this, but this post was for the benefit of the OP

Re: [PHP] Couple of beginner questions

2009-01-10 Thread tedd
e if" statements either for the lack of symmetry they show to me (YMMV). 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: Couple of beginner questions

2009-01-10 Thread tedd
At 2:04 PM + 1/10/09, Nathan Rixham wrote: tedd wrote: At 5:39 PM + 1/9/09, Nathan Rixham wrote: if it has the file extension .php then it will be passed through php and compiled; otherwise the php source code you insert will just show up in the html source. Gary: That is true, but

Re: [PHP] Couple of beginner questions

2009-01-10 Thread tedd
he following"bad practice": Hello'); ?> Whereas, the following I would consider "good practice". As best as you can, try to keep php and html separate. I know that some have different ideas on "good/bad" practices, but you'll develop your own

Re: [PHP] Create image from HTML

2009-01-10 Thread tedd
our problem. Hope this helps. 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] Editing in a text area field

2009-01-10 Thread tedd
abase. HTML is presentation and is NOT data. 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] Editing in a text area field

2009-01-10 Thread tedd
data separate from presentation. I always cringe when I see clients entering html into their CMS because they want to make some line of text bold, but then forget to close the tag and find that the entire dynamic page is now broken as the malformed html content is pulled from a database. Cheers,

Re: [PHP] imagejpeg, imagecreatefromjpeg both choke

2009-01-10 Thread tedd
At 7:23 AM -0800 1/9/09, Brian Dunning wrote: I'm trying a stripped down test just to try to get this work. I have a valid jpeg on disk: -snip- Try this: http://webbytedd.com/b/thumb/index.php All the code is there -- and it works. Cheers, tedd -- --- http://sperling.com

Re: [PHP] Editing in a text area field

2009-01-10 Thread tedd
At 11:58 AM -0500 1/9/09, Daniel Brown wrote: // Convert HTML linebreak tags to paragraph tags. Daniel: -snip code- Nice function. Thanks, tedd -- --- http://sperling.com http://ancientstones.com http://earthstones.com -- PHP General Mailing List (http://www.php.net/) To

Re: [PHP] Editing in a text area field

2009-01-10 Thread tedd
At 3:19 PM + 1/10/09, Nathan Rixham wrote: tedd wrote: While one can look at it as defensive programming, it has a larger scope than that. Certainly you want to sanitize all input from users to prohibit injections, but more than that you want to keep data separate from presentation

Re: [PHP] Editing in a text area field

2009-01-10 Thread tedd
nyMCE than to let them put in tags themselves and forget to close them. -- The argument over what HTML is, will never be resolved. I say it's a delivery mechanism and tags such as and are unwanted elements. They simply confuse/blur the purpose of the language. Cheers, tedd -- --

Re: [PHP] Couple of beginner questions

2009-01-11 Thread tedd
was not to mix style elements with data. I should have said: I would consider the following"bad practice": $whatever"); ?> Whereas, the following I would consider "good practice". Thanks for keeping me honest. Cheers, tedd -- --- http://sperling.com http

Re: [PHP] Editing in a text area field

2009-01-11 Thread tedd
sing str_replace(). 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] Editing in a text area field

2009-01-11 Thread tedd
mind. I realize the client is paying the bill and because of that they make the call, but I take pride in my work and I am really resistant to clients requiring bad practice. I guess it's the age old problem of dealing with actions vs consequences. Thanks for the tip on TinyMCE -- I&#

Re: [PHP] Editing in a text area field

2009-01-11 Thread tedd
At 11:19 AM +1100 1/11/09, Ross McKay wrote: tedd wrote: The argument over what HTML is, will never be resolved. I say it's a delivery mechanism and tags such as and are unwanted elements. They simply confuse/blur the purpose of the language. I should have said and , I guess. N

Re: [PHP] Editing in a text area field

2009-01-11 Thread tedd
g doesn't mean that's the best way to do it. Discover what problems are best solved with what languages and create multilingual code that observes best practices. And along the way, try to show others (including clients) the path to enlightenment. :-) Cheers, tedd -- ---

Re: [PHP] Couple of beginner questions

2009-01-11 Thread tedd
m/b/color-rows/ Please note that no html is harmed in the making of this presentation. :-) 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] Editing in a text area field

2009-01-11 Thread tedd
t;; } else { $a .= $str[$i]; } } return $a; } ?> And then strip_tags() -- it's a start. Cheers, tedd -- --- http://sperling.com http://ancientstones.com http://earthstones.com -- PHP General Mailing List (http://www.php.net/) To unsub

Re: [PHP] Couple of beginner questions

2009-01-11 Thread tedd
At 3:02 PM + 1/11/09, Ashley Sheridan wrote: On Sun, 2009-01-11 at 09:46 -0500, tedd wrote: At 1:49 PM + 1/11/09, Ashley Sheridan wrote: > > >Unless it's something like this: > >echo "$whatever"; > >?> > Here's the alterative

Re: [PHP] Couple of beginner questions

2009-01-12 Thread tedd
At 3:36 PM + 1/11/09, Ashley Sheridan wrote: > I was thinking more along the lines of this: [1] echo ""; which looks like this otherwise: [2] Ash: I see and understand what you are saying. To me, [2] is more understandable/preferable than [1]. To each their own.

Re: [PHP] Couple of beginner questions

2009-01-12 Thread tedd
EO concerns while showing the user no bold text. As I said, there's more here than just how a documents looks to a human visitor, but that is also beyond this discussion. 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] Couple of beginner questions

2009-01-12 Thread tedd
veloping a long MySQl $query, but I don't include any html in my echo statements. That's just a private rule of mine that is sometimes broken by client needs. Cheers, tedd -- --- http://sperling.com http://ancientstones.com http://earthstones.com -- PHP General Mailing List

Re: [PHP] Data trasfer between PHP pages

2009-01-12 Thread tedd
, I am stuck, please help. Thanks, Chris Arr. Sometimes I wonder. You use a POST form and a GET to read the form -- do you see anything wrong with that? Cheers, tedd -- --- http://sperling.com http://ancientstones.com http://earthstones.com -- PHP General Mailing List

Re: [PHP] Couple of beginner questions

2009-01-12 Thread tedd
ght do: for($i=0; $i<$some_limit; $i++) { $rowClass = ($i % 2 == 0)?'':'class="alternate"'; print << ... ... ... EOP; } As far as such loops go, is this a particular faux pas in regards to the way it's coded? Go o

Re: [PHP] Data trasfer between PHP pages

2009-01-12 Thread tedd
shoot the code later. Am I wrong? 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: Php and CSS where to put it

2009-01-12 Thread tedd
you can't find a way around the problem. But embedding css style rules is a real "no-no" in my book -- there's no reason to do it. Cheers, tedd -- --- http://sperling.com http://ancientstones.com http://earthstones.com -- PHP General Mailing List (http://www.php.net/)

Re: [PHP] switch vs elseif

2009-01-12 Thread tedd
if'); } Reason? It makes sense to me. 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] switch vs elseif

2009-01-12 Thread tedd
ase's together, then there's no problem understanding what happens in case 2 or 3. 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] Couple of beginner questions

2009-01-12 Thread tedd
At 4:17 PM -0500 1/12/09, Robert Cummings wrote: On Mon, 2009-01-12 at 16:02 -0500, tedd wrote: True, css does not allow numeric classes (like sessions). But, I never need them anyway. As I provided before: http://webbytedd.com/b/color-rows/ this is my solution for alternating row

Re: [PHP] Couple of beginner questions

2009-01-12 Thread tedd
At 9:37 PM + 1/12/09, Ashley Sheridan wrote: On Mon, 2009-01-12 at 16:17 -0500, Robert Cummings wrote: On Mon, 2009-01-12 at 16:02 -0500, tedd wrote: > > True, css does not allow numeric classes (like sessions). But, I > never need them anyway. > > As I provided bef

Re: [PHP] switch vs elseif

2009-01-12 Thread tedd
At 4:57 PM -0500 1/12/09, Robert Cummings wrote: No, that's DIFFERENT from what I wrote. Go back and re-read. :) I did and reread again -- it looks different. I'm simply talking about the spacing. No matter though, it's the same code. Cheers, tedd -- --- http://spe

Re: [PHP] switch vs elseif

2009-01-12 Thread tedd
At 5:12 PM -0500 1/12/09, Robert Cummings wrote: On Mon, 2009-01-12 at 17:09 -0500, tedd wrote: At 4:57 PM -0500 1/12/09, Robert Cummings wrote: >No, that's DIFFERENT from what I wrote. Go back and re-read. > >:) I did and reread again -- it looks different. I'm simply

Re: [PHP] ecommerce related question

2009-01-13 Thread tedd
ld get out of hand very quickly. That's a dangerous road to travel. 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: RewriteRules

2009-01-13 Thread tedd
Jason: In addition to what everyone else has said, try this: $self = basename($_SERVER['SCRIPT_NAME']) I use it for forms -- you might find it useful. Cheers, tedd -- --- http://sperling.com http://ancientstones.com http://earthstones.com -- PHP General Mailing

Re: [PHP] Re: RewriteRules

2009-01-13 Thread tedd
At 2:33 PM + 1/13/09, Ashley Sheridan wrote: On Tue, 2009-01-13 at 09:20 -0500, tedd wrote: Jason: In addition to what everyone else has said, try this: $self = basename($_SERVER['SCRIPT_NAME']) I use it for forms -- you might find it useful. Cheers, tedd -- ---

Re: [PHP] switch vs elseif

2009-01-14 Thread tedd
#x27;s just a different way of using that statement. 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] Basic Authentication

2009-01-14 Thread tedd
Hi gang: Let's say that I don't want to use the htpasswd command from the UNIX shell to generate an encoded password -- how else can I create an encoded password string that would work in a .htaccess file using basic authentication? Cheers, tedd -- --- http://sperling

Re: [PHP] Basic Authentication

2009-01-14 Thread tedd
At 12:51 PM -0500 1/14/09, Andrew Ballard wrote: On Wed, Jan 14, 2009 at 12:36 PM, Stuart wrote: 2009/1/14 tedd : Let's say that I don't want to use the htpasswd command from the UNIX shell to generate an encoded password -- how else can I create an encoded password string

Re: [PHP] Basic Authentication

2009-01-14 Thread tedd
ost. I do have before and after examples I could use to identify what algorithm was used. I just need to know what algorithms could have been used and (if it's not too much to ask) working example of each. Cheers, tedd -- --- http://sperling.com http://ancientstones.com http://

Re: [PHP] Basic Authentication

2009-01-14 Thread tedd
hat I don't know is what algorithm was used to generate the encoding. Here are all the algorithms I know of (this includes the above link you provided). http://webbytedd.com//md5/index.php However, none of them match what have. Cheers, tedd -- --- http://sperling

Re: [PHP] Basic Authentication

2009-01-15 Thread tedd
e -- I can do that easily enough. The problem is that I don't know how the one currently in place on my client's server works in generating passwords. If I knew that, then I could generate the password myself. Cheers, tedd -- --- http://sperling.com http://ancientstones.com ht

Re: [PHP] Basic Authentication

2009-01-15 Thread tedd
d and most likely you could not tell what algorithm was used unless you knew the salt value. For example, if the salt was "hello" and the encoding was heWf00Lr.jHb6 , then the algorithm could be Crypt, Standard DES or MD5. Understand now? In any event, thanks for trying. Cheers, t

Re: [PHP] Basic Authentication

2009-01-15 Thread tedd
om the command line in Unix did not mean that a specific algorithm was going to be used. It appears that any of an assortment of them might be employed from the command line -- if that makes sense. In any event, I see that the problem is not solvable. Thanks for your help. Cheers, tedd

RE: [PHP] Basic Authentication

2009-01-15 Thread tedd
At 9:11 AM -0600 1/15/09, Boyd, Todd M. wrote: tedd, It would appear your Standard DES and MD5 labels are actually both MD5. Also--there is more than just Standard DES. Once DES was determined to be relatively IN-secure, more algorithms like Triple DES, G-DES, DES-X, LOKI89, and ICE were

Re: [PHP] Basic Authentication

2009-01-15 Thread tedd
At 12:46 PM -0500 1/15/09, Jason Pruim wrote: Hey tedd, One thing I just thought of that I'm sure you checked but just in case... With the current system do they have any way of adding new users to it? If so... there would be info in a file that had the algorithm info you need...

Re: [PHP] To check for existing user in database

2009-01-15 Thread tedd
r die(mysql_error()); if(mysql_affected_rows()) { // then report a duplicate email/record. } else { // else insert a new record in the dB. } HTH's tedd --- Hi, I know this is very basic question, this is so because I am a basic programmer struggling to make things work. Where i

Re: [PHP] To check for existing user in database

2009-01-16 Thread tedd
At 11:01 PM -0800 1/15/09, Lars Torben Wilson wrote: 2009/1/15 tedd : You want to use mysql_num_rows() there instead of mysql_affected_rows(). (Just a typo in this case, I suspect, but for the benefit of the less experienced it's worth pointing out.) For the newer PHP users, mysql_num

Re: [PHP] To check for existing user in database

2009-01-18 Thread tedd
Of course, I could be wrong. 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] developers life

2009-01-20 Thread tedd
elated job position for this type is "program designer". Now, that doesn't make me a good one, it's just that's the way I lean. The "test" was not a bad assessment. Cheers, tedd -- --- http://sperling.com http://ancientstones.com http://earth

Re: [PHP] developers life

2009-01-20 Thread tedd
At 1:25 PM -0500 1/20/09, Robert Cummings wrote: On Tue, 2009-01-20 at 13:14 -0500, tedd wrote: > I didn't pick at random, but rather what I thought -- my type: ENTJ I think you're confused... I picked the test at random, I've experienced a lot of that recently. --- I&#x

[PHP] Military <-> Standard times

2009-01-21 Thread tedd
) { $t = strftime('%R', strtotime($t)); return $t; } function militaryToStandard($t) { $t = strftime('%r', strtotime($t)); return $t; } Thanks, tedd -- --- http://sperling.com http://ancientstones.com http://earthstones.com -- PHP General Mailing L

Re: [PHP] Military <-> Standard times

2009-01-21 Thread tedd
At 9:19 PM +0100 1/21/09, Jochem Maas wrote: tedd schreef: Hi gang: would you stop calling me that, I'll bet it means something rude in korean. :-P Hey, you called me "schreef" and that means "an end of a stroke" (Arrggg, that has all sorts of meanings). :-)

Re: [PHP] Military <-> Standard times

2009-01-21 Thread tedd
At 9:06 PM + 1/21/09, Nathan Rixham wrote: -snip- :P It's a good thing I didn't ask for anything complicated. :-) Thanks. And what's with everyone sticking out their tongue? :-P Cheers, tedd -- --- http://sperling.com http://ancientstones.com http://earthsto

Re: [PHP] Military <-> Standard times

2009-01-22 Thread tedd
At 12:35 AM +0100 1/22/09, Jochem Maas wrote: >> tedd schreef: > Hey, you called me "schreef" and that means "an end of a stroke" (Arrggg, that has all sorts of meanings). :-) which translation service came up with that?? it is funny though :-) http://

Re: [PHP] Captha Image Matching the Session Value.

2009-01-25 Thread tedd
s some of what I did: http://webbytedd.com/aa/assorted-captcha/ 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] New PHP User with a simple question

2009-01-25 Thread tedd
smart menu. Perhaps this might help: http://sperling.com/examples/smart-menu/ 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] New PHP User with a simple question OT

2009-01-25 Thread tedd
p. If you want to show him where his code is "bad", then be my guest -- but to tell him to go buy a book and come back to this list after he has reads it is not something you can dictate -- you have no control over this list. I suggest -- if you want to help, then do so. If not, t

[PHP] Dirty Button

2009-01-25 Thread tedd
Hi gang: I had a problem and solved it -- here's the write-up: http://www.webbytedd.com/b/update-select/index.php What do you think of the solution? Cheers, tedd -- --- http://sperling.com http://ancientstones.com http://earthstones.com -- PHP General Mailing List (http://www.ph

[PHP] Dirty Button

2009-01-25 Thread tedd
Hi gang: I had a problem and solved it -- here's the write-up: http://www.webbytedd.com/b/update-select/index.php What do you think of the solution? Cheers, tedd -- --- http://sperling.com http://ancientstones.com http://earthstones.com -- PHP General Mailing List (http://www.ph

Re: [PHP] Dirty Button

2009-01-25 Thread tedd
At 1:02 PM -0500 1/25/09, Robert Cummings wrote: On Sun, 2009-01-25 at 12:55 -0500, tedd wrote: Hi gang: I had a problem and solved it -- here's the write-up: http://www.webbytedd.com/b/update-select/index.php What do you think of the solution? Dirty button is all fine and dandy

Re: [PHP] Dirty Button

2009-01-25 Thread tedd
At 1:18 PM -0500 1/25/09, tedd wrote: At 1:02 PM -0500 1/25/09, Robert Cummings wrote: Dirty button is all fine and dandy, but since you're using JavaScript to update the button's CSS (or colour), then why not update the information similarly so that the information is up to date? C

Re: [PHP] Dirty Button

2009-01-25 Thread tedd
At 7:02 PM + 1/25/09, Ashley Sheridan wrote: Tedd, what about having it reset if you then go back and select the original option without submitting, i.e. you originally selected and submitted on A, then selected B, then selected A again? That's a good idea. Now I just have to figur

Re: [PHP] Dirty Button

2009-01-25 Thread tedd
At 3:41 PM -0600 1/25/09, Micah Gersten wrote: tedd wrote: At 7:02 PM + 1/25/09, Ashley Sheridan wrote: Tedd, what about having it reset if you then go back and select the original option without submitting, i.e. you originally selected and submitted on A, then selected B, then

Re: [PHP] Rounded rectangle in php

2009-01-29 Thread tedd
/ Keep in mind that these are very simple examples of what can be done. 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: Switch statement Question

2009-01-30 Thread tedd
At 4:43 PM -0500 1/29/09, Frank Stanovcak wrote: >" yes...that is legal. as long as the statment resolves to a boolean it will work. It's not technically correct, but it does work. There you go again. What's technically correct? Cheers, tedd -- --- http://

Re: [PHP] Re: help with end of line charater

2009-01-31 Thread tedd
At 11:58 AM -0600 1/30/09, Adam Williams wrote: yeah just a second ago a big lightbulb went off in my head Try a bigger light-bulb and store the email addresses in a database. Then you can use them as you want regardless if the user hit return or not. Cheers, tedd -- --- http

Re: [PHP] Re: Switch statement Question

2009-01-31 Thread tedd
At 4:16 PM +0100 1/30/09, Jochem Maas wrote: tedd schreef: At 4:43 PM -0500 1/29/09, Frank Stanovcak wrote: >" yes...that is legal. as long as the statment resolves to a boolean it will work. It's not technically correct, but it does work. There you go again. What&

Re: [PHP] PHP Enclosing Tags? Do You Close Your PHP Declarations?

2009-01-31 Thread tedd
e all tags. However, I have yet to be bitten by the problem everyone speaks about (knock on wood). 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] calculate the time that day ends

2009-02-03 Thread tedd
unted the New Year down like so: 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 1, Happy New Year! 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] Is it possible to send POST vars through a header redirect?

2009-02-04 Thread tedd
excluded from the list, but I still get emails. Can somebody who is 'in charge' please remove me from the list. Thank you. Michael Roberts Have you tried? To unsubscribe, visit: http://www.php.net/unsub.php It's at the bottom of every post. Cheers, tedd -- --- http

Re: [PHP] calculate the time that day ends

2009-02-04 Thread tedd
rent. In fact, I would like to understand why you think so. 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] Clarity needed

2009-02-04 Thread tedd
e two together by another record like an assignment. That way I can have as many assignments as I want tying courses to tutors. It that the way you guys would do it? Thanks, tedd -- --- http://sperling.com http://ancientstones.com http://earthstones.com -- PHP General Mailing List

RE: [PHP] Is it possible to send POST vars through a header redirect?

2009-02-05 Thread tedd
to pass a variable to another script, I know of four choices, namely: 1. Use POST; 2. Use GET; 3. Write the variable to a database; 4. Include the next script. HTH's tedd -- --- http://sperling.com http://ancientstones.com http://earthstones.com -- PHP General Mailing List (http://w

[PHP] Garbage Collection

2009-02-05 Thread tedd
n orphaned record? 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] Is it possible to send POST vars through a headerredirect?

2009-02-05 Thread tedd
At 1:18 PM -0600 2/5/09, Shawn McKenzie wrote: tedd wrote: At 2:52 AM -0700 2/5/09, TS wrote: I want my script to run and redirect with the var to another page without the user seeing it. Currently, I am using GET and header("Location: http://domain/?somevar=somevalue";)

Re: [PHP] Garbage Collection

2009-02-05 Thread tedd
tion there would never be a reason for an update. After all, the tutor_course record is created when an assignment is made -- when the assignment is broken, then the record becomes inactive. So, there's no reason to update. "Do, or don't do, there is no try." -- Yoda Thanks, t

[PHP] Preserving History

2009-02-05 Thread tedd
ory of what happened regardless of deletions AND a search for "Introduction to Moonshine" should be essentially as fast as a search for "123" if both fields are indexed, am I right or wrong? Cheers, tedd -- --- http://sperling.com http://ancientstones.com ht

Re: [PHP] Clarity needed

2009-02-06 Thread tedd
arity. Thanks everyone, 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] Clarity needed OT

2009-02-06 Thread tedd
erent -- it would be headline news and on Saturday Night Live. Clearly, there is a difference in news reporting today. There are no impartial sources -- everything has biases and spin. The days of Walter Cronkite reporting are over. Viva opposing opinions. Cheers, tedd -- --- http://s

Re: [PHP] Clarity needed (Really OT)

2009-02-06 Thread tedd
number of subjects. As Will Rogers once said, "We're all ignorant, only in different subjects." I say "We're all gifted, but not in everything." Cheers, tedd -- --- http://sperling.com http://ancientstones.com http://earthstones.com -- PHP General Ma

Re: [PHP] Adding Records & Capture The New Record ID

2009-02-07 Thread tedd
row['id']. That's the way I do it sometimes. 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] Adding Records & Capture The New Record ID

2009-02-08 Thread tedd
At 1:36 AM + 2/8/09, Ashley Sheridan wrote: On Sat, 2009-02-07 at 15:26 -0500, tedd wrote: > That's one way, to use "mysql_insert_id" (probably the best). But another is simply to read back in the record you just created and check the $row['id']. That

Re: [PHP] PHP usage stats

2009-02-08 Thread tedd
n of the numbers of php users out there, please let me know. 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] PHP usage stats

2009-02-08 Thread tedd
At 3:54 PM + 2/8/09, Stuart wrote: 2009/2/8 tedd : > I wasn't able to find a lot of information, but here's a useful link: > http://www.tiobe.com/index.php/content/paperinfo/tpci/index.html Tedd, that's a list of programming languages, not web development langua

Re: [PHP] Appending query result sets?

2009-02-08 Thread tedd
DBA, but I hesitated to post the queries lest I be flamed for posting off-topic. Who does that? We post all sorts of stuff here. Cheers, tedd -- --- http://sperling.com http://ancientstones.com http://earthstones.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, v

Re: [PHP] PHP usage stats

2009-02-08 Thread tedd
At 8:44 PM + 2/8/09, Stuart wrote: 2009/2/8 tedd : > just trying to get a handle on the number of people who program in php -- what's wrong with wanting to know that figure? There's nothing wrong with wanting to know it, there's just no reliable way to measure it so

Re: [PHP] PHP usage stats

2009-02-08 Thread tedd
ache is certainly leading with a respectable lead. One could conclude from that, that at least PHP has more installations than ASP -- would that not be so? There are a large number of other sites to consider -- I just have not got to them yet. Cheers, tedd -- --- http://sperling.com

Re: [PHP] PHP usage stats

2009-02-09 Thread tedd
son why I've been looking for php stats. 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] Adding Records & Capture The New Record ID

2009-02-09 Thread tedd
an unique identifier, then I would agree with you. But unique is unique -- it makes no difference if it's a record ID or email address -- both are unique. Cheers, tedd -- --- http://sperling.com http://ancientstones.com http://earthstones.com -- PHP General Mailing List (http://www

Re: [PHP] php validate user password

2009-02-09 Thread tedd
le the two hashes, or take pairs, or quads, or any number of other techniques to obscure the hash. As long at the process can be reversed, it will work. From my limited view, a minor amount of work can throw a major monkey wrench in any method of trying to crack a hash -- am I wrong? C

Re: [PHP] Adding Records & Capture The New Record ID

2009-02-09 Thread tedd
cord would fail. So the only way to do this properly is to declare the field unique, lock down the database between [1] and [2] and check for errors afterwards -- interesting. Thanks, tedd -- --- http://sperling.com http://ancientstones.com http://earthstones.com -- PHP General Mai

[PHP] PHP OOP

2009-02-09 Thread tedd
because of the proliferation of web based applications. My personal opinion is that's where all programming is headed anyway, but that's just my opinion. With that said, what's the differences and advantages/disadvantages between C++ and PHP OOP? Cheers, tedd -- ---

Re: [PHP] PHP usage stats

2009-02-09 Thread tedd
turning in their heads. Yes, that's another story. 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] Adding Records & Capture The New Record ID

2009-02-09 Thread tedd
At 10:55 AM -0500 2/9/09, Andrew Ballard wrote: -snip- Andrew As I said many times before. I've learned something new every day of my life -- and I'm getting damned tried of it. Thanks for the lesson. Cheers, tedd -- --- http://sperling.com http://ancientstones

Re: [PHP] PHP usage stats

2009-02-09 Thread tedd
rying to determine php and asp numbers, right? 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] php validate user password

2009-02-09 Thread tedd
At 12:20 PM -0300 2/9/09, Bruno Fajardo wrote: tedd, I think that the problem of the "duplicated hashes" in the database (in the case of two users using the same password) persists with a constant prefix in the passwords. Although the random salt portion get stored in the database co

Re: [PHP] Adding Records & Capture The New Record ID

2009-02-09 Thread tedd
At 11:15 AM -0500 2/9/09, Andrew Ballard wrote: On Mon, Feb 9, 2009 at 11:05 AM, tedd wrote: > I've learned something new every day of my life -- and I'm getting damned > tried of it. Well, you probably know what they say about the day you stop learning Yeah, you go

RE: [PHP] php validate user password

2009-02-09 Thread tedd
At 10:41 AM -0600 2/9/09, Boyd, Todd M. wrote: > -Original Message- > From: tedd [mailto:tedd.sperl...@gmail.com] > Granted, there are things here that are above my head -- I am not passing myself off as an expert but rather as someone proposing ideas to see if they pas

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