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
Toothpaste, Deodorant, Aftershave, Minoxidil, Preparation-H 60 Toothpaste, Deodorant, Aftershave, Minoxidil, Preparation-H, Bag Bomb 70 Toothpaste, Deodorant, Aftershave, Minoxidil, Preparation-H, Bag Bomb, Fixodent So, you could indicate age by stating "Bag Bomb" like me. __

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
uages (and people who think different than me) -- I'm just trying to get documentation to back up my what I think I know. Thanks, 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] 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
f my bias. 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
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
On Jul 23, 2013, at 9:55 AM, Daniel Brown wrote: >> > >If it's /tmp, it's /tmp. The leading slash indicates that it's in > the filesystem root. However, if it's just tmp, then it could - and > probably is - under the client's home directory. Unless they're > chrooted; then it could be dis

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

2013-07-23 Thread Tedd Sperling
On Jul 23, 2013, at 12:15 AM, elk dolk wrote: > I study for MSc degree at university. > > Are you in an advanced class? Ok, congratulations -- you are studying for an MSc -- but that didn't answer the question. So, let me repeat the question: [1] "Are you in an advanced PHP class?" [2] "Or

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

2013-07-22 Thread Tedd Sperling
On Jul 22, 2013, at 3:49 PM, elk dolk wrote: > Thank you for the quick response ! What I am trying to do : I have to > complete two university projects for > > my professor ! > > project One : Make an online shop and must use the following components in > it > > > Shopping cart, Catalog o

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
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 to the /tmp/ directory anymore -- they did at one time. So, how do I fix it? Che

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
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-tags.php The problem I've found is the tags "" and "" are not stripped. How do you strip all tags, but leave some tags (such as , , and -- I know thes

Re: [PHP] PHP and Powershell

2013-07-19 Thread Tedd Sperling
To all: Sorry for top posting and sorry for sounding like the list-police, but you need to trim the excess from your post. Hitting reply without considering that other have to read through a bunch of old add-on email is not good. So, please just trim your post to what is important. Cheers, te

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
On Jul 18, 2013, at 6:07 PM, Daniel Brown wrote: > On Thu, Jul 18, 2013 at 6:04 PM, iccsi wrote: >> I have a select control on the form and need to pass value user select to my >> query parameter. >> I just realized that user entry value is client side and query parameter is >> server side.

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
Hi gang: Considering: On Jul 17, 2013, at 11:41 AM, Jim Giner wrote: > Since you state that you haven't made any changes to the system (in general), > I'm going to guess that you modified an 'included' file and it has an error > in it, such as an unmatched curly brace. As Dan said, turn on a

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
Hi gang: I have a client who has an account with GoDaddy (I know). GoDaddy says they have PHP v 5.3 installed on the client's account, but phpinfo() says different, namely it reports 5.2.17. After calling GoDaddy, they said the client has an htaccess file that makes everything 5.2 instead of 5

Re: [PHP] Can this work?

2013-07-05 Thread Tedd Sperling
On Jul 5, 2013, at 9:56 AM, Karl-Arne Gjersøyen wrote: > The lists look like this: > > http://localhost/%7Ekarl/kasen/io/kp/index.php>" > method="post"> value="1-25" selected="selected">1-25 value="1">12http://sperling.com/php/select/ Also, omit 'multiple' in the select statement. Other than th

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

2013-06-28 Thread Tedd Sperling
On Jun 27, 2013, at 8:47 PM, Paul M Foster wrote: > On Thu, Jun 27, 2013 at 11:47:28PM +0200, adriano wrote: > >> holes in sequence of auto increment happen using transaction for >> insert new record but you don't commit transaction itself >> it seems that the autoincrement is incremented anyway

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

2013-06-26 Thread Tedd Sperling
On Jun 26, 2013, at 3:23 PM, Matijn Woudt wrote: > > What storage engine are you using? InnoDB is known for it's auto increment > holes, but I didn't expect the holes to be that big. I have no idea. It's not my database. It's Constant Contact's -- I just put stuff in it as per client's needs

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 remember it. Cheers, tedd _ ted

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 _ tedd.sperl...@gmail.com ht

[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
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 such as dropping the primary key and rebuilding the index is NOT possible -- this is a relational table thing. So, is there a way (prog

Re: [PHP] A Strange Problem

2013-06-20 Thread Tedd Sperling
On Jun 20, 2013, at 7:12 PM, Stuart Dallas wrote: > Whatever the reason for this, I'd recommend you always specify a path > relative to the current script. > > In PHP 5.3+: > > $fcontents = file(__DIR__.'/docs/admin-email.txt'); > > Prior to 5.3: > > $fcontents = file(dirname(__FILE__).'/docs

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...@gmail.com http://sperli

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-mail Does NOT work:

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
Hi gang: I have a very strange problem. I can use this statement in one folder: $fcontents = file('docs/admin-email.txt'); But in a different folder with an exact path having 'docs/admin-email.txt', I get: Warning: file(/docs/admin-email.txt) [function.file]: failed to open stream: No

[PHP] LightBox click detection

2013-06-14 Thread Tedd Sperling
Hi gang: It's Friday so I am allowed to ask odd questions. Here's the problem -- I need to count the number of times a user activates a LightBox -- how do you do that? Here's a LightBox Example: http://www.webbytedd.com/c2/lightbox/ All the javascript is there (jQuery et al). Ideally, I

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

2013-06-11 Thread Tedd Sperling
Hi gang: To get html pages to use php scripts, I've used: RewriteEngine on # handler for phpsuexec. -- this makes these prefixes considered for php SetHandler application/x-httpd-php In a .htaccess file. However, it works on one site, but not on another -- any ideas as to why? Cheers, tedd

Re: [PHP] Using Table prefixes

2013-06-10 Thread Tedd Sperling
16:15 Uhr, schrieb Tedd Sperling : > >> On Jun 8, 2013, at 4:17 PM, Julian Wanke wrote: >> >>> A database for each client? Isn't that over-powered? If you have 1000 >>> clients, you would loose the overview over your databases... >> >> What -- peopl

Re: [PHP] Using Table prefixes

2013-06-10 Thread Tedd Sperling
On Jun 8, 2013, at 4:17 PM, Julian Wanke wrote: > A database for each client? Isn't that over-powered? If you have 1000 > clients, you would loose the overview over your databases... What -- people have more than one client?!? My thoughts: A client is like a girlfriend -- if you have too many

Re: [PHP] Using Table prefixes

2013-06-08 Thread Tedd Sperling
On Jun 8, 2013, at 3:00 PM, Ashley Sheridan wrote: dealTek wrote: > >> I can see the basic need for a table prefix in a case where you may use >> one mysql database for several projects at once so as to distinguish >> tables per project like... >> >> -snip- >> however I was told a long time ago

Re: [PHP] limit access to php page

2013-05-30 Thread Tedd Sperling
On May 29, 2013, at 11:05 PM, Paul M Foster wrote: >> http://sperling.com/php/authorization/log-on.php > > I realize this is example code. > > My question is, in a real application where that $_SESSION['auth'] token > would be used subsequently to gain entry to other pages, what would you > use

Re: [PHP] limit access to php page

2013-05-29 Thread Tedd Sperling
On May 29, 2013, at 7:11 PM, Tim Dunphy wrote: > Hello list, > > I've created an authentication page (index.php) that logs into an LDAP > server, then points you to a second page that some folks are intended to > use to request apache redirects from the sysadmin group (redirect.php). > > Everyt

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 General Mailing List (htt

Re: [PHP] REQUEST

2013-05-29 Thread Tedd Sperling
On May 29, 2013, at 2:56 PM, Stuart Dallas wrote: > Anyone who calls themselves a hacker in a public place such as this does so > with absolutely no clue what they're talking about, and that's without > getting in to the hacker vs. cracker debate. However, regardless of that I > tend not to jud

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
On May 20, 2013, at 10:17 PM, Daevid Vincent wrote: Initially I was thinking that somehow I could use a simple regex on the > needle and haystacks to strip out all white space and str_ireplace() them > that way, but then I don't have a way to put the whitespace back that I can > see. Daevid: Go

[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 General

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
Stuart: You said: > An interface does what it says on the tin: it describes an interface that a > class can then tell the world it implements. > > An abstract class provides functionality as well as an interface description. > An abstract class cannot be instantiated, it can only be extended.

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

2013-05-17 Thread Tedd Sperling
effort to understand polymorphic concepts of OOP as > they are rudimentary. Without that one will never grasp OO Patterns > (Gang of Four). > > Ninus. > > On 5/16/13, Tedd Sperling wrote: >> Thanks to both Bastien and Sebastian: >> >> While I understand that an i

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

2013-05-16 Thread Tedd Sperling
Thanks to both Bastien and Sebastian: While I understand that an interface is like an abstract Class, in that you don't have to flesh-out your methods, but rather where you define exactly how Classes who implement that interface will be required to flesh-out those methods. But so what? What's t

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

2013-05-16 Thread Tedd Sperling
-Dan: I teach this stuff and still don't fully understand the why/when for interfaces. Even the guru's I talk with can't give me a good explanation as to what the advantages are in using them. I've done a lot of experimenting and can't see any advantage for them other than grouping different cl

Re: [PHP]

2013-05-08 Thread Tedd Sperling
On May 8, 2013, at 12:50 PM, Daniel Brown wrote: >If you're going to send hack attempts, at least adjust your clock > so that it doesn't look like it took almost a month for your SPAM to > get here. We're not the Pony Express. (And, no, PHP doesn't stand > for Produced by Horses & Ponies.) >

Re: [PHP] generate onfly PDF

2013-05-04 Thread Tedd Sperling
On May 4, 2013, at 5:00 PM, Ashley Sheridan wrote: > Rafnews wrote: > Is there a solution to generate onfly PDF from HTML page, and from data >> >> user typed in form (let's say like a template) without using PECL ? >> i read that is hosting does not allow such extension, we can not >> generate

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 -- PHP G

Re: [PHP] mysql_connect noob question

2013-04-21 Thread Tedd Sperling
On Apr 21, 2013, at 9:32 AM, Stuart Dallas wrote: > However, a more important question for me is why you are doing this. You say > you are aware of the security implications, and that you'll "deal with that > later," but I question how you're going to deal with it. What exactly are you > develo

Re: [PHP] mysql_connect noob question

2013-04-20 Thread Tedd Sperling
On Apr 20, 2013, at 11:44 AM, Stuart Dallas wrote: > On 20 Apr 2013, at 16:25, Jim Giner wrote: > >>> Why are you allowing anyone to connect to your database from a form? >>> >> A little OT, but... >> What do you mean by this question? How do you check someone's credentials >> if not by conn

Re: [PHP] mysql_connect noob question

2013-04-20 Thread Tedd Sperling
On Apr 19, 2013, at 4:43 PM, Glob Design Info wrote: > I know this has probably been answered already. > > When I pass a user name and password from a form to my PHP script and then > pass those to mysql_connect it doesn't connect. When I paste those exact same > values into mysql_connect as s

Re: [PHP] webform spam prevention

2013-04-06 Thread Tedd Sperling
On Apr 4, 2013, at 5:02 AM, Ashley Sheridan wrote: > or you can't see at all) then you have to fall back to the audio > replacement offered by the captcha. I've tried listening to some, and > they are awful. > > > Thanks, > Ash Ash: How about the second one down? Can you hear this one clear e

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 _ t...@sperling.com http://sper

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
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 be out of luck. I don't know of a way to do it without involving > another language. Opening a different page in the *same* window, yes. > Oth

Re: [PHP] PHP Web Developer Opportunity

2013-03-05 Thread Tedd Sperling
On Mar 4, 2013, at 3:10 PM, Allison Garcia wrote: > *SMALL WORLD LABS is looking for a PHP WEB DEVELOPER * > > Small World Labs is looking for a PHP Web Developer to be a part of our > team. The position is focused on managing, supporting and expanding the > Small World Labs social collaboratio

Re: [PHP] Open form in new window

2013-03-05 Thread Tedd Sperling
On Mar 4, 2013, at 3:17 PM, Paul M Foster wrote: > On Mon, Mar 04, 2013 at 05:39:00PM +, Tim Streater wrote: > >> On 04 Mar 2013 at 17:10, John Taylor-Johnston >> wrote: >> >>> Submit will not >>> submit the form contents. >> >> Nothing to stop your OpenWindow() function doing a submit

Re: [PHP] Introduction ... !

2013-03-02 Thread Tedd Sperling
On Mar 2, 2013, at 2:20 PM, tamouse mailing lists wrote: > See, you can't really call yourself old until that's pooping and cramping... That reminds me -- a couple of my older friends and I were discussing getting old. One friend said "At 8:00 am I have a terrible time taking a poop." My othe

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" nonsense? tedd _ t...@sper

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 invented the abse

Re: [PHP] Finding an Address

2013-03-01 Thread Tedd Sperling
On Feb 28, 2013, at 12:36 PM, Floyd Resler wrote: > I have a project where my client would like to find the nearest street > address from where he current is. Getting the longitude and latitude is easy > enough but I'm having a hard time finding out how to get the nearest house. > I have fou

Re: [PHP] phpinfo()

2013-02-20 Thread Tedd Sperling
On Feb 20, 2013, at 2:31 PM, Stuart Dallas wrote: > You were given the answer, did you not try it? > > Starting with the code in your original post: > > 1) Change the type to submit. > 2) Remove the onclick. > 3) Job done! > > -Stuart Sometimes you just can't help. > Sent from my leaf blowe

Re: [PHP] parsing select multiple="multiple"

2013-02-20 Thread Tedd Sperling
On Feb 18, 2013, at 7:54 PM, John Taylor-Johnston wrote: > I am capable with . (I suppose I did it correctly? > :p ) > But I haven't the first clue how to parse a and multiply > select name="DPRtype". > Would anyone give me a couple of clues please? :) > Thanks, > John John: A clue? How abo

Re: [PHP] phpinfo()

2013-02-20 Thread Tedd Sperling
On Feb 19, 2013, at 7:57 PM, John Taylor-Johnston wrote: > I cannot find button2 in phpinfo() when I click it. I was hoping to find a > $_POST["button2"] value. > What am I doing wrong? > > onclick="formSubmit()"> > > I really wanted to use a button to pass a different condition than a type

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

2013-02-20 Thread Tedd Sperling
On Feb 20, 2013, at 9:10 AM, Jim Giner wrote: > Basically it tells a savvy programmer whether or not his logic has caused the > var in question to "exist". Many times it is important simply to know that, > not what the var contains, which can lead to an error in processing. > > The isset() wi

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

2013-02-18 Thread Tedd Sperling
On Feb 18, 2013, at 1:26 PM, George Langley wrote: > Hi all. Am wanting to build a site where people can donate $1.00 but is not > for charity or other non-profit per se. So if I use PayPal, with their 2.9% + > .30 per transaction fee, that equals .33 cents for each dollar - that's a > full th

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. Cheers, tedd __

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
On Jan 26, 2013, at 12:20 PM, Daniel Brown wrote: > >It's imperfect, but will work for the majority of emails: > > function scrape_emails($input) { > > preg_match_all("/\b([a-z0-9%\._\+\-]+@[a-z0-9-\.]+\.[a-z]{2,6})\b/Ui",$input,$matches); >return $matches; > } > ?> It wor

[PHP] Strip emails from a document

2013-01-26 Thread Tedd Sperling
Hi gang: I thought I had a function to strip emails from a document, but I can't find it. So, before I start writing a common script, do any of you have a simple script to do this? Here's an example of the problem: Before: "Will Alex" ;"Moita Zact" ;"Bob Arms" ;"Meia Terms" ; After: ale...

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
On Jan 5, 2013, at 4:24 PM, Silvio Siefke wrote: > > What should me say this two words? You not use nano, ok. Editors enough > on earth. Or you not write manually? Then share the way! Or use a CMS? Silvio: You said -- > 1.) All websites are created manually. (nano + html/css Tags) -- and I r

Re: [PHP] Pear Page2

2013-01-05 Thread Tedd Sperling
On Jan 5, 2013, at 3:11 PM, Silvio Siefke wrote: > On Sat, 05 Jan 2013 17:21:05 + > Ashley Sheridan wrote: > >> If the pages are already written, why do you want to start changing >> the way they've been built? > > 1.) All websites are created manually. (nano + html/css Tags) > Not mine.

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

2013-01-03 Thread Tedd Sperling
On Jan 3, 2013, at 12:09 PM, David OBrien wrote: > From what I understood about || is once it sees a true the whole statement > is regarded as true so nothing else following matters so PHP ignores > everything in the conditional after it evaluates as true... > and once it sees a false the whole st

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

2013-01-03 Thread Tedd Sperling
On Jan 3, 2013, at 11:49 AM, Marc Guay wrote: > I just ran this: > > if (($a = "foo") || ($b = "bar")){ >echo $a."".$b; > } > > and it only spat out "foo" so I'm guessing things have changed. :) > > Marc Marc et al: I joined late into this conversation, so I may be missing the point, bu

Re: [PHP] Nested loopa

2012-12-27 Thread Tedd Sperling
On Dec 26, 2012, at 10:09 AM, Jim Giner wrote: > While I fully understand the purpose of the do...while construct, I just > never get used to seeing it used. (in other langs I had to deal with a > 'repeat...until construct and dis-liked that also). I pretty much know if > I'm going to have to

  1   2   3   >