Re: [PHP] PHP and curl

2013-09-26 Thread Shawn McKenzie
a...@stockton.co.za wrote: Shawn, that was silly of me. I have now removed the echo but I still do not get the expected result from the server. var_dump of $result returns:- object(stdClass)#2 (1) { [GetSequenceNoResult]= object(stdClass)#3 (6) { [iServerNo]= int(0

Re: [PHP] PHP and curl

2013-09-25 Thread Shawn McKenzie
SOAP functions can be called as methods of the SoapClient object. Maybe: $client-GetSequenceNo( $parameters ); -Shawn On Wed, Sep 25, 2013 at 9:17 AM, Alf Stockton a...@stockton.co.za wrote: In an attempt to interface with a webservice on a Windows 7 server I have started writing

Re: [PHP] php fopen https error

2013-09-25 Thread Shawn McKenzie
I believe this was a bug, is only a warning that may be suppressed and may have been fixed in 5.2.0. Are you aware that PHP is at 5.5.4 and that 5.1.6 is over 7 years old? -Shawn On Wed, Sep 25, 2013 at 9:09 AM, Markus Falb markus.f...@fasel.at wrote: With RHEL/CentOS 5 php I get an SSL

Re: [PHP] php fopen https error

2013-09-25 Thread Shawn McKenzie
Just as I thought: 5.2.0 Fixed bug #39039 SSL: fatal protocol error when fetching HTTPS from servers running Google web server). (Ilia) On Wed, Sep 25, 2013 at 10:03 AM, Shawn McKenzie shawn.mcken...@gmail.comwrote: I believe this was a bug, is only a warning that may be suppressed and may

Re: [PHP] PHP and curl

2013-09-25 Thread Shawn McKenzie
Keep on list. $result = $client-GetSequenceNo( CIS ); shouldn't be throwing that error. Maybe you are trying to do something with $result afterwards? Try var_dump($result); On Wed, Sep 25, 2013 at 10:12 AM, Alf Stockton a...@stockton.co.za wrote: On 25/09/13 16:52, Shawn McKenzie wrote

Re: [PHP] php fopen https error

2013-09-25 Thread Shawn McKenzie
markus.f...@fasel.at wrote: On 25.9.2013 17:12, Shawn McKenzie wrote: Just as I thought: 5.2.0 Fixed bug #39039 SSL: fatal protocol error when fetching HTTPS from servers running Google web server). (Ilia) Thanks, but ... I am not sure how what I am supposed to do with this information

[PHP] Re: Integer

2013-02-02 Thread Shawn McKenzie
On 02/01/2013 10:40 PM, Ron Piggott wrote: In the following the “2.” means a moderator response and “25” is the account # of the moderator. ?php $author = 2.00025 ? How can I get the 25 by itself? - I want to drop the “2.” and remove all the zero’s Would

[PHP] Re: globbed includes?

2012-11-20 Thread Shawn McKenzie
On 11/18/2012 02:29 PM, tamouse mailing lists wrote: There are certain times I'd like to include all files in a given directory (such as configuration stuff that is split out by type, a la apache conf.d). Anyone have something handy that implements that? Just for fun:

[PHP] Re: What do you call the end-user?

2012-07-24 Thread Shawn McKenzie
with clear detailed user guides and the fact that it is free, they are indignant about a missing feature or having to look in the docs for anything. -- Thanks! -Shawn http://www.spidean.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] url string being split

2012-04-27 Thread Shawn McKenzie
On 04/27/2012 10:56 AM, Chris Stinemetz wrote: I still haven't been able to find a solution. Is there anyone out there that knows how to keep the query string intact? Thank you, Chris urlencode($storerow['store_subject']) -- Thanks! -Shawn http://www.spidean.com -- PHP General Mailing

Re: [PHP] Variable Question

2012-04-19 Thread Shawn McKenzie
('stripslashes', $row) prior. However I would just use the $row array as most people do instead of extracting. -- Thanks! -Shawn http://www.spidean.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Script failing on extension_dir

2012-04-10 Thread Shawn McKenzie
/php5/20090626+lfs -- Thanks! -Shawn http://www.spidean.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: Script failing on extension_dir

2012-04-10 Thread Shawn McKenzie
On 04/10/2012 12:25 PM, George R Smith wrote: Matijin and Shawn, I added to /etc/php5/apache2/php.ini the line extension_dir = /usr/lib/php5/20090626+lfs but when I run qm_ext_build I still get You need to create the php extensions directory: /usr/lib/php5/20090626+lfs no could

[PHP] Re: List working?

2012-03-27 Thread Shawn McKenzie
On 03/27/2012 04:23 PM, Jay Blanchard wrote: Seems unusual not to have any traffic on it all day long. i put in my codes but i only get blank page... -- Thanks! -Shawn http://www.spidean.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: List working?

2012-03-27 Thread Shawn McKenzie
On 03/27/2012 04:34 PM, Matijn Woudt wrote: On Tue, Mar 27, 2012 at 11:32 PM, Shawn McKenzie nos...@mckenzies.net wrote: On 03/27/2012 04:23 PM, Jay Blanchard wrote: Seems unusual not to have any traffic on it all day long. i put in my codes but i only get blank page... List seems

Re: [PHP] Re: List working?

2012-03-27 Thread Shawn McKenzie
On 03/27/2012 08:11 PM, Daniel Fenn wrote: It working fine here, just people are busy I suppose. y u no help me !! i have white page withg my php codes in my page ! help please !! asap please i put codes in my file and is white On Wed, Mar 28, 2012 at 10:45 AM, Shawn McKenzie nos

[PHP] Re: looking for an array sorting function.. just not sure which one.. and how yet

2012-03-10 Thread Shawn McKenzie
later, then most likely execute another query with the new sorting. If having tried that, and that's not what works, then use array_multisort(). Pay attention to example #3 on php.net as this is what you want. -- Thanks! -Shawn http://www.spidean.com -- PHP General Mailing List (http

[PHP] Re: looking for an array sorting function.. just not sure which one..and how yet

2012-03-10 Thread Shawn McKenzie
On 03/10/2012 07:01 PM, Shawn McKenzie wrote: foreach ($query-result() as $row) { $arr_cTree[$row-cID] = array($row-cPcID, $row-cL, $row-cName, $row-cSeg, $row-cSort); } Actually, you may construct your array as follows to make sorting with ksort(): foreach ($query-result() as $row

[PHP] Re: iphone php

2012-03-05 Thread Shawn McKenzie
know I didn't do it and js had been working great. Something to check. -- Thanks! -Shawn http://www.spidean.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Insert new array after specific key in multidimensional array

2012-02-28 Thread Shawn McKenzie
; break; } $i++; } $array = array_merge(array_slice($array, 0, $p), $insert, array_slice($array, $p, count($array) - $p)); } -- Thanks! -Shawn http://www.spidean.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Typecasting question

2012-02-05 Thread Shawn McKenzie
On 02/03/2012 10:11 AM, jas wrote: array('private_key_type' = OPENSSL_KEYTYPE_RSA, 'encrypt_key_cipher' = OPENSSL_CIPHER_3DES); Look like ints to me: var_dump(): array(2) { [private_key_type]= int(0) [encrypt_key_cipher]= int(4) } -- Thanks! -Shawn http://www.spidean.com

[PHP] Re: DOS CLI?

2011-12-02 Thread Shawn McKenzie
, CPM, Commodore 64, Mac OS 9 or Amiga either as far as I know. The DOS that ran on TRS80, concurrent DOS and Zenith DOS are right as well. I'm sure that if you submit a feature request they would be all over it. -- Thanks! -Shawn http://www.spidean.com -- PHP General Mailing List (http

[PHP] Re: Sniping on the List

2011-11-15 Thread Shawn McKenzie
with the wrong guy! -- Thanks! -Shawn http://www.spidean.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Converting string to array index

2011-11-06 Thread Shawn McKenzie
(\$results$v = $k;); } print_r($results); -- Thanks! -Shawn http://www.spidean.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: PHP 5.2 and Apache 2.2 are really compatible?

2011-10-19 Thread Shawn McKenzie
not be found.\r\n in Unknown on line 0 There should be a line in your php.ini file similar to this: extension='C:\\php\\ext\\php_msql.dll' Comment that out with a semi-colon and restart apache: ;extension='C:\\php\\ext\\php_msql.dll' -- Thanks! -Shawn http://www.spidean.com -- PHP General Mailing

[PHP] Re: files outside of documentRoot

2011-10-08 Thread Shawn McKenzie
a php file as the img src and that file sets the appropriate headers and uses readfile() to get and echo the image data: getimage.php?image=someimage.gif For download files you would do it in the same manner as for images: download.php?file=somefile.zip -- Thanks! -Shawn http://www.spidean.com

[PHP] Re: Secure data management

2011-10-04 Thread Shawn McKenzie
as an escape character and for the ones that do you should use the X_real_escape_string(), like mysql_real_escape_string() instead of addslashes() -- Thanks! -Shawn http://www.spidean.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] book quest

2011-09-28 Thread Shawn McKenzie
on biological remnants. Why are you waiting for the day Dan? Just do it! -- Thanks! -Shawn http://www.spidean.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Question about losing port number

2011-09-26 Thread Shawn McKenzie
. If it is connected via 9090 then $_SERVER['SERVER_PORT'] will be 9090. If you want it to be different than how it is currently connected then you will have to hard code the port number in the href. -- Thanks! -Shawn http://www.spidean.com -- PHP General Mailing List (http://www.php.net

[PHP] Re: How can I check for characters in a $_POST[] variable?

2011-09-22 Thread Shawn McKenzie
'])) { // is not alpha numeric } -- Thanks! -Shawn http://www.spidean.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: PHP 5.4.0beta1 released

2011-09-16 Thread Shawn McKenzie
On 09/15/2011 08:50 PM, d...@php.net wrote: Thanks X4! -- Thanks! -Shawn http://www.spidean.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Bug?

2011-09-15 Thread Shawn McKenzie
. Do I need to explain this one? -- Thanks! -Shawn http://www.spidean.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: htmlentities

2011-09-13 Thread Shawn McKenzie
for your help. Ron The Verse of the Day “Encouragement from God’s Word” http://www.TheVerseOfTheDay.info If it is meant to be HTML then why run htmlentities(), especially before storing it in the DB? -- Thanks! -Shawn http://www.spidean.com -- PHP General Mailing List (http://www.php.net

[PHP] Re: Repetitive answers . . .

2011-09-09 Thread Shawn McKenzie
to receive too many responses than not enough. Besides, more often than not, it's multiple methods of doing things, not always identical. Not only will that never change, but it shouldn't. -- Thanks! -Shawn http://www.spidean.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe

[PHP] Re: Bug #51739 tricky string to float conversion

2011-08-31 Thread Shawn McKenzie
your string contains a float that is INF (8315e839) before the truncation at the d, then it returns INF. Makes perfect sense. -- Thanks! -Shawn http://www.spidean.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Bug #51739 tricky string to float conversion

2011-08-31 Thread Shawn McKenzie
On 08/31/2011 01:48 PM, Shawn McKenzie wrote: The cast to float is truncating the invalid characters and since your string contains a float that is INF (8315e839) before the truncation at the d, then it returns INF. Makes perfect sense. Just FYI... Don't post your troubles

[PHP] Re: ZCE

2011-08-23 Thread Shawn McKenzie
On 08/23/2011 08:36 AM, Yuri Yarlei wrote: Hi, I like to share with the list, that I passed in the ZCE and now I'm a Zend Certified Engineer. I did a post when I started studying in my blog: http://www.yuriyarlei.net/en/zend-php-certification Congratulations! -- Thanks! -Shawn http

[PHP] Re: Unanticipated characters returned from multidimensional array

2011-08-06 Thread Shawn McKenzie
$new_description; echo /pre; } } I haven't look through it long enough to find out about the characters, but try this: foreach($tableNews as $headline = $text){ echo br; echo $text['text']; echo pre; echo $text['user']['name']; echo /pre; } -- Thanks! -Shawn http

Re: [PHP] Complex (or not so) array data form submission?

2011-08-04 Thread Shawn McKenzie
=addresses[3][city] name=addresses[4][state] name=addresses[5][zip] -- Thanks! -Shawn http://www.spidean.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: $_POST value disappearing?

2011-08-02 Thread Shawn McKenzie
someone enlighten me? Thanks, Donovan The manual is great! $_FILES http://www.php.net/manual/en/features.file-upload.post-method.php -- Thanks! -Shawn http://www.spidean.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: I can't execute pf commands

2011-07-28 Thread Shawn McKenzie
the apache user to execute it without a password. -- Thanks! -Shawn http://www.spidean.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] I can't execute pf commands

2011-07-28 Thread Shawn McKenzie
user to sudoers. It's quite high risk move in security-wise Good luck getting it to work another way. -- Thanks! -Shawn http://www.spidean.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: pathinfo function

2011-07-26 Thread Shawn McKenzie
: Undefined index: extension -- Thanks! -Shawn http://www.spidean.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: PHP frameworks

2011-07-21 Thread Shawn McKenzie
one seems like a good fit for you. -- Thanks! -Shawn http://www.spidean.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: PHP frameworks

2011-07-21 Thread Shawn McKenzie
. -- Thanks! -Shawn http://www.spidean.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: IF stream lining

2011-07-14 Thread Shawn McKenzie
, this might be useful: if(!in_array($val, array('with','from','to','against','mom','dad')) { -- Thanks! -Shawn http://www.spidean.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Variable scope

2011-07-14 Thread Shawn McKenzie
pass in $e_cc but try and use $_email_cc, etc, etc, etc... Develop with: error_reporting(E_ALL); ini_set('display_errors', '1'); This will tell you about all of those undefined variables. -- Thanks! -Shawn http://www.spidean.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe

[PHP] Re: str_replace around a character??

2011-07-14 Thread Shawn McKenzie
On 07/13/2011 04:03 PM, Karl DeSaulniers wrote: Thanks Shawn, I had actually found the same thing myself.. $subCc = array_map('trim',explode(,,$subCc)); But I could not find my post last night to make a new comment about it. Thank you for yours though.. I did not think of the implode

[PHP] Re: str_replace around a character??

2011-07-13 Thread Shawn McKenzie
(', ', array_filter(array_map('trim', explode(',', $cc; -- Thanks! -Shawn http://www.spidean.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Installing PHP

2011-07-04 Thread Shawn McKenzie
dll that is located in the php dir. And of course, Happy Independence Day! -- Thanks! -Shawn http://www.spidean.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: Php filter validate url

2011-06-27 Thread Shawn McKenzie
On 06/27/2011 10:01 AM, Plamen Ivanov wrote: On Sun, Jun 26, 2011 at 5:44 PM, Shawn McKenzie nos...@mckenzies.net wrote: On 06/26/2011 12:31 PM, Adam Tong wrote: Hi, I wanted tu use php filters for validation to avoid regular expresions. Is it possible that FILTER_VALIDATE_URL only checks

[PHP] Re: Php filter validate url

2011-06-26 Thread Shawn McKenzie
= filter_var($url,FILTER_VALIDATE_URL); echo $url; - Or I am doing something wrong Thank you No, because http:// is not a URL, it's a scheme or protocol. -- Thanks! -Shawn http://www.spidean.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net

[PHP] Re: Php filter validate url

2011-06-26 Thread Shawn McKenzie
with http:// } -- Thanks! -Shawn http://www.spidean.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: Php filter validate url

2011-06-26 Thread Shawn McKenzie
On 06/26/2011 04:50 PM, Fatih P. wrote: Guys, when you reply a mail, You should write your reply on the top of it, not at the bottom of it. makes it easier to follow. Ready flame-throwers! -- Thanks! -Shawn http://www.spidean.com -- PHP General Mailing List (http://www.php.net

[PHP] Re: this newsgroup and OE

2011-06-22 Thread Shawn McKenzie
. This has been happening to me every day for years using Thunderbird. It's a news server issue that has never been corrected. -- Thanks! -Shawn http://www.spidean.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: newbie date time question

2011-06-22 Thread Shawn McKenzie
great, though you need to give it what it expects: $ts = strtotime(str_replace('/', '-', $date)); -- Thanks! -Shawn http://www.spidean.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: newbie date time question

2011-06-22 Thread Shawn McKenzie
On 06/22/2011 06:54 PM, David Nicholls wrote: I'm late to the party, but strtotime works great, though you need to give it what it expects: $ts = strtotime(str_replace('/', '-', $date)); Thanks, Shawn, that's a bit more elegant! I'll give it a go. I didn't know how to do the str_relace

[PHP] Re: mysqlnd and LOAD DATA INFILE

2011-06-20 Thread Shawn McKenzie
On 06/20/2011 07:51 AM, Marten Lehmann wrote: isn't working any longer What does that mean? It generates an error? It executes without error but the data isn't loaded? Try a test on the command line and see what you get. -- Thanks! -Shawn http://www.spidean.com -- PHP General Mailing List

Re: [PHP] Re: mysqlnd and LOAD DATA INFILE

2011-06-20 Thread Shawn McKenzie
: mysql_fix_privilege_tables and then restart mysql. -- Thanks! -Shawn http://www.spidean.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Submit Using An Image Form Processing

2011-06-19 Thread Shawn McKenzie
On 06/19/2011 07:26 AM, tedd wrote: At 6:34 PM -0500 6/18/11, Shawn McKenzie wrote: Get method is for retrieval only. It is not for anything that has a consequence (insert, update, delete, send email, etc.). Use only post for those. -- Thanks! -Shawn Why? Cheers, tedd

Re: [PHP] Submit Using An Image Form Processing

2011-06-18 Thread Shawn McKenzie
writing from my smart phone and it's all untested. Hopefully it gives you a start though. Jason Pruim Get method is for retrieval only. It is not for anything that has a consequence (insert, update, delete, send email, etc.). Use only post for those. -- Thanks! -Shawn http://www.spidean.com

Re: [PHP] date.timezone set and still getting strict warnings.

2011-06-14 Thread Shawn McKenzie
. Here's mine: /etc/php5/apache2/php.ini /etc/php5/cli/php.ini -- Thanks! -Shawn http://www.spidean.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Extracting data from exec() call

2011-06-14 Thread Shawn McKenzie
[count($output)-1]); array_shift($wmax); print_r($wmax); --or to search for wmax = if($array = preg_grep('/^ wmax = $/', $output)) { $wmax = explode(', ', $array[0]); } array_shift($wmax); print_r($wmax); May need some more error checking. -- Thanks! -Shawn http://www.spidean.com -- PHP

[PHP] Re: Extracting data from exec() call

2011-06-14 Thread Shawn McKenzie
On 06/14/2011 01:03 PM, Shawn McKenzie wrote: $wmax = explode(', ', $output[count($output)-1]); Should be -2 :( $wmax = explode(', ', $output[count($output)-2]); -- Thanks! -Shawn http://www.spidean.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http

[PHP] Re: Extracting data from exec() call

2011-06-14 Thread Shawn McKenzie
misread the first. You want a string of only the coma separated numbers? If so: if ($array = preg_grep('/^ wmax = /', $output)) { $wmax = array_shift($array); } If you want to get rid of the wmax = or add the { } or whatever use str_replace() and/or concat then on. -- Thanks! -Shawn http

[PHP] Re: Fuzzy Array Search

2011-06-07 Thread Shawn McKenzie
On 06/07/2011 12:45 PM, Floyd Resler wrote: What would be the easiest way to do a fuzzy array search? Can I do this without having to step through the array? Thanks! Floyd I use preg_grep() -- Thanks! -Shawn http://www.spidean.com -- PHP General Mailing List (http://www.php.net

Re: [PHP] Re: Fuzzy Array Search

2011-06-07 Thread Shawn McKenzie
to all) -- The trouble with programmers is that you can never tell what a programmer is doing until it’s too late. ~Seymour Cray On Tue, Jun 7, 2011 at 2:57 PM, Shawn McKenzie nos...@mckenzies.net wrote: On 06/07/2011 12:45 PM, Floyd Resler wrote: What would be the easiest way to do a fuzzy

Re: [PHP] Re: Fuzzy Array Search

2011-06-07 Thread Shawn McKenzie
On 06/07/2011 04:28 PM, Floyd Resler wrote: Shawn, I'm terrible with regular expressions. Could you give me an example? Thanks! Floyd Depends. Could be as simple as this to return an array of all occurrences of $needle in any of the $haystack_array values: $haystack_array

Re: [PHP] Re: Fuzzy Array Search

2011-06-07 Thread Shawn McKenzie
On 06/07/2011 04:35 PM, Alex Nikitin wrote: Shawn, == is not good for string comparison, its a bad habit that one should get out of, use ===, its much safer . Yes, except that I was comparing a string to an array of integers :) Also try the same algorithm on 10 arrays of some number

[PHP] Re: A Review Request

2011-05-19 Thread Shawn McKenzie
, then Geshi would handle all of these. -- Thanks! -Shawn http://www.spidean.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Storing indefinite arrays in database

2011-05-11 Thread Shawn McKenzie
the argument name then just add another column called variable and change the argument column's name to value. id results_id variable value -- Thanks! -Shawn http://www.spidean.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http

Re: [PHP] Re: Storing indefinite arrays in database

2011-05-11 Thread Shawn McKenzie
On 05/11/2011 03:15 PM, Benedikt Voigt wrote: Thanks Shawn, yes, your second idea works for me. The first one not, as I need to search and join on it. To continue your second idea with your example: Arguments: idresults_idvariablevalue 111800 21

[PHP] Re: files outside of the web tree

2011-04-27 Thread Shawn McKenzie
= mime_content_type($file); header('Content-type: $type'); readfile($file); -- Thanks! -Shawn http://www.spidean.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: JavaScript Injection ???

2011-04-18 Thread Shawn McKenzie
? Was there a php update that prohibited that sort of behavior or did hosts start setting something to OFF, or what? If you know, please explain. Thanks, tedd Most likely like magic_quotes_gpc. Suhosin-Patch may protect against this as well (can't remember). -- Thanks! -Shawn http://www.spidean.com

[PHP] Re: How to write a PHP coding to list out all files and directories aslinks to them?

2011-04-16 Thread Shawn McKenzie
that you have tried. -- Thanks! -Shawn http://www.spidean.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Ranges for case statement and a WTF moment.

2011-04-06 Thread Shawn McKenzie
: ', $s; } ? Completely unexpectedly, the above code runs but produces the wrong output. FYI. My first inclination would have been: switch(true) { case in_array($s, range(0, 9)): echo 0 - 9; break; } But it's messy. -- Thanks! -Shawn http://www.spidean.com -- PHP General Mailing

Re: [PHP] problem with if and exact match

2011-03-15 Thread Shawn McKenzie
. -- Thanks! -Shawn http://www.spidean.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] $_POST variable

2011-03-12 Thread Shawn McKenzie
: name[1] and name[1] are the same but different group from name[2]. If you don't specify an index, but the name is the same, then they are grouped together: name[], name[]. By grouped together I mean that only one of the group can be selected and therefore successful on submit. -- Thanks! -Shawn

[PHP] Re: $_POST variable

2011-03-11 Thread Shawn McKenzie
is $value; } -- Thanks! -Shawn http://www.spidean.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: $_POST variable

2011-03-11 Thread Shawn McKenzie
On 03/11/2011 02:33 PM, Jim Lucas wrote: On 3/11/2011 12:03 PM, Shawn McKenzie wrote: On 03/11/2011 01:28 PM, Danny wrote: Hi guys, I have a form that has a long list of radio-bottons inside of it. The radio-buttons are dynamically created via php and MySQL. Here is an example of one

Re: [PHP] Re: Regex for extracting quoted strings

2011-03-07 Thread Shawn McKenzie
On 03/05/2011 04:38 PM, Mark Kelly wrote: Hi. Thanks for all the replies. On Saturday 05 Mar 2011 at 22:11 Simon J Welsh wrote: On 6/03/2011, at 11:08 AM, Shawn McKenzie wrote: $regex = '/([^]+)/'; Shawn, this regex gets me two copies of each string - one with and one without

[PHP] Re: Regex for extracting quoted strings

2011-03-05 Thread Shawn McKenzie
replied.'; I want $phrases to contain 'This is it' and 'Nope, that is the wrong colour'. Can anyone help? Cheers, Mark $regex = '/([^]+)/'; -- Thanks! -Shawn http://www.spidean.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: String Encodings - loose guidelines

2011-01-26 Thread Shawn McKenzie
, these are very nice for working with data: filter_var() filter_var_array() filter_input() filter_input_array() -- Thanks! -Shawn http://www.spidean.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Installing PEAR

2011-01-25 Thread Shawn McKenzie
as well in the repos. Check for them. Yes, I'm on Ubuntu and just used 'apt-get install php-pear'. -- Thanks! -Shawn http://www.spidean.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: array to var - with different name

2011-01-21 Thread Shawn McKenzie
On 01/20/2011 05:26 PM, Tommy Pham wrote: On Thu, Jan 20, 2011 at 2:49 PM, Shawn McKenzie nos...@mckenzies.net wrote: On 01/20/2011 04:28 PM, Donovan Brooke wrote: Hello again! I'm trying to find a good way to convert array key/value's to variable name values... but with the caveat

[PHP] Re: News Server Time Outs

2011-01-20 Thread Shawn McKenzie
.. Yesterday I couldn't connect at all, all day. Today it seems to be working OK. -- Thanks! -Shawn http://www.spidean.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: array to var - with different name

2011-01-20 Thread Shawn McKenzie
liner (not tested): extract(array_combine(str_replace('f_', 't_', array_keys($_POST)), array_values($_POST))); -- Thanks! -Shawn http://www.spidean.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] floored by floor()

2010-10-14 Thread Shawn McKenzie
! -Shawn http://www.spidean.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Question about news.php.net

2010-09-13 Thread Shawn McKenzie
with it because I don't want mailing list mails either. -- Thanks! -Shawn http://www.spidean.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: How to handle a submitted form with no changes -- best practices sought

2010-09-12 Thread Shawn McKenzie
On 09/12/2010 02:38 AM, Tamara Temple wrote: On Sep 11, 2010, at 10:46 PM, Shawn McKenzie wrote: It could however be a problem if there is a BOT or something that continually submits to your page. In that case (and in general) I would recommend using a form token that helps guard against

[PHP] Re: How to handle a submitted form with no changes -- best practices sought

2010-09-11 Thread Shawn McKenzie
that continually submits to your page. In that case (and in general) I would recommend using a form token that helps guard against this. -- Thanks! -Shawn http://www.spidean.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: php cli question

2010-09-11 Thread Shawn McKenzie
ask: Is this purely academic? Why is this a concern? Have you encountered issues? If so, what? -- Thanks! -Shawn http://www.spidean.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Encoding Ampersands

2010-07-29 Thread Shawn McKenzie
on the page but the validator is OK with them? Is the answer as simple as: urlencode($myvar) Thanks, --Rick -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- Thanks! -Shawn http://www.spidean.com -- PHP General Mailing

[PHP] Re: PHP database interface layer

2010-07-22 Thread Shawn McKenzie
are related by which keys and even let you enter validation rules etc. It then builds a skeleton app with all the models for your schema and will even generate test. -- Thanks! -Shawn http://www.spidean.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http

[PHP] Re: Weird behavior of exec()

2010-07-15 Thread Shawn McKenzie
? echo 'File B'; ? Try not use the short open tag. Use ?php -- Thanks! -Shawn http://www.spidean.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Weird behavior of exec()

2010-07-15 Thread Shawn McKenzie
On 07/15/2010 04:40 PM, Leonardo wrote: Bad habit. I know. Did it fix it? -- Thanks! -Shawn http://www.spidean.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: validating form input

2010-07-09 Thread Shawn McKenzie
stripslashes first: if(get_magic_quotes_gpc()) { $_POST['name'] = stripslashes($_POST['name']); } $name = mysqli_real_escape_string($DatabaseLink, trim($_POST['name'])); $name = stripslashes(mysqli_real_escape_string($dbc, trim($_POST['name']))); Thanks. Dave. -- Thanks! -Shawn http

[PHP] Re: Multiple Access Question

2010-07-07 Thread Shawn McKenzie
. If not, then load the edit form again with a message that says the record has recently been updated by someone else. -- Thanks! -Shawn http://www.spidean.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Another parse problem

2010-06-16 Thread Shawn McKenzie
be an array containing all the domain-names found in a text file. Cheers, tedd Not extensively tested: $domains = array(); if(preg_match_all('/[A-Za-z0-9][-A-Za-z0-9\.]*?\.(com|net|org)/i', $text, $matches)) { $domains = array_unique($matches[0]); } -- Thanks! -Shawn http

Re: [PHP] Cookie access with CLI

2010-06-13 Thread Shawn McKenzie
for any information. David Cesal I'm almost positive you can do this with cURL and it should be fairly simple. Check it out. http://php.net/manual/en/book.curl.php -- Thanks! -Shawn http://www.spidean.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit

  1   2   3   4   5   6   7   8   9   10   >