On Wed, 29 May 2002, Ron Stagg wrote:
Is this even possible within the open realm of the browser? Have any of
you solved a similar problem? I welcome any ideas.
Your solution is pretty easy. Assign a php script that will actually
send the download. At this point, your PHP script can do
On Wed, 15 May 2002, Josh Edwards wrote:
$timespread =array(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0);
if ($time = = 21)
$timespread[22]=($timespread[22]+1);
echo $timespread[22] ;
It should be ==, not = =. Secondly, you don't need to quote the 21,
it's a number. You should use
For those with error_reporting set to E_ALL, this affects you.
After seeing this: Warning: No file uploaded in unknown on line 0,
probably the least useful error message I've ever seen, I did some
investigation.
The PHP developers seem to think that if you have a form upload on your
page,
On Fri, 10 May 2002, Glenn Sieb wrote:
Thanks for all the hints--here's what my boss and I eventually came
out with:
This could use a few tweaks. First off, putting mysql_num_rows in the
actual for loop executes it every iteration. Bad. Second, consider
giving your code some readability
On Wed, 7 Mar 2001, Todd Cary wrote:
I want to check the time for queries. I have
$starttime = getmicrotime();
$endtime = getmicrotime();
$delta = $endtime - $starttime;
There is no such function as "getmicrotime". You're probably trying to
use "microtime". Second of all, microtime
On Thu, 1 Mar 2001, Meir kriheli wrote:
I use both of the databases (Interbase 6.01 and PostgreSQL 7.1beta4).
PostgreSQL has more features comapared to Interbase (the procedureal language
is very robust and there are many datatyps to choose from. Also you can have
some kind of object
On Thu, 25 Jan 2001, Jacky@lilst wrote:
$sql1 = "insert into firsttable (firstname, lastname) values('Jack','Chan')";
$resultsql1 = mysql_query($sql1);
$sqlLastID = "select LAST_INSERT_ID() from firsttable";
$resultlast = mysql_query($sqlLastID);
$FirstLast = mysql_result($resultlast,0,0);
I'd like to stop using sybase entirely, but that's a discussion for
another day, here's the actual issue I'm having.
An old site we've had for a while stopped working today after we upgraded
to PHP 4.0.4PL1. We have a .shtml page doing a virtual include on two php
pages (banner rotations,
On Fri, 19 Jan 2001, Jacky@lilst wrote:
Can I just write a query to retrive UserID right after I have inserted
user detail into Usertable? and then assign into a variable and use
that value to insert into UserID field in another table?
like this:
$getID = "select userID from user";
On Thu, 18 Jan 2001, Christian Reiniger wrote:
On Thursday 18 January 2001 07:40, Nicholas Pappas wrote:
I was hoping someone could help me with this regular expression...
$pattern = "/\[b\](.*)\[\/b\]/Ui";
$message = preg_replace($pattern, "B\\1/B", $message);
The
This only applies to PHP 4.0.4
Back with PHP 4.0.2, I could do this:
?PHP
$string = "[[";
$string = preg_replace("/(\W)/", "1", $string);
?
$string would then contain "\[\[".
Now, if I use that same code, $string contains "\\1\\1\\1\\1".
I tried to compensate for this using PHP's new
11 matches
Mail list logo