[PHP] State, City, and Zip Code DEMO [WORKS]

2010-07-10 Thread tedd
on the page within the This is just a neat DEMO to show how to get the server and client to communicate to each other without requiring a browser refresh and thus making the process behave more like a desktop application. Cheers, tedd -- --- http://sperling.com http://ancientsto

Re: [PHP] Netbeans XDebug Breakpoints Socket Accept

2010-07-11 Thread tedd
he various posts, etc... i am still without a resolution. Daniel: You might try posting your question to the NetBeans list, namely: List-Subscribe: <mailto:sy...@php.netbeans.org?subject=subscribe%20users> They are pretty good at answering questions. Cheers, tedd -- --- http://sp

Re: [PHP] user login and access + headers already sent

2010-07-16 Thread tedd
E -- it is loosely coupled. Likewise, the authorization script is only concerned with the setting of the security session variable -- it is also loosely coupled. Both of these provide a good security solution. EOP (End of Problem). Cheers, tedd -- --- http://sperling.com http://ancient

Re: [PHP] Determining the similarity between a user supplied short piece of text (between 5 and 15 characters) and a list of similar length text items.

2010-07-17 Thread tedd
d families: levenshtein() similar_text() What would one use to have MySQL do the heavy lifting here? In other words, are there similar MySQL functions? Cheers, tedd PS: I thought of this Friday, but finally got my fingers to work today. -- --- http://sperling.com http://ancientstones

Re: [PHP] Determining the similarity between a user supplied short piece of text (between 5 and 15 characters) and a list of similar length text items.

2010-07-19 Thread tedd
searching ten times that amount should be in the range of tenths of a second and not seconds -- so taking a few seconds to search 30,000 records seems excessive to me. Cheers, tedd -- --- http://sperling.com http://ancientstones.com http://earthstones.com -- PHP General Mailing

Re: [PHP] Retaining scroll position after asynchronous refresh NOT PHP

2010-07-23 Thread tedd
! -larry -larry: This not really a PHP problem, but rather a javascript problem. After all, the problem surfaces client-side, right? So, to not offend this list with a non-PHP solution, I am sending you the code privately. Cheers, tedd -- --- http://sperling.com http://ancientstones.com

Re: [PHP] Retaining scroll position after asynchronous refresh

2010-07-23 Thread tedd
ay be) and then you restore the page back to where it was after the operation. The following is the javascript code I wrote several years ago -- it works for me. Cheers, tedd --- javascript --- addLoadListener(init); function init() { window.onscroll = function() { var scro

Re: [PHP] opening link in new window

2010-07-24 Thread tedd
ation, it's not "hacking the DOM" -- it's simply DOM scripting. Cheers, tedd -- --- http://sperling.com http://ancientstones.com http://earthstones.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Do you have some standard for defined the variable in program language?

2010-07-27 Thread tedd
t's named different than the variable name, such as: $first_name = $_SESSION['session_first_name.']; Cheers, tedd -- --- http://sperling.com http://ancientstones.com http://earthstones.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re[2]: [PHP] Do you have some standard for defined the variable in program language?

2010-07-27 Thread tedd
e, such as: myBestClass Cheers, tedd -- --- http://sperling.com http://ancientstones.com http://earthstones.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] the state of the PHP community

2010-07-29 Thread tedd
if so which? I lurk everywhere and contribute as I can -- everything interest me. I seem to fit the definition of a moron, namely mental age of 7-12, lacking social skills, but I find everything entertaining. Are there any efforts, projects or initiatives which are floating your

Re: [PHP] Trapping for PDF Type and file size in a UPLOAD form...

2010-07-29 Thread tedd
e file to somewhere important. But that doesn't stop spoofing. Other than that, I can't see any way to do it. Cheers, tedd -- --- http://sperling.com http://ancientstones.com http://earthstones.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] [site is acting strange] - blank pages, download index.php, or works fine

2010-07-30 Thread tedd
ation via: http://validator.w3.org/check?uri= You knows what weirdness can happen if your page doesn't validate -- it does make a difference. You could provide a url so we could look for ourselves. Cheers, tedd -- --- http://sperling.com http://ancientstones.com http://earth

Re: [PHP] PHP 5.3 as a requirement for a library?

2010-07-30 Thread tedd
t alone them listening to me recommending what versions they should use. Host do what they do and us lowly programmers don't have much a say about it. It's something you have to learn to live with. So, I have to work with all versions and all types of hosts -- there is no

Re: [PHP] PHP The Anthem

2010-08-06 Thread tedd
time like this. Besides IMO, this is another example of hip-flop. Cheers, tedd -- --- http://sperling.com http://ancientstones.com http://earthstones.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Quotes vs. Single Quote

2010-08-06 Thread tedd
u should comment out the echo so you don't report errors publicly. Besides, you should have all the errors fixed before your script becomes production anyway, right? :-) HTH, tedd -- --- http://sperling.com http://ancientstones.com http://earthstones.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Quotes vs. Single Quote

2010-08-06 Thread tedd
a vacuum. It always best to use whatever language that makes your life (and others) simpler. Cheers, tedd PS: Considering that this is Friday. I have a grammar question for the group. I said above: "neither CSS, PHP, or any web language exist in a vacuum." Is the word "neither&qu

Re: [PHP] Quotes vs. Single Quote

2010-08-06 Thread tedd
s, when writing code in another language use the syntax that is appropriate for that language Cheers, tedd -- --- http://sperling.com http://ancientstones.com http://earthstones.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Quotes vs. Single Quote

2010-08-06 Thread tedd
At 9:09 AM -0400 8/6/10, Andrew Ballard wrote: On Fri, Aug 6, 2010 at 8:31 AM, tedd wrote: While it may not be obvious, the statement: > is flawed (IMO). The "best" way to handle this is to define a class (or id) for the table in a css file and then set the border (i.e.

Re: [PHP] Protecting PHP scripts called via AJAX from evil

2010-08-06 Thread tedd
n't providing any security -- it simply means that the value isn't printed to the browser window. Then have the slave PHP script [2] check the value in the $_SESSION['token'] with the value provided by the form. If the two match, then everything has been done via y

Re: [PHP] PHP The Anthem

2010-08-06 Thread tedd
At 10:30 AM -0400 8/6/10, Joshua Kehn wrote: On Aug 6, 2010, at 7:27 AM, tedd wrote: There is something wrong with having a little fun? Regards, -Josh Yes, it's a waste of time -- humbug! Cheers, tedd -- --- http://sperling.com/ -- PHP General Mailing List (http://www.php.net

Re: [PHP] PHP The Anthem

2010-08-07 Thread tedd
At 11:17 AM -0400 8/6/10, Joshua Kehn wrote: On Aug 6, 2010, at 11:12 AM, tedd wrote: At 10:30 AM -0400 8/6/10, Joshua Kehn wrote: On Aug 6, 2010, at 7:27 AM, tedd wrote: There is something wrong with having a little fun? >> > Yes, it's a waste of time -- humbug! Tedd-

Re: [PHP] PHP The Anthem

2010-08-07 Thread tedd
At 12:33 PM -0400 8/7/10, Daniel P. Brown wrote: On Sat, Aug 7, 2010 at 09:47, tedd wrote: No, writing it provided me with the experience of developing a rule-based AI solution to a real-world problem and I received a little money for my > efforts. Experience and money are never a wa

Re: [PHP] PHP The Anthem

2010-08-07 Thread tedd
At 1:54 PM -0400 8/7/10, David Hutto wrote: On Sat, Aug 7, 2010 at 1:46 PM, tedd wrote: > Experience and money are never a waste of time *to me*. but did they make money off of the video, was it branded? If not, then it was a great promo, even without seeing it, I've 's

[PHP] Encryption/Decryption Question

2010-08-11 Thread tedd
e would be the best place for me to put them.) :-) Cheers, tedd PS: No, the SS number in question is not 123-45-6789. :-) -- --- http://sperling.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Storing Social Security Number WAS: Encryption/Decryption Question

2010-08-12 Thread tedd
kes no difference to me. However, if the practice of storing SS number online is not prohibited by law, then what are the appropriate "due diligence" steps necessary to protect such data? Cheers, tedd -- --- http://sperling.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Encryption/Decryption Question

2010-08-12 Thread tedd
right? Cheers, tedd -- --- http://sperling.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Encryption/Decryption Question

2010-08-12 Thread tedd
eep me awake at night. If the DB was ever compromised, I would NOT HAVE CONFIDENCE IN THE ENCRYPTION'S ABILITY TO PROTECT THE SS#'s. The probabilities are just to poor when compared to other, better algorithms/schemes available. What do you recommend? Do you have code/reference? However

Re: [PHP] Storing Social Security Number WAS: Encryption/Decryption Question

2010-08-12 Thread tedd
At 2:59 PM +0100 8/12/10, Richard Quadling wrote: On 12 August 2010 14:45, tedd wrote: At 5:30 PM -0700 8/11/10, Daevid Vincent wrote: > -Original Message- 2. Were told it was a social security number (i.e., in the form of 123-45-6789). Stop. Why are you e

RE: [PHP] Storing Social Security Number WAS: Encryption/Decryption Question

2010-08-12 Thread tedd
e required? Cheers, tedd -- --- http://sperling.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Storing Social Security Number WAS: Encryption/Decryption Question

2010-08-12 Thread tedd
at would require a different logon to access when the data is required. Interesting -- I might also hash the foreign link. But I have to think about that. Cheers, tedd -- --- http://sperling.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] imagettftext Angle Problem

2010-08-12 Thread tedd
t;arial.ttf", "Hello World..."); imagegif ($im); imagedestroy ($im); You must use arial.ttf for the above -- in fact, that might be your problem, the font you are using may be that way. Here's an example of this working: http://webbytedd.com/b/timed-php/ Cheers, tedd

Re: [PHP] Storing Social Security Number WAS: Encryption/Decryption Question

2010-08-12 Thread tedd
on (as it would just have a SSN and an id). Regards, -Josh No, the problem here is to keep the database from containing any raw SS#. It is absolutely necessary to encrypt the data. The question is: 1. Is it legal? 2. How to do it? Cheers, tedd -- --- http://sperling.com/ -- PHP Gener

Re: [PHP] imagettftext Angle Problem

2010-08-12 Thread tedd
have something to do with it. Anyway you could pass along the arial font you're using so I can test that possibility? Thanks! Floyd Floyd: It's clearly a font problem. The arial.ttl font is easily found on the net, such as: http://www.fontemple.com/key-arial_ttl_download.html

[PHP] It's Friday (a MySQL Question)

2010-08-13 Thread tedd
w how to set that up. So, has anyone got this to work? If so, how did you do it? If at all possible, please provide code (MySQL/PHP) and not command-line statements. Cheers, tedd -- --- http://sperling.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] It's Friday (a MySQL Question)

2010-08-13 Thread tedd
At 6:11 PM -0400 8/13/10, Daniel P. Brown wrote: On Fri, Aug 13, 2010 at 17:48, tedd wrote: SELECT * FROM table_reference INTO OUTFILE 'file_name' It looked to be bit simpler/shorter than my code, so I tried it. But it reports: Access denied for user 'me'

Re: [PHP] PHP Reference

2010-08-14 Thread tedd
run. So, while you can't use the same syntax as javascript, you can get the same performance. Cheers, tedd -- --- http://sperling.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] It's Friday (a MySQL Question)

2010-08-14 Thread tedd
At 6:53 PM -0400 8/13/10, chris h wrote: Tedd I don't know if this will resolve your issue or not, but have you looked into using mysqldump? <http://dev.mysql.com/doc/refman/5.1/en/mysqldump.html>http://dev.mysql.com/doc/refman/5.1/en/mysqldump.html That's what I use for my

Re: [PHP] It's Friday (a MySQL Question) [Solution]

2010-08-17 Thread tedd
At 5:48 PM -0400 8/13/10, tedd wrote: Normally if I want to dump a MySQL database, I read the database via a PHP script (i.e., list tables and fetch rows) and save the results as a text file -- after which I download the file -- it's not a big deal. However while I was doing my daily re

[PHP] mysqldump

2010-08-17 Thread tedd
ied many different variations of the syntax using exec(), but nothing produces any subsistent output. What am I doing wrong? As for accessing a command line, I am still in the dark as to how to do that. Cheers, tedd -- --- http://sperling.com/ -- PHP General Mailing List (http://www.php.

Re: [PHP] mysqldump

2010-08-17 Thread tedd
At 2:17 PM -0400 8/17/10, Robert Cummings wrote: On 10-08-17 02:08 PM, tedd wrote: Hi gang: At 6:11 PM -0400 8/13/10, Daniel P. Brown wrote: Easiest method, from the command line on the server from which you want to dump the database: mysqldump -u user -p database_name

Re: [PHP] mysqldump

2010-08-17 Thread tedd
mysqldump -u user -ppassword database_name > outfile.sql and see if that gets you anywhere. Bingo -- that worked. It's interesting that a space is optional between -u and user, but required to be absent between -p and password. Seems not symmetrical to me. Many thanks. Cheers,

[PHP] How safe is a .htaccess file?

2010-08-17 Thread tedd
Hi gang: The subject line says it all. How secure is a .htaccess file to store passwords and other sensitive stuff? Can a .htaccess file be viewed remotely? Cheers, tedd -- --- http://sperling.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http

Re: [PHP] How safe is a .htaccess file?

2010-08-17 Thread tedd
At 4:23 PM -0400 8/17/10, Robert Cummings wrote: On 10-08-17 04:17 PM, tedd wrote: Hi gang: The subject line says it all. How secure is a .htaccess file to store passwords and other sensitive stuff? Can a .htaccess file be viewed remotely? It depends on the server configuration. I think

[PHP] openssl_pkey_new question

2010-08-19 Thread tedd
Hi gang: I'm trying to keep my questions simple. Does the function "openssl_pkey_new" use 40, 56, 128, 256, or what bit encryption? Cheers, tedd -- --- http://sperling.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Dear Lazy Web: Pseudo Randomisation Strategies on Listing Websites

2010-08-20 Thread tedd
s are at an advantage. For example your web site may be showing one set of ads for CA, another for MO, and another for MI all at the same local time. 3. And other such considerations -- it might be worth the cost to purchase and review. They did a pretty in-depth study of how to track and

Re: [PHP] two questions on serverside validation

2010-08-26 Thread tedd
or both you and the programmer who follows is more important than cutting a few nanoseconds off compute time. After all, just displaying that information (i.e., echo) will take far more time and even vary more than that between monitors. Cheers, tedd -- --- http://sperling.com/ -- PHP

Re: [PHP] Web application architecture (subdomain vs. sub directory)

2010-08-26 Thread tedd
They are much simpler to use and easy to create/change/delete/scale/make-secure. -- SEO stuff does not apply here. 3. Investigate "Agile" development. 4. Host? Roll the dice like the rest of us. Cheers, tedd -- --- http://sperling.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Web application architecture (subdomain vs. sub directory)

2010-08-26 Thread tedd
ng on https. Thanks again! Tim Tim: That's a different question -- you should post another question rather than continue the old thread regarding something else. Cheers, tedd -- --- http://sperling.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://w

RE: [PHP] Web application architecture (subdomain vs. sub directory)

2010-08-26 Thread tedd
At 9:58 AM -0400 8/26/10, Bob McConnell wrote: From: tedd > 4. Host? Roll the dice like the rest of us. Before you can select a hosting provider, define what you want. Are you looking for a cage with power and network connections, a VM that you can load up and manage, or a fully mana

[PHP] Questions about $_SERVER

2010-08-28 Thread tedd
;remote_addr' on shared hosting? Is that possible? Thanks, Cheers, tedd -- --- http://sperling.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Questions about $_SERVER

2010-08-28 Thread tedd
At 9:41 PM +0200 8/28/10, Per Jessen wrote: tedd wrote: > So, how can I identify the exact location of the 'server_addr' and of the 'remote_addr' on shared hosting? Is that possible? $_SERVER['SERVER_NAME'] will tell you the name of the virtual host - I

Re: [PHP] Questions about $_SERVER

2010-08-28 Thread tedd
At 12:15 AM +0200 8/29/10, Peter Lind wrote: On 28 August 2010 23:45, tedd wrote: > So, I'm trying to figure out a compliment to $_SERVER['SERVER_NAME'] such as something like $_SERVER['REMOTE_NAME']. > Is there such a beast? You're not making any

Re: [PHP] Questions about $_SERVER

2010-08-29 Thread tedd
ecure Communication?" Cheers, tedd -- --- http://sperling.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Questions about $_SERVER

2010-08-29 Thread tedd
At 11:54 AM -0400 8/29/10, Jason Pruim wrote: On Aug 29, 2010, at 10:55 AM, tedd wrote: To all: My post about SERVER globals was simply an observation that the SERVER global report of host and remote was not symmetric -- for example you could obtain both the IP and Domain Name of the host

[PHP] Secure Communication?

2010-08-29 Thread tedd
t; for the url-confirmation file is hardwired to the Master address. 5. And lastly, all communication between both domains is done via https. Now, for the exception of both server's being hacked at the same time, what could go wrong? Cheers, tedd -- --- http://sperling.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Secure Communication?

2010-08-29 Thread tedd
At 10:31 AM -0700 8/29/10, Jim Lucas wrote: Per Jessen wrote: tedd wrote: Hi gangl: I realize that the problem stated herein has been solved by others, so I'm not claiming I've done anything new -- it's only new to me. It was a learning experience for *me* and my solution

Re: [PHP] Secure Communication?

2010-08-29 Thread tedd
your data on a server, it means that you should take steps to do that and not rely upon the host to do that for you. Like I said, it would be nice to have a server guru wade in on this to clarify things. Cheers, tedd -- --- http://sperling.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Questions about $_SERVER

2010-09-03 Thread tedd
your time and comment. Cheers, tedd -- --- http://sperling.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Secure Communication?

2010-09-03 Thread tedd
. If it works, it's implemented, if not, it isn't. That's what we do for a living. I will say it was learning experience, in that aspect it was "academic". :-) Cheers, tedd -- --- http://sperling.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Secure Communication?

2010-09-03 Thread tedd
At 2:23 AM +0200 8/30/10, Bostjan Skufca wrote: Hi tedd! Reading this thread I assume you are doing RPC stuff when you are expressing yourself as "the access" to database, which normaly describes direct access to database. In your case, you should divide the phrase "hacked s

[PHP] a test (list is too quite)

2010-09-04 Thread tedd
Hi gang: Just checking to see if I am still receiving postings. :-) Cheers, tedd -- --- http://sperling.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] a test (list is too quite)

2010-09-04 Thread tedd
At 12:47 PM -0400 9/4/10, chris h wrote: Evidently all is well in the world of php... :) If it was so, we would all be out of work. Instead, I think it's the lull before the storm. I'll ask a question to stir things up. :-) Cheers, tedd -- --- http://sperling.com/ -- P

[PHP] RE: PHP list posting confirmation for vicki.stanfield....@dfas.mil

2010-09-08 Thread tedd
view, and resolve their problems. You will do much better at getting your question answered by following normal practices for most all list servers. IOW, briefly describe your problem in the subject line and submit your problem. Cheers, tedd -- --- http://sperling.com/ -- PHP General Mai

Re: [PHP] newbie question about code

2010-09-10 Thread tedd
va is to Javascript as Ham is to Hamster. In other words, the two aren't related. Cheers, tedd -- --- http://sperling.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Elegance is the goal... Sticky form submit help

2010-09-11 Thread tedd
our server-side scripts check the data again and respond accordingly. Here are a couple of examples: http://webbytedd.com/c/form-calc/ http://webbytedd.com/c/form-submit/ Cheers, tedd -- --- http://sperling.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscri

Re: [PHP] Elegance is the goal... Sticky form submit help

2010-09-11 Thread tedd
You can provide progressive enhancement to your form to help your users *IF* you want. You should *always* validate all the information coming from the outside world. The question of *if* you want to do both is your choice without any debate. Those are only choices that you can elect to follow or not.

Re: [PHP] Elegance is the goal... Sticky form submit help

2010-09-11 Thread tedd
At 1:09 PM -0400 9/11/10, Jason Pruim wrote: Hey tedd, Thanks for the response but for this particular project I'm avoiding using anything but standard HTML since it will be used almost exclusively by people using screen readers and other assistive technology so I'm going a little

[PHP] 1984 (Big Brother)

2010-09-12 Thread tedd
ot; state allowing employees undesired access. That would not be acceptable. So, what methods would you suggest? Cheers, tedd -- --- http://sperling.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Standalone WebServer for PHP

2010-09-12 Thread tedd
ally closed to the outside world other than to their internal employees? Or is this something that can only be provided by a LAN with no Internet connection? Cheers, tedd -- --- http://sperling.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Standalone WebServer for PHP

2010-09-12 Thread tedd
At 5:57 PM +0100 9/12/10, Ashley Sheridan wrote: On Sun, 2010-09-12 at 12:55 -0400, tedd wrote: Can a business have a server connected to the Internet but limit access to just their employees? I don't mean a password protected scheme, but rather the server being totally closed to the ou

Re: [PHP] Standalone WebServer for PHP

2010-09-12 Thread tedd
At 1:40 PM -0400 9/12/10, Joshua Kehn wrote: On Sep 12, 2010, at 1:33 PM, tedd wrote: > So, can I do what I do (i.e., programming) without having a host? Can I install a local server at my clients location and interface all their computers to use the server without them ever being connec

Re: [PHP] Standalone WebServer for PHP

2010-09-12 Thread tedd
totally closed to the outside world other than to their internal employees? Or is this something that can only be provided by a LAN with no Internet connection? Cheers, tedd Hey, one I can answer! The short answer is "Yes". It can be done in a firewall: for instance, take the follow

Re: [PHP] Standalone WebServer for PHP

2010-09-12 Thread tedd
At 1:47 PM -0400 9/12/10, Jason Pruim wrote: On Sep 12, 2010, at 1:33 PM, tedd wrote: So, can I do what I do (i.e., programming) without having a host? Can I install a local server at my clients location and interface all their computers to use the server without them ever being connected to

Re: [PHP] 1984 (Big Brother)

2010-09-12 Thread tedd
At 4:05 PM -0500 9/12/10, Tamara Temple wrote: Sounds like there are some security concerns here. On Sep 12, 2010, at 11:32 AM, tedd wrote: I have a client who wants his employees' access to their online business database restricted to only times when he is logged on. (Don't ask w

Re: [PHP] 1984 (Big Brother)

2010-09-13 Thread tedd
uld* work. Now I have to figure out how to do that. Thanks, tedd -- --- http://sperling.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] 1984 (Big Brother)

2010-09-13 Thread tedd
ever you're not there (like in the bathroom), the whole thing shuts down. That will cost $x. Your choice. We've been working on the mind-reading extension to PHP, but it's not finished yet." Customer: Thanks for your opinion. We'll be in touch. Customer to his secreta

Re: [PHP] 1984 (Big Brother)

2010-09-13 Thread tedd
x27;m just a worker bee and follow the hive. Cheers, tedd -- --- http://sperling.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] 1984 (Big Brother)

2010-09-14 Thread tedd
ate sector, they investigate and find a better solution. If it's the public sector, they will probably require water based fire extinguishers. Cheers, tedd -- --- http://sperling.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Adjusting Session Times

2010-09-14 Thread tedd
n have the script pull the time-limit from the database and store that value in a SESSION. Either way would work. In any event, this is what I do. Cheers, tedd == code http://yourdomain.com/admin/logon.php'; // standard security $secure = isset($_SESSION['security']) ?

Re: [PHP] How to store data that doesn't change?

2010-09-16 Thread tedd
faster then the others. What other pros and cons are there. Make it's a Constant -- it's simply a Global that doesn't change. I typically hold such things in a global configuration file that can be included when needed. Cheers, tedd -- --- http://sperling.com/ --

Re: [PHP] 1984 (Big Brother)

2010-09-19 Thread tedd
At 12:03 PM -0400 9/18/10, chris h wrote: But Tedd, I'm still thinking that a "dead man's switch" is the way to go. :) Chris et al: I think the method I'll recommend to the client is to have the entire office tied to his computer. When it's on, every

Re: [PHP] Checking file type when uploading

2010-09-19 Thread tedd
ws that sometimes things are not what they claim to be. Cheers, tedd -- --- http://sperling.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] GD Watermark Question

2010-09-19 Thread tedd
the image as a thumbnail with a watermark, then combine the two routines. I'll leave that to you. Cheers, tedd -- --- http://sperling.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: GD Watermark Question-

2010-09-19 Thread tedd
ee an image without the watermark when you want them to see it -- in other words, protect the image. Cheers, tedd -- --- http://sperling.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: GD Watermark Question-

2010-09-19 Thread tedd
hen the user see's the image, they have it. Cheers, tedd -- --- http://sperling.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: GD Watermark Question-

2010-09-19 Thread tedd
much about this sort of thing, so I'm making assumptions here. It's the difference between lossless and lossy compression. The first meaning no loss in data and the second is loss of data. PNG and jpeg is lossless whereas gif is lossy. Cheers, tedd -- --- http://sperli

Re: [PHP] Re: GD Watermark Question-

2010-09-19 Thread tedd
your pictures and 2) the others don't know you have embedded a copyright. tom While it won't defeat smart bad people, it will cause them to pause: http://webbytedd.com/b/protect-image/ Cheers, tedd -- --- http://sperling.com/ -- PHP General Mailing List (http://www.php.net/)

Re: [PHP] Re: GD Watermark Question-

2010-09-20 Thread tedd
At 12:32 PM -0400 9/19/10, TR Shaw wrote: On Sep 19, 2010, at 11:50 AM, tedd wrote: At 12:36 AM +0100 9/18/10, Ashley Sheridan wrote: I know this is getting a little off-topic here, but surely the way a jpeg destroys data in an image would destroy the stenography information too? To the

Re: [PHP] Re: GD Watermark Question-

2010-09-20 Thread tedd
At 12:21 PM -0400 9/19/10, TR Shaw wrote: On Sep 19, 2010, at 11:45 AM, tedd wrote: At 6:56 PM -0400 9/17/10, TR Shaw wrote: On Sep 17, 2010, at 6:49 PM, Ashley Sheridan wrote: > At the end of the day, if you want to prevent people downloading your images, then just don't show

Re: [PHP] Auto-generating HTML

2010-09-21 Thread tedd
h, all my code (html, css, php, mysql, javascript) is not complex, nor unreadable, and is easily maintainable. Cheers, tedd -- --- http://sperling.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Database Administration

2010-09-21 Thread tedd
me I do all my database creation in phpMyAdmin. From there I populate with php. Cheers, tedd -- --- http://sperling.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Database Administration

2010-09-23 Thread tedd
set up his own admin for acceptable users -- there's a big difference. So, what you need to define is what the client and his users want to do. From that, we can determine what they need. Cheers, tedd -- --- http://sperling.com/ -- PHP General Mailing List (http://www.php.net

Re: [PHP] Database Administration

2010-09-24 Thread tedd
e they only see their own data For legal reasons. Each client must have separate data. I need to be able to box up all the client data (containing multiple app instances) and be 100% sure that I am giving them all their data and nobody else's. On 23 September 2010 18:04, tedd wrote: No

Re: [PHP] if/elseif being treated as if/if

2010-09-24 Thread tedd
and not an elseif. In 40+ years of programming, I have never used elseif because the control confuses me. It is *much* easier for me to use, understand, and document a switch statement than an elseif. Your mileage may vary. Cheers, tedd -- --- http://sperling.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Database Administration

2010-09-24 Thread tedd
At 2:09 PM -0400 9/24/10, Bastien Koert wrote: @tedd, He wants not techie users to create new systems for their clients when they sign up. It involves creating a DB and he's wondering about security for that. The main part of the app needs the least priv's to run (select, upda

RE: [PHP] if/elseif being treated as if/if

2010-09-24 Thread tedd
tch(1) { case $a > $b: /* whatever break; case $c == 1: /* whatever break; case $d == 'this works': /* whatever break; } Granted, it's not the normal way a switch works in some other languages, but it does work in PHP. :-) Cheers, tedd --

Re: [PHP] Database Administration

2010-09-24 Thread tedd
At 2:36 PM -0400 9/24/10, Bastien Koert wrote: On Fri, Sep 24, 2010 at 2:26 PM, tedd wrote: At 2:09 PM -0400 9/24/10, Bastien Koert wrote: @tedd, He wants not techie users to create new systems for their clients when they sign up. It involves creating a DB and he's wondering

RE: [PHP] if/elseif being treated as if/if

2010-09-25 Thread tedd
At 3:54 PM -0400 9/24/10, Bob McConnell wrote: From: tedd At 2:23 PM -0400 9/24/10, Bob McConnell wrote: >>A switch works when a single test can dispatch all possible branches. If you have a series of tests where each looks for a different subset of >>conditions, you ne

RE: [PHP] if/elseif being treated as if/if

2010-09-25 Thread tedd
ke the argument that the ELSE IF statement first surfaced circa 1977 in FORTRAN 77 and the CASE statement came later in FORTRAN 90 circa 1991. But I know I was using computed GOTOs and GOSUBs long before then. In any event, to me the computed GOTO is more like the CASE statement than ELSE IF.

<    7   8   9   10   11   12   13   14   15   16   >