Balaji,
I tried to implement the code you put in this email and I'm having some
problems. I am able to browse and choose a file from my system then click
upload. The php script doesn't get the value of $path.
The site is running PHP 4.2.1 on Windows NT 5.0. I am using Internet
Explorer
in this case
(\$) refers to perl regular expression syntax but does not take care of php
!
$new_string = preg_replace('/\$/', %, $test_string);
ub
At 10:58 29.06.02 -0400, Beverly Steiner wrote:
I've tried everything I can think of to change a dallar sign in a string to
something else or to split
, Beverly Steiner wrote:
Uli others,
Thanx for the suggestions. This works as stated but the data already
exists in this format from an old database and I'm trying to parse it into
logical fields. Originally the data in the field looked something like
1$General/ms1.zip#12$Another/xqy.zip#. I
Here's one way assign each line:
?php
$file_loc = D:\\web\\bev\\file.txt;
$whattoread = fopen($file_loc, r);
$country = fgets($whattoread, 4096);
$state = fgets($whattoread, 4096);
$city = fgets($whattoread, 4096);
$company = fgets($whattoread, 4096);
$division = fgets($whattoread, 4096);
I've tried everything I can think of to change a dallar sign in a string to
something else or to split the string on the $ but I can't the the
information that comes after the $.
Typical string contains: 1.2$General/ms1.zip
when I try:
$new_string = preg_replace(/\$/, %, $test_string);
$ char in string
On Saturday 29 June 2002 22:58, Beverly Steiner wrote:
I've tried everything I can think of to change a dallar sign in a string
to
something else or to split the string on the $ but I can't the the
information that comes after the $.
Typical string contains: 1.2$General/ms1.zip
John,
Try using the number_format function.
Bev
-Original Message-
From: John Wulff [mailto:[EMAIL PROTECTED]]
Sent: Saturday, June 29, 2002 3:10 PM
To: [EMAIL PROTECTED]
Subject: [PHP] Limiting number of decimal places reported
How do I limit the number of decimal places returned in
7 matches
Mail list logo