This page is no longer updated - please visit http://ghostwire.com Thank you!
 

« PHPObject »
An Opensource Alternative to Flash Remoting
Current Release
Readme
Notes
Journal
Archives

Readme
Saturday April 19, 2003

Installing PHPObject

--OLD--
Actually there is nothing to install. On the client-side, you just need to put the actionscript (.as) files where you can include them in your own files. Although there are three .as files included in the distribution, you only #include one of them (the PHPObject.as) in your work.

PHPObject is distributed in a zip file. Unzip the file. Run the PHPObject.mxp file (Macromedia Extension installer). This will install the actionscript files to the Flash MX include directory (Configuration/Include).

On the server-side, you need to upload the Gateway.php to a directory of your choice. There is no php extension to install, and you also shouldn't need to configure your php.ini. As long as you can run PHP4, you are ready to go. This means that you can use PHPObject even if you are using shared hosting.

--OLD--
As of v1.3, there are only two variables to configure in Gateway.php - you need to specify
- a key; and
- the path to your PHP classes.
Open the Gateway.php file in your favorite text editor and set these variables.

You can configure your gateway. Open your Gateway.php file and edit the variables in the Gateway class.

Note that the PHP classes you wish to use should be saved in individual files, and the file names should match the names of the classes. For example, the Foo class must be saved in a file called Foo.php.

You should be able to use any of your existing PHP classes without further modifications (eg. there is no need to set up a methodTable array containing available methods).

Edited 1 May 2003 06:10 PM

Posted by sunny at April 19, 2003 11:21 PM

 

Comments

Where do I get these files to download?

Posted by: Clive at April 24, 2003 04:49 PM

"Actually there is nothing to install..." so nothing to download! hahaha! just kidding :)

Sorry, the link is below "Current Release" on the lefthand panel

Posted by: sunny at April 24, 2003 05:21 PM

Hey Sunny, one more question:

Does it work with the netconnection debugger?

Posted by: Han at May 13, 2003 03:42 PM

Hi Han, sorry about this but because I don't use Macromedia's Flash Remoting, I am not sure about that (which means I have not tried, which means... most likely not). If there is enough demand for a debugger I can look into it.

By the way, just in case it is unclear - the flash remoting files from Macromedia are not required for PHPObject to work.

Posted by: sunny at May 13, 2003 05:16 PM

yeah sorry I was getting confused with amfPHP, which I'm also experimenting with. But does your solution use the binary AMF (actionscript messaging format)?

Anyway, keep looking for those Teddies :)

Posted by: Han at May 14, 2003 05:23 AM

no prob :)
and oh... the teddies say "PHPObject does not use AMF"

Read this
http://ghostwire.com/archives/phpobject/000061.html

and this
http://ghostwire.com/archives/phpobject/000009.html

Posted by: sunny at May 14, 2003 10:51 AM

I think this thing really works and it is so cool so each of you get a copy ok. Peace!!

Posted by: Lazuraus at May 14, 2003 08:24 PM

Hi! I installed the .mxp , but I do not get the actionscript files in my include directory. Any clue ?

Posted by: arjen at May 26, 2003 05:43 PM

I'm having a problem with the link, the dl.php page. IE says it doesn't know how to handle that type of a file. It then gives me the option of saving the dl.php file to disk, finding a helper app or plug-in, or canceling.

The link isn't an active link so I'm cutting & pasting it into my browser.

I tried saving it but that didn't work. Shouldn't I be getting several files.

Sunny, where is your email address? The note says to email you if you have problems, but I can't find your email address anywhere.

Posted by: Rich at May 30, 2003 01:27 AM

Some Mac users may have the problem described by Rich above (I think Mac OS X will be fine). The file downloaded is a zip file, so you need the software to unzip it (and even when you do, on the Mac, you may still face the problem described).

Posted by: sunny at May 30, 2003 11:06 AM

Sunny, you're right I'm using OSX with the built-in apache server. Once I got the files everything works great. I'm testing it now on localhost.

Posted by: Rich at May 31, 2003 01:30 AM

I'm new to using PHP and mySQL. I was looking for a basic tutorial on how to setup and use a mySQL database with flash. I downloaded your .zip file and installed the.mxp. I however did not get any .as files in the download. Where can I get them? Also do you have a more detailed tutorial on how to use phpObject? The one I saw is very vague and I don't understand much of it, especially without the .as files you make reference to that I don't have. Help me out please!!! Thanks.

Posted by: Brandon at June 2, 2003 04:38 AM

Hi Brandon, please read the notes on this page (and this website) carefully and thoroughly. Most of the information you need are already here. If after reading the notes on this website you still cannot understand, then there is really nothing that can be done. Sorry...

Hint: the .as files are "installed" when you install the .mxp

Posted by: sunny at June 2, 2003 10:46 AM

does this mean that any end user would have to download the flash extension for this to work, or is it all self contained in the flash app?

Posted by: elliott at June 5, 2003 11:19 PM

I downloaded the PHP Object, but it WinZip doesn't like it.

Winzip says, "does not appear to be a valid archive"

I'm on windows 98SE using WinZip8.0. Any ideas?

I'm really excited to try this object out!

Posted by: peter at June 13, 2003 11:49 AM

Hi:
Does this works with Apache and Linux?

Posted by: ura at June 19, 2003 04:27 AM

Hi,
I'm really impressed with phpObject, it's really a usefull thing for me.

I've try to download the Webservices Addon this day, but it look's like you have a problem with the Mysql Server...
Can you fix it ?

Best Regards

Posted by: Xavier at June 26, 2003 06:55 PM

Hello all! I downloaded and installed PHPObject successfully, and it works great on our website. Now I want to run it in my computer with WindowsXP (service pack SP1a), so I have just setup MySQL 4.0.13, Apache 1.3.27 and PHP 4.3.2. Those work properly, but the example of PHPObject refuses to communicate on the local host. What could the problem be? Thx on advance!

Posted by: Marco at July 10, 2003 07:34 AM

 


Zones



Forums