Re: [PHP] /tmp/directory

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

Re: [PHP] Guaranteed Way to Get Error Message Wanted

2013-07-05 Thread Ken Robinson
Check the permissions on the files/directories involved. I get this on Linux when the files/directories are too open. Ken At 05:38 PM 7/5/2013, Brian Smither wrote: I have an application running under PHP-5.4.17-TS-VC9 (and .14 as of yesterday) with Aprelium's Abyss X1 v2.8 web server in

Re: [PHP] scandir doesn't find all files

2013-06-22 Thread Ken Robinson
Sent from my iPhone On Jun 22, 2013, at 3:10 PM, Daniel Pöllmann poellmann.dan...@gmail.com wrote: Hi, I have some files in a directory - some are uploaded via ftp and some other are created by a php script. Scandir just finds the uploaded files, but none of the created files. I can't

Re: [PHP] scandir doesn't find all files

2013-06-22 Thread Ken Robinson
Did you try the glob function? http://php.net/glob Ken Sent from my iPhone On Jun 22, 2013, at 3:10 PM, Daniel Pöllmann poellmann.dan...@gmail.com wrote: Hi, I have some files in a directory - some are uploaded via ftp and some other are created by a php script. Scandir just finds the

Re: [PHP] iterate javascript verification

2013-05-27 Thread Ken Robinson
...@gmail.com wrote: On Fri, May 24, 2013 at 9:51 PM, Ken Robinson kenrb...@rbnsn.com wrote: I took your code and modified it to use HTML5 validation (and few other changes). You can see the results at http://my-testbed.com/test1/form_validation.php http://my-testbed.com/test1

Re: [PHP] iterate javascript verification

2013-05-24 Thread Ken Robinson
You do realize that you shouldn't rely on Javascript to validate values returned in a form? Also, if you use HTML5, you can use the required attribute in the input tag and the browser won't let a user submit a form with a required field not filled. Of course, you should still validate within

Re: [PHP] iterate javascript verification

2013-05-24 Thread Ken Robinson
I took your code and modified it to use HTML5 validation (and few other changes). You can see the results at http://my-testbed.com/test1/form_validation.phphttp://my-testbed.com/test1/form_validation.php My code follows: ?php $fields =

Re: [PHP] Symfony?

2013-05-20 Thread Ken Robinson
Drupal 8 is being built using Symfony, which means I have to learn it. Ken At 12:44 PM 5/20/2013, Bastien wrote: Bastien Koert On 2013-05-20, at 12:40 PM, Tedd Sperling t...@sperling.com wrote: Hi gang: Who uses Symfony? Cheers, tedd _ I do. It's not my

Re: [PHP] significance of escape character in string in PHP

2013-03-18 Thread Ken Robinson
On 18.03.2013 09:10, Norah Jones wrote: I am having an string which was have few ' (single quote) and few (double quotes) and was not able to insert into the mysql database. I have replaced them with \' and \ and everything is fine. Though this are fine now but don't understand the working

Re: [PHP] date problem

2013-01-03 Thread Ken Robinson
At 04:57 PM 1/3/2013, Marc Fromm wrote: I am comparing to dates. define('WSOFFBEGIN','09/16/2012'); $jes = 01/03/2012; if ( date(m/d/Y, strtotime($jes)) date(m/d/Y, strtotime(WSOFFBEGIN)) ) { $error = MUST begin after . WSOFFBEGIN . \n; } I cannot figure out why the $error

Re: [PHP] Strange string stuff -- maybe everything is ending...

2012-12-21 Thread Ken Robinson
A much easier way to do this would be to use a temporary array and then explode: $tmp = array(); while($row = mysql_fetch_array($result)) // pulling stuff from a database { $tmp[] = $row['category']; } $topic =

Re: [PHP] Strange string stuff -- maybe everything is ending...

2012-12-21 Thread Ken Robinson
Can you post the javascript that's causing the problem? And, yes, it's IE, what did you expect... :-) Ken At 05:10 PM 12/21/2012, Tedd Sperling wrote: On Dec 21, 2012, at 5:05 PM, Ken Robinson kenrb...@rbnsn.com wrote A much easier way to do this would be to use a temporary array

Re: [PHP] re:Switch - Case Statement Questions

2012-11-16 Thread Ken Robinson
At 07:10 AM 11/16/2012, Omar Muhsin wrote: Hello, I was just wondering after writting the code in version 2 here below, it turns out in testing that it actually PHP is not validating the expressions instead always I get the first case. 1.Using nested if statement {THE INTENDED BEHAVIOR}:

Re: [PHP] php can't insert data mysql table

2012-09-30 Thread Ken Robinson
At 12:32 AM 10/1/2012, Tim Dunphy wrote: Hello list, I'm trying to learn and get comfortable with HTML forms in PHP. In one example I am trying to include a file upload in one of the forms. I can connect to the database but for some reason the MySQL query string is bad. I've been over this for

Re: [PHP] Array unset()

2012-09-23 Thread Ken Robinson
At 08:50 PM 9/23/2012, Ron Piggott wrote: I am wondering if there is a way to remove from an array where the value is 0 (“zero”) Array example: $total_points_awarded = array( 1 = 17, 3 = 14, 4 = 0, 5 = 1, 6 = 0 ); In this example I would like to remove element # 4 and # 6. The

Re: [PHP] Find/count different word in a text

2012-04-25 Thread Ken Robinson
function am I in need of? I would use a combination of the functions str_word_count and array_count_values. ?php $str = This is a test of word counting and this sentence repeats words a a a a a is is is is; print_r(array_count_values(str_word_count($str, 1))); ? Ken Robinson -- PHP General

Re: [PHP] http_referer. what's wrong with that?

2012-01-11 Thread Ken Robinson
At 12:27 AM 1/12/2012, Haluk Karamete wrote: Because I got this echo $_SERVER['HTTP_REFERER']; I end up with this Notice: Undefined index: HTTP_REFERER in D:\Hosting\5291100\html\blueprint\bp_library.php on line 16 die; Now, this is of course after the ?php error_reporting (E_ALL); ?

Re: [PHP] number_format

2011-12-19 Thread Ken Robinson
Quoting Floyd Resler fres...@adex-intl.com: In the previous version of PHP we were using, I could pass a string to number_format and it would just change it to a 0 without complaint. With 5.3.6 I get an expects double error. I don't suppose there's a way to make it work like it used

Re: [PHP] FW: parse error

2011-10-13 Thread Ken Robinson
At 01:26 PM 10/13/2011, Robert Williams wrote: On 10/13/11 10:06, David Savage dsav...@cytelcom.com wrote: php -l voip_cdrs.php PHP Parse error: parse error, unexpected T_STRING in /usr/local/cytrex/voip_cdrs.php on line 1050 Errors parsing voip_cdrs.php

RE: [PHP] FW: parse error

2011-10-13 Thread Ken Robinson
At 02:06 PM 10/13/2011, Steve Staples wrote : [snip] It's more likely an unterminated quoted string. It looks like PHP is giving up after finding unrecognizable stuff after either the first double or single quote on that line. If you're using an editor that doesn't do syntax high lighting,

Re: [PHP] Local variable protection

2011-10-12 Thread Ken Robinson
Quoting Benjamin Coddington bcodd...@uvm.edu: Are there any assurances that function local variables are protected from code calling the function? For example, I would like to provide some cryptographic functions such as function org_secure_string($string) { $org_key = a very random

Re: [PHP] Help on number matching function

2011-09-16 Thread Ken Robinson
At 08:36 AM 9/16/2011, Dare Williams wrote: Dear PHP Group, I need a Function of any category in either PHP or MySQL RDBMS customize Function, Class, Methods or anything that could help me compare a particular set of number and return their matching result. e.g If I have a 5 Digits set of

Re: [PHP] PHP within XML?

2011-08-25 Thread Ken Robinson
Quoting Ron Piggott ron.pigg...@actsministries.org: I am trying to figure out if it is possible to have PHP work within an XML document. The application is tracking RSS subscribers IP addresses within the database. I have wrote functions so the PHP code required is below is minimal,

Re: [PHP] form handling

2011-08-11 Thread Ken Robinson
At 02:25 PM 8/11/2011, Chris Stinemetz wrote: I have two forms on the same php script. Is it possible to submit both forms to the same action=processform.php with a single submit button? If you want to submit at the same time, why do you have two forms? Ken -- PHP General Mailing List

Re: [PHP] Problem with inserting numbers...

2011-08-10 Thread Ken Robinson
At 09:22 PM 8/10/2011, Jason Pruim wrote: So here I am attempting to generate some numbers to be inserted into a database... eventually they will make up a phone number (Which I've emailed about before and know about the bad ideas with it.. But it's the customer :)) Here is the code I am

Re: [PHP] concatenating

2011-08-10 Thread Ken Robinson
At 12:03 AM 8/11/2011, Chris Stinemetz wrote: Is it possible to concatenate a string and an element from a mysql_fetch_assoc array? I haven't had much luck searching google. Such as concatenating results with ' . $posts_row['store_tptest'] . ' so that if there are no elements returned nothing

Re: [PHP] Re: Serveside Printing w/ PHP

2011-07-12 Thread Ken Robinson
At 02:06 PM 7/12/2011, Marc Guay wrote: Bonus feature: The server is running Windows 7. I suspect the crickets are going to win this one. Take a look at http://www.php.net/printer -- this might be what you're looking for. Ken -- PHP General Mailing List (http://www.php.net/) To

Re: [PHP] session variable problem

2011-03-25 Thread Ken Robinson
At 01:09 PM 3/25/2011, markb wrote: Very rusty with PHP. We moved our web site to a new hosting service (godaddy). PHP changed from 4x to 5.2.17. I can no longer change $_SESSION variables after the first use. First call to form - start session create variables Second call - can read

Re: [PHP] looking for a newsgroup for JS

2011-03-23 Thread Ken Robinson
At 04:20 PM 3/23/2011, Jim Giner wrote: Anyone know of a working Javascript newsgroup? I googled and tried adding several to my OE newsgroups but couldn't find the servers. I frequent an on-line PHP forum at phpfreaks.com. There is a Javascript section there that seems to be quite active:

[PHP] Re: left

2005-04-06 Thread Ken Robinson
Marco J.L wrote: Hello, how can I change the lenght of an value in basuc it's called LEFT or RIGHT and MID . I read the filenames but I want to strip the extension from the filename. SCRIPT == table style=font-family: tahoma,helvetica,arial; font-size: 12px;