Posts filed under 'PHP'
The future of coding PHP in FlashDevelop may be quite closer than expected, thanks to user: kuzya (flashdevelop member from russia)
http://www.flashdevelop.org/community/viewtopic.php?p=13082
He modified the HaXeContext plugin and now you can see your php class methods and variables in the outline pane. It was a bit buggy, and then Philippe managed to get to get a basic PHP context working overnight!
Philippe’s version is the Flashdevelop SVN. If you would like to know how to compile the source code and get started with FD development go here: Participation [Getting started with FD Development]
If you want to try out the initial HAxe Context by kuzya, you can download the plugin: http://spbgu.ru/upload/kuzya/HTMLContext.dll
Copy that dll in your Flashdevelop plugins folder:
Usually: C:\Program Files\FlashDevelop\Plugins
Open a PHP file in FlashDevelop then select Haxe from the Syntax Menu.
Here’s a screenshot:

April 28th, 2008
Just a small reminder that might help anyone getting some weird characters with AMFPHP. It can happen when you copy a full text from Microsoft Word. And the quotes get inserted in your DB.
You might find some funny results like an Euro symbol appearing throughout your text. Uncomment this line in your amfphp gateway:
$gateway->setCharsetHandler("utf8_decode", "ISO-8859-1", "ISO-8859-1");
Here are some examples of text you might find:
‘ = This is the open double quote
’ = This is the close double quote
Here is a good resource if you’re having issues with strange characters and PHP / MySQL: ByteFlex – Fun with utf8, PHP and mysql
January 31st, 2008
I am currently reading “CodeIgniter for Rapid PHP Application Development” from David Upton.
If you have a blog and are willing to write a review of a book you could get a free book. Here are more details on how to get a free book.
I will be writing a review on the book as soon as I finish reading it. I also recommend you visit their site and have a look at the collection of books.
After this review I’ve also got PHP Web 2.0 Mashup Projects. So I’ll be reviewing that too in the following weeks.
October 25th, 2007
I started using Flash at version 4, when I was working at W3.com.ar and I remember also having to fiddle with some Flash 3 banners. When Flash 5 came out and you could do some proper coding, it was all done inside the IDE. Then we discovered the include directive and were using Textpad with most of our code.
Then came SEPY and I got hooked straight-away. Just last year I transitioned to FlashDevelop and have been using that since. I convinced my fellow workmates and now we are all using it.
I knew there were other tools put there, but one that I really wanted to try was FDT. Check out there cool site and view the demos they have.
A couple of months back I won a license at Sydney’s Flash User Group (thanks Chris!) and I have started using it for tests. I currently haven’t fully switched yet, because I find FlashDevelop quite fast and very easy to use compared to FDT. Though FDT has on the fly syntax checking. It means I don’t have to press F7 each time before compiling.
Then talking about my PHP development environment. It was trusty old Textpad through-out all these years. Adding different syntax libraries, macros and all kind of clip extensions. But it was never an IDE. It was missing syntax checking and the famous “intellisense”
Now I have started to move towards Eclipse, and I’ve tried PHPEclipse and PDT. I had troubles with PDT but I didn’t have much time on my hands to see why it wasn’t working as expected. I will try to consolidate my both main languages (Flash and PHP) under one IDE.
My next step is to use them both on a production project. Then I will be able to assess if it’s worth switching from FlashDevelop.
It would be great to here what others are using for their own PHP and Flash development.
Please add a comment below.
Some extra resources:
http://www.blog.lessrain.com/?p=381
August 29th, 2007
I was having some trouble in PHP with a variable getting sent as NaN.
Try this out:
This is what I was doing in my PHP code:
-
<?
-
if ($homePhotoID==
” || !
is_numeric($homePhotoID) ){
-
$homePhotoID=‘NULL’;
-
}
-
?>
I was using this variable to insert into a MySQL query. Debugging I figured out it was sending through: NaN
This is how my code ended up:
-
<?
-
-
$homePhotoID=‘NULL’;
-
}
-
?>
February 8th, 2007