Re: [PHP-WIN] Line feeds and WRAP="soft" TEXTAREA element

2002-05-30 Thread Michael Reynolds
--- Michael Reynolds <[EMAIL PROTECTED]> wrote: > > --- Matt Babineau <[EMAIL PROTECTED]> wrote: > > Is there any way to detect linefeeds and replace them with for > > output in html? > > > > $data=explode("\n",$data); > foreach ($dat

Re: [PHP-WIN] Line feeds and WRAP="soft" TEXTAREA element

2002-05-30 Thread Michael Reynolds
--- Matt Babineau <[EMAIL PROTECTED]> wrote: > Is there any way to detect linefeeds and replace them with for > output in html? > $data=explode("\n",$data); foreach ($data as $line) { print($data."\n"); } $data=implode("\n",$data); __ Do You Y

[PHP-WIN] Bits

2002-05-21 Thread Michael Reynolds
Are there any functions or operators, which will modify bits in a variable? If so, which? For example, if I were to use C to set bit 4 on for variable bit_set, I would use 'bit_set |= 4'. __ Do You Yahoo!? LAUNCH - Your Yahoo! Music Experience http:

[PHP-WIN] php_mcrypt.dll

2002-05-17 Thread Michael Reynolds
I've attempted to compile the mcrypt module with libmcrypt 2.4.22 and 2.5.0, both failed. Anyone happen to have a copy of the dll which will work on Windows 2000? __ Do You Yahoo!? LAUNCH - Your Yahoo! Music Experience http://launch.yahoo.com --

[PHP-WIN] Something involving php, but not windows.

2002-04-14 Thread Michael Reynolds
I know this is the windows list, but for 1 question, I don't feel the need to subscribe to the other lists. Would anyone be able to tell me how to run a single php script as root, but apache still run as a non-wheel user? Trying to do this on FreeBSD 4.5-STABLE, but it isn't working for me. Nee

[PHP-WIN] Help with regex

2002-01-18 Thread Michael Reynolds
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

[PHP-WIN] Question about time functions

2002-01-04 Thread Michael Reynolds
Are there any functions which return the elapsed system uptime, in integer format, preferebly milliseconds or microseconds? Some people have suggested using the first key from the microtime() array, but that returns microseconds from Jan 1 '70, not microseconds since system start. __

[PHP-WIN] Some questions about php for windows

2001-12-26 Thread Michael Reynolds
I have a script running from the console, via php -q script.php, and wish to echo to display a status every so often, but that does not work anymore. I tried using print in place of echo, and even tried flush. Both to no avail. Would anyone have any ideas how to output to the console, using o

Re: [PHP-WIN] What variables does a tag submit?

2001-12-14 Thread Michael Reynolds
--- Cliff <[EMAIL PROTECTED]> wrote: > Hi, > > I would like to ask, what variables are submitted > from a form with say... > options 2 and 4 selected? > > > 1 > 2 > 3 > 4 > 5 > > I am not 100% certain, but I believe that it would set $what as an array, with $what[0] as '2', and $what[1] as '

[PHP-WIN] Problem with a COM object.

2001-12-14 Thread Michael Reynolds
I'm trying to open and use a COM connection, as follows: $com = new COM("WinampCOM.Application"); Seems this does not work in PHP, although it works in many other applications. The module, and its source, is available from: http://www.adcock8.freeserve.co.uk/winamp.htm Any assistance would be