Rory Browne wrote:
>>I operate my own web/e-mail server
No offense, but so what? Do you think that makes you different from
most people here, many of whom administrate web, email, database,
dns, etc? You're on a technical list, and people who admin servers
are the norm rather than the execept
> It appears that you never applied for a certificate before, or applied
> for certs from CAs that don't verify information. Identification is
> extremerly important when it comes to knowing whether or not to trust
> the given public key.
Repeating your point doesn't make it more valid. I'm not t
I assume that the text inside can change around a fair bit. If the
string is of a fixed with or simple format you can just use substr() and
friends, it's simpler and faster.
That said, there is really two approaches that I can see with this string.
You can match on the spaces to extract the 'RV-
Hi,
I'm still trying to get to grips with REGEX and have hit a hurdle with
the following:
I have this bit of text:
(\(EX\) RV-6 )
I want to remove the '\(EX\)' part of it
so leaving just: ( RV-6 )
Any suggestions would be most appreciated.
Thanks
Alexis
--
PHP General Mailing List (http://
Richard Lynch wrote:
And in the real world, where browsers just blindly chase down CAs and
the basic Security Model is "you pay us $200, and we make sure you
are who you say you are, and then we trust you" what real difference
does it make?
Users can remove untrustworthy CA certs from their
On Mon, January 30, 2006 5:33 am, Peter Hoskin wrote:
> I have written a script to parse a large amount of XML data and insert
> it into SQL... deals with approx 80,000 rows each time I run it. I
> cannot successfully complete this script without running out of
> memory.
> Is pcntl_fork suitable to
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
--
Like Music?
http://l-i-e.com/artists.htm
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
__ NOD32 1.1393
$last_comma = strrpos($string, ",");
$string = substr($string, 0, $last_comma) . ' and ' . substr($string,
$last_comma);
I probably have a one-off error in there somewhere, or swapped the
order of args in strrpos, but you get the idea.
http://php.net/strrpos
On Mon, January 30, 2006 8:09 am, Barr
Use a TYPE="IMAGE" but have the SRC="../images/button.php?text=Move"
Then have PHP generate the button to have whatever text comes in from
$_GET['text']
http://php.net/gd
On Mon, January 30, 2006 8:11 am, Jevos, Peter wrote:
>
> Hi all
>
> I'd like to ask you one ( probably ) simple question. I'
This one time, at band camp, Oli Howson <[EMAIL PROTECTED]> wrote:
> I'm interested in the possibility of connecting a computer running A
> PHP server to a till drawer and have the server able to open the
> drawer. Anyone know how this would work?
>
> --
> PHP General Mailing List (http://www.
On Mon, January 30, 2006 12:43 pm, News1 wrote:
> I would prefer to have to log into my server and from there have these
> credentials passed along to the web cameras.
http://php.net/curl
--
Like Music?
http://l-i-e.com/artists.htm
--
PHP General Mailing List (http://www.php.net/)
To unsubscri
"";
$des = eregi_replace($pattern, $replace, $des);
Then in your html, use:
Worked for me.
tedd
--
http://sperling.com/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Jedidiah wrote:
I send out a daily email to an email list. I have only been doing this for
about a week, and realized today that each one of them so far has had at
least one mysterious exclamation point somewhere in the email. This is
sometimes in the middle of the word or sentence, but alway
Hi :)
I am using the following function (that I found in the user comments
on php.net manual) for trimming the number of words accepted via a
form field
// Truncation is by word limit, not character limit. So if you limit
// to 255, then it will cut off a text item to 255 words, not 255 chara
On Fri, February 3, 2006 4:07 pm, Philip Hallstrom wrote:
>> On Fri, February 3, 2006 11:06 am, Philip Hallstrom wrote:
>>> it permanently. With IE you have to ask that they download your
>>> root
>>> certificate (click click, installed)
>>
>> I've never gotten that to work, actually...
>>
>> It a
ith Mozilla - http://enigmail.mozdev.org
>>>
>>> iD8DBQFD45Hzj60GAoLuoDkRAjSqAKCxvGlJmSCVHozWBDjjZnKMEZOfSwCfenVj
>>> lRSChtsMRqRnOYdZpk5YQ0c=
>>> =Dnly
>>> -END PGP SIGNATURE-
>>>
>>> --
>>> PHP General Mailing List (htt
On Fri, February 3, 2006 11:06 am, Philip Hallstrom wrote:
it permanently. With IE you have to ask that they download your root
certificate (click click, installed)
I've never gotten that to work, actually...
It always keeps asking me over and over to "install" the cert and I
do, and next tim
On 3-Feb-06, at 4:19 PM, Richard Lynch wrote:
On Fri, February 3, 2006 10:54 am, Verdon Vaillancourt wrote:
I am using the following function (that I found in the user comments
on
php.net manual) for trimming the number of words accepted via a form
field
// Truncation is by word limit, not ch
I'm betting that Yahoo and Google both can map to just the County
level, if you just don't send them street addresses as inputs...
You'll need to find a canonical list of every county in every state,
but I'm guessing that's a simple search:
http://info.com/state+county+complete+list+official
On T
On Fri, February 3, 2006 5:25 am, Oli Howson wrote:
> I'm interested in the possibility of connecting a computer running A
> PHP server to a till drawer and have the server able to open the
> drawer. Anyone know how this would work?
I think there's a PHP extension to poke codes out the COM ports o
On Fri, February 3, 2006 11:06 am, Philip Hallstrom wrote:
> it permanently. With IE you have to ask that they download your root
> certificate (click click, installed)
I've never gotten that to work, actually...
It always keeps asking me over and over to "install" the cert and I
do, and next ti
On Fri, February 3, 2006 9:54 am, Kevin McBride wrote:
> All in all, be cautious in selecting a certification authority to
> issue
> you a certificate. Remember that it's sometimes better paying more
> for
> a certificate from a truly trustworthy CA.
And in the real world, where browsers just bli
Just do this:
$string = str_replace("\n", "", $string);
$string = trim_text($string);
$string = str_replace("", "\n", $string);
Actually could be any sequence of non-whitespace characters
unlikely to be in the text in the first place.
On Fri, February 3, 2006 3:29 pm, Verdon Vaillancourt wrote
Source code.
On Fri, February 3, 2006 12:43 am, suresh kumar wrote:
> hi,
>In my project i assigned name of the text field as
> 'loginform'.but i got error msg like 'Undefined
> variable'
> then i changed the name as 'hiddenfield' but same
> error.any one having idea reply me.
>
>
>
Put the path of the file you want in the URL?
And make *SURE* you do not let that turn into things like:
/etc/passwd
More info here:
http://phpsec.org
On Fri, February 3, 2006 1:54 am, Shu Hung (Koala) wrote:
> Hello,
>
> I have a little strange question.
>
> Let say if I have a file "/home/user
It's possible that MySQL has larger range of floats than PHP.
Then when your numbers come in, PHP ends up making them be things like:
'NaN' (not a number) or '6.02e+23' or ...
There are a LOT of ways to represent floats in such a way that you can
confuse the heck out of PHP and MySQL between th
Richard Lynch wrote:
On Fri, February 3, 2006 9:40 am, Barry wrote:
Brian Dunning wrote:
I'm moving all my hosting to Rackspace, which means I'll need to buy
all my own SSL certs. Does anyone have a favorite (cheap) source?
I've
found LiteSSL at $14.95/per. Thanks...
Problem is when you hav
On Fri, February 3, 2006 9:40 am, Barry wrote:
> Brian Dunning wrote:
>> I'm moving all my hosting to Rackspace, which means I'll need to buy
>> all my own SSL certs. Does anyone have a favorite (cheap) source?
>> I've
>> found LiteSSL at $14.95/per. Thanks...
>
> Problem is when you have cheap ssl
Hi Richard,
I quickly realized this and fooled with a few variations. Also have to
take into account that the or the get counted as 1 or 2
words respectively, and so the trim can end up in the wrong place. I've
tried fiddling with counting the number of br's in the string and
adding that to
On Fri, February 3, 2006 10:15 am, tedd wrote:
> This is probably an obvious question, but after you create an image,
> how can you include another php script?
Your image is a single, atomic, non-divisible, non-extensible, object.
You should have one URL for the image:
http://example.com/buildim
I've got my money on the XML spec REQUIRING an alphabetic start to
tagnames, and subsequent characters can be alphanumeric...
In other words, it doesn't work because <0> is not a valid XML tag.
You'll have to find and read the XML spec to be 100% certain.
http://info.com/XML+specification
If I'm
Jochem Maas wrote:
Brad Kowalczyk wrote:
Grae Wolfe - PHP wrote:
Hey there... I am setting up a new test server for one of my clients
to use, and I am curious if there is a reason to go with php4.xx over
php5.xx, or the other way around. I would think that I would want to
go with the newe
This would work if you replace the with -- Otherwise, it's
too likely to break up "" in the trim_text function and then you
end up with:
"start of string ... almost 255 words, blah blah blah -BEGIN PGP SIGNED MESSAGE-
> Hash: SHA1
>
> Verdon Vaillancourt wrote:
>> Hi :)
>>
>> I am usin
On Fri, February 3, 2006 10:54 am, Verdon Vaillancourt wrote:
> I am using the following function (that I found in the user comments
> on
> php.net manual) for trimming the number of words accepted via a form
> field
>
> // Truncation is by word limit, not character limit. So if you limit
> // to 2
Joe
Shmoe
foo
bar
<0>DNR
<1>OPT
<2>FOO
<3>BAR
<4>CWS
<5>AVS
72
96Kg
0
etc...
$xml_data = $xml;
$parser = xml_parser_create();
xml_parser_set_option($parser, XML_OPTION_CASE_FOLDING, 0);
xml_parser_set_option($parser, XML_OPTION_SKIP_WHITE, 0);
xml_parse_into_struct($parser, $xml_data,
Do "View Source" in your browser, and see what the ACTION url is...
On Fri, February 3, 2006 11:54 am, Jason Gerfen wrote:
> I am having a problem and I am not sure how to resolve it. I have a
> simple drop down list form which contains colors and a menu which
> contains links.
>
> I have two g
On Fri, February 3, 2006 2:06 pm, ganu ullu wrote:
> Hi
>
> I am getting error like that ..
>
> Fatal error: Uncaught exception 'com_exception' with message 'Error
> [0x80020003] Member not found. ' in c:\Inetpub\wwwroot\php\flix.php:14
> Stack
> trace: #0 c:\Inetpub\wwwroot\php\flix.php(14): unkno
On Fri, February 3, 2006 2:15 pm, Paul Goepfert wrote:
> I have a MS Acess Database that goes along with my web page. I want
> to transfer the data to a MySQL database since there are php
> functions for the MySQL database. I do not have a MySQL database
> running on the system that I am devel
> I have a MS Acess Database that goes along with my web page. I want
> to transfer the data to a MySQL database since there are php
> functions for the MySQL database. I do not have a MySQL database
> running on the system that I am developing the web page. However there
> is a MySQL database
I have a MS Acess Database that goes along with my web page. I want
to transfer the data to a MySQL database since there are php
functions for the MySQL database. I do not have a MySQL database
running on the system that I am developing the web page. However there
is a MySQL database on the we
Hi
I am getting error like that ..
Fatal error: Uncaught exception 'com_exception' with message 'Error
[0x80020003] Member not found. ' in c:\Inetpub\wwwroot\php\flix.php:14 Stack
trace: #0 c:\Inetpub\wwwroot\php\flix.php(14): unknown() #1 {main} thrown in
c:\Inetpub\wwwroot\php\flix.php on line
Change:
blue
to:
blue//You don't need the value="blue" in this case
Mike
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Brian Dunning wrote:
I'm moving all my hosting to Rackspace, which means I'll need to buy
all my own SSL certs. Does anyone have a favorite (cheap) source? I've
found LiteSSL at $14.95/per. Thanks...
We've used FreeSSL (now RapidSSL) for two years now, and haven't had any
complaints. Sin
Call the image rendering from another page and then let that page continue:
caller.php:
if ( $is_logged_in )
{
echo "";
if ( $get_name != "" )
echo "$get_name";
}
showimage.php:
Gerry
On 2/3/06, tedd <[EMAIL PROTECTED]> wrote:
> Hi:
>
> This is probably an obvious question, but after you crea
On 2/3/06, Keith Proctor <[EMAIL PROTECTED]> wrote:
I'd like to convert a string such as 'x5' to the number 5.
At 09:10 AM 2/3/2006, Rory Browne wrote:
preg_replace("/[^0-9]/", "", $x)
I would expect intval to work as well, but aparently not.
Rory, the RegExp you suggest will strip decima
On 3-Feb-06, at 12:25 PM, John Meyer wrote:
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Verdon Vaillancourt wrote:
Hi :)
I am using the following function (that I found in the user comments
on
php.net manual) for trimming the number of words accepted via a form
field
// Truncation is by
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Verdon Vaillancourt wrote:
> Hi :)
>
> I am using the following function (that I found in the user comments on
> php.net manual) for trimming the number of words accepted via a form field
>
> // Truncation is by word limit, not character limit. So if
This is a no-brainer, really. From a security standpoint alone, PHP 5 is
superior, but through in the OOP and there's no question. There are books
written on the subject - do an amazon search. And don't forget eric's advice.
mark
>>> Paul Novitski <[EMAIL PROTECTED]> 02-Feb-06 19:36 PM >>>
On 2/3/06, Keith Proctor <[EMAIL PROTECTED]> wrote:
> I need to add two numbers together, unfortunately one of them is a
> string that starts with a character. I'd like to convert a string
> such as 'x5' to the number 5. Don't care about it's final type as
> that isn't the hard part. :) I can't
Jim Moseby wrote:
Well said. If you're going to buy a $15 Cert from billy-joe-bob's CA and
carwash, you might as well sign your own cert. Thats free...
That might work in an intranet setting, but in an internet setting, you will
get the security warnings. :)
Only once per user/browser th
Hi :)
I am using the following function (that I found in the user comments on
php.net manual) for trimming the number of words accepted via a form
field
// Truncation is by word limit, not character limit. So if you limit
// to 255, then it will cut off a text item to 255 words, not 255
char
> Problem is when you have cheap ssl certs they might pop up in browser on
> visit, when they are not in the browser cert list though.
>
> I just know verisign, and truesign. but kinda expensive
> --
> Smileys rule (cX.x)C --o(^_^o)
> Dance for me! ^(^_^)o (o^_^)o o(^_^)^ o(^_^o)
I use GoDaddy pe
Hi,
The php_flag is also ignored for those 2 options. I can't go either way,
default on and turn off in a virtual host or default off and turn on.
try using php_flag, php_admin_flag as some restrictions on which files
it can be used in.
David
PHP wrote:
Hi,
I have php5 and apache2.2.
In
>
> Jim Moseby wrote:
> > Well said. If you're going to buy a $15 Cert from
> billy-joe-bob's CA and
> > carwash, you might as well sign your own cert. Thats free...
> >
>
> That might work in an intranet setting, but in an internet
> setting, you
> will get the security warnings. :)
>
Y
Hi:
This is probably an obvious question, but after you create an image,
how can you include another php script?
For example, if my code ends like so:
header("Content-type: image/png"); // Set display mode as PNG
imagepng($im); // Display image
imagedestroy($im); // Delete image from memory
Jim Moseby wrote:
Well said. If you're going to buy a $15 Cert from billy-joe-bob's CA and
carwash, you might as well sign your own cert. Thats free...
That might work in an intranet setting, but in an internet setting, you
will get the security warnings. :)
--
PHP General Mailing List (
Brian Dunning wrote:
I'm moving all my hosting to Rackspace, which means I'll need to buy
all my own SSL certs. Does anyone have a favorite (cheap) source?
I've found LiteSSL at $14.95/per. Thanks...
I wouldn't consider cost of certificates, but rather, the reputation of
the certification auth
Brian Dunning wrote:
I'm moving all my hosting to Rackspace, which means I'll need to buy
all my own SSL certs. Does anyone have a favorite (cheap) source? I've
found LiteSSL at $14.95/per. Thanks...
Problem is when you have cheap ssl certs they might pop up in browser on
visit, when they a
I'm moving all my hosting to Rackspace, which means I'll need to buy
all my own SSL certs. Does anyone have a favorite (cheap) source?
I've found LiteSSL at $14.95/per. Thanks...
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Actually we'r talking about diffrent things... What I wanted to
highlight is that results that should be normally seen as 0 or false for
logic comparations when using bc functions are not processed as 0 or
false actually and you should take care when using constructs like
if( $var )
{
..
Er - yes.
If you do conversion type you are correct. but in the example I showed I
didn't...
If you run the code bellow you will see...
bcscale( 10 );
$a = 14.5;
$b = -14.5;
$c = bcadd( $a, $b );
if( $c )
{
echo "true: c = ".$c."";
} else
{
echo "false: c = ".$c."";
}
var_dump((bool) "
On 03 February 2006 13:14, Andrei wrote:
> Welcome,
> Please note that using bc function variables will be of type string.
> So a code working with numeric values like:
>
> $a = 1;
> if( $a )
> {
> ...
> }
>
> it's ok but with bc functions:
>
> $a = 14.5;
> $b = -14.5;
> $c = bcadd( $a, $b
Brad Kowalczyk wrote:
Grae Wolfe - PHP wrote:
Hey there... I am setting up a new test server for one of my clients
to use, and I am curious if there is a reason to go with php4.xx over
php5.xx, or the other way around. I would think that I would want to
go with the newest one, but my client
>
> I'm wondering if you can outline, or direct me to a resource that
> explicitly notes the benefits of php5 over php4.
>
The main benefit I see to PHP5 over PHP4 (and one that may not be covered in
the "migrating" document at php.net) is that PHP4 is going away, and that
migrating from PHP4
Welcome,
Please note that using bc function variables will be of type string. So
a code working with numeric values like:
$a = 1;
if( $a )
{
...
}
it's ok but with bc functions:
$a = 14.5;
$b = -14.5;
$c = bcadd( $a, $b );
if( $c )
{
...
}
will not work as expected ( if( "0" ) is inte
Barry wrote:
Andrei wrote:
When working with floats with php/mysql I had problems too... When
summing amounts I had errors so my solution was using decimal (20, 10)
type into mysql for storing amounts and when using sums in php I used
bc functions. This way u get exact calculations (depen
Albert wrote:
Oli Howson wrote:
I'm interested in the possibility of connecting a computer running A
PHP server to a till drawer and have the server able to open the
drawer. Anyone know how this would work?
That all depends on how your till drawer opens.
The easiest would be to write a co
Andrei wrote:
When working with floats with php/mysql I had problems too... When
summing amounts I had errors so my solution was using decimal (20, 10)
type into mysql for storing amounts and when using sums in php I used bc
functions. This way u get exact calculations (depending on bcscale
Oli Howson wrote:
> I'm interested in the possibility of connecting a computer running A
> PHP server to a till drawer and have the server able to open the
> drawer. Anyone know how this would work?
That all depends on how your till drawer opens.
The easiest would be to write a command line uti
I'm interested in the possibility of connecting a computer running A
PHP server to a till drawer and have the server able to open the
drawer. Anyone know how this would work?
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
When working with floats with php/mysql I had problems too... When
summing amounts I had errors so my solution was using decimal (20, 10)
type into mysql for storing amounts and when using sums in php I used bc
functions. This way u get exact calculations (depending on bcscale()
parameter.
Hi List ^_^
PHP 4.2.2
Redhat 7.3
Mysql 3.23.54
Ok here is the problem:
I try to summary float values from my database (mysql) in PHP.
code:
$sql = "SELECT * FROM somwehere WHERE 1";
$result = mysql_query($sql);
while ($assoc = mysql_fetch_assoc($result))
{
//adding values
$sum = $sum
On Mon, January 30, 2006 11:34 am, [EMAIL PROTECTED] wrote:
> The thing I'm having trouble nailing down is one that might let me
> host multiple domains under a single hosting account and share
> bandwidth and HD space.
Check out http://mediatemple.com
They offer what they call alternate dom
73 matches
Mail list logo