# Flash php problem

**URL:** <https://forum.kirupa.com/t/flash-php-problem/93280>\
**Category:** Uncategorized\
**Created:** [October 28, 2003, 3:11pm UTC](https://forum.kirupa.com/t/flash-php-problem/93280 "2003-10-28T15:11:37Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![oem](https://avatars.discourse-cdn.com/v4/letter/o/919ad9/32.png) [@oem](https://forum.kirupa.com/u/oem)\
**Post date:** [October 28, 2003, 3:11pm UTC](https://forum.kirupa.com/t/flash-php-problem/93280/1 "2003-10-28T15:11:37Z")

</div>

hello … i´ve seen this tutorial [http://www.kirupa.com/developer/actionscript/flash\_php\_mysql.htm](http://www.kirupa.com/developer/actionscript/flash_php_mysql.htm) and yet i can´t manage to get my variables to pass from a php file to flash movie

i´ve tried just as it said in the tutorial and yet can´t make the variables pass to the flash movie …  
Any help appreciated …  
Many Thanks :  
Hugo M. Matinho:azn: :hr:

page one has this code

```php
<? 
function get_current_datestamp(){ 

//get the current timestamp 
$currdate = gmdate("Ymd"); 
$currday = substr($currdate,6,2); 
$currmonth = substr($currdate,4,2); 
$curryear = substr($currdate,0,4); 
$currdate_stamp = ($currday . "-" . $currmonth . "-" . $curryear); 
return $currdate_stamp; 

}//end of function get_current_datestamp; 

?> 

```

page two the one i called data.php has the following code

```php
<?php 
include "datestamp.php";
$data=get_current_datestamp();
?>
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<link href="css/data.css" rel="stylesheet" type="text/css">
</head>

<body>
<?php 
print "myvar=$data";
?>

</body>
</html>

```

actionscript has the following code:  
[AS]onClipEvent (load) {  
//assuming you have a personal web server and PHP installed locally  
loadVariables(“[http://localhost/test/data.php](http://localhost/test/data.php)”, this, “GET”);  
}  
[/AS]
