Jump to content


 


Register a free account to unlock additional features at BleepingComputer.com
Welcome to BleepingComputer, a free community where people like yourself come together to discuss and learn how to use their computers. Using the site is easy and fun. As a guest, you can browse and view the various discussions in the forums, but can not create a new topic or reply to an existing one unless you are logged in. Other benefits of registering an account are subscribing to topics and forums, creating a blog, and having no ads shown anywhere on the site.


Click here to Register a free account now! or read our Welcome Guide to learn how to use this site.

Photo

SWF 2 PHP


  • Please log in to reply
7 replies to this topic

#1 dlngle

dlngle

  • Members
  • 9 posts
  • OFFLINE
  •  
  • Local time:04:05 AM

Posted 31 March 2005 - 10:36 AM

Hi,
I am in desperate need of a way to get infomation out of a swf file into php.
I have full access to the swf file and all I need is a bit of a how to on making them run 2gether.

I am running a forum using PunBB and am allowed to edit whatever script with in copyright laws.

NE Ideas

Goal: To get info from a RPG game I made with flash and post it on my site. I also want the users of the forum to view the info from the game in there profile page, and perhaps even edit it. Umm I'm not realy learned in "PHP" So if its not 2 much trouble could the script/answer/wateva be spelt out in simple terms :thumbsup:

thanks so much if you can help
thanks so much if you cant :flowers:

BC AdBot (Login to Remove)

 


#2 Grinler

Grinler

    Lawrence Abrams


  • Admin
  • 43,504 posts
  • OFFLINE
  •  
  • Gender:Male
  • Location:USA
  • Local time:05:05 AM

Posted 31 March 2005 - 11:23 AM

I do not know much about SWF files. Can you make it open a certain url when you want it to?

#3 dlngle

dlngle
  • Topic Starter

  • Members
  • 9 posts
  • OFFLINE
  •  
  • Local time:04:05 AM

Posted 01 April 2005 - 04:49 AM

Yes i can and i can make it open any url I need.

Edited by dlngle, 01 April 2005 - 04:49 AM.


#4 Grinler

Grinler

    Lawrence Abrams


  • Admin
  • 43,504 posts
  • OFFLINE
  •  
  • Gender:Male
  • Location:USA
  • Local time:05:05 AM

Posted 01 April 2005 - 09:13 AM

What you are looking for may be a big project. Basically you want to attach the info to a url and use php or other web programming script to take that info and put it in a database. Then you can read the info from that database on a page in your site.

For example lets say at intervals in the game you send the following url:

http://www.site.com/scores.php?user=grinler&score=1000000

The scores.php will take that info and add it to your database. Then you can select the top 10 scores. Now this is very basic, but it gives the general idea of how it would work. Unfortunately this could turn into a rather large project so you may want to learn php

#5 dlngle

dlngle
  • Topic Starter

  • Members
  • 9 posts
  • OFFLINE
  •  
  • Local time:04:05 AM

Posted 01 April 2005 - 09:50 PM

Yea i thought it might be. Could you give me a tip where I could learn what I would need to know? If not maybe some pointers on how to get started, I have been studying a few forum scripts to get some ideas and I'm sort of getting the general Idea of php. I found that it calls info from a number of other scripts and can make new webpages by the info in the database? But I still cant find how to pull and print variables its got me stuck, could you give me the main idea of them and how I could use them?

#6 Grinler

Grinler

    Lawrence Abrams


  • Admin
  • 43,504 posts
  • OFFLINE
  •  
  • Gender:Male
  • Location:USA
  • Local time:05:05 AM

Posted 02 April 2005 - 01:18 PM

An excellent book to read is:

PHP and Mysql web development by luke welling and laura thomson

#7 dlngle

dlngle
  • Topic Starter

  • Members
  • 9 posts
  • OFFLINE
  •  
  • Local time:04:05 AM

Posted 04 April 2005 - 06:58 AM

kool ill giv it a look

#8 visitus

visitus

  • Members
  • 5 posts
  • OFFLINE
  •  
  • Location:UK
  • Local time:04:05 AM

Posted 12 August 2005 - 10:51 AM

Also check out the PHP.NET website for the latest functions in PHP.

I have got info out of image files when I have uploaded them with a web form file field. In php the information goes in to the $HTTP_POST_FILES variable, you can use that to extract information about the file.

There are also some functions for getting image sizes that may work with flash, it depends on the info you want to extract, e.g for image size use:

getimagesize("image_path") check php.net for more

hope this helps,

Graham

ps. the PHP and Mysql web development book is great, used it to build my website building site.

Edited by visitus, 12 August 2005 - 10:53 AM.





0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users