On Tue, 2007-12-11 at 22:33 -0800, Liz Kim wrote:
> I am trying to do a password match with php..
>
> It needs to be at least 6 characters, contains 2 alphabets and at least 1
> number or a special character...
>
> if
> (!preg_match("/^.*(?=.{6,})((?=.*\d)|(?=.*[,[EMAIL
> PROTECTED]"\/'+\*\?\.\[
I am trying to do a password match with php..
It needs to be at least 6 characters, contains 2 alphabets and at least 1
number or a special character...
if
(!preg_match("/^.*(?=.{6,})((?=.*\d)|(?=.*[,[EMAIL
PROTECTED]"\/'+\*\?\.\[\]\^$\(\){}\|\\&:;'<>~`#%_-]))([a-zA-Z]{2,}).*$/",
$pw1)) {error m
Hi,
Thursday, November 29, 2007, 2:17:15 AM, you wrote:
a> Hello!
a> I'm trying a lot to find how I can run the cmd (command line of windows) and
a> send to the cmd commands?
a> Thanks.
Here is one way to do it, its from a function to check php syntax.
it opens up php then sends it the text to
I think I found a solution for you... or at least a step closer. One
correction though, you are likely running IIS 7.0 and not IIS 6.0, right?
Check this out
http://www.phpbuilder.com/board/showthread.php?t=10344435&highlight=php+5.2.
3 It seems that the default installation of windows IIS 7.0 for
Hi Rob,
I'm not offended, I'm pistoff with Microsoft. Paying so much for VISTA and
so many troubles and so litle support... I have other computers running
various others systems but I need to solve this case.
Your comment, only makes me smile, over how stupid I was to pay for Vista.
Regards,
SE
> -Original Message-
> From: SED [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, December 12, 2007 12:25 AM
> To: php-general@lists.php.net
> Subject: [PHP] How to install ISAPI version on Vista IIS 6
>
> Hello,
>
>
>
> I'm running Vista Ultimate on my computer with IIS 6.0.
>
>
>
> I'm
Hello,
I'm running Vista Ultimate on my computer with IIS 6.0.
I'm trying to manually install PHP 5 (ISAPI) on IIS but in the "Handler
mappings" I get this message:
"One or more of the modules specified for this handler does not exist in the
modules list. If you are trying to add a scri
On Tuesday 11 December 2007, Per Jessen wrote:
> Stut wrote:
> > I couldn't care less what your domain name is, you're still advocating
> > a poor choice IMHO.
>
> I have been trying hard not to join this thread, but ... apart from the
> principle, what's _really_ so poor about it? Having to write
OK then how about a STFW answer...
Google : php exexcute windows commands
I'm not sure what that particular phrase would produce ;) (surprisingly
- a few answers :P).
--
Postgresql & php tutorials
http://www.designmagick.com/
--
PHP General Mailing List (http://www.php.net/)
To unsubscrib
On 12/11/07 6:02 PM, "Chris" <[EMAIL PROTECTED]> wrote:
> Jochem Maas wrote:
>> Chris wrote:
>>> Dan wrote:
First off I must ask, why do you need to run windows commands when you
don't even know how to use a PHP function.
>>> That's a pretty extreme response -
>>
>> maybe he's an extr
Chris wrote:
> Jochem Maas wrote:
>> Chris wrote:
>>> Dan wrote:
First off I must ask, why do you need to run windows commands when you
don't even know how to use a PHP function.
>>> That's a pretty extreme response -
>>
>> maybe he's an extreme programmer :-P
>>
>>> maybe the OP forgot
Jochem Maas wrote:
Chris wrote:
Dan wrote:
First off I must ask, why do you need to run windows commands when you
don't even know how to use a PHP function.
That's a pretty extreme response -
maybe he's an extreme programmer :-P
maybe the OP forgot the function name
or didn't know it in th
Chris wrote:
> Dan wrote:
>> First off I must ask, why do you need to run windows commands when you
>> don't even know how to use a PHP function.
>
> That's a pretty extreme response -
maybe he's an extreme programmer :-P
> maybe the OP forgot the function name
> or didn't know it in the first
OK, having done more digging, this bizarre 251-255 connections per
socket limit seems to be an OS X thing. (Linux people, any comments?)
At least that's I've read: http://www.macgeekery.com/tips/
configuration/mac_os_x_network_tuning_guide_revisited#comment-1433
So... Do any Mac OS X gurus
On 11-Dec-07, at 4:32 PM, René Fournier wrote:
Just curious what people found the limits to be with
stream_socket_server(), in terms of maximum concurrent connections,
packet sizes, etc. I'm am presently stress-testing a multi-client
socket server and am finding I can sometimes break it wit
Dan wrote:
First off I must ask, why do you need to run windows commands when you
don't even know how to use a PHP function.
That's a pretty extreme response - maybe the OP forgot the function name
or didn't know it in the first place.
There is a lot of stuff in php and there's no way anyone
Just curious what people found the limits to be with
stream_socket_server(), in terms of maximum concurrent connections,
packet sizes, etc. I'm am presently stress-testing a multi-client
socket server and am finding I can sometimes break it with as few as
100 concurrent connections, and alw
First off I must ask, why do you need to run windows commands when you don't
even know how to use a PHP function. First thing taht came to my mind was
some kind thought, woah, I'm gona learn to hack I'm gona be a leet haxor.
In the case I'm wrong, sorry, and also you might want to know that exe
On Dec 11, 2007 5:10 PM, Dan <[EMAIL PROTECTED]> wrote:
> First off I must ask, why do you need to run windows commands when you don't
> even know how to use a PHP function. First thing taht came to my mind was
> some kind thought, woah, I'm gona learn to hack I'm gona be a leet haxor.
That's
On Dec 11, 2007 12:20 PM, Richard Lynch <[EMAIL PROTECTED]> wrote:
> I dunno if RFC822 specifies which ending but I *do* know that this
> breaks the current PEAR mimePart.php code.
RFC 822 has been obsolete since RFC 2822 was introduced in 2001.
We (that is, myself and other members of th
Would this class as a test?
\n";
} else {
while (is_resource($conn = stream_socket_accept($socket, 30))) {
while (is_resource($conn) && $pkt = stream_get_line($conn, 100, "\n")) {
fwrite($conn, '');
sleep(10);
echo $pkt;
}
}
}
?>
I then sent 2*384kb loads per second through a terminal to
First off I must ask, why do you need to run windows commands when you don't
even know how to use a PHP function. First thing taht came to my mind was
some kind thought, woah, I'm gona learn to hack I'm gona be a leet haxor.
In the case I'm wrong, sorry, and also you might want to know that exe
Dani Castaños wrote:
> Hi Nathan!
>
> Thank you for all your help!
> Problem has been fixed...
>
> The thing is, when request is sent, there is a little difference in what
> i get... I get and so on...
> These backslashes make the loadXML not load data properly... I've put an
> str_replace and t
On Dec 11, 2007 4:11 PM, Per Jessen <[EMAIL PROTECTED]> wrote:
> I can't remember what sort of environment the OP was in, but if any sort
> of organised testing is done, the use of two different APIs will just
> about double the test-effort. Which is why I still think the best
> option is to mand
Per Jessen wrote:
> René Fournier wrote:
>
>> However, the number of socket clients connecting in the past 3-4
>> months has steadily increased, and this seems to have exposed (if not
>> created) a strange performance "issue" with PHP 5.2.4, MySQL 5.0.45
>> and/or Mac OS X Server 10.4.11. (I say "
On Tue, 2007-12-11 at 22:11 +0100, Per Jessen wrote:
> Robert Cummings wrote:
>
> > On Tue, 2007-12-11 at 18:14 +0100, Per Jessen wrote:
> >> I have been trying hard not to join this thread, but ... apart from
> >> the principle, what's _really_ so poor about it? Having to write
> >> application
"If you want a high speed socket server, use the low-level sockets
instead (socket_create/bind/listen). The stream_socket_server version
appears to have internal fixed 8k buffers that will overflow if you
don't keep up by reading.
This is a serious problem if you an application that reads t
heh Richard! long time no see, guess you had withdrawal symtoms or you
managed to bust out of whatever compound they were holding you in ;-) ...
Richard Lynch wrote:
> PS
>
> GMail will not accept \r\n between header lines, only \n
>
> I dunno if RFC822 specifies which ending but I *do* know tha
René Fournier wrote:
> However, the number of socket clients connecting in the past 3-4
> months has steadily increased, and this seems to have exposed (if not
> created) a strange performance "issue" with PHP 5.2.4, MySQL 5.0.45
> and/or Mac OS X Server 10.4.11. (I say "and/or" because I am unsur
Robert Cummings wrote:
> On Tue, 2007-12-11 at 18:14 +0100, Per Jessen wrote:
>> I have been trying hard not to join this thread, but ... apart from
>> the principle, what's _really_ so poor about it? Having to write
>> application code that needs to work with two different APIs is poor
>> enough
On Dec 11, 2007 12:20 PM, Richard Lynch <[EMAIL PROTECTED]> wrote:
> PS
>
> GMail will not accept \r\n between header lines, only \n
>
> I dunno if RFC822 specifies which ending but I *do* know that this
> breaks the current PEAR mimePart.php code.
>
> Editing the code to hack \r\n to just \n for t
On Tue, 2007-12-11 at 18:14 +0100, Per Jessen wrote:
> Stut wrote:
>
> > I couldn't care less what your domain name is, you're still advocating
> > a poor choice IMHO.
> >
>
> I have been trying hard not to join this thread, but ... apart from the
> principle, what's _really_ so poor about it?
On Tue, 2007-12-11 at 17:01 +, Richard Heyes wrote:
> >> Real life is rarely optimal.
> >
> > That's not a valid excuse for taking the sloppy pig route to
> > development. Sloppy pig's give conscientious developers a bad name. And
> > when they use PHP to create their slop, they give PHP a bad
Sorry, thanks for the info!
On Dec 11, 2007 3:26 PM, Jay Blanchard <[EMAIL PROTECTED]> wrote:
> [snip]
> Yes but will these handle sftp? I have a key on the other server so don't
> need a password.
> [/snip]
>
> http://us.php.net/manual/en/function.ftp-ssl-connect.php
>
> always reply to all so t
[snip]
Yes but will these handle sftp? I have a key on the other server so don't need
a password.
[/snip]
http://us.php.net/manual/en/function.ftp-ssl-connect.php
always reply to all so the mail gets back on the list
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http
[snip]
I have to write a script that will connect to a remove server using sftp
and
pull in specific files for processing. Currently I can get to the
server by
just using sftp [EMAIL PROTECTED] How can I open these files via php? Is
the
only way to use fopen with the PECL sftp, ssh2 modules?
[/s
I have to write a script that will connect to a remove server using sftp and
pull in specific files for processing. Currently I can get to the server by
just using sftp [EMAIL PROTECTED] How can I open these files via php? Is the
only way to use fopen with the PECL sftp, ssh2 modules?
Thanks!
I tried the php function chmod($sem, 0644) which works fine even if it
converts the octal number too, cf. xdebug trace file:
0.0037 50280 -> chmod('/tmp/1521387531.sem', 420)
...myScripts/test.php:11
>=> TRUE
0.0039 50280 -> shmop_open(2013277949,
PS
GMail will not accept \r\n between header lines, only \n
I dunno if RFC822 specifies which ending but I *do* know that this
breaks the current PEAR mimePart.php code.
Editing the code to hack \r\n to just \n for the _CRLF constant works
for gmail, but may break other mail clients if \r\n is t
I don't see a reason to compromise. It would take no longer to call
extension_loaded on each page request than it will to put the variable
in the session. You're right in saying that there's a balance to be
struck, but in this particular case I personally see a right way and a
wrong way and no
Stut wrote:
> I couldn't care less what your domain name is, you're still advocating
> a poor choice IMHO.
>
I have been trying hard not to join this thread, but ... apart from the
principle, what's _really_ so poor about it? Having to write
application code that needs to work with two differen
Until today, there was a very nifty MIME Message Lint tool to check
your email message here:
http://www.apps.ietf.org/msglint.html
The homepage is now the default Apache install page though, and that
URL is 404.
I'm posting it in hopes that somebody knows a good similar tool and/or
that it will c
Richard Heyes wrote:
Real life is rarely optimal.
That's not a valid excuse for taking the sloppy pig route to
development. Sloppy pig's give conscientious developers a bad name. And
when they use PHP to create their slop, they give PHP a bad name.
Well I err towards actually doing something
Real life is rarely optimal.
That's not a valid excuse for taking the sloppy pig route to
development. Sloppy pig's give conscientious developers a bad name. And
when they use PHP to create their slop, they give PHP a bad name.
Well I err towards actually doing something useful. Businesses can
On Tue, December 11, 2007 8:53 am, tedd wrote:
> Hi gang:
>
> I just had this happen and wonder what the fix is for it.
>
> I am sending session data from a script in a http to another script
> in https. However, sometimes the data gets through and sometimes it
> don't.
>
> Any ideas or fixes?
>
>
Check for similar bugs here:
http://bugs.php.net
You may find that you have to upgrade something...
Just guessing, really, but PHP 5.1.x should probably be upgraded to
5.2.x anyway.
On Tue, December 11, 2007 9:13 am, Eric Wood wrote:
> My first attempt at leaning the tidy suite of functions has
That makes sense, but I'm not sure I really want to do this, since
it's fairly important that Listener continue listening without
interruption.
I also don't think it's probably necessary, since from what I read,
I'm not really pushing the envelope in terms of real load. Right now,
I might
On Tue, 2007-12-11 at 16:31 +, Richard Heyes wrote:
> > Sre, sessions are for whatever you choose to put in them. That's
> > like saying bodies are for whatever a crazed murderer chooses to put in
> > them...
>
> No it's not.
Yes it is. Neither is a good argument.
> > the statement
Sre, sessions are for whatever you choose to put in them. That's
like saying bodies are for whatever a crazed murderer chooses to put in
them...
No it's not.
> the statement is true, but it's not optimal.
Real life is rarely optimal.
--
Richard Heyes
http://www.websupportsolutions.co.
So? It's there - use it.
So are cookies, would you stuff this into a cookie? No, because that's
not what cookies are there for.
Not because "it's not what cookies are for" - but because sessions are a
more efficient and easier to use storage medium.
You could potentially be pointlessly dup
Looks like the session Id is getting regenerated when it moves from http to
https. Check the cookie PHPSID cookie for your domain is same both the pages
and if not then you will have to carry forward the SID to every new page and
set SESSION_ID to that value and start the session.
Hope this works
Hi Nathan!
Thank you for all your help!
Problem has been fixed...
The thing is, when request is sent, there is a little difference in what
i get... I get and so on...
These backslashes make the loadXML not load data properly... I've put an
str_replace and the problem has been solved
Again..
that is expected behavior. some of the internal classes dont define
any member variables that the php language has access to. obviously
they are storing data internally, said variables just arent accessible as
member variables of the class thats being defined.
Ok! Thank you for this info...
On Tue, 2007-12-11 at 15:25 +, Stut wrote:
> Richard Heyes wrote:
> >> Because it's not user data, it's server data.
> >
> > So? It's there - use it.
>
> So are cookies, would you stuff this into a cookie? No, because that's
> not what cookies are there for.
>
> "Because it's there" is neve
Estrange problem.
On 11/12/2007, tedd <[EMAIL PROTECTED]> wrote:
>
> Hi gang:
>
> I just had this happen and wonder what the fix is for it.
>
> I am sending session data from a script in a http to another script
> in https. However, sometimes the data gets through and sometimes it
> don't.
>
> Any
Richard Heyes wrote:
Because it's not user data, it's server data.
So? It's there - use it.
So are cookies, would you stuff this into a cookie? No, because that's
not what cookies are there for.
"Because it's there" is never a good reason to do something.
That's entirely the wrong place
My first attempt at leaning the tidy suite of functions has ran into a major
snag
I get this:
*** glibc detected *** /usr/sbin/httpd: malloc(): memory corruption:
0x81946e30
whenever the tidy_parse_string() is called.
I'm running the latest apache/php/tidy that FC6 has to offer...
php-tidy-
On Dec 11, 2007 9:53 AM, tedd <[EMAIL PROTECTED]> wrote:
> Hi gang:
>
> I just had this happen and wonder what the fix is for it.
>
> I am sending session data from a script in a http to another script
> in https. However, sometimes the data gets through and sometimes it
> don't.
>
> Any ideas or f
are you looking at a cache problem - i.e. (pun intended ;-)) the second page is
a locally cached copy
and thereby not showing the data you would expect?
tedd wrote:
> Hi gang:
>
> I just had this happen and wonder what the fix is for it.
>
> I am sending session data from a script in a http to
Hi gang:
I just had this happen and wonder what the fix is for it.
I am sending session data from a script in a http to another script
in https. However, sometimes the data gets through and sometimes it
don't.
Any ideas or fixes?
Both scripts are listed below
[1]
https://example.com/a-
Jochem Maas wrote:
>> I'd be interested to see how he does the multi-threading in php.
>> Personally I'd always opt for C to write this type of thing, except
>> for perhaps the most simple cases.
>>
>
> any chance of an example from you too?
Sure -
http://jessen.ch/files/distripg_main.c
It c
[snip]
...stuff...
[/snip]
It is also wise to remember that order and randomness are relative,
making each less or more so dependent upon observation and observation
changes the observed.
Furthermore 'random numbers with normal distribution' implies that there
is certain order to the randomness s
On Dec 11, 2007 3:52 AM, Dani Castaños <[EMAIL PROTECTED]> wrote:
> If i use your script like this:
>
> $xml = '
>
> 1197027955_8310
> OK
> 200
>
> ';
>
> $obj = new DOMDocument();
> $obj->loadXML( $xml );
>
> echo print_r( $obj, true );
> echo $obj->saveXML() . PHP_EOL;
>
> The first statem
Per Jessen wrote:
> Jochem Maas wrote:
>
>> Nathan Rixham wrote:
>>> Key I find though is multithreading, listener thread with
>>> stream_socket_server, 2 or 3 stream_socket_accept threads and a pair
>>> of new thread spawned to handle each connection (one to read, one to
>>> write) (not needed fo
Jochem Maas wrote:
> Nathan Rixham wrote:
>>
>> Key I find though is multithreading, listener thread with
>> stream_socket_server, 2 or 3 stream_socket_accept threads and a pair
>> of new thread spawned to handle each connection (one to read, one to
>> write) (not needed for stateless http style r
hi Nathan,
any chance of a 'full blown' example for all the muppets who want to try and
grok this stuff? (bork bork, say I :-))
Nathan Rixham wrote:
> stream_socket_server simply listens, stream_socket_accept handles the
> connection, stream_set_write_buffer and stream_set_blocking help you
> kee
Because it's not user data, it's server data.
So? It's there - use it.
That's entirely the wrong place to
store something like which database API is installed.
Not really. You could even wrap a function called (for example)
Feature() around it.
Yeah, really. Sessions are for user data. I
stream_socket_server simply listens, stream_socket_accept handles the
connection, stream_set_write_buffer and stream_set_blocking help you
keep up, especially when combined with stream_get_line, no need to shile
forever when you can just:
while (is_resource($conn = stream_socket_accept($socket
If you want a source to very verify against, send yourself an email,
then view it's source; then change your class till it outputs the same
info, gauranteed winner every time.
Nathan
Jim Lucas wrote:
Robert Cummings wrote:
Yeah, he's all over the place with his line endings. Personally, I u
Stut wrote:
> However, I'd expect a stat on that
> file will be more expensive than calling extension_loaded.
Difficult to say, but a stat() is cheap, especially if the inode is
cached already.
/Per Jessen, Zürich
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://
Stut wrote:
> Richard Heyes wrote:
>>> You use a session variable for that?
>>
>> Why not?
>
> Because it's not user data, it's server data.
>
>>> That's entirely the wrong place to
>>> store something like which database API is installed.
>>
>> Not really. You could even wrap a function called (
Richard Heyes wrote:
You use a session variable for that?
Why not?
Because it's not user data, it's server data.
That's entirely the wrong place to
store something like which database API is installed.
Not really. You could even wrap a function called (for example)
Feature() around it.
You use a session variable for that?
Why not?
That's entirely the wrong place to
store something like which database API is installed.
Not really. You could even wrap a function called (for example)
Feature() around it.
> It should a class
variable or global configuration variable. Heck,
On 10/12/2007, Nathan Nobbe <[EMAIL PROTECTED]> wrote:
> On Dec 10, 2007 5:29 PM, Robert Cummings <[EMAIL PROTECTED]> wrote:
>
> > On Mon, 2007-12-10 at 14:22 -0600, Jay Blanchard wrote:
> > > [snip]
> > > Can you say for certain nature is truly random? Just because the seed
> > > may have occurred
If i use your script like this:
$xml = '
1197027955_8310
OK
200
';
$obj = new DOMDocument();
$obj->loadXML( $xml );
echo print_r( $obj, true );
echo $obj->saveXML() . PHP_EOL;
The first statement writes:
DOMDocument Object
(
)
The second:
1197027955_8310
OK
200
It's just the xm
M5 wrote:
Thanks Jim.
No problem.
The processing is pretty quick. I don't think that's a bottleneck. It
basically just inserts the data into MySQL, not much processing actually.
What is the likely hood that two connections would come in at the same
time, or at least within close enough
Robert Cummings wrote:
Yeah, he's all over the place with his line endings. Personally, I use
an array to track the headers and use implode in one shot before
sending.
Cheers,
Rob.
Same here
--
Jim Lucas
"Perseverance is not a long race;
it is many short races one after the oth
77 matches
Mail list logo