php-windows Digest 19 Jan 2002 19:06:55 -0000 Issue 960

Topics (messages 11521 through 11523):

Help with regex
        11521 by: Michael Reynolds

Re: Redirection Question.
        11522 by: Pac mon

Re: Is ISAPI stable ?
        11523 by: Alain Sayez

Administrivia:

To subscribe to the digest, e-mail:
        [EMAIL PROTECTED]

To unsubscribe from the digest, e-mail:
        [EMAIL PROTECTED]

To post to the list, e-mail:
        [EMAIL PROTECTED]


----------------------------------------------------------------------
--- Begin Message ---
I have something in php, which goes through a line of
text, replacing all occurences of %longip($a) with the
long2ip/ip2long of whatever's in the perentheses.  I
tried something similar with %ial($a,$b), to call
ial_search($a,$b) and replace the %ial() with the
result.  I have it so the longip can be stacked: 
  %longip(%longip(%longip($a)))
and it would call the proper function(s) 3 times.  I'm
trying to get it to do the same with %ial.  The %ial
takes a string as the first arg, and a number as the
second.  If the second is 0, it returns a number. 
What I have so far is:

while
(ereg("%ial\([^[:blank:]]{1,},[0-9]{1,}\)",$text,$temp))
{ $ialsearch =
explode(",",right(left($temp['0'],-1),-5)); $text =
str_replace($temp['0'],ial_search($ialsearch['0'],$ialsearch['1']),$text);
}

Any help will be greatly appreciated.

__________________________________________________
Do You Yahoo!?
Send FREE video emails in Yahoo! Mail!
http://promo.yahoo.com/videomail/
--- End Message ---
--- Begin Message ---
A lot of people have trouble with sending the Location header. A more 
effective means is sending this:

header("Refresh: 1;url=/path/to/myinfo.php");

I believe that's right. I haven't done it in awhile...

>
>Here is where the code is failing.
>
>if ($myrow = mysql_fetch_array($result)) {
>//if there is a row in the database then the user
>//must have submitted the username and matching password
>
>session_start();
>session_register($username);
>header ("Location: ./myinfo.php"); //THIS IS NOT WORKING!!!!!
>//exit;
>/* I tried with and without the exit.
>If I do without the exit nothing happens
>and the below is not shown on the screen.
>When I try it with the exit the below is
>shown and I'm still not redirected.
>*/
>//echo "<b><i>We have located you in the database!</b><p>";
>}
>else
>{echo "<b><i>No Records Found!</b><p>";}
>  //Show login again
>
>
>
>Any tips, ideas, or suggestions would be greatly appreciated.
>
>Thanks,
>Curt
>
>
>www.killerpigs.com
>www.scdservices.com
>www.angryland.com
>Get your Free E-mail at http://scdservices.com
>____________________________________________________________
>Get your own FREE Web and POP E-mail Service in 14 languages at 
>http://www.zzn.com.
>
>--
>PHP Windows Mailing List (http://www.php.net/)
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>To contact the list administrators, e-mail: [EMAIL PROTECTED]
>


_________________________________________________________________
Send and receive Hotmail on your mobile device: http://mobile.msn.com

--- End Message ---
--- Begin Message ---
I think there is no trouble with ISAPI Module.

I use it with PHP 4.1.0 since the launch of this version.

Alain
"Ertan Tike" <[EMAIL PROTECTED]> wrote in message
EFD455694497D21187A10004ACB81BE4041075C1@INTSERVER">news:EFD455694497D21187A10004ACB81BE4041075C1@INTSERVER...
> no, cause i have live some problems (random) with isapi mod. (memory
leaks,
> cpu times.. exceptions.. etc.)
> but i think this is problem of IIS.
> some times you have to use module version of php..
>
> -----Original Message-----
> From: Steen Rabol [mailto:[EMAIL PROTECTED]]
> Sent: Friday, January 18, 2002 3:21 PM
> To: [EMAIL PROTECTED]
> Subject: [PHP-WIN] Is ISAPI stable ?
>
>
> Hi
>
> According to the install.txt of php, the ISAPI version is not stable,
> but.... that statement have been there for about 1 year, so my question
is:
> Is ISAPI version considered stable ?
>
> Thanks in advance.
>
> Best
> Steen
>
>


--- End Message ---

Reply via email to