Thanks to all who chipped in.
I'm going with John Asendorf's '$pages = ereg_replace ( "[^0-9cdilmvx,]" ,
"-" , $pages);' which works for me.
Tom wrote:
> But do you really want an "A" (etc.) to be considered a dash?
Yes, because it is not a valid pagerange character.
Cheers, and thanks for sav
Most usb flash drives are mounted as any other disk drive and you can use
PHP to read and write files the same way as you use a hard disk.
- Frank
> Dear ALL,
>
> I Wanna connect my usb device ( usb flash disk ), does
> everybody know about the php script to get data from that devic
I've got it working; what's your issue?
-Felipe Gasper
Quoth Dean L. Howen on 9/28/2004 10:14 PM...
Dear Friends,
I've tried to install PHP 5.0.1 on Windows Server 2003 with IIS 6.0, but I
can't make it work.
Please give me some helpfull details information.
--
Quidquid latine scriptum sit altum vi
Dear Friends,
I've tried to install PHP 5.0.1 on Windows Server 2003 with IIS 6.0, but I
can't make it work.
Please give me some helpfull details information.
--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Dear ALL,
I Wanna connect my usb device ( usb flash disk ), does
everybody know about the php script to get data from that device ?
Regards,
Susilo
On 29 Sep 2004 George Pitcher wrote:
> In short I'm looking to search for any character that is NOT one of the
> following:
>
> "0-9 cdilmvx ," and replace it with '-' [chr(45)] (I do an initial strip of
> spaces at the beginning of the process).
Try something like:
$newstring = preg_re
I don't bite, weah!
password: 55535
--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
So maybe explode by commas, then explode by "\D" to get ranges?
-Felipe Gasper
Quoth George Pitcher on 9/29/2004 10:52 AM...
John,
I think you've missed my point. I'm currently 'exploding' by ',' to give me
sub ranges and then 'exploding' the subtranges by '-' to get the actual
start and end, addin
John,
I think you've missed my point. I'm currently 'exploding' by ',' to give me
sub ranges and then 'exploding' the subtranges by '-' to get the actual
start and end, adding the subtotals up for the page count. The problem is
that I want to be able to replace the different types of '-' that can
Actually, what you need is split() by the sounds of it. Spliting the groups of pages
by ',' would give you an array of either single pages or ranges of pages. From there,
it is just a matter of mathematics to take the pieces of the new array and adding them
together.
-Original Message
On 29 Sep 2004 George Pitcher wrote:
> The problem is that I think that some of my users are pasting the range in,
> rather than re-typing (I don't really want to stop them from pasting) and I
> am sure that sometimes the '-' is coming over as something other than a
> conventional hyphen.
>
> Can
Hi,
I don't want to spend a lot of time leaning how to use this function but I
have a problem that I think it can solve.
I have a web form that allows the user to (amongst other things) submit a
pagerange to my database. Using '-' and ',' as separators, I am able to
calculate the number of pages
Hello Edin!
When using your php4ts.dll for PHP 4.3.9 I still get the dreaded warning
[Wed Sep 29 10:15:07 2004] [warn] Loaded DSO php/sapi/php4apache.dll uses
plain Apache 1.3 API, this module might crash under EAPI! (please recompile
it with -DEAPI)
Do you know how to get rid of it???
best reg
Hello Edin!
When using your php4ts.dll for PHP 4.3.9 I still get the dreaded warning
[Wed Sep 29 10:15:07 2004] [warn] Loaded DSO php/sapi/php4apache.dll uses
plain Apache 1.3 API, this module might crash under EAPI! (please recompile
it with -DEAPI)
Do you know how to get rid of it???
best reg
susilo wrote:
> How to input hidden type FORM tag in PHP, and the SELECT TAG form
> variabel option
>
Not quite sure what yo mean here but if you want to have a form input type
to be hidden thats HTML amd nothing to do with PHP.
George
--
PHP Windows Mailing List (http://www.php.net/)
To unsub
How to input hidden type FORM tag in PHP, and the SELECT TAG form
variabel option
Regards,
susilo
16 matches
Mail list logo