FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » Imported messages » comp.lang.php » Customisable Printing by PHP from Flash
Show: Today's Messages :: Polls :: Message Navigator
Switch to threaded view of this topic Create a new topic Submit Reply
Customisable Printing by PHP from Flash [message #172517] Mon, 21 February 2011 14:52 Go to next message
Singlish King is currently offline  Singlish King
Messages: 5
Registered: February 2011
Karma: 0
Junior Member
Customisable Printing by PHP from Flash
=======================================

my friend wishes to have a website that
allows users to choose facial expressions
(e.g. different styles of eyes, different
noses, different hairstyle, etc.) from
client side Flash swf and have the result
printed. i suppose the client side PHP
has to do something smart in order to
achieve this.

how can this be done?

thanks for your help.
Re: Customisable Printing by PHP from Flash [message #172519 is a reply to message #172517] Mon, 21 February 2011 15:02 Go to previous messageGo to next message
Erwin Moller is currently offline  Erwin Moller
Messages: 228
Registered: September 2010
Karma: 0
Senior Member
On 2/21/2011 3:52 PM, Singlish King wrote:
> Customisable Printing by PHP from Flash
> =======================================
>
> my friend wishes to have a website that
> allows users to choose facial expressions
> (e.g. different styles of eyes, different
> noses, different hairstyle, etc.) from
> client side Flash swf and have the result
> printed. i suppose the client side PHP
> has to do something smart in order to
> achieve this.
>
> how can this be done?
>
> thanks for your help.

PHP isn't clientside, it is typically serverside.
Are you maybe confused with JavaScript?

Also, I think Flash can print just fine all by itself.

Erwin Moller

--
"That which can be asserted without evidence, can be dismissed without
evidence."
-- Christopher Hitchens
Re: Customisable Printing by PHP from Flash [message #172520 is a reply to message #172517] Mon, 21 February 2011 15:03 Go to previous messageGo to next message
Luuk is currently offline  Luuk
Messages: 329
Registered: September 2010
Karma: 0
Senior Member
On 21-02-11 15:52, Singlish King wrote:
> Customisable Printing by PHP from Flash
> =======================================
>
> my friend wishes to have a website that
> allows users to choose facial expressions
> (e.g. different styles of eyes, different
> noses, different hairstyle, etc.) from
> client side Flash swf and have the result
> printed. i suppose the client side PHP
> has to do something smart in order to
> achieve this.
>
> how can this be done?
>
> thanks for your help.

there is no such thing as client side PHP.....

--
Luuk
Re: Customisable Printing by PHP from Flash [message #172524 is a reply to message #172520] Mon, 21 February 2011 16:18 Go to previous messageGo to next message
Michael Fesser is currently offline  Michael Fesser
Messages: 215
Registered: September 2010
Karma: 0
Senior Member
.oO(Luuk)

> there is no such thing as client side PHP.....

Well, there were some experimental packages for IE and Mozilla.

Micha
Re: Customisable Printing by PHP from Flash [message #172525 is a reply to message #172524] Mon, 21 February 2011 16:23 Go to previous messageGo to next message
Jonathan N. Little is currently offline  Jonathan N. Little
Messages: 12
Registered: February 2011
Karma: 0
Junior Member
Michael Fesser wrote:
> .oO(Luuk)
>
>> there is no such thing as client side PHP.....
>
> Well, there were some experimental packages for IE and Mozilla.
>

What do you mean by that? PHP is server side technology. References please.

--
Take care,

Jonathan
-------------------
LITTLE WORKS STUDIO
http://www.LittleWorksStudio.com
Re: Customisable Printing by PHP from Flash [message #172554 is a reply to message #172519] Mon, 21 February 2011 20:19 Go to previous messageGo to next message
Singlish King is currently offline  Singlish King
Messages: 5
Registered: February 2011
Karma: 0
Junior Member
On 21/02/2011 11:02, Erwin Moller wrote:
> On 2/21/2011 3:52 PM, Singlish King wrote:
>> Customisable Printing by PHP from Flash
>> =======================================
>>
>> my friend wishes to have a website that
>> allows users to choose facial expressions
>> (e.g. different styles of eyes, different
>> noses, different hairstyle, etc.) from
>> client side Flash swf and have the result
>> printed. i suppose the client side PHP
>> has to do something smart in order to
>> achieve this.
>>
>> how can this be done?
>>
>> thanks for your help.
>
> PHP isn't clientside, it is typically serverside.

sorry, i meant server side.



> Are you maybe confused with JavaScript?
>
> Also, I think Flash can print just fine all by itself.
>
> Erwin Moller
>
Re: Customisable Printing by PHP from Flash [message #172555 is a reply to message #172520] Mon, 21 February 2011 20:20 Go to previous messageGo to next message
Singlish King is currently offline  Singlish King
Messages: 5
Registered: February 2011
Karma: 0
Junior Member
On 21/02/2011 11:03, Luuk wrote:
> On 21-02-11 15:52, Singlish King wrote:
>> Customisable Printing by PHP from Flash
>> =======================================
>>
>> my friend wishes to have a website that
>> allows users to choose facial expressions
>> (e.g. different styles of eyes, different
>> noses, different hairstyle, etc.) from
>> client side Flash swf and have the result
>> printed. i suppose the client side PHP
>> has to do something smart in order to
>> achieve this.
>>
>> how can this be done?
>>
>> thanks for your help.
>
> there is no such thing as client side PHP.....


my bad. i meant server side PHP. basically,
PHP & Flash somehow have to work together, but how?
Re: Customisable Printing by PHP from Flash [message #172556 is a reply to message #172555] Mon, 21 February 2011 20:33 Go to previous messageGo to next message
Jerry Stuckle is currently offline  Jerry Stuckle
Messages: 2598
Registered: September 2010
Karma: 0
Senior Member
On 2/21/2011 3:20 PM, Singlish King wrote:
> On 21/02/2011 11:03, Luuk wrote:
>> On 21-02-11 15:52, Singlish King wrote:
>>> Customisable Printing by PHP from Flash
>>> =======================================
>>>
>>> my friend wishes to have a website that
>>> allows users to choose facial expressions
>>> (e.g. different styles of eyes, different
>>> noses, different hairstyle, etc.) from
>>> client side Flash swf and have the result
>>> printed. i suppose the client side PHP
>>> has to do something smart in order to
>>> achieve this.
>>>
>>> how can this be done?
>>>
>>> thanks for your help.
>>
>> there is no such thing as client side PHP.....
>
>
> my bad. i meant server side PHP. basically,
> PHP & Flash somehow have to work together, but how?

You can't print on the client from the server. The client has to do the
printing.

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex(at)attglobal(dot)net
==================
Re: Customisable Printing by PHP from Flash [message #172561 is a reply to message #172525] Mon, 21 February 2011 21:08 Go to previous messageGo to next message
Michael Fesser is currently offline  Michael Fesser
Messages: 215
Registered: September 2010
Karma: 0
Senior Member
.oO(Jonathan N. Little)

> Michael Fesser wrote:
>> .oO(Luuk)
>>
>>> there is no such thing as client side PHP.....
>>
>> Well, there were some experimental packages for IE and Mozilla.
>
> What do you mean by that? PHP is server side technology.

Nope, PHP is a programming language. It can be used wherever an
interpreter exists. The same is true for JavaScript - most people
consider it a client-side language, but it's also used on servers.

> References please.

Google MozPHP for example. There also was an addon for IE some years
ago. As said - it was experimental. But it's possible and even HTML
allows for various languages in its 'script' element. At least in
theory - in practice there's almost always just JS.

Micha
Re: Customisable Printing by PHP from Flash [message #172566 is a reply to message #172561] Mon, 21 February 2011 22:44 Go to previous messageGo to next message
Jonathan N. Little is currently offline  Jonathan N. Little
Messages: 12
Registered: February 2011
Karma: 0
Junior Member
Michael Fesser wrote:
> .oO(Jonathan N. Little)
>
>> Michael Fesser wrote:
>>> .oO(Luuk)
>>>
>>>> there is no such thing as client side PHP.....
>>>
>>> Well, there were some experimental packages for IE and Mozilla.
>>
>> What do you mean by that? PHP is server side technology.
>
> Nope, PHP is a programming language. It can be used wherever an
> interpreter exists. The same is true for JavaScript - most people
> consider it a client-side language, but it's also used on servers.
>
>> References please.
>
> Google MozPHP for example. There also was an addon for IE some years
> ago. As said - it was experimental. But it's possible and even HTML
> allows for various languages in its 'script' element. At least in
> theory - in practice there's almost always just JS.

I knew it programming language where traditional used server side like
Perl, and also like Perl stand-alone, but didn't know of any in-browser
plugins before. Learn something new everyday. I can assume by its
obscurity the plugins never really caught on...

--
Take care,

Jonathan
-------------------
LITTLE WORKS STUDIO
http://www.LittleWorksStudio.com
Re: Customisable Printing by PHP from Flash [message #172584 is a reply to message #172517] Tue, 22 February 2011 01:28 Go to previous messageGo to next message
The Natural Philosoph is currently offline  The Natural Philosoph
Messages: 993
Registered: September 2010
Karma: 0
Senior Member
Singlish King wrote:
> Customisable Printing by PHP from Flash
> =======================================
>
> my friend wishes to have a website that
> allows users to choose facial expressions
> (e.g. different styles of eyes, different
> noses, different hairstyle, etc.) from
> client side Flash swf and have the result
> printed. i suppose the client side PHP
> has to do something smart in order to
> achieve this.
>

Client side php would be pretty smart in its own right :-)

> how can this be done?

google 'javascript' for starters.
>
> thanks for your help.
Re: Customisable Printing by PHP from Flash [message #172609 is a reply to message #172556] Tue, 22 February 2011 05:12 Go to previous messageGo to next message
Singlish King is currently offline  Singlish King
Messages: 5
Registered: February 2011
Karma: 0
Junior Member
On 22/02/2011 04:33, Jerry Stuckle wrote:
> On 2/21/2011 3:20 PM, Singlish King wrote:
....
>> my bad. i meant server side PHP. basically,
>> PHP & Flash somehow have to work together, but how?
>
> You can't print on the client from the server. The client has to do the
> printing.
....


you can get Flash to tell PHP what the user chose (eyes, nose,
hairstyle) and get PHP to generate a pdf or something printable.
but how?
Re: Customisable Printing by PHP from Flash [message #172611 is a reply to message #172566] Tue, 22 February 2011 05:13 Go to previous messageGo to next message
Singlish King is currently offline  Singlish King
Messages: 5
Registered: February 2011
Karma: 0
Junior Member
On 22/02/2011 06:44, Jonathan N. Little wrote:
> Michael Fesser wrote:
>> .oO(Jonathan N. Little)
>>
>>> Michael Fesser wrote:
>>>> .oO(Luuk)
>>>>
>>>> > there is no such thing as client side PHP.....
>>>>
>>>> Well, there were some experimental packages for IE and Mozilla.
>>>
>>> What do you mean by that? PHP is server side technology.
>>
>> Nope, PHP is a programming language. It can be used wherever an
>> interpreter exists. The same is true for JavaScript - most people
>> consider it a client-side language, but it's also used on servers.
>>
>>> References please.
>>
>> Google MozPHP for example. There also was an addon for IE some years
>> ago. As said - it was experimental. But it's possible and even HTML
>> allows for various languages in its 'script' element. At least in
>> theory - in practice there's almost always just JS.
>
> I knew it programming language where traditional used server side like
> Perl, and also like Perl stand-alone, but didn't know of any in-browser
> plugins before. Learn something new everyday. I can assume by its
> obscurity the plugins never really caught on...


learnt something from my "mistake" (so-called). OK, can anyone solve my
original problem?
Re: Customisable Printing by PHP from Flash [message #172613 is a reply to message #172609] Tue, 22 February 2011 05:18 Go to previous messageGo to next message
Jerry Stuckle is currently offline  Jerry Stuckle
Messages: 2598
Registered: September 2010
Karma: 0
Senior Member
On 2/22/2011 12:12 AM, Singlish King wrote:
> On 22/02/2011 04:33, Jerry Stuckle wrote:
>> On 2/21/2011 3:20 PM, Singlish King wrote:
> ...
>>> my bad. i meant server side PHP. basically,
>>> PHP & Flash somehow have to work together, but how?
>>
>> You can't print on the client from the server. The client has to do the
>> printing.
> ...
>
>
> you can get Flash to tell PHP what the user chose (eyes, nose,
> hairstyle) and get PHP to generate a pdf or something printable.
> but how?

PHP would have to have access to the same graphics Flash does, and build
an image using the GD libraries.

Why are you even getting PHP involved? Flash can print on the client's
printer just fine.

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex(at)attglobal(dot)net
==================
Re: Customisable Printing by PHP from Flash [message #172617 is a reply to message #172613] Tue, 22 February 2011 08:09 Go to previous messageGo to next message
Erwin Moller is currently offline  Erwin Moller
Messages: 228
Registered: September 2010
Karma: 0
Senior Member
On 2/22/2011 6:18 AM, Jerry Stuckle wrote:
> On 2/22/2011 12:12 AM, Singlish King wrote:
>> On 22/02/2011 04:33, Jerry Stuckle wrote:
>>> On 2/21/2011 3:20 PM, Singlish King wrote:
>> ...
>>>> my bad. i meant server side PHP. basically,
>>>> PHP & Flash somehow have to work together, but how?
>>>
>>> You can't print on the client from the server. The client has to do the
>>> printing.
>> ...
>>
>>
>> you can get Flash to tell PHP what the user chose (eyes, nose,
>> hairstyle) and get PHP to generate a pdf or something printable.
>> but how?
>
> PHP would have to have access to the same graphics Flash does, and build
> an image using the GD libraries.
>
> Why are you even getting PHP involved? Flash can print on the client's
> printer just fine.
>


I have the same confusion.
What I understand from OP so far:
1) Some website holds a Flash movie that allows the visitor to make a
face/drawing/whatever.
2) Then it should be printed (on the client machine I expect)
3) Why not let Flash print????

Google for: flash api print
and you'll get many results.
I have been printing with Macromedia Director (Shockwave) on the web
when the new millennium still had start. But don't ask me now how
exactly. ;-) All I remember it was very easy.

Regards,
Erwin Moller

--
"That which can be asserted without evidence, can be dismissed without
evidence."
-- Christopher Hitchens
Re: Customisable Printing by PHP from Flash [message #172619 is a reply to message #172609] Tue, 22 February 2011 09:14 Go to previous message
The Natural Philosoph is currently offline  The Natural Philosoph
Messages: 993
Registered: September 2010
Karma: 0
Senior Member
Singlish King wrote:
> On 22/02/2011 04:33, Jerry Stuckle wrote:
>> On 2/21/2011 3:20 PM, Singlish King wrote:
> ...
>>> my bad. i meant server side PHP. basically,
>>> PHP & Flash somehow have to work together, but how?
>>
>> You can't print on the client from the server. The client has to do the
>> printing.
> ...
>
>
> you can get Flash to tell PHP what the user chose (eyes, nose,
> hairstyle) and get PHP to generate a pdf or something printable.
> but how?

Actually of course you CAN print on the client from the server..if the
client is running a wide area line print protocol daemon, as a server,
there is no firewall or NAT in the way, and..you have a fast enough
internet connection.

I did in fact try this as a test once. It does in fact work, but of
course its hopelessly impractical with most clients behind NAT firewalls
on dynamic addresses running broken operating systems like Windows.. and
total idiots behind the keyboard.
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: fopen with URL *never* fails
Next Topic: Ruby on rails training for PHP developers
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Mon Nov 25 20:53:36 GMT 2024

Total time taken to generate the page: 0.02448 seconds