ChinaUnix.net
相关文章推荐:

link函数技巧

link (PHP 3, PHP 4, PHP 5) link -- 建立一个硬连接 说明 bool link ( string target, string link ) link() 建立一个硬连接。如果成功则返回 TRUE,失败则返回 FALSE。 注: 本函数不能作用于远程文件,被检查的文件必须通过服务器的文件系统访问。 注: 本函数未在 Windows 平台下实现。 这是官方的PHP手册~我对着做 link (./p.txt ./pp.txt)运行后,没有生成pp.txt文件, 有人用过这个函数吗??指教一下~ [ 本帖最后由...

by jd_chen - PHP - 2006-06-22 15:55:38 阅读(1125) 回复(3)

相关讨论

最近在学习oracle的oci中的函数,现在出了些问题,请高手指点迷津…… 附件是“oracle\ora90\oci\samples”中的一个例子cdemo1.c,我现在编译没有错误,,但是link出错了,大意是:引用的函数名称没有定义。不知道怎么回事,请大家指点……

by baiyoung - C/C++ - 2007-01-21 17:47:27 阅读(1217) 回复(3)

我用unlink实现文件的删除操作很容易,但是用link就不能实现文件的粘贴操作啊. int link(const char* path1,const char* path2) 看资料上写的是link调用创建一个指向由path1指定的现有文件的新连接 我用了一个最基本的调用 link(路径1/1.txt,路径2) 但是得不到想要的粘贴结果,路径2中没有1.txt文件 我该怎样才能实现呢?

by 一个小角色 - C/C++ - 2005-07-27 09:58:18 阅读(2421) 回复(12)

为了说明问题,先假设一个例子: 现在有两个.c文件,分别为main.c和func.c。func.c包含若干个函数(func1,func2 ....)的定义. main.c中的含有main函数,它要调用func.c中定义的一个函数,比如: main( ) { ... func2( ); ... } 为了生成最终的可执行文件test4lib,采用两种方式: 1. gcc -o test4lib main.c func.c 在此种方式下,func.c中定义的所有函数func1,func2...等应该都被包含到最终的可执行文件test4lib中 2. 先用ar将func.o加...

by nhw_cs - C/C++ - 2005-01-21 14:59:09 阅读(1239) 回复(12)

gcc版本3.2 link oracle的库libclntsh.so时报以下错误: ld: 致命的: 文件 /export/home/oracle/app/oracle/product/9.0.1/lib//libclntsh.so: 错误的 ELF 类型: ELFCLASS64

by amily - C/C++ - 2004-06-11 16:34:56 阅读(1230) 回复(3)

不明白为什么编译的时候会说重复定义. help~~~ 文件如下: //主文件:static_main.cpp,调用static.h中的A类 #include "static.h" int main() { A::Init(); //cout< using namespace std; class A { public: static int id;//定义 s...

by 山外山 - C/C++ - 2007-06-21 20:04:08 阅读(7053) 回复(7)

为何在win advancserver 2000上,perl不能使用link函数?

by apexg - Perl - 2005-05-18 14:30:34 阅读(1337) 回复(3)

使用下面的2种代码调用的不用? [code] if (link("hours", "./test/lnhours") != 0) { fprintf(stderr, "%s: link()\n", strerror(errno)); abort(); } [/code] [code] if (link("hours", "/tmp/lnhours") != 0) { fprintf(stderr, "%s: link()\n", strerror(errno)); abort(); } [/code] Invalid cross-device link: link() A...

by hmkart - C/C++ - 2004-07-23 11:38:39 阅读(3104) 回复(2)
by songxin - C/C++ - 2003-06-18 10:44:50 阅读(1621) 回复(2)

Renders an HTML element as an anchor definition (if "linkName" is specified) or as a hyperlink to the specified URL. URL rewriting will be applied automatically, to maintain session state in the absence of cookies. The content displayed for this hyperlink will be taken from the body of this tag. The base URL for this hyperlink is calculated based on which of the following attributes you specify ...

by heavenflying - Java文档中心 - 2007-01-05 14:19:09 阅读(608) 回复(0)