Re: [PHP] www.soongy.com

2009-03-02 Thread Michael A. Peters

Gevorg Harutyunyan wrote:

Hi guys

I need to create file upload progress bar using PHP and AJAX. I found two
Pecl extensions that support that may be used: uploadprogress and
php-apc.
I asked my shared hosting provider to add that extensions, but my request
was declined, because uploadprogress is still BETA version and php-apc
dont works
fine with Fast-CGI version of PHP.


uploadprogress is still beta but it works very well.
It does still require client side scripting of some sort (JavaScript is 
what I use) but due to stateless nature of http that's just the way it is.


uploadprogress does require php 5.2 or newer, that may be their issue.

Anyway, when a host is not willing to provide what you need, it's time 
to find a new host.


I've never tried php-apc.

Another solution I've seen people do is use perl to process the file 
upload form. I don't like perl but it is a possible solution.


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



Re: [PHP] www.soongy.com

2009-03-02 Thread mike
one thing to note is the php-apc upload progress won't scale past one
server as far as i know.

if you have multiple webservers you'll be stuck.

you'd need some sort of ajax thing to actually check how many bytes
the file has written to, for example.

you also need to know how large the file is, which i do not believe is
transmitted normally to PHP, which is why there is this apc,
uploadprogress and other workarounds.

gears is pretty simple, requires no large buffers, POST sizes, memory
limits, etc. it's basically sending chunks of [definable] POST data
(like 512k at a time) which all webservers can handle and assembles it
on the server. works flawlessly even using shared NFS storage on my
three-node web cluster writing from different webservrers...



On Mon, Mar 2, 2009 at 12:02 PM, Michael A. Peters mpet...@mac.com wrote:
 Gevorg Harutyunyan wrote:

 Hi guys

 I need to create file upload progress bar using PHP and AJAX. I found two
 Pecl extensions that support that may be used: uploadprogress and
 php-apc.
 I asked my shared hosting provider to add that extensions, but my request
 was declined, because uploadprogress is still BETA version and php-apc
 dont works
 fine with Fast-CGI version of PHP.

 uploadprogress is still beta but it works very well.
 It does still require client side scripting of some sort (JavaScript is what
 I use) but due to stateless nature of http that's just the way it is.

 uploadprogress does require php 5.2 or newer, that may be their issue.

 Anyway, when a host is not willing to provide what you need, it's time to
 find a new host.

 I've never tried php-apc.

 Another solution I've seen people do is use perl to process the file upload
 form. I don't like perl but it is a possible solution.

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



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



Re: [PHP] www.soongy.com

2009-03-02 Thread Gevorg Harutyunyan
Hi Michael,

Thanks for info.
I use shared hosting and reason that they don't allow that extension is that
uploadprogress is still in beta.
I tried both apc and uploadprogress on my local PC and solutions that they
provide are very good for me.

I will be happy to change hosting provider and if you know any other hosting
with those extensions please inform

On Tue, Mar 3, 2009 at 12:02 AM, Michael A. Peters mpet...@mac.com wrote:

 Gevorg Harutyunyan wrote:

 Hi guys

 I need to create file upload progress bar using PHP and AJAX. I found two
 Pecl extensions that support that may be used: uploadprogress and
 php-apc.
 I asked my shared hosting provider to add that extensions, but my request
 was declined, because uploadprogress is still BETA version and php-apc
 dont works
 fine with Fast-CGI version of PHP.


 uploadprogress is still beta but it works very well.
 It does still require client side scripting of some sort (JavaScript is
 what I use) but due to stateless nature of http that's just the way it is.

 uploadprogress does require php 5.2 or newer, that may be their issue.

 Anyway, when a host is not willing to provide what you need, it's time to
 find a new host.

 I've never tried php-apc.

 Another solution I've seen people do is use perl to process the file upload
 form. I don't like perl but it is a possible solution.




-- 
Best Regards,
Gevorg Harutyunyan


Re: [PHP] www.soongy.com

2009-03-02 Thread Michael A. Peters

Gevorg Harutyunyan wrote:

Hi Michael,

Thanks for info.
I use shared hosting and reason that they don't allow that extension is 
that uploadprogress is still in beta.
I tried both apc and uploadprogress on my local PC and solutions that 
they provide are very good for me.


I will be happy to change hosting provider and if you know any other 
hosting with those extensions please inform


I use linode - they give me a xen virtual host where I have root.
A xen virtual host from them is about $20 a month (more for additional 
IP's and lots of bandwidth/storage/etc).


In the past I have used ocshosting for shared serving and they were 
always willing to install what I needed, though I don't know that I ever 
asked them to install a beta component.


I did stop using them though because they changed servers to a different 
distro with a different GID/UID for the web server and did not preserve 
the GID/UID that apache runs under thus breaking all my apps (I don't do 
777 directories or 666 files) in such a way that I had to file a trouble 
ticket to get the UID/GID of those files changed, because the new distro 
did not allow the users to run chown. But they were always happy to 
install what I needed when i asked.


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



Re: [PHP] www.soongy.com

2009-03-02 Thread mike
That's the good thing about this, it does not require any hosting
changes. It's just text being sent via POST just like a normal form
submit, the PHP code portion just accepts the data and assembles the
file based off of it.

The Gears stuff is all client side, so it requires no server side stuff.

The Gears stuff is needed for some of the UI components (javascript
doesn't do it alone), the file browse, the slicing of the file
(splitting the file in realtime and send chunks of it) - in theory a
browser could implement this transparently, or in a web browser module
(which Gears is essentially)

Anyway all the tools are there, no server tweaks required, just a
little bit of client-side javascript (which I have samples for) and
PHP (i have samples) and the browser needs Gears (which almost all
platforms/browsers support it)

On Mon, Mar 2, 2009 at 12:39 PM, Gevorg Harutyunyan gevorg...@gmail.com wrote:
 Hi Michael,

 Thanks for info.
 I use shared hosting and reason that they don't allow that extension is that
 uploadprogress is still in beta.
 I tried both apc and uploadprogress on my local PC and solutions that they
 provide are very good for me.

 I will be happy to change hosting provider and if you know any other hosting
 with those extensions please inform

 On Tue, Mar 3, 2009 at 12:02 AM, Michael A. Peters mpet...@mac.com wrote:

 Gevorg Harutyunyan wrote:

 Hi guys

 I need to create file upload progress bar using PHP and AJAX. I found two
 Pecl extensions that support that may be used: uploadprogress and
 php-apc.
 I asked my shared hosting provider to add that extensions, but my request
 was declined, because uploadprogress is still BETA version and php-apc
 dont works
 fine with Fast-CGI version of PHP.


 uploadprogress is still beta but it works very well.
 It does still require client side scripting of some sort (JavaScript is
 what I use) but due to stateless nature of http that's just the way it is.

 uploadprogress does require php 5.2 or newer, that may be their issue.

 Anyway, when a host is not willing to provide what you need, it's time to
 find a new host.

 I've never tried php-apc.

 Another solution I've seen people do is use perl to process the file upload
 form. I don't like perl but it is a possible solution.




 --
 Best Regards,
 Gevorg Harutyunyan


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



Re: [PHP] www.soongy.com

2009-03-01 Thread tedd

At 2:20 PM +0400 3/1/09, Gevorg Harutyunyan wrote:

Hi guys

I need to create file upload progress bar using PHP and AJAX. I found two
Pecl extensions that support that may be used: uploadprogress and
php-apc.
I asked my shared hosting provider to add that extensions, but my request
was declined, because uploadprogress is still BETA version and php-apc
dont works
fine with Fast-CGI version of PHP.

Had you similar problem or do you know how else can I track upload progress?


Gevorg:

I'm sure this isn't the answer you want, but I went that route 
several times and never found a better solution than this:


http://webbytedd.com/bb/wait/

Throw up a wait graphic and allow the process to take it's course 
without intervention.


If you want to programmatically determine over time how much of the 
file has been uploaded and update a progress bar, then you're in for 
quite the learning experience.


Cheers,

tedd

PS: After everything is said and done, you may steal any of the 
graphics I provide above -- I stole them fair and square myself. 
Number 39 is not a wait graphic, it just assumed me.


--
---
http://sperling.com  http://ancientstones.com  http://earthstones.com

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



Re: [PHP] www.soongy.com

2009-03-01 Thread Nitsan Bin-Nun
There is no need to go that far, try to google a bit about swfupload.

In short, this is a flash  javascript component that give's you the ability
to maintain the upload, get the current speed, get the current amount of
uploaded data, etc. It is very simple and works like a charm on a dedi
server. There are some issues on shared server sometimes, but even these
things are not that much complicated and can be easily solved.

HTH,
Nitsan

On Sun, Mar 1, 2009 at 4:09 PM, tedd tedd.sperl...@gmail.com wrote:

 At 2:20 PM +0400 3/1/09, Gevorg Harutyunyan wrote:

 Hi guys

 I need to create file upload progress bar using PHP and AJAX. I found two
 Pecl extensions that support that may be used: uploadprogress and
 php-apc.
 I asked my shared hosting provider to add that extensions, but my request
 was declined, because uploadprogress is still BETA version and php-apc
 dont works
 fine with Fast-CGI version of PHP.

 Had you similar problem or do you know how else can I track upload
 progress?


 Gevorg:

 I'm sure this isn't the answer you want, but I went that route several
 times and never found a better solution than this:

 http://webbytedd.com/bb/wait/

 Throw up a wait graphic and allow the process to take it's course without
 intervention.

 If you want to programmatically determine over time how much of the file
 has been uploaded and update a progress bar, then you're in for quite the
 learning experience.

 Cheers,

 tedd

 PS: After everything is said and done, you may steal any of the graphics I
 provide above -- I stole them fair and square myself. Number 39 is not a
 wait graphic, it just assumed me.

 --
 ---
 http://sperling.com  http://ancientstones.com  http://earthstones.com

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




Re: [PHP] www.soongy.com

2009-03-01 Thread tedd

At 4:17 PM +0200 3/1/09, Nitsan Bin-Nun wrote:

There is no need to go that far, try to google a bit about swfupload.

In short, this is a flash  javascript component that give's you the 
ability to maintain the upload, get the current speed, get the 
current amount of uploaded data, etc. It is very simple and works 
like a charm on a dedi server. There are some issues on shared 
server sometimes, but even these things are not that much 
complicated and can be easily solved.


HTH,



Nitsan

Oh yeah, try this:

http://swfupload.org/documentation/demonstration

and go through the up link -- and then try the See it in action! 
link and also try the Demonstration link. You can even use the 
demo.swfupload.org link, which will provide you with this:


http://demo.swfupload.org/v220beta5/index.htm

All of which is well worth the effort if you're trying to waste your 
time. If their code is as good as their web site, no thanks -- I'll 
pass.


But if I was to seriously investigate it, I would go directly to Google:

http://code.google.com/p/swfupload/

However, I haven't a clue as to if it works or not.

Cheers,

tedd


--
---
http://sperling.com  http://ancientstones.com  http://earthstones.com

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



Re: [PHP] www.soongy.com

2009-03-01 Thread German Geek
Also check this one out: google uses it in gmail:
http://code.google.com/p/jquery-multifile-plugin/downloads/detail?name=multiple-file-upload.zipcan=2q=

Cheers,
Tim
Tim-Hinnerk Heuer

http://www.ihostnz.com
Groucho Marx  - I have had a perfectly wonderful evening, but this wasn't
it.

2009/3/2 tedd tedd.sperl...@gmail.com

 At 4:17 PM +0200 3/1/09, Nitsan Bin-Nun wrote:

 There is no need to go that far, try to google a bit about swfupload.

 In short, this is a flash  javascript component that give's you the
 ability to maintain the upload, get the current speed, get the current
 amount of uploaded data, etc. It is very simple and works like a charm on a
 dedi server. There are some issues on shared server sometimes, but even
 these things are not that much complicated and can be easily solved.

 HTH,



 Nitsan

 Oh yeah, try this:

 http://swfupload.org/documentation/demonstration

 and go through the up link -- and then try the See it in action! link
 and also try the Demonstration link. You can even use the
 demo.swfupload.org link, which will provide you with this:

 http://demo.swfupload.org/v220beta5/index.htm

 All of which is well worth the effort if you're trying to waste your time.
 If their code is as good as their web site, no thanks -- I'll pass.

 But if I was to seriously investigate it, I would go directly to Google:

 http://code.google.com/p/swfupload/

 However, I haven't a clue as to if it works or not.

 Cheers,

 tedd


 --
 ---
 http://sperling.com  http://ancientstones.com  http://earthstones.com

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




Re: [PHP] www.soongy.com

2009-03-01 Thread mike
you can use gears pretty easily to make a seamless multiple file
upload now. it's all javascript too so you can make it look how you
want, behave how you want, etc. without having to buy/tweak flash
code.


On Sun, Mar 1, 2009 at 12:07 PM, German Geek geek...@gmail.com wrote:
 Also check this one out: google uses it in gmail:
 http://code.google.com/p/jquery-multifile-plugin/downloads/detail?name=multiple-file-upload.zipcan=2q=

 Cheers,
 Tim
 Tim-Hinnerk Heuer

 http://www.ihostnz.com
 Groucho Marx  - I have had a perfectly wonderful evening, but this wasn't
 it.

 2009/3/2 tedd tedd.sperl...@gmail.com

 At 4:17 PM +0200 3/1/09, Nitsan Bin-Nun wrote:

 There is no need to go that far, try to google a bit about swfupload.

 In short, this is a flash  javascript component that give's you the
 ability to maintain the upload, get the current speed, get the current
 amount of uploaded data, etc. It is very simple and works like a charm on a
 dedi server. There are some issues on shared server sometimes, but even
 these things are not that much complicated and can be easily solved.

 HTH,



 Nitsan

 Oh yeah, try this:

 http://swfupload.org/documentation/demonstration

 and go through the up link -- and then try the See it in action! link
 and also try the Demonstration link. You can even use the
 demo.swfupload.org link, which will provide you with this:

 http://demo.swfupload.org/v220beta5/index.htm

 All of which is well worth the effort if you're trying to waste your time.
 If their code is as good as their web site, no thanks -- I'll pass.

 But if I was to seriously investigate it, I would go directly to Google:

 http://code.google.com/p/swfupload/

 However, I haven't a clue as to if it works or not.

 Cheers,

 tedd


 --
 ---
 http://sperling.com  http://ancientstones.com  http://earthstones.com

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




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



Re: [PHP] www.soongy.com

2009-03-01 Thread tedd

At 12:13 PM -0800 3/1/09, mike wrote:

you can use gears pretty easily to make a seamless multiple file
upload now. it's all javascript too so you can make it look how you
want, behave how you want, etc. without having to buy/tweak flash
code.


On Sun, Mar 1, 2009 at 12:07 PM, German Geek geek...@gmail.com wrote:

 Also check this one out: google uses it in gmail:
  
http://code.google.com/p/jquery-multifile-plugin/downloads/detail?name=multiple-file-upload.zipcan=2q=


Understood, but I don't think either of these do what the OP wanted, 
whcih was a real time file upload progress bar.


Cheers,

tedd
--
---
http://sperling.com  http://ancientstones.com  http://earthstones.com

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



Re: [PHP] www.soongy.com

2009-03-01 Thread mike
gears will allow you to do that, more or less. i have it going...

On Sun, Mar 1, 2009 at 12:34 PM, tedd tedd.sperl...@gmail.com wrote:
 At 12:13 PM -0800 3/1/09, mike wrote:

 you can use gears pretty easily to make a seamless multiple file
 upload now. it's all javascript too so you can make it look how you
 want, behave how you want, etc. without having to buy/tweak flash
 code.


 On Sun, Mar 1, 2009 at 12:07 PM, German Geek geek...@gmail.com wrote:

  Also check this one out: google uses it in gmail:

  
 http://code.google.com/p/jquery-multifile-plugin/downloads/detail?name=multiple-file-upload.zipcan=2q=

 Understood, but I don't think either of these do what the OP wanted, whcih
 was a real time file upload progress bar.

 Cheers,

 tedd
 --
 ---
 http://sperling.com  http://ancientstones.com  http://earthstones.com


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



Re: [PHP] www.soongy.com

2009-03-01 Thread Gevorg Harutyunyan
Thank you all for your help!

I tried to do without being dependent from flash, but as I see there are
only two ways for this: flash and loading without tracking percentage. I
choose second way :)

On Mon, Mar 2, 2009 at 1:58 AM, mike mike...@gmail.com wrote:

 gears will allow you to do that, more or less. i have it going...

 On Sun, Mar 1, 2009 at 12:34 PM, tedd tedd.sperl...@gmail.com wrote:
  At 12:13 PM -0800 3/1/09, mike wrote:
 
  you can use gears pretty easily to make a seamless multiple file
  upload now. it's all javascript too so you can make it look how you
  want, behave how you want, etc. without having to buy/tweak flash
  code.
 
 
  On Sun, Mar 1, 2009 at 12:07 PM, German Geek geek...@gmail.com wrote:
 
   Also check this one out: google uses it in gmail:
 
   
 
 http://code.google.com/p/jquery-multifile-plugin/downloads/detail?name=multiple-file-upload.zipcan=2q=
 
  Understood, but I don't think either of these do what the OP wanted,
 whcih
  was a real time file upload progress bar.
 
  Cheers,
 
  tedd
  --
  ---
  http://sperling.com  http://ancientstones.com  http://earthstones.com
 

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




-- 
Best Regards,
Gevorg Harutyunyan


Re: [PHP] www.soongy.com

2009-03-01 Thread mike
I have a basic demo here. The code is not at it's best, you have to
hit reload to upload a new file.

http://mikehost.com/~mike/tmp/u/

It does show you though with some javascript trickery and some math
you can derive estimated time and approximate speed. I did have an
example of multiple files too (I don't think this one supports that)

At some point I'll publish all the components required and clean it up nicely.

I also have an nginx module to complement it that should be available
soon, to alleviate the need for the PHP processing piece (even though
it does work like a charm)


On Sun, Mar 1, 2009 at 10:05 PM, Gevorg Harutyunyan gevorg...@gmail.com wrote:
 Thank you all for your help!

 I tried to do without being dependent from flash, but as I see there are
 only two ways for this: flash and loading without tracking percentage. I
 choose second way :)

 On Mon, Mar 2, 2009 at 1:58 AM, mike mike...@gmail.com wrote:

 gears will allow you to do that, more or less. i have it going...

 On Sun, Mar 1, 2009 at 12:34 PM, tedd tedd.sperl...@gmail.com wrote:
  At 12:13 PM -0800 3/1/09, mike wrote:
 
  you can use gears pretty easily to make a seamless multiple file
  upload now. it's all javascript too so you can make it look how you
  want, behave how you want, etc. without having to buy/tweak flash
  code.
 
 
  On Sun, Mar 1, 2009 at 12:07 PM, German Geek geek...@gmail.com wrote:
 
   Also check this one out: google uses it in gmail:
 
   
 
  http://code.google.com/p/jquery-multifile-plugin/downloads/detail?name=multiple-file-upload.zipcan=2q=
 
  Understood, but I don't think either of these do what the OP wanted,
  whcih
  was a real time file upload progress bar.
 
  Cheers,
 
  tedd
  --
  ---
  http://sperling.com  http://ancientstones.com  http://earthstones.com
 

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




 --
 Best Regards,
 Gevorg Harutyunyan


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



RE: [PHP] www.soongy.com

2007-08-15 Thread Sanjeev N
Hi Gevorg,

Great work.. But few things.
Scroller is not working even at bottom content is there...
I tried in both mozila and IE... In IE when I selected text and moved down
then it scrolled down. But where in Mozila no use...

Warm Regards,
Sanjeev
http://www.sanchanworld.com/
http://webdirectory.sanchanworld.com - Submit your website URL
http://webhosting.sanchanworld.com - Choose your best web hosting plan

-Original Message-
From: Gevorg Harutyunyan [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, August 14, 2007 8:45 PM
To: php-general@lists.php.net
Subject: [PHP] www.soongy.com

Hello,

 

I am Gevorg. 

I just wanted to introduce you my new PHP based work here www.soongy.com
http://www.soongy.com/ .

It is working on PHP and MySQL and here is used DHTML, AJAX.

 

Thank you very much.

 

Waiting for your response 

 

Regards,

Gevorg

 

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



RE: [PHP] www.soongy.com

2007-08-14 Thread Bastien Koert

Looks nice, but you need to have it adapt to screen resolutions...the fixed 
size of the page doesn't allow for scrolling etc...does not fit well on a 
1400x900 laptop screen
 
bastien From: [EMAIL PROTECTED] To: php-general@lists.php.net Date: Tue, 14 
Aug 2007 20:15:27 +0500 Subject: [PHP] www.soongy.com  Hello,I am 
Gevorg.   I just wanted to introduce you my new PHP based work here 
www.soongy.com http://www.soongy.com/ .  It is working on PHP and MySQL 
and here is used DHTML, AJAX.Thank you very much.Waiting for 
your response Regards,  Gevorg   
_
News, entertainment and everything you care about at Live.com. Get it now!
http://www.live.com/getstarted.aspx

Re: [PHP] www.soongy.com

2007-08-14 Thread heavyccasey
Yes, add a scroll-bar. Middle-click works, for those who wants to read.

On 8/14/07, Bastien Koert [EMAIL PROTECTED] wrote:

 Looks nice, but you need to have it adapt to screen resolutions...the fixed 
 size of the page doesn't allow for scrolling etc...does not fit well on a 
 1400x900 laptop screen

 bastien From: [EMAIL PROTECTED] To: php-general@lists.php.net Date: Tue, 
 14 Aug 2007 20:15:27 +0500 Subject: [PHP] www.soongy.com  Hello,I 
 am Gevorg.   I just wanted to introduce you my new PHP based work here 
 www.soongy.com http://www.soongy.com/ .  It is working on PHP and MySQL 
 and here is used DHTML, AJAX.Thank you very much.Waiting for 
 your response Regards,  Gevorg  
 _
 News, entertainment and everything you care about at Live.com. Get it now!
 http://www.live.com/getstarted.aspx

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