Re: [PHP] How to get a total...

2002-10-01 Thread Paul Nicholson

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Hey,
Try: http://www.php.net/manual/en/language.operators.arithmetic.php
I think that'll get you started:)
~Paul

On Tuesday 01 October 2002 09:44 am, Chuck Payne wrote:
 Hi,

 I am really lost. I have spent an hour looking on the net and php.net for
 how to get total and how to do math with php. If anyone has a link to a
 site that show it or can example to me how to do it, that would be great. I
 have a small project where I am going to track invoices. But they want to
 be able to see how total amount of the invoice that I am tracking. I know
 this is got to be simple but it hard if I do have example of the commands
 to do it.

 Chuck Payne
 Magi Design and Support

- -- 
~Paul Nicholson
Design Specialist @ WebPower Design
The webthe way you want it!
[EMAIL PROTECTED]

It said uses Windows 98 or better, so I loaded Linux!
Registered Linux User #183202 using Register Linux System # 81891
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iD8DBQE9mag+DyXNIUN3+UQRAqGLAJ0f4NDQU3/kQ6z7lYGfp8Esa+ZzEwCeLmBU
eT8+TDyHoS6B9Rjv3TDMwjQ=
=y7LJ
-END PGP SIGNATURE-

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] How to get a total...

2002-10-01 Thread Justin French

lol

or you could just try

?
$value1 = 100;
$value2 = 24;

$total = $value1 + $value2;
?


on 01/10/02 11:50 PM, Paul Nicholson ([EMAIL PROTECTED]) wrote:

 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA1
 
 Hey,
 Try: http://www.php.net/manual/en/language.operators.arithmetic.php
 I think that'll get you started:)
 ~Paul
 
 On Tuesday 01 October 2002 09:44 am, Chuck Payne wrote:
 Hi,
 
 I am really lost. I have spent an hour looking on the net and php.net for
 how to get total and how to do math with php. If anyone has a link to a
 site that show it or can example to me how to do it, that would be great. I
 have a small project where I am going to track invoices. But they want to
 be able to see how total amount of the invoice that I am tracking. I know
 this is got to be simple but it hard if I do have example of the commands
 to do it.
 
 Chuck Payne
 Magi Design and Support
 
 - -- 
 ~Paul Nicholson
 Design Specialist @ WebPower Design
 The webthe way you want it!
 [EMAIL PROTECTED]
 
 It said uses Windows 98 or better, so I loaded Linux!
 Registered Linux User #183202 using Register Linux System # 81891
 -BEGIN PGP SIGNATURE-
 Version: GnuPG v1.0.6 (GNU/Linux)
 Comment: For info see http://www.gnupg.org
 
 iD8DBQE9mag+DyXNIUN3+UQRAqGLAJ0f4NDQU3/kQ6z7lYGfp8Esa+ZzEwCeLmBU
 eT8+TDyHoS6B9Rjv3TDMwjQ=
 =y7LJ
 -END PGP SIGNATURE-


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] how to get the total disk space used in a directory

2001-09-23 Thread sagar N Chand

hi all,

is there any way to get the total disk space used under a directory
including its subdirectories and all the contents.

/sagar




Re: [PHP] how to get the total disk space used in a directory

2001-09-23 Thread Alexander Skwar

So sprach »sagar N Chand« am 2001-09-23 um 22:51:49 +0530 :
 is there any way to get the total disk space used under a directory
 including its subdirectories and all the contents.

Either execute du, or sum up the sizes of all the files manually in PHP.

Alexander Skwar
-- 
How to quote:   http://learn.to/quote (german) http://quote.6x.to (english)
Homepage:   http://www.digitalprojects.com   |   http://www.iso-top.de
   iso-top.de - Die günstige Art an Linux Distributionen zu kommen
Uptime: 8 hours 48 minutes

--
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] how to get the total disk space used in a directory

2001-09-23 Thread Don Read


On 23-Sep-2001 sagar N Chand wrote:
 hi all,
 
 is there any way to get the total disk space used under a directory
 including its subdirectories and all the contents.
 
 /sagar
 

$duse=`du -sk /usr/foo`;
echo $duse, 'br';

Regards,
-- 
Don Read   [EMAIL PROTECTED]
-- It's always darkest before the dawn. So if you are going to 
   steal the neighbor's newspaper, that's the time to do it.

-- 
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]