At 23:51 09/06/2002, you wrote:
I have a small problem in converting a plain text to html.
snip
$newstr = ereg_replace (\n, BR, $newstr);
try
$newstr = ereg_replace(\n\r|\n|\r, BR, $newstr);
notice it looks for all types of line feeds
-jacob
--
PHP General Mailing List
At 23:51 09/06/2002, you wrote:
I have a small problem in converting a plain text to html.
snip
$newstr = ereg_replace (\n, BR, $newstr);
try
$newstr = ereg_replace(\n\r|\n|\r, BR, $newstr);
notice it looks for all types of line feeds
-jacob
--
PHP General Mailing List
Everything I've read says that there is no way to display the progress of a
file upload (via a form) using PHP.
I'm currently working on a site which will regularly be accepting very
large uploads, anywhere from 10 to 250+ mb and I really need a way to
display the progress of the upload so
Well, for lack of a better solution (and mainly lack of time to invent one)
I decided to go with a simple indeterminate progress bar. I've already
found more uses for this than just uploading files and thought some of you
might have a use for it in your scripts which take a while to complete.
Well, for lack of a better solution (and mainly lack of time to invent one)
I decided to go with a simple indeterminate progress bar. I've already
found more uses for this than just uploading files and thought some of you
might have a use for it in your scripts which take a while to complete.
This appears to work
// Normal array
$a1 = Array(1, 2, 3, 4, 5, 6, 7, 8, 9, 10);
srand((float) microtime() * 1000);
$a_temp = array_rand($a1, sizeof($a1));
// Random array
while (list(, $value) = each($a_temp)) {
$a2[] = $a1[$value];
}
print_r($a2);
- jacob
At 22:22 09/10/2002,
I don't think its possible to make a normal link open the default email as
mailto: is a special trigger built into the browsers. The only way I can
think of would be using javascript in the page.. something like
body onLoad=document.location='mailto:[EMAIL PROTECTED]';
/body
- jacob
At
It looks to me like the database is interpreting your date
incorrectly. Try changing the format you use to insert, -mm-dd
- jacob
At 15:11 09/12/2002, Tommi Virtanen wrote:
Hi!
I have web-form, which has field (10 chars), there I enter date (format
dd.mm.). Then data saves to
Why can't you just reformat it before inserting it into the db?
$date = 31.12.2002;
$parts = split(\., $date);
echo $parts[2].-.$parts[1].-.$parts[0];
- jacob
At 16:13 09/12/2002, Tommi Virtanen wrote:
Well, insert format in wrong, but in Finland enter format is
With leap year adjustment...
strtotime(+1 year, timestamp);
will return a unix timestamp.
- Jacob
At 01:49 09/19/2002, Robert Cummings wrote:
Support @ Fourthrealm.com wrote:
Hi guys,
What is the easiest way to get the date of one year from today?
Accommodating for leap years is not
My first assumption would be yes they are domain specific, but it might be
possible to cross domains if both domains were run from the same web server
and you were to pass the session id between pages manually rather than it
being stored in a cookie..
What does everyone else think?
- Jacob
date = '1997-05-05';
/quote
- Jacob
At 02:28 09/19/2002, Support @ Fourthrealm.com wrote:
Reformatting before an inserting/updating is one option, but how would we
change the mySQL database to accept the other format?
Peter
At 04:18 PM 9/12/2002 +0800, Jacob Miller wrote:
Why can't you just
Move select/select outside the do-while loop:
print SELECT name=rapped;
$row = 0;
do
{
$myrow = pg_fetch_array($result,$row);
if ($myrow['rupload'] != ) {
print option{$myrow['rfname']}
{$myrow['rsname']}/option;
}
$row++;
} while ($row
I've had this same problem. It seems that the value of submit is only sent
if the button is clicked (netscape and internet explorer). Could it be
that you're using the enter key to submit the form?
The solution I used was to remove the value assignment to the submit button
and set it in a
14 matches
Mail list logo