如果要看这两个函数在标准库中的定义用ctags或cscope生成索引.h,cscope,可以跳转到函数定义,man malloc,声明见stdlib。
如果仍然找不到,可以用ctags,si或grep。
windows下用source insight也可,然后查找函数定义,用grep -r 搜索关键字,atoi和malloc在C的标准库中有定义。
1.安装ctags
在源代码目录下运行
ctags -R
这样,会递归生成当前目录下及其子目录的tags文件。
2.使用VIM根据tags文件查找函数或结构定义。
1.在源码目录下查找
vi -t tagname
2.如果要在任意位置使用,则需要把该tags文件添加到~/.vimrc文件中
set tags=/home/money/sda8/2.6232/tags
3.如果要在代码中实时跟踪,则光标移动到函数名上,使用CTRL+]键,按CTRL+t可以返回。
如果要跟踪系统函数,使用shift+K可以自动跳转道光标所在函数的手册。
⑵ 想了解php框架到底是怎么回事,但是php底层代码看不太明白怎么办
框架就是通过提供一个开发Web程序的基本架构,PHP开发框架把PHPWeb程序开发摆到了流水线上。换句话说,PHP开发框架有助于促进快速软件开发(RAD),这节约了你的时间,有助于创建更为稳定的程序,并减少开发者的重复编写代码的劳动。
你只要多多学习框架的操作方法就行了,不一定要看的懂。
⑶ 谁能帮忙推荐几个好的PHP源代码
最简单易用的而且很不错的内容发布 上传下载的程序是 dedecms
下载地址:http://www.dedecms.com
比较不错但是用较麻烦的是 帝国cms php168
下载地址:帝国:www.phome.net php168:www.php168.com
论坛程序:phpwind 和 Discuz! 论坛 两个都不错而且 都可以与上面的程序 整合在一起统一账号登录。
下载地址:Discuz:http://www.comsenz.com/procts/discuz
phpwind:www.phpwind.net
博客 世界最流行的是 wordpress
下载地址:http://cn.wordpress.org/
以上程序都是开源的。
⑷ php源代码入口函数在那个文件 注意我说的是 php 底层的c代码
要回答你这个问题,你得去看原代码和以及Server Application Programming Interface接口编程,php代码是被Server按照要求调取的。他的源代码在php原代码的sapi下,有很多种入口看你使用的哪一种方式工作,常用的是cgi模式。其中cgai_main.c就是入口文件
⑸ 深入了解php底层需要了解哪些语言
php 底层是C 语言,故如果想研究底层代码需要掌握C言语相关知识。
php 的zend引擎,包括词法分析,语法分析,AST 等需要掌握编译原理的知识。
⑹ 求第一次接触php语言的最经典,最简单的源代码!!!!!!!!!!
<?php
//双斜杠为注释,在php中被解析不执行。每句要以 ‘分号’结束。
echo “hello world"; //echo表示输出
echo phpinfo(); //查看安装环境信息
//变量输出
$a='1'; //定义变量$a,用$符号表示
echo $a; //打印输出变量$a;
//数组定义
$arr = array(); //定义一个空数组
$arr1= array(1,2); //表示键值0=>1,1=>2
print_r($arr1); //打印数组元素
?>
php程序要以<?php ..... ?>未开始结束。 建议初学时根据 php中文手册 来学习。
⑺ 怎样查看一个网页的php源代码
PHP是后端语言,前端是无法查看的,前端看到的是最终运算之后的结果,PHP源代码是无法查看的。如果能直接查看PHP源代码那还得了,如果你是单纯想看看网页代码,那就在浏览器右键-查看源码就可以看见。
⑻ PHP调动linux底层命令问题 我想用exec代码得到网络借口IP 掩码
php许多底层指令在网络服务端会被屏蔽,如果需要使用可先咨询一下网站服务提供商。 追问: 忘了说明了, win7 系统 虚拟机搭建ubuntu 服务器搭建在ubuntu下的 我应该没有禁用任何任何网络服务端 回答: 注意执行文件的路径 补充: exec (PHP 3, PHP 4 ) exec -- Execute an external program Descriptionstring exec ( string command [, array output [, int return_var]]) exec() executes the given command, however it does not output anything. It simply returns the last line from the result of the command. If you need to execute a command and have all the data from the command passed directly back without any interference, use the passthru() function. If the output argument is present, then the specified array will be filled with every line of output from the command. Line endings, such as \n, are not included in this array. Note that if the array already contains some elements, exec() will append to the end of the array. If you do not want the function to append elements, call unset() on the array before passing it to exec() . If the return_var argument is present along with the output argument, then the return status of the executed command will be written to this variable. 例子1. An exec() example <?php // outputs the username that owns the running php/httpd process // (on a system with the "whoami" executable in the path) echo exec('whoami'); ?> 警告 If you are going to allow data coming from user input to be passed to this function, then you should be using escapeshellarg() or escapeshellcmd() to make sure that users cannot trick the system into executing arbitrary commands. 注: If you start a program using this function and want to leave it running in the background, you have to make sure that the output of that program is redirected to a file or some other output stream or else PHP will hang until the execution of the program ends. 注: When safe mode is enabled, you can only execute executables within the safe_mode_exec_dir. For practical reasons it is currently not allowed to have .. components in the path to the executable. 警告 With safe mode enabled, all words following the initial command string are treated as a single argument. Thus, echo y | echo x becomes echo "y | echo x". See also system() , passthru() , popen() , escapeshellcmd() , and the backtick operator. 追问: EXEC我已经看过无数次了 在手册上 你说的文件路径是指什么? 我想知道 这个命令之所以什么都没有返回是不是 权限问题? 追问: 谢谢 最后绝对路径解决了问题 /sbin/ifconfig 谢啦
⑼ PHP源代码怎么用
http://www.skycn.com/soft/13703.html AppServ V2.5.9
AppServ 是 PHP 网页架站工具组合包,泰国的作者将一些网路上免费的架站资源重新包装成单一的安装程序,以方便初学者快速完成架站,AppServ 所包含的软件有:Apache、Apache Monitor、PHP、MySQL、PHP-Nuke、phpMyAdmin。 PHP 5.0.1 Apache 1.3.31 MySQL 4.0.20 Zend Optimizer 2.5.3 phpMyAdmin 2.6.0-rc1 Perl 5.8.4 这是本地配置PPHP一键盘安装包
Discuz! 6.1.0下载地址http://www.comsenz.com/downloads/install
Discuz! 6.1.0 拿这个来说把,一般大家购买的空间FTP目录里有个是WWW目录然后下载Discuz! 6.1.0上传/httpdocs目录,何必你的地址是http://www.discuz.net/那就http://www.discuz.net/install直接安装就可以了 PHP需要mysql空间 一定要在空间商那里把mysql账号和密码要来 安装任何一个开源的PHP都需要MYSQL账号和密码的
⑽ PHP源码到底是什么
PHP,是英文超级文本预处理语言Hypertext Preprocessor的缩写。PHP 是一种 HTML 内嵌式的语言,是一种在服务器
端执行的嵌入HTML文档的脚本语言,语言的风格有类似于C语言,被广泛的运用。PHP源码指的使用PHP开发的实例,没有经过二次封装,能够直接进行二
次开发的程序,PHP简单易学,如果你想学网站开发,PHP是一个不错的选择,因会PHP跟其它语言相对有一定的优势:
1、PHP是开放的源代码:所有的PHP源代码事实上都可以得到。
2、PHP是免费的。和其它技术相比,PHP本身免费。
3、php的快捷性,程序开发快,运行快,技术本身学习快。嵌入于HTML:因为PHP可以被嵌入于HTML语言,它相对于其他语言,编辑简单,实用性强,更适合初学者。
4、跨平台性强:由于PHP是运行在服务器端的脚本,可以运行在UNIX、LINUX、WINDOWS下。
5、效率高:PHP消耗相当少的系统资源。
6、图像处理:用PHP动态创建图像
7、面向对象:在php5 中,面向对象方面都有了很大的改进,现在php完全可以用来开发大型商业程序。
8、专业专注: