Archive for the ‘Varia’ Category

Flash Remoting for PHP – Part 1 – Installing amfphp to webserver

Flash Remoting for PHP ?

Flash remoting allows flash movies to get database data from your system or webserver, without knwoledge of the server side.

without complex code and knowing to much of databases , you will be able to add database connection for receiving and sending data from and towards your database to your Flex / Air / Flash  applications.

Advantage?

I can tell you it is fairly easy and time saving , think about XML’s a great while back , i had many stress moments loading tons of data  :D , the only thing we need is a little bit of know-how.

Which i will give in this first post , starting from the beginnen : the installation

What do we need?
- Webserver with PHP4 ( > 4.3.0 ) or PHP5 installed on it

- PHPMyAdmin installed on the webserver

- amfphp source files : download

- ftp client to upload the amfphp source files (for mac: download here , for windows: download here )

Instructions

Step 1 - Unzip the amfphp download, and upload this folder to the root folder of your personal webspace , make it look something like this

Structure of the amfphp folder

Structure of the amfphp folder

Step 2 – gateway.php is found in the main folder of the source code , there you can change some basic settings, but i never have to do so , standard settings work fine for me .. after installation we will run through a little test , if this fails you might want to read through and change some settings … just making a mention of it!

Step 3 – great, now that the amfphp folder is online … lets test it before we continue …

navigate in the browser to the folowing url:

http://www.[myonlinespace].[myextention]/amfphp/gateway.php

if getting this following screen , it is telling you that you are set … installation OK!

Install Succesfull

Install Succesfull

So will it work?

Just to make sure all settings are done correct: Lets click on “Load the service browser

After everything is loaded and displayed, you will see something like this:

Service Browser

Service Browser

This is the service browser, showing all the available services (service in this case : a custom php class holding functions for retrieving and adding database data )

Now click on the DiscoveryService (service which will give some information about all the other services, if available) , you will see that in the right box some items were added, those are the methods (like functions in programming). Clicking on one, and calling this method will result in some information in the bottom tabs…

If you do not see the newly added methods, proceed to the troubleshooting area …

Troubleshooting

Not getting as descibed above or getting error messages : one common mistake that many make, is forgetting to set the right file permissions … in FileZilla this can be easy done by clicking the amfphp base folder and right clicking – File Attributes … – set the parameters as folowing:

File Attribute Parameters

File Attribute Parameters

Just starting with playing around with the amfphp? register here for some nice , free webspace to get started …

Flash Remoting for PHP – Part 2 – Creating my own Service (getting data)

Coming Soon : Flash Remoting for PHP – Part 3 – Creating my own Service (adding data)

Coming Soon : Flash Remoting for PHP – Part 4 -  Services & Flash Actionscript

Sleep, Work, Sleep …

Seems like i’am floating in heaven , …. So quite …

Been busy, working on final projects, damn , but it has te be done …

But at the end of next month, i’ll be having plenty of time to develop new ideas … And jeah! I got some nice ones …

Keep you posted …

Designz WordPress Desktop Background

Just made a little ‘advertisement item’ for my blog, …

A simple, altough good looking desktop background image…

Free of use, if u like: please use, if u don’t like: please don’t use …. :D

In the future ‘hours of nothing to do’ i will make some new versions …

Previeuw

Download desktop decoration…

Autoitscript: AutoMate your Actions…

Recently, I got to know this peace of FreeWare…

(thanks Marco … Pretty neat btw… !)


I must say, it’s pretty fascinating, other than Java, C++, C#, VB, it’s a different way of programming… , a new way, but hey, learing new things is never a crime…

Easy to pick-up, new possibility’s, and though so usefull….

AutoIt v3 is a freeware BASIC-like scripting language designed for automating the Windows GUI and general scripting. It uses a combination of simulated keystrokes, mouse movement and window/control manipulation in order to automate tasks in a way not possible or reliable with other languages (e.g. VBScript and SendKeys). AutoIt is also very small, self-contained and will run on all versions of Windows out-of-the-box with no annoying “runtimes” required!
AutoIt was initially designed for PC “roll out” situations to reliably automate and configure thousands of PCs. Over time it has become a powerful language that supports complex expressions, user functions, loops and everything else that veteran scripters would expect.
Features:
  • Easy to learn BASIC-like syntax
  • Simulate keystrokes and mouse movements
  • Manipulate windows and processes
  • Interact with all standard windows controls
  • Scripts can be compiled into standalone executables
  • Create Graphical User Interfaces (GUIs)
  • COM support
  • Regular expressions
  • Directly call external DLL and Windows API functions
  • Scriptable RunAs functions
  • Detailed helpfile and large community-based support forums
  • Compatible with Windows 95/98/ME/NT4/2000/XP/2003/Vista
  • Unicode support
  • Digitally signed for peace of mind
  • Works with Windows Vista’s User Account Control (UAC)
AutoIt has been designed to be as small as possible and stand-alone with no external .dll files or registry entries required making it safe to use on Servers. Scripts can be compiled into stand-alone executables with Aut2Exe.
Also supplied is a combined COM and DLL version of AutoIt called AutoItX that allows you to add the unique features of AutoIt to your own favourite scripting or programming languages!
Best of all, AutoIt continues to be FREE – but if you want to support the time, money and effort spent on the project and web hosting then you may donate using the link to your left in the menu.

And for the Vista user, don’t want to say , booooeeee, just thinking it , outloud, sorry… , it’s fully Compatible…

For me, the automating scripts of posting to different forums turns me on…

This will enable me making my own ForumPoster without logging into the forum….

When the time is right i will defently go into this freeware a lot more…

Just wanted to make a holla to other people who didn’t hear of this pretty piece of creation…

References & Download