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

Re: [PHP] https question

2013-09-25 Thread Tedd Sperling
On Sep 25, 2013, at 1:58 PM, Joshua Kehn wrote: > On Sep 25, 2013, at 1:55 PM, Tedd Sperling 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 direc

[PHP] https question

2013-09-25 Thread Tedd Sperling
rectory 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.c

Re: [PHP] jquery fill select option value

2013-09-22 Thread Tedd Sperling
On Sep 22, 2013, at 12:47 PM, Jim Giner wrote: > On 9/22/2013 12:04 PM, Tedd Sperling wrote: >> On Sep 21, 2013, at 9:06 PM, iccsi wrote: >>> >>> -- >>> BMW >>> Audi >>> >>> >>> I use above code to have my select drop

Re: [PHP] jquery fill select option value

2013-09-22 Thread Tedd Sperling
you can copy it. The HTML is there -- you can copy that too. The php script is a simple script that is triggered by an ajax script (triggered by the user via onchange() ) that then pulls whatever data is needed to populate the remaining option controls via a GET. HTH's tedd

Re: [PHP] Friday's Question

2013-09-20 Thread Tedd Sperling
il 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] Friday's Question

2013-09-20 Thread Tedd Sperling
Age: * Mousepad: Yes/No Thank 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

Re: [PHP] PHP vs JAVA

2013-08-20 Thread Tedd Sperling
On Aug 20, 2013, at 2:19 PM, Sebastian Krebs 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...@sperling.

Re: [PHP] PHP vs JAVA

2013-08-20 Thread Tedd Sperling
On Aug 20, 2013, at 12:24 PM, Pete Ford 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
e "most readable", but it's a huge fail for two reasons: > > 1. There are no statement terminators. Lose your indentation for ANY > reason and your program is well and truly screwed, in ways you can't > imagine. > > 2. Python programs fail in the most ungracef

Re: [PHP] PHP vs JAVA

2013-08-20 Thread Tedd Sperling
there are professionals on this list that do know and it is to them I am asking. Remember, I am also asking for supporting documentation of their view. The people who respond with just their opinion are doing just that -- there is no support. My nature is to seek the truth regardless o

Re: [PHP] PHP vs JAVA

2013-08-20 Thread Tedd Sperling
ava and JavaScript. 2. 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
opular for Web 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
er 3) JAVA 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 sperl

[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] How can I submit more than 2000 items of data?

2013-08-19 Thread Tedd Sperling
#x27;s a wonder that anyone receives an education these days. 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
other 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 -

Re: [PHP] sessions working? not working?

2013-08-12 Thread Tedd Sperling
e you populating the SESSION's? Such as: $_SESSION['userid'] = $userid; Also, have a look at this: http://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

Re: [PHP] /tmp/directory

2013-07-23 Thread Tedd Sperling
formation back (or anything > at all, necessarily), but it's another thing to try when using such an > antiquated version (I 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

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

2013-07-23 Thread Tedd Sperling
ced PHP 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

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

2013-07-22 Thread Tedd Sperling
x27;s more than my entire 16 weeks course of introductory php. Are you in an advanced class? 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] /tmp/directory

2013-07-22 Thread Tedd Sperling
On Jul 22, 2013, at 4:10 PM, Matijn Woudt wrote: > On Mon, Jul 22, 2013 at 5:20 PM, Tedd Sperling wrote: > >> Hi gang: >> >> I should know this, but I don't. >> >> Where is the /tmp/ directory? >> >> You see, I have a client where h

Re: [PHP] /tmp/directory

2013-07-22 Thread Tedd Sperling
On Jul 22, 2013, at 12:02 PM, Larry Martell wrote: > On Mon, Jul 22, 2013 at 9:59 AM, Larry Martell > wrote: >> On Mon, Jul 22, 2013 at 9:50 AM, Tedd Sperling >> wrote: >>> On Jul 22, 2013, at 11:20 AM, Tedd Sperling wrote >>>> >>>> I sho

[PHP] /tmp/directory

2013-07-22 Thread Tedd Sperling
ix 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 11:20 AM, Tedd Sperling 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 script

Re: [PHP] strip_tags

2013-07-20 Thread Tedd Sperling
On Jul 20, 2013, at 5:34 PM, Frank Arensmeier wrote: > 20 jul 2013 kl. 18:25 skrev Tedd Sperling : > >> Hi gang: >> >> I've been using >> >> $str = strip_tags($str, $allowable) >> >> as it is described via the manuals: >> >

[PHP] strip_tags

2013-07-20 Thread Tedd Sperling
s (such as , , and -- I 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] PHP and Powershell

2013-07-19 Thread Tedd Sperling
, tedd On Jul 19, 2013, at 1:16 PM, Serge Fonville 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 acc

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

Re: [PHP] pass parameter from client to server

2013-07-18 Thread Tedd Sperling
ues in the GET Array without a refresh. However, I 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] Error checking ON

2013-07-17 Thread Tedd Sperling
On Jul 17, 2013, at 11:55 AM, Daniel Brown wrote: > On Wed, Jul 17, 2013 at 11:49 AM, Tedd Sperling wrote: >> This is what I do for error checking: >> >>ini_set('error_reporting', E_ALL | E_STRICT); >>ini_set('display_errors&#x

[PHP] Error checking ON

2013-07-17 Thread Tedd Sperling
7;, 'On'); ini_set('error_log', '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] htaccess

2013-07-07 Thread Tedd Sperling
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 wrote: > On 8/07/2013, at 8:06, Tedd Sperling wrote: > >> Hi gang: >> >> I have a client who has an account with GoDaddy (I know).

[PHP] htaccess

2013-07-07 Thread Tedd Sperling
5-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] Can this work?

2013-07-05 Thread Tedd Sperling
p/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 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-28 Thread Tedd Sperling
autoincrement 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

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

2013-06-26 Thread Tedd Sperling
t put stuff in it as per 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://w

Re: [PHP] Last Record INSERT

2013-06-26 Thread Tedd Sperling
On Jun 26, 2013, at 2:10 PM, Dan Munro 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 re

Re: [PHP] Last Record INSERT

2013-06-26 Thread Tedd Sperling
On Jun 26, 2013, at 1:56 PM, Stuart Dallas 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. >> &g

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] 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 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 _ t

[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:13 PM, Stuart Dallas 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 se

[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] A Strange Problem

2013-06-20 Thread Tedd Sperling
ybe someone smarter than me (open to many) will explain why 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

Re: [PHP] A Strange Problem

2013-06-20 Thread Tedd Sperling
Daniel: I placed it at root and it reports: /home/content/64//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 wrote: > On Thu, Jun 20, 2013 at 2:14 PM, Tedd

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...@gmai

Re: [PHP] A Strange Problem

2013-06-20 Thread Tedd Sperling
On Jun 20, 2013, at 1:44 PM, Bastien 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//html/sdi/tedd/php

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 wrote: > > > > On Thu, Jun 20, 2013 at 7:39 PM, Tedd Sperling wrote: > Hi gang: > > I have a

[PHP] A Strange Problem

2013-06-20 Thread Tedd Sperling
ailed to open stream: No such file or directory in 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 ___

[PHP] LightBox click detection

2013-06-14 Thread Tedd Sperling
l). Ideally, I 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://w

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

2013-06-11 Thread Tedd Sperling
heers, 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
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 wrote: > Tell this the facebook, google or nsa data team ^^ > > Am 10.06.2013,

Re: [PHP] Using Table prefixes

2013-06-10 Thread Tedd Sperling
ppier. 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-08 Thread Tedd Sperling
es sense, and especially so if you name it sensibly as in your first > example. > Thanks, > Ash I agree, but more than that I also set up databases specifically for clients such that all the tables in them are related to the client and not each other, such as: client1_db contacts i

Re: [PHP] limit access to php page

2013-05-30 Thread Tedd Sperling
for your user to use your service. But for *most things* using 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] limit access to php page

2013-05-29 Thread Tedd Sperling
age? > > Thank you! > Tim > > -- > 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] 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 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 Gener

Re: [PHP] REQUEST

2013-05-29 Thread Tedd Sperling
at I > 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, te

Re: [PHP] Random

2013-05-23 Thread Tedd Sperling
On May 23, 2013, at 4:54 PM, Daniel Brown wrote: > On Thu, May 23, 2013 at 4:51 PM, Last Hacker Always onpoint > 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 be subscribed to be able to re

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

2013-05-21 Thread Tedd Sperling
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 G

[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
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-19 Thread Tedd Sperling
On May 19, 2013, at 5:19 AM, mrfroasty 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

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

2013-05-17 Thread Tedd Sperling
interface so my students could use the Toaster, but it didn't 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

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

2013-05-17 Thread Tedd Sperling
tArea() 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,

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

2013-05-16 Thread Tedd Sperling
just don't 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] A Good OOP Tutorial/Read?

2013-05-16 Thread Tedd Sperling
r than grouping different 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

Re: [PHP]

2013-05-08 Thread Tedd Sperling
for Produced by Horses & Ponies.) > > On Thu, Apr 11, 2013 at 11:43 AM, Paul Novitski > 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.

Re: [PHP] generate onfly PDF

2013-05-04 Thread Tedd Sperling
s quite >> often as service for user. > > Have a look 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/c

Re: [PHP] mysql_connect noob question

2013-04-23 Thread Tedd Sperling
On Apr 21, 2013, at 3:33 PM, Glob Design Info 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://sperling.com

Re: [PHP] mysql_connect noob question

2013-04-21 Thread Tedd Sperling
a specific tree instead 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

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

Re: [PHP] mysql_connect noob question

2013-04-20 Thread Tedd Sperling
_POST[ 'password' ]; > > # Connect to remote DB > > $LINK = 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 ___

Re: [PHP] webform spam prevention

2013-04-06 Thread Tedd Sperling
wn? Can you hear this one clear enough? I like the circle one. I can place the circle anywhere on the page and ask the user to click it, but you have to be able to see it. The third one is simple enough. The forth one is bot proof, but a bit difficult for some to figure out and for t

Re: [PHP] Testing

2013-03-08 Thread Tedd Sperling
On Mar 8, 2013, at 1:20 PM, Dustin L 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 ___

Re: [PHP] Open form in new window

2013-03-06 Thread Tedd Sperling
On Mar 5, 2013, at 10:12 PM, Jim Giner wrote > On 3/5/2013 7:32 PM, Tedd Sperling wrote: >> On Mar 4, 2013, at 12:54 PM, John Taylor-Johnston >> wrote: >> >>> If you want to open a new page in response to a submit button press (using >>> PHP) you may b

Re: [PHP] PHP Web Developer Opportunity

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

Re: [PHP] Open form in new window

2013-03-05 Thread Tedd Sperling
t; 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/unsub.php

Re: [PHP] PHP Web Developer Opportunity

2013-03-05 Thread Tedd Sperling
engage with their members to drive loyalty, create opportunities, > ignite conversations, distribute knowledge, and share experiences. What are you offering? 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] Open form in new window

2013-03-05 Thread Tedd Sperling
sing? > > Paul > Yes, I agree with Paul -- how about an example? That way we can see what you 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] Introduction ... !

2013-03-02 Thread Tedd Sperling
aking 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

Re: [PHP] Introduction ... !

2013-03-02 Thread Tedd Sperling
On Mar 2, 2013, at 11:26 AM, Stuart Dallas wrote: > On 2 Mar 2013, at 16:25, Jay Blanchard > 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&

Re: [PHP] Introduction ... !

2013-03-02 Thread Tedd Sperling
On Mar 2, 2013, at 11:25 AM, Jay Blanchard 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? That was before someone i

Re: [PHP] Finding an Address

2013-03-01 Thread Tedd Sperling
sh that. Anyone 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] phpinfo()

2013-02-20 Thread Tedd Sperling
27;t help. > Sent from my leaf 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] parsing select multiple="multiple"

2013-02-20 Thread Tedd Sperling
hanks, > 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://www.php.net/unsub.php

Re: [PHP] phpinfo()

2013-02-20 Thread Tedd Sperling
button to pass a different condition than a type="submit"> Lot's of different ways to pass values via forms. Try using : Then check the button2 value via a: $button2 = isset($_POST['button2']) ? $_POST['button2'] : null; That's one wa

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

2013-02-20 Thread Tedd Sperling
y I recommend using a Ternary Operator to check the POST array, 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://sp

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

2013-02-18 Thread Tedd Sperling
blems with people donating $5 to my cause (me) via my 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
On Feb 9, 2013, at 2:00 PM, Jonathan Eagle wrote: > I'm having a problem with a very straightforward routine; Jonathan: No offense to your routine, but you may want to review this: http://sperling.com/php/authorization/log-on.php If anyone finds an error, please post. Cheer

Re: [PHP] Strip emails from a document

2013-01-26 Thread Tedd Sperling
On Jan 26, 2013, at 12:48 PM, shiplu 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://www.php.net/unsub.php

Re: [PHP] Strip emails from a document

2013-01-26 Thread Tedd Sperling
return $matches; > } > ?> 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. _

[PHP] Strip emails from a document

2013-01-26 Thread Tedd Sperling
Arms" ;"Meia Terms" ; 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://www.php.net/unsub.php

Re: [PHP] Pear Page2

2013-01-06 Thread Tedd Sperling
On Jan 6, 2013, at 12:52 PM, Silvio Siefke wrote: > On Sun, 6 Jan 2013 11:36:39 -0500 > Tedd Sperling 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. >> Is

Re: [PHP] Pear Page2

2013-01-06 Thread Tedd Sperling
h attempts at minimizing the work involved? The answer is a simple "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 ed

Re: [PHP] Pear Page2

2013-01-05 Thread Tedd Sperling
no + 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
means 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...@sp

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

2013-01-03 Thread Tedd Sperling
ble -- the following is better. $b"; } else { echo 'Neither are populated'; } ?> Comment out the variables to see how things work. Also change the number of pipes to see how things change. To the more accomplished programmers reading t

Re: [PHP] Nested loopa

2012-12-27 Thread Tedd Sperling
you must determine the what the truth of the 'while()' is going to be AND set that value before the loop. Whereas, using a 'do/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 c

  1   2   3   4   5   6   7   8   9   10   >