NameSilo

Flash,PHP,MySQL

Spacemail by SpaceshipSpacemail by Spaceship
Watch

asgsoft

VIP Member
Impact
9
Can somone tell me how i can use php,flash and mysql to get them working together. i tried several tutorials but they dodn't work. I am trying to make something like a blog,address book,image viewer
 
0
•••
The views expressed on this page by users and staff are their own, not those of NamePros.
GoDaddyGoDaddy
put your php script on the flash's actionscipt.. this will work I guess
 
0
•••
how? is the question
 
0
•••
The other way is to like import php...
 
0
•••
how?
 
0
•••
I Hope this helps.
Code:
/*
GMTtimer, DIGITAL FLASH CLOCK AND DATE SET BY PHP HOST SEVER GMT TIMESTAMP,
2004 by www.advance-media.com

The GMTtimer displays (GMT) Greenwich Mean Time or so-called (UTC)
Coordinated Universal Time or world time, the timer can be set to your local time zone (php part).
Flash's Date (object) is set by the current GMT php host server timestamp in
milliseconds since the Unix Epoch (0:00:00 January 1, 1970 GMT).
No manipulation or predating any more by resetting the local client sided system
clock or date,which usually synchronizes Flash's Date (object).
Show different content at an exact and server fixed point of time!

PREVIEW, TEST and DOWNLOAD AS ZIP (FLA movie + PHP) click to
GMTtimer's homepage: http://www.GMTtimer.advance-media.com
*/

<html> <!-- // upload this script as "GMTtimer.php" and a flash movie "GMTtimer.swf" -->
<head>
<title>GMTtimer, 2004 by www.advance-media.com</title>
<META http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<META name="PUBLISHER" content="WWW.ADVANCE-MEDIA.COM">
<META http-equiv="PRAGMA" content="no-cache"> <!-- // PRAGMA, EXPIRES refresh content -->
<META http-equiv="EXPIRES" content="0">
</head>
<body bgcolor="#000000" onload="frame ()">
<table width="100%" height="100%" border="0"> <!-- // table to center the flash movie horizontally and vertically -->
<tr>
<td align="center" valign="middle">
<?php
$timestamp = explode(" ",microtime());
$timestamp = round(($timestamp[1] + $timestamp[0])*1000); // GMT server timestamp in milliseconds
//$timestamp += 1000*60*60*9; // set a (your local) time zone offset? here GMT +9 hours in milliseconds are added
?>
<!-- // embed the flash movie and send the timestamp variable -->
<OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0"	WIDTH="69%" HEIGHT="69%">
<PARAM NAME=movie VALUE="GMTtimer.swf?timestamp=<?php /* if your server does not support the php microtime(); call, try out the GMT seconds timestamp here: echo time()*1000; */ echo $timestamp; ?>">
<PARAM NAME=menu VALUE=false> <PARAM NAME=quality VALUE=high> <PARAM NAME=bgcolor VALUE=#000000>
<EMBED src="GMTtimer.swf?timestamp=<?php /* and here */ echo $timestamp; ?>" menu=false quality=high bgcolor=#000000  WIDTH="69%" HEIGHT="69%"
TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/go/getflashplayer"></EMBED>
</OBJECT>
</td>
</tr>
</table>
</body>
</html>

<!-- // create the flash movie named "GMTtimer.swf"  and a dynamic text field showing the variables output from frame 9 to 12
// action on frame 1:
GMTtimer = new Date();
weekday = new Array("Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday");
month = new Array("January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December");
//timestamp = "1115989993666"; // test timestamp
function fillup(digit) {
        // fills up single digits with 0
        if (digit<10) {
                digit = "0"+digit;
        }
        return (digit);
}

// action on frame 10:
// error test on frame 10, usually the php timestamp variable should be retrieved by now...
isNaN(timestamp) or timestamp == undefined ? gotoAndPlay(9) : timestamp=parseInt(timestamp);
// ... if the server timestamp is not retrieved yet or not numeric than loop back to frame 9
// else parse the retrieved timestamp string to a number, no error loop ...
// also here from frame 9 to 10 you can insert a new  movieClip symbol on a new layer. After a second of blank frames in its begin
// write _root.output = "PHP ERROR TRY http://www.GMTtimer.advance-media.com"; stop(); as ERROR prompt.

// action on frame 11:
// synchronizes Flash's date object with the server GMT milliseconds timestamp + the current milliseconds elapsed since the movie's begin
GMTtimer.setTime(timestamp+getTimer());
// read out this GMT, UTC timestamp
output = weekday[GMTtimer.getUTCDay()];
output += ", "+month[GMTtimer.getUTCMonth()];
output += " "+GMTtimer.getUTCDate();
output += ", "+GMTtimer.getUTCFullYear();
output += "  "+fillup(GMTtimer.getUTCHours());
//  blinking colons pulsed by milliseconds, the colons are visible for the first 2/3rds of each second
GMTtimer.getUTCMilliseconds()>666 ? blink=" " : blink=":";
output += blink+fillup(GMTtimer.getUTCMinutes());
output += blink+fillup(GMTtimer.getUTCSeconds());

// action on frame 12:
gotoAndPlay(11);
// loop eternally? -->
 
0
•••
thanks for that iw ill check it out
 
0
•••
Also have this script, it uses PHP Mysql.
So what it does is that you loadvariable lets say fetch.php
and then in fetch.php you include config.php and there will be all of ur info for mysql. etc etc
Attached the file
 
0
•••
may i ask where you get these files from? i couldn't find anything like that on the web
 
0
•••
0
•••
Dynadot — .com Registration $8.99Dynadot — .com Registration $8.99

We're social

Unstoppable Domains
Domain Recover
DomainEasy — Live Options
  • The sidebar remains visible by scrolling at a speed relative to the page’s height.
Back