Re: [PHP] If date is greater than

2013-10-20 Thread Tedd Sperling
://www.ashleysheridan.co.uk Agreed. Plus, there are many date functions provided by MySQL that are easier (possibility faster) than what you can do in PHP. Check these out: http://dev.mysql.com/doc/refman/5.5/en/date-and-time-functions.html#function_date tedd ___ tedd sperling tedd.sperl

[PHP] https question

2013-09-25 Thread Tedd Sperling
at all. So, what options do I have to do secure transactions? I remember someone saying that this could be done via a .htaccess file, but I don't have the code, nor am I positive this is the answer. What do you recommend? Thanks, tedd ___ tedd sperling t...@sperling.com -- PHP

Re: [PHP] https question

2013-09-25 Thread Tedd Sperling
On Sep 25, 2013, at 1:58 PM, Joshua Kehn josh.k...@gmail.com wrote: On Sep 25, 2013, at 1:55 PM, Tedd Sperling t...@sperling.com wrote: Hi gang: I have a client who had his entire site moved to another host -- no big problem. However, the old site had a https directory, where I had

Re: [PHP] jquery fill select option value

2013-09-22 Thread Tedd Sperling
controls via a GET. HTH's tedd ___ tedd sperling tedd.sperl...@gmail.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] jquery fill select option value

2013-09-22 Thread Tedd Sperling
On Sep 22, 2013, at 12:47 PM, Jim Giner jim.gi...@albanyhandball.com wrote: On 9/22/2013 12:04 PM, Tedd Sperling wrote: On Sep 21, 2013, at 9:06 PM, iccsi inu...@gmail.com wrote: select id=mark name=mark option value=--/option option value=bmwBMW/option option value=audiAudi/option

[PHP] Friday's Question

2013-09-20 Thread Tedd Sperling
you, tedd PS: * If you don't want to provide your actual age, then indicate your age by stating young, middle-age, old-age, ancient, or whatever term describes your age. Alternate -- I claim that you can tell a man's age by ten-times the number of personal products he routinely uses, for example

Re: [PHP] Friday's Question

2013-09-20 Thread Tedd Sperling
. Wait until you have callus as feet. tedd ___ tedd sperling t...@sperling.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] PHP vs JAVA

2013-08-20 Thread Tedd Sperling
://w3techs.com/technologies/details/pl-php/all/all http://w3techs.com/technologies/history_overview/programming_language/ms/y But I do not know how accurate they are. What say you? Cheers, tedd ___ tedd sperling t...@sperling.com -- PHP General Mailing List (http://www.php.net

Re: [PHP] PHP vs JAVA

2013-08-20 Thread Tedd Sperling
classes filled to the max, whereas my PHP class was canceled due to lack of students. Granted the college could have advertised my PHP class more, but still there is an overwhelming demand for Java Programmers. My questions is Why? Cheers, tedd ___ tedd sperling t...@sperling.com

Re: [PHP] PHP vs JAVA

2013-08-20 Thread Tedd Sperling
Development? Do you have any? Cheers, tedd ___ tedd sperling t...@sperling.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] PHP vs JAVA

2013-08-20 Thread Tedd Sperling
. In life, you will find that popularity (often over which is best) is the main reason why things prosper. Cheers, tedd ___ tedd sperling t...@sperling.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] PHP vs JAVA

2013-08-20 Thread Tedd Sperling
, tedd ___ tedd sperling t...@sperling.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] PHP vs JAVA

2013-08-20 Thread Tedd Sperling
is well and truly screwed, in ways you can't imagine. 2. Python programs fail in the most ungraceful way I've ever seen in an interpreted programming language. And no ternary operator. tedd ___ tedd sperling tedd.sperl...@gmail.com -- PHP General Mailing List (http://www.php.net

Re: [PHP] PHP vs JAVA

2013-08-20 Thread Tedd Sperling
On Aug 20, 2013, at 12:24 PM, Pete Ford p...@justcroft.com wrote: tedd, Java is a meticulously-constructed language with very strict typing and a large commercial organisation which purports to support and develop it. PHP is a scruffy heap of loosely typed cruft which is easy to knock

Re: [PHP] PHP vs JAVA

2013-08-20 Thread Tedd Sperling
On Aug 20, 2013, at 2:19 PM, Sebastian Krebs krebs@gmail.com wrote: Thats interesting. I am from Berlin and here, when you say you know PHP and a little bit of one, or two frameworks, they will jump onto you I'll stay away from Berlin. :-) tedd ___ tedd sperling t

Re: [PHP] How can I submit more than 2000 items of data?

2013-08-19 Thread Tedd Sperling
. Cheers, tedd ___ tedd sperling tedd.sperl...@gmail.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Why the difference in email transit times?

2013-08-13 Thread Tedd Sperling
domain I own), the email literally takes hours (up to 12) to arrive. Any idea of why there is a difference of email transit times between the two domains? Cheers, tedd PS: Note, my receiving email addresses are handled by gmail.com. ___ tedd sperling t...@sperling.com -- PHP

Re: [PHP] sessions working? not working?

2013-08-12 Thread Tedd Sperling
://sperling.com/php/authorization/log-on.php It might help. tedd ___ tedd sperling tedd.sperl...@gmail.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: How to extract php source code from joomla

2013-07-23 Thread Tedd Sperling
class? [2] Or is this just an introductory class? If [1], then the coursework might be understandable, but still very difficult. If [2], that is far more than what I teach as an Introduction to PHP course. tedd _ tedd.sperl...@gmail.com http://sperling.com -- PHP General

Re: [PHP] /tmp/directory

2013-07-23 Thread Tedd Sperling
believe it was released at the end of 2004). Thanks Daniel. tedd _ t...@sperling.com http://sperling.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] /tmp/directory

2013-07-22 Thread Tedd Sperling
On Jul 22, 2013, at 11:20 AM, Tedd Sperling t...@sperling.com wrote Hi gang: I should know this, but I don't. Where is the /tmp/ directory? You see, I have a client where his host has apparently changed the /tmp/ directory permissions such that old php/mysql scripts cannot write

[PHP] /tmp/directory

2013-07-22 Thread Tedd Sperling
it? Cheers, tedd _ t...@sperling.com http://sperling.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] /tmp/directory

2013-07-22 Thread Tedd Sperling
On Jul 22, 2013, at 12:02 PM, Larry Martell la...@software-horizons.com wrote: On Mon, Jul 22, 2013 at 9:59 AM, Larry Martell la...@software-horizons.com wrote: On Mon, Jul 22, 2013 at 9:50 AM, Tedd Sperling tedd.sperl...@gmail.com wrote: On Jul 22, 2013, at 11:20 AM, Tedd Sperling t

Re: [PHP] /tmp/directory

2013-07-22 Thread Tedd Sperling
On Jul 22, 2013, at 4:10 PM, Matijn Woudt tijn...@gmail.com wrote: On Mon, Jul 22, 2013 at 5:20 PM, Tedd Sperling t...@sperling.com wrote: Hi gang: I should know this, but I don't. Where is the /tmp/ directory? You see, I have a client where his host has apparently changed the /tmp

Re: [PHP] How to extract php source code from joomla

2013-07-22 Thread Tedd Sperling
I'll be grateful if you can give me an advice thank you Sounds more like a client than someone who teaches php. I couldn't do that from scratch in 20 days and I teach php at college level. That's more than my entire 16 weeks course of introductory php. Are you in an advanced class? tedd

[PHP] strip_tags

2013-07-20 Thread Tedd Sperling
know these are depreciated, but my client wants them anyway). Cheers, tedd _ t...@sperling.com http://sperling.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] strip_tags

2013-07-20 Thread Tedd Sperling
On Jul 20, 2013, at 5:34 PM, Frank Arensmeier farensme...@gmail.com wrote: 20 jul 2013 kl. 18:25 skrev Tedd Sperling t...@sperling.com: Hi gang: I've been using $str = strip_tags($str, $allowable) as it is described via the manuals: http://php.net/manual/en/function.strip

Re: [PHP] PHP and Powershell

2013-07-19 Thread Tedd Sperling
, tedd On Jul 19, 2013, at 1:16 PM, Serge Fonville serge.fonvi...@gmail.com wrote: Thank you for your clarification. Have you considered placing the whole powershell -command parameter in a .ps1 script and executing that instead? The benefit would be that it is easier to read and test

Re: [PHP] pass parameter from client to server

2013-07-18 Thread Tedd Sperling
would not provide such access to a db query without a great deal of cleaning. Cheers, tedd _ tedd.sperl...@gmail.com http://sperling.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] pass parameter from client to server

2013-07-18 Thread Tedd Sperling
One additional comment. Please change the javascript onclick to onchange -- that way the demo will work for Chrome as well as other Browsers. Cheers, tedd _ t...@sperling.com http://sperling.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http

[PHP] Error checking ON

2013-07-17 Thread Tedd Sperling
', 'error_log'); Is this: 1. Sufficient? 2. An overkill? 3. OK? 4. OR, better served with this (and provide an example). Cheers, tedd _ t...@sperling.com http://sperling.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Error checking ON

2013-07-17 Thread Tedd Sperling
On Jul 17, 2013, at 11:55 AM, Daniel Brown danbr...@php.net wrote: On Wed, Jul 17, 2013 at 11:49 AM, Tedd Sperling t...@sperling.com wrote: This is what I do for error checking: ini_set('error_reporting', E_ALL | E_STRICT); ini_set('display_errors', 'On'); ini_set

[PHP] htaccess

2013-07-07 Thread Tedd Sperling
AddHandler x-httpd-php5-cgi .php .htm .html Does anyone see a problem here? OR -- a way to get PHP to version 5.3? Cheers, tedd _ t...@sperling.com http://sperling.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] htaccess

2013-07-07 Thread Tedd Sperling
application/x-httpd-php /FilesMatch And it works for me without the PHP version reduction. What do you say? And thanks... Cheers, tedd On Jul 7, 2013, at 4:10 PM, Simon J Welsh si...@simon.geek.nz wrote: On 8/07/2013, at 8:06, Tedd Sperling t...@sperling.com wrote: Hi gang: I have a client

Re: [PHP] Can this work?

2013-07-05 Thread Tedd Sperling
=11/optionoption value=22/optionoption Review this: http://sperling.com/php/select/ Also, omit 'multiple' in the select statement. Other than that, the demo shows how to gather the information you want. Cheers, tedd _ tedd.sperl...@gmail.com http://sperling.com -- PHP

Re: [PHP] Reseting the auto-increment number in a MySQL database.

2013-06-28 Thread Tedd Sperling
is incremented anyway at least this is my case. I think what Tedd was referring to was something else. The hole was quite large. I've seen this behavior myself, in PostgreSQL. From one transaction to the next, there were over 10,000 skipped numbers, and only me and my wife on the system. Some sort

[PHP] Reseting the auto-increment number in a MySQL database.

2013-06-26 Thread Tedd Sperling
(programmatically) to set the next number in an auto-increment? Something like: alter table abc auto_increment = 2301; Any ideas of why this happened? Cheers, tedd _ t...@sperling.com http://sperling.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe

Re: [PHP] Reseting the auto-increment number in a MySQL database.

2013-06-26 Thread Tedd Sperling
On Jun 26, 2013, at 1:13 PM, Stuart Dallas stu...@3ft9.com wrote: On Wednesday, 26 June 2013 at 18:07, Tedd Sperling wrote: Hi gang: I have a client where their next auto-increment number just jumped from 2300 to 10 for reasons not understood. They want it set back. Options

[PHP] Last Record INSERT

2013-06-26 Thread Tedd Sperling
Hi gang: What's the most-current way to get the ID of the last recorded inserted in a database? Cheers, tedd _ t...@sperling.com http://sperling.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Reseting the auto-increment number in a MySQL database.

2013-06-26 Thread Tedd Sperling
On Jun 26, 2013, at 1:32 PM, Jim Giner jim.gi...@albanyhandball.com wrote: But more importantly - don't you need to figure out why it happened?? As well as correcting any inserts with the bogus id? Yes, I would like to know -- I'm open for suggestions. Cheers, tedd

Re: [PHP] Last Record INSERT

2013-06-26 Thread Tedd Sperling
Gang: Let me add, currently I am inserting an email address into a database. To find which record was created, I ask for the record number (ID) back. I am asking simply because mysql_insert_id() is deprecated. Cheers, tedd _ tedd.sperl...@gmail.com http://sperling.com

Re: [PHP] Last Record INSERT

2013-06-26 Thread Tedd Sperling
On Jun 26, 2013, at 1:56 PM, Stuart Dallas stu...@3ft9.com wrote: On Wednesday, 26 June 2013 at 18:39, Tedd Sperling wrote: Let me add, currently I am inserting an email address into a database. To find which record was created, I ask for the record number (ID) back. I am asking simply

Re: [PHP] Last Record INSERT

2013-06-26 Thread Tedd Sperling
On Jun 26, 2013, at 2:10 PM, Dan Munro d...@danmunro.com wrote: Learning something new everyday is one of the joys of this profession. If you learn two new things, consider yourself lucky :) What if it's the same two things? New just means I didn't remember it. Cheers, tedd

Re: [PHP] Reseting the auto-increment number in a MySQL database.

2013-06-26 Thread Tedd Sperling
client's needs. However, all of a sudden, it's been fixed -- everything is back to normal -- very strange. Thanks to everyone. Cheers, tedd _ tedd.sperl...@gmail.com http://sperling.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http

[PHP] A Strange Problem

2013-06-20 Thread Tedd Sperling
: No such file or directory in cut on line 83 This has got me really puzzled. I have confirmed these are the exact same folders and files, except only in two different places on the server. Both are one level down from root. Any ideas as to what is going on? Cheers, tedd

Re: [PHP] A Strange Problem

2013-06-20 Thread Tedd Sperling
Matijin: My mistake in posting -- I have tried it several different ways including absolute. Nothing works. Cheers, tedd --- On Jun 20, 2013, at 1:43 PM, Matijn Woudt tijn...@gmail.com wrote: On Thu, Jun 20, 2013 at 7:39 PM, Tedd Sperling t...@sperling.com wrote: Hi gang: I have

Re: [PHP] A Strange Problem

2013-06-20 Thread Tedd Sperling
On Jun 20, 2013, at 1:44 PM, Bastien phps...@gmail.com wrote: It sounds like a current working directory issue. Try running a getcwd() in both places to see how they are set Bastien I think you have something, here's the reports: Works: /home/content/64/cut/html/sdi/tedd/php-mail

Re: [PHP] A Strange Problem

2013-06-20 Thread Tedd Sperling
Bastien: You were right on - by changing the directory to what I needed, everything works. My follow-up question is Why? I have *never* had to specifically tell any script to chdir() -- why with that one? Cheers and Thanks! tedd _ tedd.sperl...@gmail.com http

Re: [PHP] A Strange Problem

2013-06-20 Thread Tedd Sperling
Daniel: I placed it at root and it reports: /home/content/64/cut/html/sdi That's the same path that had problems. tedd _ tedd.sperl...@gmail.com http://sperling.com On Jun 20, 2013, at 2:22 PM, Daniel Brown danbr...@php.net wrote: On Thu, Jun 20, 2013 at 2:14 PM

Re: [PHP] A Strange Problem

2013-06-20 Thread Tedd Sperling
it happened. Cheers, tedd _ t...@sperling.com http://sperling.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] LightBox click detection

2013-06-14 Thread Tedd Sperling
would like to have a php/javascript combination that would: 1. Detect when a user clicked the LightBox; 2. Pass that value to PHP so I can keep count. Any ideas? Cheers, tedd _ t...@sperling.com http://sperling.com -- PHP General Mailing List (http://www.php.net

[PHP] htaccess to make html act as php suffixed files

2013-06-11 Thread Tedd Sperling
-- any ideas as to why? Cheers, tedd _ t...@sperling.com http://sperling.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Using Table prefixes

2013-06-10 Thread Tedd Sperling
. At least, that's been my experience -- YMMV. Cheers, tedd _ tedd.sperl...@gmail.com http://sperling.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Using Table prefixes

2013-06-10 Thread Tedd Sperling
Hi: I am sure they do not turn over a 1000 clients to a single person. Cheers, tedd _ tedd.sperl...@gmail.com http://sperling.com On Jun 10, 2013, at 2:11 PM, Julian Wanke jswp...@gmx.at wrote: Tell this the facebook, google or nsa data team ^^ Am 10.06.2013, 16

Re: [PHP] Using Table prefixes

2013-06-08 Thread Tedd Sperling
, tedd _ tedd.sperl...@gmail.com http://sperling.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] limit access to php page

2013-05-30 Thread Tedd Sperling
a session id will keep things relatively safe. Cheers, tedd _ tedd.sperl...@gmail.com http://sperling.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] REQUEST

2013-05-29 Thread Tedd Sperling
tend not to judge people by the labels they give themselves, they're rarely accurate, especially when they think they're the last and/or best of their kind! -Stuart I called myself a Fracker once, but that was when I worked in the oil industry. Cheers, tedd PS: I think it probably best

Re: [PHP] need some regex help to strip out // comments but not http:// urls

2013-05-29 Thread Tedd Sperling
On May 29, 2013, at 5:53 PM, Ashley Sheridan a...@ashleysheridan.co.uk wrote: Sometimes when all you know is regex, everything looks like a nail... Thanks, Ash There are people who *know* regrex? Cheers, tedd _ tedd.sperl...@gmail.com http://sperling.com -- PHP

Re: [PHP] limit access to php page

2013-05-29 Thread Tedd Sperling
-- GPG me!! Try this: http://sperling.com/php/authorization/log-on.php Cheers, tedd _ tedd.sperl...@gmail.com http://sperling.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Random

2013-05-23 Thread Tedd Sperling
On May 23, 2013, at 4:54 PM, Daniel Brown danbr...@php.net wrote: On Thu, May 23, 2013 at 4:51 PM, Last Hacker Always onpoint lasthack...@gmail.com wrote: Hey I need code for random number 1-30 for my site. You need to know that you've been removed from the list (but you'd still have to

Re: [PHP] How do I remove a string from another string in a fuzzy way?

2013-05-21 Thread Tedd Sperling
in the whitespace and removing the delimiter. Also, you may want to look into using array_unique() for comparing groupings of several strings (i.e., paragraphs) to other groupings. It works pretty slick for me. Cheers, tedd _ tedd.sperl...@gmail.com http://sperling.com -- PHP

[PHP] Symfony?

2013-05-20 Thread Tedd Sperling
Hi gang: Who uses Symfony? Cheers, tedd _ t...@sperling.com http://sperling.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] A Good OOP Tutorial/Read?

2013-05-19 Thread Tedd Sperling
On May 19, 2013, at 5:19 AM, mrfroasty mrfroa...@gmail.com wrote: On 05/16/2013 11:28 PM, Tedd Sperling wrote: So, if you find a good reference, please let me know. In my point of view, Interfaces and Abstracts are completely different stuffs not related at all.Interface is a kind of a way

Re: [PHP] A Good OOP Tutorial/Read?

2013-05-19 Thread Tedd Sperling
To all: Thanks to Stuart, I finally got it. The concept of Interface is a bit difficult to explain, but his excellent console made the concept clear. Many thanks to all for their efforts to educate me. Cheers, tedd _ t...@sperling.com http://sperling.com -- PHP

Re: [PHP] A Good OOP Tutorial/Read?

2013-05-17 Thread Tedd Sperling
() method is polymorphic and overridden in both Circle and Shape classes and also in BOTH abstract and interface examples. Additionally, I'm not sure what: (int double side) means. Cheers, tedd _ tedd.sperl...@gmail.com http://sperling.com - On May 16, 2013, at 8:47 PM

Re: [PHP] A Good OOP Tutorial/Read?

2013-05-17 Thread Tedd Sperling
really hold up as well as I wanted. So, can anyone give me a simple example where an interface is used so I can easily explain why they are important? Thanks, tedd _ tedd.sperl...@gmail.com http://sperling.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe

Re: [PHP] A Good OOP Tutorial/Read?

2013-05-16 Thread Tedd Sperling
classes together and creating a new data-tytpe. Other than that, from my perspective interfaces are mythicode. So, if you find a good reference, please let me know. Cheers, tedd _ tedd.sperl...@gmail.com http://sperling.com On May 16, 2013, at 11:11 AM, Dan Joseph

Re: [PHP] A Good OOP Tutorial/Read?

2013-05-16 Thread Tedd Sperling
see the advantage interfaces bring. Cheers, tedd _ tedd.sperl...@gmail.com http://sperling.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP]

2013-05-08 Thread Tedd Sperling
Ponies.) On Thu, Apr 11, 2013 at 11:43 AM, Paul Novitski p...@juniperwebcraft.com wrote: http://www.shinwa-kensetsu.sakura.ne.jp/bth7rz.php I'm not sure what's going on with Paul's account -- he doesn't normally do stuff like that. I even bought his book. Cheers, tedd PS: PHP

Re: [PHP] generate onfly PDF

2013-05-04 Thread Tedd Sperling
at fpdf, its a class that doesn't need any special server-side support. Its basic, but is pretty good. Thanks, Ash Ash is right, here's an example I provide my students: http://rebel.lcc.edu/sperlt/citw185/examples/pdf/ Everything is there. Cheers, tedd _ tedd.sperl

Re: [PHP] mysql_connect noob question

2013-04-23 Thread Tedd Sperling
On Apr 21, 2013, at 3:33 PM, Glob Design Info i...@globdesign.com wrote: What question did I not answer? That proves that you're not listening -- you are total waste of time for anyone trying to help. Welcome to my ignore file. tedd _ tedd.sperl...@gmail.com http

Re: [PHP] mysql_connect noob question

2013-04-21 Thread Tedd Sperling
of the forest. He doesn't want to widen his view. Until the poster answers our question, I'm afraid our recommendations will fall on deaf ears. Some days you can help and some days you can't. Cheers, tedd _ tedd.sperl...@gmail.com http://sperling.com -- PHP General Mailing

Re: [PHP] mysql_connect noob question

2013-04-20 Thread Tedd Sperling
= mysql_connect( $host, $form_user, $form_pass ); And yes, my $host param is correct. Thanks, Why are you allowing anyone to connect to your database from a form? Cheers, tedd _ tedd.sperl...@gmail.com http://sperling.com -- PHP General Mailing List (http

Re: [PHP] mysql_connect noob question

2013-04-20 Thread Tedd Sperling
someone's credentials if not by connecting to a db to verify the login? Cause I'm doing the same kind of thing all over the place. With good practices on validation and such before doing my query of course. I'm pretty sure that's not what tedd meant. The code is logging in to the database

Re: [PHP] webform spam prevention

2013-04-06 Thread Tedd Sperling
, tedd _ tedd.sperl...@gmail.com http://sperling.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Testing

2013-03-08 Thread Tedd Sperling
On Mar 8, 2013, at 1:20 PM, Dustin L dustinlob...@gmail.com wrote: This is my first time using a list. Can anyone confirm I'm doing this correctly? Thanks, Dustin L. Oh, now you did it! There will be dogs and cats in the streets. Cheers, tedd _ t

Re: [PHP] Open form in new window

2013-03-06 Thread Tedd Sperling
On Mar 5, 2013, at 10:12 PM, Jim Giner jim.gi...@albanyhandball.com wrote On 3/5/2013 7:32 PM, Tedd Sperling wrote: On Mar 4, 2013, at 12:54 PM, John Taylor-Johnston john.taylor-johns...@cegepsherbrooke.qc.ca wrote: If you want to open a new page in response to a submit button press (using

Re: [PHP] Open form in new window

2013-03-05 Thread Tedd Sperling
are trying to do. You see, I use ajax all the time to send all sorts of things to the server without refresh, but I am at a lost to figure out what you are doing. Cheers, tedd -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] PHP Web Developer Opportunity

2013-03-05 Thread Tedd Sperling
that enables organizations to connect with their constituents in new ways. We help non-profit organizations understand how to engage with their members to drive loyalty, create opportunities, ignite conversations, distribute knowledge, and share experiences. What are you offering? Cheers, tedd

Re: [PHP] Open form in new window

2013-03-05 Thread Tedd Sperling
= attribute. If you want the current page to remain open while another page opens, then you'll need a javascript routine to do it. Cheers, tedd _ t...@sperling.com http://sperling.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net

Re: [PHP] PHP Web Developer Opportunity

2013-03-05 Thread Tedd Sperling
On Mar 5, 2013, at 7:18 PM, Matijn Woudt tijn...@gmail.com wrote: On Wed, Mar 6, 2013 at 1:16 AM, Tedd Sperling t...@sperling.com wrote: On Mar 4, 2013, at 3:10 PM, Allison Garcia agar...@smallworldlabs.com wrote: -snip- What are you offering? $2/hr. Oh, It's not Friday.. Is it more

Re: [PHP] Introduction ... !

2013-03-02 Thread Tedd Sperling
On Mar 2, 2013, at 11:25 AM, Jay Blanchard jay.blanch...@sigmaphinothing.org wrote: No - Tedd is old. The rest of us are just Spring chickens. Hey, let's watch that... a, what? What the hell was I saying??? Awww .. forget it. Did I tell you about when I programed with rocks

Re: [PHP] Introduction ... !

2013-03-02 Thread Tedd Sperling
On Mar 2, 2013, at 11:26 AM, Stuart Dallas stu...@3ft9.com wrote: On 2 Mar 2013, at 16:25, Jay Blanchard jay.blanch...@sigmaphinothing.org wrote: No - Tedd is old. The rest of us are just Spring chickens. Speak for yourself, I'm an autumn turkey! -Stuart What's this autumn nonsense

Re: [PHP] Introduction ... !

2013-03-02 Thread Tedd Sperling
taking a poop. My other friend said -- At 8:00 am my problem is taking a piss. I replied -- At 8:00 am I crap like a goose and piss like a race hoarse. Both friends said: That doesn't sound bad -- what's the problem? I told them Yeah, but I wake up at 9:00 am. Cheers, tedd

Re: [PHP] Finding an Address

2013-03-01 Thread Tedd Sperling
have any ideas? Thanks! Floyd What about using zip codes? Like so: http://php1.net/a/zipcode/ Cheers, tedd _ t...@sperling.com http://sperling.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] if (empty versus if (isset

2013-02-20 Thread Tedd Sperling
, such as: $submit = isset($_POST['submit']) ? $_POST['submit'] : null; That way, you never encounter an error looking for something that is not there. Cheers, tedd t...@sperling.com http://sperling.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit

Re: [PHP] phpinfo()

2013-02-20 Thread Tedd Sperling
']) ? $_POST['button2'] : null; That's one way -- there are many more. Cheers, tedd _ t...@sperling.com http://sperling.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] parsing select multiple=multiple

2013-02-20 Thread Tedd Sperling
give me a couple of clues please? :) Thanks, John John: A clue? How about an example? See here: http://sperling.com/php/select/index.php Cheers, tedd _ t...@sperling.com http://sperling.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http

Re: [PHP] phpinfo()

2013-02-20 Thread Tedd Sperling
blower :-) Cheers, tedd _ t...@sperling.com http://sperling.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Affordable low-fee e-commerce - DIY?

2013-02-18 Thread Tedd Sperling
site -- and it happens. For example, I had one guy donate $100. I'm waiting for someone to better that. :-) Cheers, tedd _ t...@sperling.com http://sperling.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Is header() malfunction due to PHP5.3.3 - 5.4.11 transition?

2013-02-09 Thread Tedd Sperling
. Cheers, tedd _ t...@sperling.com http://sperling.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Strip emails from a document

2013-01-26 Thread Tedd Sperling
ar...@cit.msu.edu;Meia Terms term...@cit.msu.edu; After: ale...@cit.msu.edu za...@cit.msu.edu ar...@cit.msu.edu term...@cit.msu.edu Cheers, tedd _ t...@sperling.com http://sperling.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http

Re: [PHP] Strip emails from a document

2013-01-26 Thread Tedd Sperling
; } ? It works imperfectly enough for me. :-) Here's the result: http://www.webbytedd.com/aa/strip-email/index.php Thanks to all. Cheers, tedd PS: Yes, 'extract is what I meant and more correct than 'strip' as I said. _ t...@sperling.com http://sperling.com -- PHP General

Re: [PHP] Strip emails from a document

2013-01-26 Thread Tedd Sperling
On Jan 26, 2013, at 12:48 PM, shiplu shiplu@gmail.com wrote: What is your input? Check my first email in this thread. Cheers, tedd _ t...@sperling.com http://sperling.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http

Re: [PHP] Pear Page2

2013-01-06 Thread Tedd Sperling
No. Instead, you have to spend every waking hour learning and applying that knowledge with openness to the possibility that you still don't understand the problems involved -- it's a never ending battle to educate yourself. Cheers, tedd _ t...@sperling.com http

Re: [PHP] Pear Page2

2013-01-06 Thread Tedd Sperling
On Jan 6, 2013, at 12:52 PM, Silvio Siefke siefke_lis...@web.de wrote: On Sun, 6 Jan 2013 11:36:39 -0500 Tedd Sperling t...@sperling.com wrote: So, where does that leave a Web Developer? It leaves them with the responsibility to learn and apply what they learned to their craft

Re: [PHP] Pear Page2

2013-01-05 Thread Tedd Sperling
. (nano + html/css Tags) Not mine. Cheers, tedd _ t...@sperling.com http://sperling.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Boolean type forced on string assignment inside if statement

2013-01-03 Thread Tedd Sperling
to see how things change. To the more accomplished programmers reading this, here's a question: What's the difference between using one pipe or two in an 'if' statement? :-) Cheers, tedd _ t...@sperling.com http://sperling.com -- PHP General Mailing List (http

Re: [PHP] Boolean type forced on string assignment inside if statement

2013-01-03 Thread Tedd Sperling
that both expressions will be evaluated. Now, I am not sure as to where that would mean anything. Can anyone provide an example where using a single pipe would produce different results than using a double pipe? IOW, why is there a difference? Cheers, tedd _ t

Re: [PHP] Nested loopa

2012-12-27 Thread Tedd Sperling
/while()', you don't need to set the truth until the block of code has been implemented AND at that point determine the truth of the block of code. Cheers, tedd _ t...@sperling.com http://sperling.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit

  1   2   3   4   5   6   7   8   9   10   >