RE: [PHP] flash/php file uploader

2006-12-15 Thread Richard Lynch
On Mon, December 11, 2006 4:35 pm, Brad Fuller wrote:
 I have also seen custom PHP extensions that add the callback method,
 but
 they require you to recompile PHP and in the end we decided to go with
 the
 CGI solution as it was pretty much plug and play.

One of those custom extensions made it into PHP 6.

Okay, *maybe* it made it into PHP 5.2.x, but I won't swear to that...

Rasmus pushed it in, I think, and he's the one who has a nifty example
online somewhere.

Search the internals mailing list archives for Rasmus Lerdfor
progress meter and it oughta turn up without too much noise.

-- 
Some people have a gift link here.
Know what I want?
I want you to buy a CD from some starving artist.
http://cdbaby.com/browse/from/lynch
Yeah, I get a buck. So?

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



Re: [PHP] flash/php file uploader

2006-12-12 Thread Emil Edeholt

Hi

Thanks for your answer, but I use an ajax solution right now and that is 
what I want to replace. I would really like to avoid flash, but I can't 
get this solution to work properly. Atleast my solution has been a 
little buggy in Safari (works mostly, but sometimes it won't upload the 
file) and I think sometimes in Firefox too, haven't tested it enough in 
Explorer to be sure if the bug is there too.


But formerly the upload speed has been extreeemly slow compared to a 
flash solution or a normal form file upload. I've based my work on 
http://tomas.epineer.se/archives/3 do you know if that is a good 
implementation?


I could send you some of my source, if you want/have time to take a 
quick look? (would really like to know if my code is bad, or if it's the 
browsers support for ajax file upload that are buggy/slow).


Mustafa Aras Koktas wrote:

Hello

Flash is not the best solution for this.
Either patch PHP with an unofficial patch for accessing raw data content
length which is available on the manual page of file uploads in php.net
or use perl to access raw data.

I use a combination of  the following

1. post data to perl
2. perl file gets the data length and id of the file, saves it to a
temporary file
3. on post submit an ajax application posts to a php file with the same id
4. php file checks the length of the temporary file with the corresponding
id number
5. php file writes the size, and some fancy graphs to screen
6. ajax sets timeout every 3 seconds to update status
7. perl file forwards the saved data to a php file, so that it can make
necessary operations on the raw data.

It works fine this way.

--Aras
  

--

Hälsningar Emil Edeholt

Karlsson  Novak Medical AB
Telefon 090-154830
Mobil 070-3758222
E-post [EMAIL PROTECTED]

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



[PHP] flash/php file uploader

2006-12-11 Thread Emil Edeholt

Hi

Sorry if this is considered off topic, but do you know of any code 
examples/libs with a flash/php file uploader with progress bar?


I've googled for a while but the scripts I find won't work. I'm using 
Firefox 2 and Flash player 9 on an intel Mac if that tells you anything?


Or should I ask somewhere else?

Thanks for your time.

Emil

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



RE: [PHP] flash/php file uploader

2006-12-11 Thread Brad Fuller
 -Original Message-

 Hi
 
 Sorry if this is considered off topic, but do you know of any code
 examples/libs with a flash/php file uploader with progress bar?
 
 I've googled for a while but the scripts I find won't work. I'm using
 Firefox 2 and Flash player 9 on an intel Mac if that tells you anything?
 
 Or should I ask somewhere else?
 
 Thanks for your time.
 
 Emil

The problem with having a real progress bar with PHP is that by default
PHP does not have a callback function so you won't know the status of the
uploaded file until it's complete.

One way of overcoming this is to use a combination of AJAX+Perl/CGI instead
of PHP. (Most LAMP servers can also run CGI scripts)

An example of an upload progress bar written in AJAX+CGI is Filechucker. Our
company purchased a license for use on one of our sites, its cheap and works
great.

I have also seen custom PHP extensions that add the callback method, but
they require you to recompile PHP and in the end we decided to go with the
CGI solution as it was pretty much plug and play.

-B

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



Re: [PHP] flash/php file uploader

2006-12-11 Thread Chris

Brad Fuller wrote:

-Original Message-

Hi

Sorry if this is considered off topic, but do you know of any code
examples/libs with a flash/php file uploader with progress bar?

I've googled for a while but the scripts I find won't work. I'm using
Firefox 2 and Flash player 9 on an intel Mac if that tells you anything?

Or should I ask somewhere else?

Thanks for your time.

Emil


The problem with having a real progress bar with PHP is that by default
PHP does not have a callback function so you won't know the status of the
uploaded file until it's complete.



PHP5.2.0 has this built in, see changelog:
http://www.php.net/ChangeLog-5.php#5.2.0

and an example Rasmus previously posted:

http://marc.theaimsgroup.com/?l=php-generalm=116265912901212w=2

It's still ajax but the hooks are now built into php rather than an 
external unsupported patch.


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

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



[PHP] flash php

2004-09-22 Thread Dustin Krysak
Can anyone recommend any good tutorials on using flash mx 2004 with PHP 
to display MYsql content using PHP? Including loading and displaying 
JPGs and movies (referenced in the database).

thanks in advance!
d
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[PHP] Flash-PHP Socket Connection

2004-01-20 Thread Eric Bolikowski
Hi everybody

I'm working on a site that will be based on Flash, PHP and MySQL. PHP will
work as a middleware for Flash and MySQL.

My problem is communication between Flash and PHP.
I'm really out looking for using the socket functions in PHP and Flash to
make fast connection.

I have googled for almost an hour now, and I can't seem to find any
interesting. The only info I find, is about sending data between Flash and
PHP with HTTP GET or HTTP POST.

So if anybody has some general information on this or a link to a tutorial
on the subject, I would like to get those resources.

Thanks a lot

Eric

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



FW: [PHP] Flash-PHP Socket Connection

2004-01-20 Thread Donald Tyler
We use XMLRPC to communicate between flash  PHP. I presume it can be
coupled with sockets if you should need a permanent connection as well.

It has worked perfectly for pretty much anything we throw at it (It allows
you to send any PHP or Action script native data type, e.g. arrays,
Booleans, integers etc. back and forth across the web)

Obvious security implications about, so be very very careful with what you
do with the data received. Trust no one! Not even your own Flash Client.

-Original Message-
From: Eric Bolikowski [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, January 20, 2004 3:26 PM
To: [EMAIL PROTECTED]
Subject: [PHP] Flash-PHP Socket Connection

Hi everybody

I'm working on a site that will be based on Flash, PHP and MySQL. PHP will
work as a middleware for Flash and MySQL.

My problem is communication between Flash and PHP.
I'm really out looking for using the socket functions in PHP and Flash to
make fast connection.

I have googled for almost an hour now, and I can't seem to find any
interesting. The only info I find, is about sending data between Flash and
PHP with HTTP GET or HTTP POST.

So if anybody has some general information on this or a link to a tutorial
on the subject, I would like to get those resources.

Thanks a lot

Eric

-- 
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] Flash-PHP Socket Connection

2004-01-20 Thread Eric Bolikowski
Hi Donald

Can i get a link to that site?

I'm just a little bit confused about this thing about socket communication.

Why is there not any resources on using Flash XMLSocket() and PHP
fsockopen() ?

There should be some kind of resource on this.
I have recently searched all over Macromedia, not finding anything there...

Eric

Donald Tyler [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
 We use XMLRPC to communicate between flash  PHP. I presume it can be
 coupled with sockets if you should need a permanent connection as well.

 It has worked perfectly for pretty much anything we throw at it (It allows
 you to send any PHP or Action script native data type, e.g. arrays,
 Booleans, integers etc. back and forth across the web)

 Obvious security implications about, so be very very careful with what you
 do with the data received. Trust no one! Not even your own Flash Client.

 -Original Message-
 From: Eric Bolikowski [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, January 20, 2004 3:26 PM
 To: [EMAIL PROTECTED]
 Subject: [PHP] Flash-PHP Socket Connection

 Hi everybody

 I'm working on a site that will be based on Flash, PHP and MySQL. PHP will
 work as a middleware for Flash and MySQL.

 My problem is communication between Flash and PHP.
 I'm really out looking for using the socket functions in PHP and Flash to
 make fast connection.

 I have googled for almost an hour now, and I can't seem to find any
 interesting. The only info I find, is about sending data between Flash and
 PHP with HTTP GET or HTTP POST.

 So if anybody has some general information on this or a link to a tutorial
 on the subject, I would like to get those resources.

 Thanks a lot

 Eric

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



[PHP] Flash / PHP Question

2002-10-26 Thread Stephen
I'm tyring to follow a DevArticle tutorial on creating a online users script in flash. 
Problem is, I can't find where the actions properties are to enter things like this:

loadVariablesNum(count.php?RND=+random(999), 0); 

Please help!! I'm using Flash MX, same as the tutorial. I've also posted a message in 
the tutorial's forum place but no reply...

Thanks,
Stephen Craton
http://www.melchior.us
http://php.melchior.us


Re: [PHP] Flash / PHP Question

2002-10-26 Thread @ Edwin
Hello,

I'm afraid that your question is more of a How can I use Flash MX?
question.

Maybe you should get a good book about Flash MX or just google for some more
other tutorials...

- E

Stephen [EMAIL PROTECTED] wrote:

 I'm tyring to follow a DevArticle tutorial on creating a online users
 script in flash. Problem is, I can't find where the actions properties
 are to enter things like this:

 loadVariablesNum(count.php?RND=+random(999), 0);

 Please help!! I'm using Flash MX, same as the tutorial. I've also
 posted a message in the tutorial's forum place but no reply...

 Thanks,
 Stephen Craton
 http://www.melchior.us
 http://php.melchior.us


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




[PHP] flash - php

2002-10-05 Thread Zeljko Bozic

I'm new to php.
want to build swf appl. with sql support
need some example (source)


please help


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




[PHP] Flash/PHP/MySQL

2001-05-06 Thread FredrikAT

Can Flash import some text from a database (e.g MySQL) and print it on the
fly?

-
Fredrik A. Takle
[EMAIL PROTECTED]




-- 
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] Flash/PHP/MySQL

2001-05-06 Thread Eduardo Pérez Jover

you can find an example in flashkit.com
go to examples  databases



-- 
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] Flash/PHP/MySQL

2001-05-06 Thread Chris Adams

On 6 May 2001 10:25:19 -0700, FredrikAT [EMAIL PROTECTED] wrote:
 Can Flash import some text from a database (e.g MySQL) and print it on the
 fly?

Yes. It's actually pretty easy - you can tell flash to load a bunch of
variables from a URL. Your URL can return the encoded data (basically a
URL-style Variable=fooOtherVariable=Bar format - check the Flash docs) and
Flash will create/update those variables to have the values returned. This can
be as easy as creating a text entry box and having a URL return a variable with
the same name - flash will update the contents of the text box automatically.

-- 
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] Flash/PHP

2001-01-26 Thread Rasmus Lerdorf

 You can use premade flash movies just as you would in HTML. Therefore
 everything that is normally available is available in PHP, plus if you
 want, you get to use the wonderful libswf!  :)

libswf isn't maintained anymore though.  We will soon have the ming
library in PHP, but it works already.  Go to freshmeat.net and search for
"ming".  You can see an example of it on slide 33 of the presentation at
http://conf.php.net/nordu2001

-Rasmus


-- 
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] Flash/PHP

2001-01-26 Thread Mike Chambers

I have created a Generator / PHP library which makes it easy to create Flash
content from PHP using Macromedia Generator.

Unfortunately, do to some bugs in PHP with the System() command on Windows,
I am not going to release the library until the next PHP update (assuming
they fix the bugs).

mike chambers

[EMAIL PROTECTED]

http://www.markme.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]





-- 
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] Flash + PHP

2001-01-20 Thread Mike Tuller

www.thickbook.com is a good start. Last I looked it covered Flash 4, and
Flash 5 is quite a bit different.

Basically you have PHP print the variables in HTML and Have Flash parse
that. Flash can't directly parse PHP variables. It's not difficult once you
figure it out.

Mike

 From: "Abe Asghar" [EMAIL PROTECTED]
 Reply-To: "Abe Asghar" [EMAIL PROTECTED]
 Date: Fri, 19 Jan 2001 14:41:27 -
 To: "PHP General List" [EMAIL PROTECTED]
 Subject: [PHP]  Flash + PHP 
 
 Hey Guys,
 
 Anybody have any good links for Flash with PHP simple stuff.
 
 Any tutorials or general links that maybe useful.
 
 Thanks,
 Abe
 
 
 -- 
 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 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]