473,607 Members | 2,674 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

php and Flash?

Hi

I have a page written with php and a MySQL Database. Now, I want to redesign
the whole, but still with the Database and php. is it possible to design the
page with Flash and then to put all the php commands into the source code?
specially, I still need the extension *.php?

Greets and thanks in advance
mirco
Jul 16 '05 #1
5 3374
RG

"Mirco" <mi****@gmx.net > wrote in message
news:3f******** @news.swissonli ne.ch...
Hi

I have a page written with php and a MySQL Database. Now, I want to redesign the whole, but still with the Database and php. is it possible to design the page with Flash and then to put all the php commands into the source code?
specially, I still need the extension *.php?

Greets and thanks in advance
mirco

Think about it.
Flash is loaded onto the client. How can a php script execute on the client?
Think of Flash as being a HTML page that is loaded into a users browser, you
can use it to make requests to php scripts, just like you can click a link
or submit a form in an HTML page.
Once a request is processed, the generated information is sent back to the
users browser.

Hope this helps
RG

Jul 16 '05 #2
Hi.

Although, you can use small Flash objects in your page and give them
arguments comming from PHP.

I use this to display text in a non-standard font:

<object classid="clsid: D27CDB6E-AE6D-11cf-96B8-444553540000"
codebase="http://download.macrom edia.com/pub/shockwave/cabs/flash/swflash.ca
b#version=6,0,0 ,0" width="550" height="44">
<param name="movie" value="myflash. swf<? echo "?title=$ti tle" ?>">
<param name="quality" value="high">
<embed src="myflash.sw f<? echo "?title=$ti tle" ?>" quality="high"
pluginspage="ht tp://www.macromedia. com/go/getflashplayer"
type="applicati on/x-shockwave-flash" width="550" height="44"></embed>
</object>

Note that the code comes from the published HTML file, I only added '<? echo
"?title=$ti tle" ?>' two times. In Flash you can use the argument. Just make
a text object, make it 'Dynamic Text' and set Var: to e.g. "my_var". Then in
the first frame add the actions varText = t; and you're done. A
Stage.showMenu= false; can be nice, to hide the big flash-right-mouse-menu.

In this fashion you could also give all content attributes to Flash. You'd
first do all your PHP things, then echo the <object><embe d> tags and add
every variable as ?name=$name&tex t=$text&date=$d ate etc. This will be sent
to the client. The client will request the Flash file and it will be sent.
Then, client-side, Flash would have to deal with all the attributes. It's
not a pretty solution, but it is one.

Greetings and good luck,

- John

"RG" <Me@NotTellingY a.com> wrote in message
news:3f******** *************** @mercury.nildra m.net...

"Mirco" <mi****@gmx.net > wrote in message
news:3f******** @news.swissonli ne.ch...
Hi

I have a page written with php and a MySQL Database. Now, I want to redesign
the whole, but still with the Database and php. is it possible to design

the
page with Flash and then to put all the php commands into the source code? specially, I still need the extension *.php?

Greets and thanks in advance
mirco

Think about it.
Flash is loaded onto the client. How can a php script execute on the

client? Think of Flash as being a HTML page that is loaded into a users browser, you can use it to make requests to php scripts, just like you can click a link
or submit a form in an HTML page.
Once a request is processed, the generated information is sent back to the
users browser.

Hope this helps
RG

Jul 16 '05 #3
Have you looked at PHP Ming library - you could generate a Flash movie
dynamically from the database.

Your HTML page contains a Flash movie whose src is the php script
generating the Flash.

http://uk2.php.net/manual/en/ref.ming.php

John Beardsworth
www.beardsworth.co.uk


"RG" <Me@NotTellingY a.com> wrote in message news:<3f******* *************** *@mercury.nildr am.net>...
"Mirco" <mi****@gmx.net > wrote in message
news:3f******** @news.swissonli ne.ch...
Hi

I have a page written with php and a MySQL Database. Now, I want to

redesign
the whole, but still with the Database and php. is it possible to design

the
page with Flash and then to put all the php commands into the source code?
specially, I still need the extension *.php?

Greets and thanks in advance
mirco

Think about it.
Flash is loaded onto the client. How can a php script execute on the client?
Think of Flash as being a HTML page that is loaded into a users browser, you
can use it to make requests to php scripts, just like you can click a link
or submit a form in an HTML page.
Once a request is processed, the generated information is sent back to the
users browser.

Hope this helps
RG

Jul 16 '05 #4
in article 3f********@news .swissonline.ch , Mirco at mi****@gmx.net wrote on
24/7/03 8:41 am:
Hi

I have a page written with php and a MySQL Database. Now, I want to redesign
the whole, but still with the Database and php. is it possible to design the
page with Flash and then to put all the php commands into the source code?
specially, I still need the extension *.php?

Greets and thanks in advance
mirco

The best way IMHO to use flash and PHP is to create XML and read that into
flash using the XML object also you might like to look at www.ghostwire.com
which does an open source version of the flash remoting server. Not used it
but it looks cool.
Richard

Jul 16 '05 #5
Oops, varText=t should be my_var=t.

"JohnVT" <jo********@foo bar.nl> wrote in message
news:3f******** *************@n ews.versatel.ne t...
Hi.

Although, you can use small Flash objects in your page and give them
arguments comming from PHP.

I use this to display text in a non-standard font:

<object classid="clsid: D27CDB6E-AE6D-11cf-96B8-444553540000"
codebase="http://download.macrom edia.com/pub/shockwave/cabs/flash/swflash.ca b#version=6,0,0 ,0" width="550" height="44">
<param name="movie" value="myflash. swf<? echo "?title=$ti tle" ?>">
<param name="quality" value="high">
<embed src="myflash.sw f<? echo "?title=$ti tle" ?>" quality="high"
pluginspage="ht tp://www.macromedia. com/go/getflashplayer"
type="applicati on/x-shockwave-flash" width="550" height="44"></embed>
</object>

Note that the code comes from the published HTML file, I only added '<? echo "?title=$ti tle" ?>' two times. In Flash you can use the argument. Just make a text object, make it 'Dynamic Text' and set Var: to e.g. "my_var". Then in the first frame add the actions varText = t; and you're done. A
Stage.showMenu= false; can be nice, to hide the big flash-right-mouse-menu.

In this fashion you could also give all content attributes to Flash. You'd
first do all your PHP things, then echo the <object><embe d> tags and add
every variable as ?name=$name&tex t=$text&date=$d ate etc. This will be sent
to the client. The client will request the Flash file and it will be sent.
Then, client-side, Flash would have to deal with all the attributes. It's
not a pretty solution, but it is one.

Greetings and good luck,

- John

"RG" <Me@NotTellingY a.com> wrote in message
news:3f******** *************** @mercury.nildra m.net...

"Mirco" <mi****@gmx.net > wrote in message
news:3f******** @news.swissonli ne.ch...
Hi

I have a page written with php and a MySQL Database. Now, I want to

redesign
the whole, but still with the Database and php. is it possible to
design
the
page with Flash and then to put all the php commands into the source code? specially, I still need the extension *.php?

Greets and thanks in advance
mirco

Think about it.
Flash is loaded onto the client. How can a php script execute on the

client?
Think of Flash as being a HTML page that is loaded into a users browser,

you
can use it to make requests to php scripts, just like you can click a

link or submit a form in an HTML page.
Once a request is processed, the generated information is sent back to the users browser.

Hope this helps
RG


Jul 16 '05 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

9
8576
by: Keith Rowe | last post by:
Hello, I am trying to reference a Shockwave Flash Object on a vb code behind page in an ASP.NET project and I receive the following error: Guid should contain 32 digits with 4 dashes (xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx). On the aspx page I have the object tag as follows:
8
4054
by: Ben Bartsch | last post by:
Looking for opinions on the use of Flash with ASP.NET. Has anyone here seen or conducted any implementations of Flash that are actually useful or otherwise complement ASP.NET?
4
21838
by: vivek | last post by:
I am new to flash and want someone to guide me, Is it possible to create a UI entirely in Flash and that will inetract with C# components (backend) and these components will in return interact with database etc. If flash and C# interaction is possbile then, what are the prons and cons of this interaction? As using flash, one can create wonderful UI. But in return I also want it to interact fully with C# components.
1
2222
by: dscriv | last post by:
Hello, I have Netscape 8.0.4 (in Firefox mode) and Flash 8.0.24.0. I also have IE and Firefox installed. If I go to this page, which contains a Flash detection movie: http://www.adobe.com/cfusion/knowledgebase/index.cfm?id=tn_15507 all three browers successfully run the Flash movie and show the same version of Flash to be installed. However, if I try to use a javascript Flash detection solution, it does
115
13244
by: post2google | last post by:
I was thinking about where to go for lunch the other day, so I went to hardees.com to see what the menu looked like these days. What comes up is a big note that my flash version is not new enough so I can't use the site. What complete losers! When are businesses going to understand that the purpose of a web site is to communicate with customers or business parterns and NOT so your "web master or "web engineer" can show off what they...
10
29895
by: Steve Cook | last post by:
Hi, I have an upload application written in PHP and Flash. The PHP page gets the file information via $_POST. Moreover, the user never actually visits the PHP page, rather Flash sends the information to the PHP page and then loads the result, all in the background. Right now, the php page cannot access the $_SESSION. Is there anyway that I can conitnue the PHP session when doing this or does the user have to visit the PHP page?
8
5884
by: Neo Geshel | last post by:
Greetings. BACKGROUND: My sites are pure XHTML 1.1 with CSS 2.1 for markup. My pages are delivered as application/xhtml+xml for all non-MS web clients, and as text/xml for all MS web clients (Internet Explorer). My flash content was originally brought in via the “flash satay” method, but I have since used some server-side magic do deliver one <objecttag
1
2723
by: critchey1 | last post by:
Hey everyone, i've been playing around with trying to get some scripts to work with detecting whether flash player is installed on your computer or not. I found a flash detection kit on the adobe site which had a client side detection method using javascript. Basically what im trying to get it to do is if flash player is installed, use the style property display="none" to hide my static content, and if flash is not installed hide the flash...
2
8064
dream party
by: dream party | last post by:
Inserting a Flash (SWF, FLV) file into HTML web page is already an old and familiar thing to all of us. It is a rather non-flexible thing that just to edit some options in the template. However, I did not understand some parameters totally in the HTML tag. These days when I was surfing the Internet I have found some comprehensive introduction to these two tags. I read it and conclude it with my own words; I think it will be useful to us, so I...
0
7985
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8463
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8128
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8322
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
5471
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
3953
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
2461
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1574
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
1316
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.