:36 AM, Alf Stockton 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)
alb 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
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 wrote:
>
> On 25/09/13 16:52, Shawn McK
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
wrote:
> I believe this was a bug, is only a warning that may be suppressed and may
> have been fi
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 wrote:
> With RHEL/CentOS 5 php I get an SSL Error
> RHEL/Ce
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 wrote:
> In an attempt to interface with a webservice on a Windows 7 server I have
> started writing the following:
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.
>
>
> $author = 2.00025
>
> ?>
>
> How can I get the 25 by itself?
> - I want to drop the “2.” and remove all the zero’s
>
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:
array_walk(glob('*.
y of the users
of free software. Even 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 unsubsc
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:/
.php
>
> thnx,
> Christoph
Yes and you can use array_map('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
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:
ixing that now but the simple fix on
your machine is this:
EXTDIR="/usr/lib/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
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, Sh
On 03/27/2012 04:34 PM, Matijn Woudt wrote:
> On Tue, Mar 27, 2012 at 11:32 PM, Shawn McKenzie 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...
&g
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.
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 m
gt; Thanks!
> -Govinda
The best option is to sort it in the query. But if for whatever reason
you sort it in the query for use one way and then need it sorted
differently later, then most likely execute another query with the new
sorting. If having tried that, and that's not what wor
of my i[phone software updates, javascript in safari was
turned off. I 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
$i = 0;
foreach($array as $k => $v) {
if($k === $key) {
$p = $i + 1;
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 Gene
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_k
.. No. There's not one for the original Berkeley or AT&T UNIX,
VMS, 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.
action to see that you are hereby banned from the
Internet. You're messing 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
; MySQL 5.1 PHP 5.3.3-6 Linux [Debian squeeze(sid)]
>
Not sure I totally understand, but from my assumption:
foreach($test1 as $k => $v) {
eval("\$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
P is 5.2.3 and from what I can tell, hasn't been updated
> since February of 2011.
>
> Thanks,
>
> --Rick
>
>
In addition to escaping the var with mysql_real_escape_string() or
similar, values for text columns need to be quoted as you did in your
second example. con
#x27;C:\\php\\ext\\php_msql.dll' - The
> specified module could 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=
ou would add the external dir to your include path.
For images you can use 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:
ert the slash, that would
be unwanted. Not all databases use the slash 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 Lis
, it would not only be easy to shop to
> publishers, but it could also be one of the first truly collaborative
> publications to exist 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
> Thx
>
I the page that you are on is connected via port 80 then
$_SERVER['SERVER_PORT'] will be 80. 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
s off so I wanna ask how I can fix this.
if(!ctype_alnum($_POST['username'])) {
// 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
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
type check compares them as
strings. Use strcmp() to overcome this.
4. 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
just starting to get use to accented letters.)
>
> Thanks a lot 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
t.
Better 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
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... Do
ink about?
> cheers
> Daniel
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.
--
Thanks!
-Shawn
http://www.spidean.com
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Congratulations!
--
Thanks!
-Shawn
http://www.spidean.com
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
description['name'];
> echo "";
> echo "$new_description";
> echo "";
> }
>
> }
I haven't look through it long enough to find out about the characters,
but try this:
foreach($tableNews as $headline => $text
index is important, it's better to provide it
> explicitly.
>
> Andrew
What Jamie posted is equivalent to this:
name="addresses[0][id]"
name="addresses[1][address1]"
name="addresses[2][address2]"
name="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
-
>
> --/index.php--
>
>
>
>
> The result I get is:
>
> Array
> (
> [f_ap] => upload
> [f_action] => doit
> )
> ---
>
> Can someone enlighten me?
>
> Thanks,
> Donovan
>
>
The manual is great! $_
on of adding Apache 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
?
>
>
pfctl probably requires root privileges, so you can either set the suid
on it or I would set it up in sudoers to allow 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
ny other array you'll get a notice:
Notice: 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
On 07/21/2011 07:44 PM, Micky Hulse wrote:
> On Thu, Jul 21, 2011 at 5:33 PM, Micky Hulse wrote:
>> Your app models?
>
> More specifically, your app model data. :)
A la CakePHP. Will automagically build controllers and views for the
admin of your tables/models if you wish.
--
CakePHP and CI tutorials and seeing which 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
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 y
ld. You 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://
Day.info
>
Depends on what you mean by streamlined. If it were longer, 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
be much appreciated.
> TIA
> Best Regards,
>
> Karl DeSaulniers
> Design Drumm
> http://designdrumm.com
>
>
$cc = implode(', ', 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
who still love the USofA, Happy Independence Day!
>
You may need to add c:\php\ to the Windows path so that the Apache mod
can find other files it may need. If you have mysql or other extensions
enabled in php.ini, then they may be looking for another 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
On 06/27/2011 10:01 AM, Plamen Ivanov wrote:
> On Sun, Jun 26, 2011 at 5:44 PM, Shawn McKenzie 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
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.
//') === 0) {
//starts with http://
} esle {
// does not start 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
= 'http://wwwtestcom';
> $url = 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 Maili
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 b
s
> successfully with better behaved date and time strings).
>
> Advice appreciated.
>
> DN
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
http://www.spidean.com
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
"working" newsgroup
> accounts.
>
> Thanks in advance.
>
>
No secret. 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
gt; Kind regards
> Marten
This is a PHP list, but most likely run: 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
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 Ge
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.
>>
>&g
d)) {
>
> //delete code here
> }
>
> Check all that before you run it I'm 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
co
posted two
different expected outputs and I 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_repla
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 u
he data section starts. And I need to convert the
> strings into arrays for each data set.
>
> Suggestions?
Assuming that it is always the second to the last item, then:
$wmax = explode(', ', $output[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 General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
web with the
> exact same results.
>
> Now, the problem is...
>
>I surrounded the date.timezone setting with single quotes.
>
> So, removing the quotes got me what I needed.
>
Glad you got it fixed. Many distros do it differently. Windows
normally has one php.ini, Ubuntu and derivatives have 2. Other will
vary. 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
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
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
some point...
>>
>> (sorry i keep on hitting reply instead of reply 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, 201
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
grows and you have PHP, HTML, CSS, JS and maybe INI files
and SQL, 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
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
> 1
join results.id on arguments.results_id in your query.
If you actually need to store 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.co
s/' . basename($_GET['name']);
$type = 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
orks. So, what happened? 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
>
I prefer glob(). Give it a shot and ask for help on code 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
9'; break;
> case 50...59 : echo 'Between 50 and 59'; break;
> default : echo 'Unknown : ', $s;
> }
> ?>
>
> Completely unexpectedly, the above code runs but produces the wrong output.
FYI. My first inclination would have been:
s
particular needle occurs within
haystack, use the faster and less memory intensive function strpos()
instead.
--
Thanks!
-Shawn
http://www.spidean.com
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
same "group" of radio buttons.
So here is the long and short; if the name is the same and you specify
an index then names with the same index will be grouped together:
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
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
t; Thank You
>
> Danny
The most common and flexible way to do this sort of thing is to use
arrays instead:
Then:
foreach($_POST['radio'] as $key => $value) {
echo "radio for $key 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
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,
#x27;Dave said "This is it". "Nope, that is the wrong colour" she
> replied.';
>
> I want $phrases to contain 'This is it' and 'Nope, that is the wrong colour'.
>
> Can anyone help?
>
> Cheers,
>
> Mark
$regex = '/"
lentities()
If you don't want HTML then strip it when displaying:
striptags()
>
> 6.) string encoding for redirects
>
Same as #4.
BTW, 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
3.3-6 Linux [Debian (sid)]
>>
>>
>
> If you are using php from the repositories, there must be a pear package
> 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
On 01/20/2011 05:26 PM, Tommy Pham wrote:
> On Thu, Jan 20, 2011 at 2:49 PM, Shawn McKenzie 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
>>>
t;t_" . substr($key,2) . "=$value&";
> parse_str($t_string);
> }
> }
> -
>
> I figure I can adapt the above by doing something like:
>
> $a_formvars = array_merge($_POST,$_GET);
>
> However, I thought I'd check with you all to se
to aggressively.
>
> Al..
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
et
> docs incomplete? Or am I just horribly misguided?
>
> Paul
>
magic_quotes_gpc yes (Get, Post, Cookie). magic_quotes_runtime controls
these:
http://www.php.net/manual/en/info.configuration.php#ini.magic-quotes-runtime
--
Thanks!
-Shawn
http://www.spidean.com
--
PHP Gener
o serialize(327.03 * 100);
--
Thanks!
-Shawn
http://www.spidean.com
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
ad a message and
then click another one and it times out. It does this for hours at a
time. Also, many times when sending a reply it times out. Just learned
to live 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
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 for
ave
> done 'unset()' at some critical places were large arrays were used,
> and I think it helped. AFAIK, unlike Java, there is no 'garbage
> collector' thread that does all the magic?
>
> Thanks,
> Ravi
If I have time when you reply I'll answer the questions, but I must 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
ges,
then there really is no problem.
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 this.
--
Thanks!
-Shawn
http://www.spidean.com
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
splay properly 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 List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
s, that if
you follow, makes it sooo easy, but if you already have your schema
built it can use that just as easily.
Just run the cake script, enter db details, it will enumerate tables and
columns and ask which are related by which keys and even let you enter
validation rules etc. It then build
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
On 07/15/2010 10:51 AM, Leonardo wrote:
> Hi everybody. I need to use exec() to run a background php script, but
> it's not working properly. Take a look at this sample:
>
> a.php
>
>echo ' File A (1) ';
>
>exec('php b.php > output.txt &');
>
>echo ' File A (2) ';
>
>?>
>
ed on
your PHP installation, except you would 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_esca
tore them in the session. Then on the processing page look them up
again and see if they match the session values. 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
1 - 100 of 1191 matches
Mail list logo