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条)

报告相同问题?

悬赏问题

  • ¥15 PADS Logic 原理图
  • ¥15 PADS Logic 图标
  • ¥15 电脑和power bi环境都是英文如何将日期层次结构转换成英文
  • ¥20 气象站点数据求取中~
  • ¥15 如何获取APP内弹出的网址链接
  • ¥15 wifi 图标不见了 不知道怎么办 上不了网 变成小地球了
  • ¥50 STM32单片机传感器读取错误
  • ¥15 (关键词-阻抗匹配,HFSS,RFID标签天线)
  • ¥15 机器人轨迹规划相关问题
  • ¥15 word样式右侧翻页键消失