LOADING
Loading
Hi , welcome back.
LogoutLOGOUT
 
  Lost password?  
Hi
 


  #1  
Old 08-10-2001, 03:03 AM
dv8's Avatar
dv8 dv8 is offline

Admin Mod
 
Join Date: Mar 2001
Posts: 2,053
Rep Power: 15
dv8 is on a distinguished road
Problems with Flash Loading PHP variables

This script is a simple counter:
Code:
<?php 
$fp=fopen("acc.txt","r"); 

$count=fgets($fp,1024); 

fclose($fp); 

$fw=fopen("acc.txt","w"); 

$cnew=$count+1; 

$countnew=fputs($fw,$count+1); 

fclose($fw);  
?>
Now the $cnew is the variable I want to load to a Flash Movie. But it doesn't work.......

How does one go about this? And why doesn't it work?
All inqueries welcomed!!!
Reply With Quote
  #2  
Old 08-10-2001, 07:07 AM
Gargoyle's Avatar
Gargoyle Gargoyle is offline
Moderator
 
Join Date: May 2000
Location: germany
Posts: 3,471
Rep Power: 17
Gargoyle is on a distinguished road
PHP Code:

header ("Content-type: text/html");

$fp=fopen("acc.txt","r"); 
$count=fgets($fp,1024); 
fclose($fp); 
$fw=fopen("acc.txt","w"); 
$cnew=$count+1
$countnew=fputs($fw,$count+1); 
fclose($fw);
echo 
"cnew=$cnew"
u just forgot to send it back to the client...
__________________
---
if TCPA is the answer,
how stupid then was the question?

There is a diffrence in knowing the path and walking the path.

if u found this thread usefull, then rate it.
this way we all save a lot of time, searching for the good ones.

Reply With Quote
  #3  
Old 08-10-2001, 07:13 PM
dv8's Avatar
dv8 dv8 is offline

Admin Mod
 
Join Date: Mar 2001
Posts: 2,053
Rep Power: 15
dv8 is on a distinguished road
I was trying to get some flow on answers...
Get some guessing going......

But you are correct!
Reply With Quote
  #4  
Old 08-11-2001, 12:07 PM
Gargoyle's Avatar
Gargoyle Gargoyle is offline
Moderator
 
Join Date: May 2000
Location: germany
Posts: 3,471
Rep Power: 17
Gargoyle is on a distinguished road
Question

don't understand.. was it what u have been asking for or did i understood u wrong?
__________________
---
if TCPA is the answer,
how stupid then was the question?

There is a diffrence in knowing the path and walking the path.

if u found this thread usefull, then rate it.
this way we all save a lot of time, searching for the good ones.

Reply With Quote


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
The News From Adobe on the Future of Flash Platform FlashMove Chit Chat Lobby 0 11-10-2011 09:55 AM
PHP + Flash + LoadVars Issue masster Web Platforms - PHP, JSP and .NET 16 04-14-2005 03:14 PM
Passing variables from Mysql to PHP to Flash roy_hdz Web Platforms - PHP, JSP and .NET 0 11-09-2004 11:42 PM
Loading variables from external PHP Problem. bushcat1 Flash MX ActionScript 6 03-08-2004 08:27 AM
Flash -> PHP -> mySQL -> PHP -> Flash schlumpf Web Platforms - PHP, JSP and .NET 1 07-27-2002 11:50 AM




All times are GMT. The time now is 05:19 AM.