Category: Other Stuff
php suppress errors
| March 30, 2009 | Posted by The Futtock under Other Stuff |
Comments off
|
When you have your PHP script up and running on the web, you might want to suppress any errors as they can show visitors some of the inner workings of your scripts.
Here are three basic levels of error suppresson or lack of it:
error_reporting(0); // Suppress all errors
ini_set (“display_errors”, “1″); // Suppress all but fatal …
PHP change max execution time
| March 30, 2009 | Posted by The Futtock under Other Stuff |
Having trouble with your PHP scripts timing out? You need to change the max execution time. Try one or both of the following:
ini_set(“max_execution_time”, 60); // Set to 60 seconds
set_time_limit(60); // Set to 60 seconds
For no time limit try:
set_time_limit(0); // No time limit
You might still run into problems of your server is running PHP in …
HTML for beginners
| December 20, 2008 | Posted by The Futtock under Other Stuff |
Comments off
|
HTML or HyperText Markup Language is a set of tags added to text that give instructions regarding the display and structure of the text.
HTML is just a text file
Web pages are HTML documents
HTML documents can be created and edited in any text editor such as notepad in windows
Tags start with an open angle bracket …
Database driven scripts
| October 24, 2008 | Posted by The Futtock under Other Stuff |
Comments off
|
I am currently working on a Scala InfoChannel project where the entire script needs to be database driven so clients can log into an online portal, and change the order of screens without the need for any technical knowledge.This is done by the Scala script talking to a VBScript that in turn gets the …
Connect to MSSQL database
| October 21, 2008 | Posted by The Futtock under Other Stuff |
Comments off
|
The following code can be used in VBScript to connect to a database. It uses both a timout and ping to make sure there is a connection to the database.
This is very handy when creating database driven Scala Infochannel scripts. It also uses error traping to make sure the script does not stop running …
Change Cursor Colour
| October 21, 2008 | Posted by The Futtock under Other Stuff |
When using input text boxes in Scala InfoChannel Designer, the default colour for the cursor seems to be yellow. There does not seem to be an obvious way to set this colour. The way around this is to change the yellow in the pallet to what ever colour you want or go straight to …
Offline database driven scripts
| October 21, 2008 | Posted by The Futtock under Other Stuff |
Running a database driven scala script is great but what do you do if the connection to the database goes down?
The solution is to not have a database driven script!
Seriously though, make the script text file driven, so that all the data required by the script comes from a text file. Then have a …
Scala InfoChannel Get Player Name
| October 21, 2008 | Posted by The Futtock under Other Stuff |
In Scala InfoChannel if you want to get the name of the player there are two ways to do this:
1.
The variable Billing.PlayerName will return it.
Ex: playername = Billing.PlayerName;
2.
If using VBScript the following will get the player name
Set WshNetwork = CreateObject(“WScript.Network”)
playername = WshNetwork.ComputerName
Mouse not working with MovieClip
| July 4, 2008 | Posted by The Futtock under Other Stuff |
Comments off
|
Clicking not working in AS3?
If you change your mouse to a movieclip by say using: Mouse.hide(); and then simply make the movieclip’s x and y equal to the mouse x and y (stage.mouseX & stage.MouseY) you will run into trouble if the point mouseX and mouseY are not clear. You will always be clicking …
Smooth MovieClip Key Control in AS3
| July 3, 2008 | Posted by The Futtock under Other Stuff |
In Flash Actionscript 3.0 it is not as simple as AS2 to create a smooth control of a movieclip’s movement. You may find the key engages, then pauses for half a second, then continues. This is no good for gaming. Also the basic KeyboardEvent.KEY_DOWN event listener will only handle one key at a time, so you can …
Recent Comments