dpz90118 2016-01-16 05:35
浏览 29

使用PHP和AC2创建文本文件

So I have this PHP code, as well as actionscript code. When I run the flash file, it doesn't want to write. I've been searching for hours for a solution online, it is not permissions. (note, it is not hosted on a server, it is just in a folder on my computer, could that be the issue?)

PHP

<?php
$fscrn = $_POST['fscrn']
$saveTO = "full=".$fscrn."&"
file_put_contents("video.txt",$saveTO)
?>

and Actionscript 2

var videoResponse = new LoadVars();
videoResponse.onLoad = function(success)
{
    if (success)
    {
        trace("successful")
    }
}
var videoVar = new LoadVars();
videoVar.fscrn = "true";
videoVar.sendAndLoad("config/video.php",videoResponse,"POST");

BONUS: IMAGE OF FILE STRUCTURE

Where SWF is located https://gyazo.com/918b0d9bcdb51996089b5d45846d1fd2

Where the php is located https://gyazo.com/e758818fe895183b003e5b0fa5741abf

Anyone know any solutions? (It DOES print "successful" when I run it though)

TL:DR > doesn't create a new text file when PHP runs

  • 写回答

0条回答 默认 最新

    报告相同问题?

    悬赏问题

    • ¥20 win11修改中文用户名路径
    • ¥15 win2012磁盘空间不足,c盘正常,d盘无法写入
    • ¥15 用土力学知识进行土坡稳定性分析与挡土墙设计
    • ¥70 PlayWright在Java上连接CDP关联本地Chrome启动失败,貌似是Windows端口转发问题
    • ¥15 帮我写一个c++工程
    • ¥30 Eclipse官网打不开,官网首页进不去,显示无法访问此页面,求解决方法
    • ¥15 关于smbclient 库的使用
    • ¥15 微信小程序协议怎么写
    • ¥15 c语言怎么用printf(“\b \b”)与getch()实现黑框里写入与删除?
    • ¥20 怎么用dlib库的算法识别小麦病虫害