User Profile
Collapse
-
What error do you get when trying to login? -
-
There is also a max. runtime limit which is 5-min.
But I have a solution:
-Have a 5-min cron that updates data.
-Have a code snippet in the app. web page that checks a specific time interval (1 min) and updates if needed.
This way if you don't have website traffic, you make sure your data is updated every 5min. If you do have traffic, you have more frequent updates.
This approach works, unless...Leave a comment:
-
Use this following query:
SELECT *, DAYOFMONTH(date time_column) AS formatted_date FROM Events
Now you can get it with your new key as:
$row['formatted_date ']Leave a comment:
-
As far as I remember, you cannot use any HTML element inside textarea element at all. If you do they're considered and parsed as plain text.Leave a comment:
-
Cron Alternative to Solve 5-Minutes-Limit at My Web Host
Hi,
With my web host, I'm able to run a cron every 5 minutes, but not any shorter.
I'm developing a Twitter application and I need to run a PHP script, say every minute, to retrieve new data.
Since I cannot run a 1-min-cron, what else can I do?
A reliable pingdom-like service that visits a page every minute (but from just one location preferably, not multiple locations) would do the trick. But is... -
So how would users navigate with the keyboard (TAB key etc.) without it?Leave a comment:
-
Creating Fonts for GD Graphics Libary
Has anyone created a GD font to use with imageloadfont() function in GD library? I need a tutorial or some guidelines if you have any.
I particularly need the GD version of bitmap Tahoma Bold 10px font.
PS: I don't want to use a TrueType font with imagettftext(), since I need antialiasing turned off and specific hinting on the bitmap letters as you would have in a bitmap font.
Thanks. -
I've made a few tests; sending multiple requests to read/write the file and it worked perfectly.
As I'm told here and at some other forum, the queue is handled by the server and you don't need anything else than using flock().
Thanks.Leave a comment:
-
Thanks for the answer.
Still not clear what happens when a user tries to save a score while another is already submitting score.
Suppose I locked the file with flock while processing the first request.
Does this mean the second user will simply wait (most probably for a very short time in my case) and this request will be processed successfully after the first?
Or does it mean, the second...Leave a comment:
-
Saving High Scores to A Text File - Multiple Requests
Hi,
I've built a Flash game and using PHP to save scores to a text file. Everything works fine so far.
My potential problem is that I'm not sure what happens when there are multiple requests to write to the file simultaneously. The file might be corrupted, or the request(s) might fail?
I'm not good at file system functions so I need your help. This is the basic structure of my script:
... -
Your problem is not clear enough to me, but embedding the required characters might be the solution. Please read: http://livedocs.adobe.com/flash/9.0/...=00000892.htmlLeave a comment:
-
Little bit of a long code to read here, so add some trace calls within your code to detect which line causes the null reference error.
Don't you see a line number in the error mesage?Leave a comment:
-
I'm not that expert in programming to discuss benefits of OOP but here is a short article by Paul Graham about the matter:
Why Arc Isn't Especially Object-OrientedLeave a comment:
-
Okay, that's how I thought when I think how to convert the word list into an actionscript array.
Actually, I do want them to download and use the game in their site (probably with high scores functionality disabled etc.). Just not prefer to deliver a plain text file....Leave a comment:
-
I just need to hide it from the average people who like to add the game into their website. I don't like the idea to include a plain text file to the zip archive.
Maybe I should also add a simple encryption to make it harder to get the words by viewing the binary code of the swf (or by using decompilers?), but it's not that much important actually.
About using a scripting language; do you mean generating the .as file from...Leave a comment:
-
Do you mean hardcoding thousands of words (by copy/paste of course) as:
I'm trying to protect the word list and don't like to do encryption in the text file.Code:var wordList:Array = new Array("apple", "orange", "banana");
With this method I still can have an external file for users to add new words (I don't think it's likely so in this kind of a game though) and append it to...Leave a comment:
-
Import a Text File in Flash
Hi,
I'm developing a flash game and need to read data from a text file (about 100k). I do not want to read it from an external file.
-Is it possible to somehow import a text file into flash and compile swf without a need for an external file to read at runtime?
-How about putting the huge data into a string object defined in an .as file? Or is there a specific class to handle such data?
Let me know... -
Sprite objects don't have a timeline like movieclip objects. So you cannot jump to a frame in a sprite. Please post the relevant code or the .fla file.Leave a comment:
-
Try to find where 'pictures' is located; imported from library to stage (likely so), or created with actionscript.Leave a comment:
No activity results to display
Show More
Leave a comment: