Does that actually work? I'm using Mozilla, and it didn't work for me? :)
Paul
Jim Winstead wrote:
>Alan McFarlane <[EMAIL PROTECTED]> wrote:
>
>>header("location: index.php; target: _top");
>>
>
>header("Location: index.php");
>header("Window-target: _top");
>
>jim
>
--
PHP General Maili
Hah,
I found the problem. It's because vmstat when called always,
initially has the cpu idle at 99. This explains it. So, how would I go
abouts returning used cpu time on a system?
Thanks,
Paul
Paul A. Procacci wrote:
> Hey all,
> I'm trying not to cache a p
Hey all,
I'm trying not to cache a page. I have the following code:
$return = split(" ", exec("vmstat"));
$cpu_top = 100;
$return = $cpu_top - $return[count($return) -1];
which returns the amount of idle cpu time. The problem is this, every
time the page is loaded
It's easiest to do this using apache, and not php. It's called
mod_auth_pwcheck. You can find information from
http://www.chel.com.ru/~anton/projects/mod_auth_pwcheck/.; Hope this helps.
Paul
Zenith wrote:
>I know that, I can use HTTP, or just normal HTML to prompt for user id
>and passwor
Hey all,
I'm been programming in php for a while, but I'm stumpt with this
one. You know the funny thing? It's probably really simple. Anyway
here it is. Assume I have this query string:
ticket_id=3&change_name=status&change_value=3&ticket_id=3&2=&1=&
And all I want is 2=&1=&. Well, th
He meant push
Nick Wilson wrote:
> -BEGIN PGP SIGNED MESSAGE-
> Hash: SHA1
>
> * and then Tauntz blurted
> > If I have n variables:
> > $nr1 = "some text";
> > $nr2 = "some other text"
> > $nr3
> >
> > and I want to print the text "randomly" (like if I enter the page.. it di
Try
notice the "b" in the fopen, it stand for binary.
Paul
Michael Agbaglo wrote:
> Hi !
>
> I've some trouble w/ the following peace of code... Althoug the file
> doesn't contain zeros at the beginning the output is
> a= 0 b=0
>
> Is there a problem w/ fread ? (php 4.0.6, RedHat 7.2)
>
> $f
Try inserting a "\n" at the end of each string you write. This is a new-
line character.
Paul
Mårten andersson wrote:
> Hello folks
>
> I want to write to a textfile, but I want a row for each string I write
> to the file.
> As it is now when I write to the file it just starts writing where t
How are you executing top? Sounds like you need to use the -d option for
top. Example:
$exec - exec("top -d1");
This way, top won't, run and run and run, and run, and run, etc, etc, etc.
Try that
Paul
"Thomas E. Ruth" wrote:
> Hello,
>
> I'm using PHP 4.0.4pl1 with Apache 1.3.14.
>
> I hav
Not usre if anyone answered your question yet, but, first off, I'm not
positive. I would try
mysql -u root -p !database_name! < !filename!
ignore the (!) characters. :)
paul
Don wrote:
>
> Hi,
>
> I have a cron script that issues a:
>
> mysqldump --opt -p"password" myfile_db
I have just recently wrote a php script that strips email address's off
of websites, and will continually follow links until a certain depth.
You can easily modify the script to "mail" or log all entries found.
The script also discards duplicates found. Sounds Interesting? Let me
know. The on
The fgets length is like this: It's the number of bytes read from a
file OR up to a new line character. Which ever comes first. It's as
simple as that.
Try this:
";
$i++;
}
}
fclose($fp);
?>
That's what gets displayed to this user and this is how we would rewrite
the file:
I hope t
use javascript to check the histroy. If the document.history points to
the file your at then redirect? :)
Cn Yeong wrote:
>
> How do I stop a previous page being repeated when the
> user hits their back button on the browser?
>
> Is PHP can do it?
>
>
Well, If I'm right. The total number of posible combinations in the NJ
state lottery, assuming there are, say, 56 numbers is
var total = 56;
total*(total-1)*(total-2)*(total-3)*(total-4)*(total-5) == 23377273920:1
Now that assuming one number was pulled from the pot and the same number
didn't
I agree with Chris. The Exchange Project has been one of my personal
favorites as well. www.theexchangeproject.org :)
Duane Douglas wrote:
>
> hi gang!
>
> i'm looking for a php/mysql ecommerce solution. i want something that is
> ready made and fully customizable. i'm looking at phpShop:
command line parameters. When
> called via the GET method, this will contain the query string.
>
> argc
>
> Contains the number of command line parameters passed to the script (if run
> on the command line).
>
> try'em
>
> "Paul A. Procacci" <[
Hey all,
I tried passing an argument to a php script that had a plus sign (+)
in one of the arguments. Observe the following:
http://altavista.com/sites/search/web?q=task+management&pg=q&kl=XX
As it turns out the argument gets split into two seperate arguments, but
I would like to keep it
17 matches
Mail list logo