[PHP] Disk Usage

2001-09-22 Thread Scott Poarch

Hi all,

I'm trying to find a script that will return the same kind of data I get
with du. I want a page to list current disk usage by virtual domain on our
servers. I see the diskfreespace and disk_total_space commands, but they
doesn't seem to work at all for me.

Anybody know of a good script?
-- 
Scott Poarch
http://www.globalhost.com
 - - - - - - - - - - - - 


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] Disk Usage

2001-09-22 Thread Scott Poarch

Thanks for the quick reply.

I've been tring variations on that for a while with little success. This is
not necessarily my best hope, but it's the version I happen to be at at the
moment:

$command = "du > test2";
system($command);

Any ideas?
-- 
Scott Poarch
http://www.globalhost.com
 - - - - - - - - - - - -

> From: "Steve Werby" <[EMAIL PROTECTED]>
> Organization: Befriend Internet Services LLC
> Date: Sat, 22 Sep 2001 20:44:32 -0400
> To: "Scott Poarch" <[EMAIL PROTECTED]>, <[EMAIL PROTECTED]>
> Subject: Re: [PHP] Disk Usage
> 
> "Scott Poarch" <[EMAIL PROTECTED]> wrote:
>> I'm trying to find a script that will return the same kind of data I get
>> with du. I want a page to list current disk usage by virtual domain on our
>> servers. I see the diskfreespace and disk_total_space commands, but they
>> doesn't seem to work at all for me.
> 
> If you're on Linux or another un*x, try calling 'du' using system() or a
> similar command.
> 
> --
> Steve Werby
> President, Befriend Internet Services LLC
> http://www.befriend.com/
> 
> 


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] Disk Usage

2001-09-22 Thread Scott Poarch

I appreciate the help.

I understand the 'du -sk', but what's the "(int)" all about. Are you
suggesting using:

$usage = (int)`du -sk`;

in the PHP code, as in:

chdir($basedir); 
$usage = (int)'du -sk';
print("$usage is usage");

?

Thanks,
-- 
Scott Poarch
http://www.globalhost.com
 - - - - - - - - - - - -

> From: "Matthew Loff" <[EMAIL PROTECTED]>
> Organization: Willetts Systems
> Date: Sat, 22 Sep 2001 22:07:26 -0400
> To: "'Scott Poarch'" <[EMAIL PROTECTED]>, "'Steve Werby'"
> <[EMAIL PROTECTED]>, <[EMAIL PROTECTED]>
> Subject: RE: [PHP] Disk Usage
> 
> $usage = (int)`du -sk`;


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] Disk Usage

2001-09-23 Thread Scott Poarch

Well, it's an intriquing idea, but I'm not getting any success out of it.
thanks for the suggestion. I'll keep plugging away.
-- 
Scott Poarch
http://www.globalhost.com
 - - - - - - - - - - - -

> From: "Matthew Loff" <[EMAIL PROTECTED]>
> Organization: Willetts Systems
> Date: Sat, 22 Sep 2001 23:13:25 -0400
> To: "'Scott Poarch'" <[EMAIL PROTECTED]>, "'Steve Werby'"
> <[EMAIL PROTECTED]>, <[EMAIL PROTECTED]>
> Subject: RE: [PHP] Disk Usage
> 
> 
> Yes, that's exactly what I'm suggesting...
> 
> Say output of du -sk is:
> 
> 1022  .
> 
> The dot represents the current directory.  By typecasting it to an
> integer, using (int), PHP will drop the dot and whitespace in between...
> 
> So, typecasting "1022  ." to int gives you 1022 by itself.
> 
> Good luck!
> -Matt
> 
> 
> -Original Message-
> From: Scott Poarch [mailto:[EMAIL PROTECTED]]
> Sent: Saturday, September 22, 2001 10:37 PM
> To: Matthew Loff; 'Steve Werby'; [EMAIL PROTECTED]
> Subject: Re: [PHP] Disk Usage
> 
> 
> I appreciate the help.
> 
> I understand the 'du -sk', but what's the "(int)" all about. Are you
> suggesting using:
> 
> $usage = (int)`du -sk`;
> 
> in the PHP code, as in:
> 
> chdir($basedir); 
> $usage = (int)'du -sk';
> print("$usage is usage");
> 
> ?
> 
> Thanks,
> -- 
> Scott Poarch
> http://www.globalhost.com
> - - - - - - - - - - - -
> 
>> From: "Matthew Loff" <[EMAIL PROTECTED]>
>> Organization: Willetts Systems
>> Date: Sat, 22 Sep 2001 22:07:26 -0400
>> To: "'Scott Poarch'" <[EMAIL PROTECTED]>, "'Steve Werby'"
>> <[EMAIL PROTECTED]>, <[EMAIL PROTECTED]>
>> Subject: RE: [PHP] Disk Usage
>> 
>> $usage = (int)`du -sk`;
> 
> 


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] fonts in php generated images

2001-02-05 Thread Scott Poarch

Does anyone have any leads on how to get your own fonts into gifs created by
PHP? The manual isn't much help (at least to me), and info seems scarce.
I've got a fairly decent postcard app up at champfactory.com, but I can't
get it to use the eurostyle font my client is asking for.

Any help would be greatly appreciated.
- - - - - - - - - - - - - -
Scott Poarch
GlobalHost.com
- - - - - - - - - - - - - -


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]