I have been getting "No input file specified" problem with the CodeIgniter based application. This issue has a quick fix.
There will be a php.ini file in the root directory. Copy it and rename the new file as php5.ini and just add following line in it:
cgi.fix_pathinfo = 1
//this directive tell PHP CGI to fix paths to conform to the spec
It solved my problem and CI application worked.
FYI: I have written codeIgniter advantages in another post at zigron blog
Flash Percent Uploader with Symfony!
I just had to upload 40+mb of video file sizes to one of my recent project, For this purpose using simple form is obviously not a good choice as user never knows how much data has been transferred and how much left. So percent uploader was inevitable here, for this purpose flash offers fileReference class which can be used to upload mutliple files to the server, with this filereference class you can get file size at onSelect event, so you can apply max-upload file size check and as well as you can monitor file transfer with onProgress event. The only problem while implementing the flash percent uploader is that you may recieve message like "A flash script is causing you computer to get slow! Would you like to abort it?". The best way to avoid this ...
well being a flash developer and being a symfony developer feels really good :).. Anyways, Symfony is awsome framework for developing today's web-applications with its nice and fine MVC architecture. So symfony developers and flash developers should know how they will work together seamlessly.
First thing is to embed the flash into your template, we know that all the assets, graphics, javascripts, css etc belongs to the web folder of symfony's project directory structure. So flash files will go here as well. I will recommend to create a folder named 'flash' .
to embed the flash in your template, you will use same <object> tag as done in the normal html files, but ofcourse you will give the relative or absolute url of your flash src, for this purpose we can use functions like _compute_public_path(...) in symfony. it will take flash file's ...
Using sfCryptographp with custom validation..
I just had to use captcha with symfony, Symfony is a great MVC framework, but i really don't like its default validation method, rather I like javascript validations, so that user don't have to wait for the server response after missing just a text field. So, I put mostly fields checking validations with javascript and then check at the server for the specific fields which do require server response like checking username if its unique in the database. Such validations are also possible with the quick response using Ajax, but all we need to do is to avoid symfony's default validation method in order to achieve that.
Now coming back to captcha, the php-captha is a great library for the normal php apps, It can also be used with symfony, but I gave preference to symfony's already ...
Loading / unloading youtube videos in flash
Hi dear readers, I recently loaded youtube videos in a flash project, it was quite straight forward, but however there was a issue when unloading the videos, cz if you donot unload the movie, it will keep playing and its sound will keep coming out, despite the fact you transfer control to anywhere at the movie.
So, I searched the forums, but I could'nt found the solution. Lots of guys are facing this issue. So, here is the solution:
// The first thing to load any external MC,
// is to create an instance of movieclipLoader Class.
var video_mcl:MovieClipLoader = new MovieClipLoader();
// Now you will like to create a container where the MC will actually load.
this.createEmptyMovieClip("container",this.getNextHighestDepth());
// Create a listener object
var mclListener:Object = new Object();
// add it to the movieClipLoader object
video_mcl.addListener(mclListener);
// onLoadInit will be triggered when the external MC ...
Game development using Flash.
hi readers, am writing this blog entry for those flash developers who want to get their hands into flash game development. I will use AS2.0 syntax for the examples. When I have to learn something then code snippets really help. So I will keep writing those sample codes, you can copy / paste those in your Flash IDE and instantly experiment on them.
Basic Maths
First of all, we need to learn basic Maths, I will not go deep into mathematics, so here is the guideline for basic maths
-> Learning basic geometry and basic coordinate system.
-> Learning basic trignometry,Learning sines, cosines and tangents and learning how to apply them.
for instance, if you are given two points (x1, y1) and (x2,y2) on the plane, you should be able to findout the angle forming b/w those points w.r.t normal.
Differences b/w Flash ...
Hi,
I am writing this quick post to help my colleagues get more knowledge about AOE, cz we just changed our evening game session from MOHAA to AOE just for the change of taste. Also AOE is real time strategy game.
So here are the quick tips:-
1) First thing you need is to select your civilization, That is important step, and it takes time to understand that which civilization works out best against particular civilizations. few examples: If your enemy has GOTHS, and you select any civilization which has their stronger units as archers then it will not work against Goths as GOTHs special units has strong Armor against archers. other example can be that if you make up an army of paladins, huge army of paladins and your enemy has the civilization "Saracens" They will massacre your strong paladins ...