Re: [PHP] checking local file size

2008-12-17 Thread John Pillion


  I tried installing it like the documentation said... but I got the
  following errors. I contacted the hosting service (dreamhost) and they
  said they don't
  provide support for pecl, though they do support perl.  Anyone?
  
  --
  
  $ pecl install uploadprogress
  
  Failed to download pecl/uploadprogress within preferred state stable,
  latest release is version 0.9.1, stability beta, use
  channel://pecl.php.net/uploadprogress-0.9.1 to install Cannot
initialize
  'uploadprogress', invalid or missing package file Package
uploadprogress
  is not valid install failed
  
  
  
  $ pecl install uploadprogress-beta
  
  Cannot install, php_dir for channel pecl.php.net is not writeable by
the
  current user
  .com/
 
 Um, sudo? Or be root when you install as the PEAR/PECL structure is
usually
 owned by root.


Just tried that - I don't have the permissions to sudo :(


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



RE: [PHP] checking local file size

2008-12-17 Thread David Robley
John Pillion wrote:

  I already downloaded that, thanks.  How do I apply it is my question.
  There's no documentation for the installation of it, that I see
 
 'Course it is :)
 
 http://www.php.net/manual/en/install.pecl.php
 
 Linked from here: http://pecl.php.net/doc/index.php
 
 
 I tried installing it like the documentation said... but I got the
 following errors. I contacted the hosting service (dreamhost) and they
 said they don't
 provide support for pecl, though they do support perl.  Anyone?
 
 --
 
 $ pecl install uploadprogress
 
 Failed to download pecl/uploadprogress within preferred state stable,
 latest release is version 0.9.1, stability beta, use
 channel://pecl.php.net/uploadprogress-0.9.1 to install Cannot initialize
 'uploadprogress', invalid or missing package file Package uploadprogress
 is not valid install failed
 
 
 
 $ pecl install uploadprogress-beta
 
 Cannot install, php_dir for channel pecl.php.net is not writeable by the
 current user
 .com/

Um, sudo? Or be root when you install as the PEAR/PECL structure is usually
owned by root.


Cheers
-- 
David Robley

This is a sick bird, said Tom illegally.
Today is Sweetmorn, the 59th day of The Aftermath in the YOLD 3174. 


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



Re: [PHP] checking local file size

2008-12-16 Thread Bojan Tesanovic
Well you need to know the TMP file name that has been in progress of  
upload, it is usually at /tmp folder
also you need to know the actual size of file uploading, there is an  
extension for PHP that will give you this info
but you need to compile it , on my cars site for uploading images I  
am using this one


http://blog.liip.ch/archive/2006/09/28/upload-progress-meter- 
extension-for-php-5-2.html



On Dec 16, 2008, at 9:20 PM, John P wrote:


I know this isn't a php question (though I'm using PHP for the server
side... does that count?).  I'm hoping though that some of you guys  
are just
as experienced in ajax as you are PHP, because I can't find any  
good ajax

forums.

you can respond to me personally if needed, to keep it off the php  
list


my question:

I know there are alot of ajax/php upload progress bars out there, but
they're either complicated, unreliable, or just generally don't fit my
needs. Thus, i'm making my own.

One problem I'm running into though, is how to check the local file  
size as

compared to the uploaded file size.

I can check and display the total uploaded size (ie, 437kb uploaded so
far...), but to get the percent, I have to know the total size -  
BEFORE it's
fully uploaded.  I would like to say 437kb of 932kb uploaded so  
far... but
how do I get the 932 from the local file? It doesn't do too much  
good to

say how much has been uploaded if they don't know how much is left...

I know it's possible (most other meters do this) - I just can't  
figure out

how.

any hints?

Thanks



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



Bojan Tesanovic
http://classiccars.carster.us/







Re: [PHP] checking local file size

2008-12-16 Thread John Pillion


Bojan Tesanovic btesano...@gmail.com wrote in message
news:c4dac606-7711-49cd-9e03-5cdd5627f...@gmail.com...
 Well you need to know the TMP file name that has been in progress of  
 upload, it is usually at /tmp folder

I know how to get that...

 also you need to know the actual size of file uploading, there is an  
 extension for PHP that will give you this info
 but you need to compile it , on my cars site for uploading images I  
 am using this one
 
 http://blog.liip.ch/archive/2006/09/28/upload-progress-meter- 
 extension-for-php-5-2.html
 

I downloaded the uploadprogress zip from that site (their example looks like
it provides what I'm looking for). At the expense of sounding ignorant...
How do I add that extension to PHP?  I looked through the example code, and
I get the idea of what's happening, but I don't know how to add it to my
server (I use shared hosting, though I have shell access).  Does it need to
be built into a *.so or *.dll and added to the PHP.ini file?  If so, how do
I build it?

In short, what next?

Thanks



 
 On Dec 16, 2008, at 9:20 PM, John P wrote:
 
  I know this isn't a php question (though I'm using PHP for the server
  side... does that count?).  I'm hoping though that some of you guys  
  are just
  as experienced in ajax as you are PHP, because I can't find any  
  good ajax
  forums.
 
  you can respond to me personally if needed, to keep it off the php  
  list
 
  my question:
 
  I know there are alot of ajax/php upload progress bars out there, but
  they're either complicated, unreliable, or just generally don't fit my
  needs. Thus, i'm making my own.
 
  One problem I'm running into though, is how to check the local file  
  size as
  compared to the uploaded file size.
 
  I can check and display the total uploaded size (ie, 437kb uploaded so
  far...), but to get the percent, I have to know the total size -  
  BEFORE it's
  fully uploaded.  I would like to say 437kb of 932kb uploaded so  
  far... but
  how do I get the 932 from the local file? It doesn't do too much  
  good to
  say how much has been uploaded if they don't know how much is left...
 
  I know it's possible (most other meters do this) - I just can't  
  figure out
  how.
 
  any hints?
 
  Thanks
 
 
 
  -- 
  PHP General Mailing List (http://www.php.net/)
  To unsubscribe, visit: http://www.php.net/unsub.php
 
 
 Bojan Tesanovic
 http://classiccars.carster.us/
 
 
 
 
 
 


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



Re: [PHP] checking local file size

2008-12-16 Thread Chris

John Pillion wrote:


Bojan Tesanovic btesano...@gmail.com wrote in message
news:c4dac606-7711-49cd-9e03-5cdd5627f...@gmail.com...
Well you need to know the TMP file name that has been in progress of  
upload, it is usually at /tmp folder


I know how to get that...

also you need to know the actual size of file uploading, there is an  
extension for PHP that will give you this info
but you need to compile it , on my cars site for uploading images I  
am using this one


http://blog.liip.ch/archive/2006/09/28/upload-progress-meter- 
extension-for-php-5-2.html




I downloaded the uploadprogress zip from that site (their example looks like
it provides what I'm looking for). At the expense of sounding ignorant...
How do I add that extension to PHP?  I looked through the example code, and
I get the idea of what's happening, but I don't know how to add it to my
server (I use shared hosting, though I have shell access).  Does it need to
be built into a *.so or *.dll and added to the PHP.ini file?  If so, how do
I build it?

In short, what next?


http://pecl.php.net/package/uploadprogress

--
Postgresql  php tutorials
http://www.designmagick.com/


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



RE: [PHP] checking local file size

2008-12-16 Thread John Pillion

 Bojan Tesanovic btesano...@gmail.com wrote in message
 news:c4dac606-7711-49cd-9e03-5cdd5627f...@gmail.com...
 Well you need to know the TMP file name that has been in progress of  
 upload, it is usually at /tmp folder
 
 I know how to get that...
 
 also you need to know the actual size of file uploading, there is an  
 extension for PHP that will give you this info
 but you need to compile it , on my cars site for uploading images I  
 am using this one

 http://blog.liip.ch/archive/2006/09/28/upload-progress-meter- 
 extension-for-php-5-2.html

 
 I downloaded the uploadprogress zip from that site (their example looks
like
 it provides what I'm looking for). At the expense of sounding ignorant...
 How do I add that extension to PHP?  I looked through the example code,
and
 I get the idea of what's happening, but I don't know how to add it to my
 server (I use shared hosting, though I have shell access).  Does it need
to
 be built into a *.so or *.dll and added to the PHP.ini file?  If so, how
do
 I build it?
 
 In short, what next?

 http://pecl.php.net/package/uploadprogress

I already downloaded that, thanks.  How do I apply it is my question.
There's no documentation for the installation of it, that I see




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



Re: [PHP] checking local file size

2008-12-16 Thread Chris



In short, what next?

http://pecl.php.net/package/uploadprogress


I already downloaded that, thanks.  How do I apply it is my question.
There's no documentation for the installation of it, that I see


'Course it is :)

http://www.php.net/manual/en/install.pecl.php

Linked from here: http://pecl.php.net/doc/index.php

--
Postgresql  php tutorials
http://www.designmagick.com/


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



RE: [PHP] checking local file size

2008-12-16 Thread John Pillion
  I already downloaded that, thanks.  How do I apply it is my question.
  There's no documentation for the installation of it, that I see
 
 'Course it is :)
 
 http://www.php.net/manual/en/install.pecl.php
 
 Linked from here: http://pecl.php.net/doc/index.php
 

I tried installing it like the documentation said... but I got the following
errors. I contacted the hosting service (dreamhost) and they said they don't
provide support for pecl, though they do support perl.  Anyone?

--

$ pecl install uploadprogress

Failed to download pecl/uploadprogress within preferred state stable,
latest release is version 0.9.1, stability beta, use
channel://pecl.php.net/uploadprogress-0.9.1 to install Cannot initialize
'uploadprogress', invalid or missing package file Package uploadprogress
is not valid install failed



$ pecl install uploadprogress-beta

Cannot install, php_dir for channel pecl.php.net is not writeable by the
current user
.com/


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