duanjianao0592 2010-02-07 23:08
浏览 20
已采纳

为什么我一直收到错误说“291找不到文件#4.txt”?

I am working on a project to test if I can use SWFTools on my site. I have created this script to just display scrolling text on the screen of the user's choice.

All the information you need to know is below:

Additional Info that might help you: PHP info version info: PHP 5.2.12 (cli) (built: Dec 16 2009 17:03:10) Copyright (c) 1997-2009 The PHP Group Zend Engine v2.2.0, Copyright (c) 1998-2009 Zend Technologies

Server: XAMPP (apache, php, mysql, plus some others) on Microsoft Windows 7

SwfTools file: swfc.exe

SwfTools version: 0.9.0

My Project is made up of 2 php files: index.php makefile.php

Project Available at: http://ericlounge.host22.com/000/22014/allfiles.zip

error: "291Couldn't find file #4.txt"

file: /ProjectDirectory/index.php?filename=Test&text=Test+inverted+blend+mode...+ABCDEFGHIJKLMNOPQRSTUVWXYZ&image=1&makeswf=true

SwfTools SWFC documentation: http:// www.swftools.org/swfc/swfc.html

  • 写回答

2条回答 默认 最新

  • drno94939847 2010-02-08 12:01
    关注

    I found the answer.

    I was using the variable "$file" twice. I set it here:
    $file = $_GET["filename"]; and here
    $file = fopen($file . ".txt","w");

    It was using the file from fopen because that was called last. In the end, it opened up a completely wrong file.

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(1条)

报告相同问题?

悬赏问题

  • ¥30 这是哪个作者做的宝宝起名网站
  • ¥60 版本过低apk如何修改可以兼容新的安卓系统
  • ¥25 由IPR导致的DRIVER_POWER_STATE_FAILURE蓝屏
  • ¥50 有数据,怎么建立模型求影响全要素生产率的因素
  • ¥50 有数据,怎么用matlab求全要素生产率
  • ¥15 TI的insta-spin例程
  • ¥15 完成下列问题完成下列问题
  • ¥15 C#算法问题, 不知道怎么处理这个数据的转换
  • ¥15 YoloV5 第三方库的版本对照问题
  • ¥15 请完成下列相关问题!