Current location: Hot Scripts Forums » General Web Coding » Flash & ActionScript » PHP include in Flash


PHP include in Flash

Reply
  #1 (permalink)  
Old 03-31-08, 02:21 PM
Icetray Icetray is offline
Newbie Coder
 
Join Date: Mar 2008
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
PHP include in Flash

Just recently redid a site, making it a flash based website, but the update system is a a PHP file.
Is there a way to embed the /show_news.php file into the flash using the
Code:
<?php
include ("/show_news.php")
?>
This way the flash site has the update system embeded into it?
Thank you in advance.
Reply With Quote
  #2 (permalink)  
Old 04-02-08, 05:13 AM
UnrealEd's Avatar
UnrealEd UnrealEd is offline
Community Liaison
 
Join Date: May 2005
Location: Antwerp, Belgium
Posts: 3,165
Thanks: 4
Thanked 25 Times in 25 Posts
It depends on what the content of the show_news.php file looks like.

You can't simply output html in flash, as flash has very limited support of html tags. You'll either have to parse it as xml, or use a simple way to pass on the data to flash (using key-value pairs perhabs)
__________________
"Good judgement comes from experience, and experience comes from bad judgement." - Fred Brooks

Reply With Quote
  #3 (permalink)  
Old 04-03-08, 06:27 AM
Icetray Icetray is offline
Newbie Coder
 
Join Date: Mar 2008
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
Here is the flash page;
www.WN519.co.nr

and here is the page I want to try to embed;
www.WN519.co.nr/cutenews/show_news.php

I was told I would most likely have to usl XML, but I'm unsure.
Reply With Quote
  #4 (permalink)  
Old 04-11-08, 06:17 AM
UnrealEd's Avatar
UnrealEd UnrealEd is offline
Community Liaison
 
Join Date: May 2005
Location: Antwerp, Belgium
Posts: 3,165
Thanks: 4
Thanked 25 Times in 25 Posts
I'd go with the XML solution. Make sure all your tags are formatted according to the xml rules, otherwise you're xml parser will throw an error.
__________________
"Good judgement comes from experience, and experience comes from bad judgement." - Fred Brooks

Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Flash, XML, PHP punky79 Flash & ActionScript 2 04-03-08 02:55 PM
Include HTML into PHP page jumbo1 PHP 3 03-11-08 05:39 PM
PHP Include from PC?.. that possible Justin171985 PHP 1 02-09-06 07:56 AM
Php with flash or without tables ? EraseR PHP 0 06-26-04 07:36 AM
PHP include on vBulletin Matrix28 PHP 2 02-25-04 12:29 AM


All times are GMT -5. The time now is 06:41 PM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.