Re: [PHP] Help Sending Mail

2007-12-11 Thread Jim Lucas
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

Re: [PHP] Command-line PHP script CPU usage goes sky-high, stays there--why?

2007-12-11 Thread Jim Lucas
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

Re: [PHP] LoadXML trouble

2007-12-11 Thread Dani Castaños
If i use your script like this: $xml = '?xml version=1.0? response ticketID1197027955_8310/ticketID statusOK/status errCode200/errCode errMsg/errMsg /response'; $obj = new DOMDocument(); $obj-loadXML( $xml ); echo print_r( $obj, true ); echo $obj-saveXML() . PHP_EOL; The first statement

Re: [PHP] Generating Random Numbers with Normal Distribution

2007-12-11 Thread Robin Vickery
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 13.7 billion

Re: [PHP] Mysqli support - test or complain? [SOLVED]

2007-12-11 Thread Richard Heyes
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,

Re: [PHP] Mysqli support - test or complain? [SOLVED]

2007-12-11 Thread Stut
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.

Re: [PHP] Mysqli support - test or complain? [SOLVED]

2007-12-11 Thread Jochem Maas
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 (for example)

Re: [PHP] Mysqli support - test or complain? [SOLVED]

2007-12-11 Thread Per Jessen
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:

Re: [PHP] Help Sending Mail

2007-12-11 Thread Nathan Rixham
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

Re: [PHP] Command-line PHP script CPU usage goes sky-high, stays there--why?

2007-12-11 Thread Nathan Rixham
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 =

Re: [PHP] Command-line PHP script CPU usage goes sky-high, stays there--why?

2007-12-11 Thread Jochem Maas
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 keep

Re: [PHP] Mysqli support - test or complain? [SOLVED]

2007-12-11 Thread Richard Heyes
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.

Re: [PHP] Command-line PHP script CPU usage goes sky-high, stays there--why?

2007-12-11 Thread Per Jessen
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 request

Re: [PHP] Command-line PHP script CPU usage goes sky-high, stays there--why?

2007-12-11 Thread Jochem Maas
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 for stateless

Re: [PHP] LoadXML trouble

2007-12-11 Thread Nathan Nobbe
On Dec 11, 2007 3:52 AM, Dani Castaños [EMAIL PROTECTED] wrote: If i use your script like this: $xml = '?xml version=1.0? response ticketID1197027955_8310/ticketID statusOK/status errCode200/errCode errMsg/errMsg /response'; $obj = new DOMDocument(); $obj-loadXML( $xml ); echo

Re: [PHP] Command-line PHP script CPU usage goes sky-high, stays there--why?

2007-12-11 Thread Per Jessen
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 can't be

[PHP] A SESSION Problem

2007-12-11 Thread tedd
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] ?php session_start();

Re: [PHP] A SESSION Problem

2007-12-11 Thread Jochem Maas
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

RE: [PHP] Generating Random Numbers with Normal Distribution

2007-12-11 Thread Jay Blanchard
[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

Re: [PHP] A SESSION Problem

2007-12-11 Thread Daniel Brown
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 fixes?

[PHP] tidy memory corruption problem

2007-12-11 Thread Eric Wood
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...

Re: [PHP] Mysqli support - test or complain? [SOLVED]

2007-12-11 Thread Stut
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

[PHP] A SESSION Problem

2007-12-11 Thread Cesar D. Rodas
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 ideas or

Re: [PHP] Mysqli support - test or complain? [SOLVED]

2007-12-11 Thread Robert Cummings
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 never a good

Re: [PHP] LoadXML trouble

2007-12-11 Thread Dani Castaños
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...

Re: [PHP] LoadXML trouble

2007-12-11 Thread Dani Castaños
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 ?xml version=\1.0\ and so on... These backslashes make the loadXML not load data properly... I've put an str_replace and the problem has

Re: [PHP] A SESSION Problem

2007-12-11 Thread GoWtHaM NaRiSiPaLli
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

Re: [PHP] Mysqli support - test or complain? [SOLVED]

2007-12-11 Thread Richard Heyes
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

Re: [PHP] Mysqli support - test or complain? [SOLVED]

2007-12-11 Thread Richard Heyes
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

Re: [PHP] Mysqli support - test or complain? [SOLVED]

2007-12-11 Thread Robert Cummings
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 is true,

Re: [PHP] Command-line PHP script CPU usage goes sky-high, stays there--why?

2007-12-11 Thread René Fournier
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

Re: [PHP] tidy memory corruption problem

2007-12-11 Thread Richard Lynch
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

Re: [PHP] A SESSION Problem

2007-12-11 Thread Richard Lynch
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? Both

Re: [PHP] Mysqli support - test or complain? [SOLVED]

2007-12-11 Thread Richard Heyes
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

Re: [PHP] Mysqli support - test or complain? [SOLVED]

2007-12-11 Thread Stut
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

Re: [PHP] Help Sending Mail

2007-12-11 Thread Richard Lynch
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

Re: [PHP] Mysqli support - test or complain? [SOLVED]

2007-12-11 Thread Richard Heyes
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

Re: [PHP] Help Sending Mail

2007-12-11 Thread Richard Lynch
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

Re: [PHP] shared memory access - shmod_open

2007-12-11 Thread Rolf_
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,

Re: [PHP] Mysqli support - test or complain? [SOLVED]

2007-12-11 Thread Per Jessen
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 different

[PHP] sftp connecting to remove server via php

2007-12-11 Thread blackwater dev
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!

RE: [PHP] sftp connecting to remove server via php

2007-12-11 Thread Jay Blanchard
[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?

RE: [PHP] sftp connecting to remove server via php

2007-12-11 Thread Jay Blanchard
[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:

Re: [PHP] sftp connecting to remove server via php

2007-12-11 Thread blackwater dev
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 the mail

Re: [PHP] Mysqli support - test or complain? [SOLVED]

2007-12-11 Thread Robert Cummings
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 name.

Re: [PHP] Mysqli support - test or complain? [SOLVED]

2007-12-11 Thread Robert Cummings
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? Having to

Re: [PHP] Help Sending Mail

2007-12-11 Thread Andrew Ballard
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 the _CRLF

Re: [PHP] Command-line PHP script CPU usage goes sky-high, stays there--why?

2007-12-11 Thread Per Jessen
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 unsure

Re: [PHP] Help Sending Mail

2007-12-11 Thread Jochem Maas
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 that

[PHP] Bug in stream_socket_server()?

2007-12-11 Thread René Fournier
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

Re: [PHP] Mysqli support - test or complain? [SOLVED]

2007-12-11 Thread Robert Cummings
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 code that

Re: [PHP] Command-line PHP script CPU usage goes sky-high, stays there--why?

2007-12-11 Thread Jochem Maas
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 and/or

Re: [PHP] Mysqli support - test or complain? [SOLVED]

2007-12-11 Thread Nathan Nobbe
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 mandate

Re: [PHP] Mysqli support - test or complain? [SOLVED]

2007-12-11 Thread Per Jessen
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, using

Re: [PHP] LoadXML trouble

2007-12-11 Thread Jochem Maas
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 ?xml version=\1.0\ and so on... These backslashes make the loadXML not load data properly... I've put an

[PHP] Re: running cmd via php

2007-12-11 Thread Dan
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

[PHP] Re: Bug in stream_socket_server()?

2007-12-11 Thread Nathan Rixham
Would this class as a test? ?php $socket = stream_socket_server(tcp://0.0.0.0:8000, $errno, $errstr); if (!$socket) { echo $errstr ($errno)br /\n; } else { while (is_resource($conn = stream_socket_accept($socket, 30))) { while (is_resource($conn) $pkt = stream_get_line($conn, 100, \n)) {

Re: [PHP] Help Sending Mail

2007-12-11 Thread Daniel Brown
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 the

Re: [PHP] Re: running cmd via php

2007-12-11 Thread Daniel Brown
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

[PHP] Re: running cmd via php

2007-12-11 Thread Dan
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

[PHP] Pushing the limits of stream_socket_server() and stream_select()

2007-12-11 Thread René Fournier
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

Re: [PHP] Re: running cmd via php

2007-12-11 Thread Chris
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

Re: [PHP] Pushing the limits of stream_socket_server() and stream_select()

2007-12-11 Thread René Fournier
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

[PHP] Re: Mac OS X Server limits... was [PHP] Pushing the limits of stream_socket_server() and stream_select()

2007-12-11 Thread René Fournier
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

Re: [PHP] Re: running cmd via php

2007-12-11 Thread Jochem Maas
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 place.

Re: [PHP] Re: running cmd via php

2007-12-11 Thread Chris
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

Re: [PHP] Re: running cmd via php

2007-12-11 Thread Jochem Maas
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 the function name or

Re: [PHP] Re: running cmd via php

2007-12-11 Thread Stephen Johnson
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 extreme programmer :-P

Re: [PHP] Re: running cmd via php

2007-12-11 Thread Chris
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

Re: [PHP] Mysqli support - test or complain? [SOLVED]

2007-12-11 Thread Larry Garfield
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

[PHP] How to install ISAPI version on Vista IIS 6

2007-12-11 Thread SED
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 script

RE: [PHP] How to install ISAPI version on Vista IIS 6

2007-12-11 Thread Andrés Robinet
-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 trying to

RE: [PHP] How to install ISAPI version on Vista IIS 6

2007-12-11 Thread SED
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,

RE: [PHP] How to install ISAPI version on Vista IIS 6

2007-12-11 Thread Andrés Robinet
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=10344435highlight=php+5.2. 3 It seems that the default installation of windows IIS 7.0 for

Re: [PHP] running cmd via php

2007-12-11 Thread Tom Rogers
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

[PHP] Regular expressions

2007-12-11 Thread Liz Kim
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

Re: [PHP] Regular expressions

2007-12-11 Thread Robert Cummings
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