由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Programming版 - 请 教 : 关 于 writing to a file 用 Perl for CGI
相关主题
再 次 请 教 : 关 于 writing to a file 用 Perl for CGI《Apache+MySQL+memcached+Perl开发高速开源网站》[PDF]
perl & apache - cannot use param and other stuff - Internal Server ErrorPerl, PHP, Pathon, 那个好?
这个 perl 输出的数字为什么自动加了换行?谢谢!how to avoid security holes for perl CGI code using checkbo (转载)
[合集] 为啥显示的是页面源码? (转载)请推荐perl web framework
问几个关于网页和HTML的问题c写CGI
[转载] 在CGI程序中有何好方法返回HTMLperl question
关于c++调用DOS 命令的问题,谢谢一个perl bug,求救,谢谢!
弱问perl写网页buffer问题这个perl的简单小程序为什么不work? (转载)
相关话题的讨论汇总
话题: cgi话题: file话题: perl话题: apache话题: print
进入Programming版参与讨论
1 (共1页)
b*h
发帖数: 353
1
这 是 我 的 CODE:
#!C:\perl\bin\perl.exe -wT
use strict;
use CGI;
use CGI::Carp qw(fatalsToBrowser);
my $q = new CGI;
print $q->header;
print $q->start_html(-title=>'writing to a file');

open csv_file, "> /test.txt" or die "Could not open file$!";
print csv_file "It is a test!!!\n";
close csv_file;

print $q->end_html();
我 想 把 “It is a test!!!”写 到 Apache 的 DocumentRoot 下 一 个 叫 test.
txt 的文 件 里, 可 是 我 运 行 这 个 CODE 后, test.txt里 什 么 都 没 写 上
。 请 问 知 道 的 朋 友 这 是 为 什 么 ? 我 如 何
I**********s
发帖数: 441
2
check your write permission
b*h
发帖数: 353
3
我 装 的 是 Apache for WindowsXP.
test.txt 是 放 在 DOCUMENTROOT C:\Program Files\Apache Group\Apache\htdocs
下 的。 请 问 我 该 如 何 改 permission?
多 谢

【在 I**********s 的大作中提到】
: check your write permission
1 (共1页)
进入Programming版参与讨论
相关主题
这个perl的简单小程序为什么不work? (转载)问几个关于网页和HTML的问题
How to print \t in perl one-liner?[转载] 在CGI程序中有何好方法返回HTML
50伪币:请教perl代码差错的问题!多谢啦!关于c++调用DOS 命令的问题,谢谢
还是PERL问题弱问perl写网页buffer问题
再 次 请 教 : 关 于 writing to a file 用 Perl for CGI《Apache+MySQL+memcached+Perl开发高速开源网站》[PDF]
perl & apache - cannot use param and other stuff - Internal Server ErrorPerl, PHP, Pathon, 那个好?
这个 perl 输出的数字为什么自动加了换行?谢谢!how to avoid security holes for perl CGI code using checkbo (转载)
[合集] 为啥显示的是页面源码? (转载)请推荐perl web framework
相关话题的讨论汇总
话题: cgi话题: file话题: perl话题: apache话题: print