rss· 导航· 设为首页· 加入收藏
当前位置: 火魔网 » 程序开发 » 动态语言

如何修改WEBrick 端口

  方法一: 打开\ruby\lib\ruby\gems\1.8\gems\rails-1.2.5\lib\commands\servers\webrick.rbrails-{ver}ver是你当前的rails版本.找到OPTIONS = {  :port         =>3000,  :ip          =>"0.0.0.0",  :environment    =>(ENV['RAILS_ENV'] || "developme... « 阅读全文

发布于: 2010-09-08 21:42:07

PHP中常用的函数

  <?class useful{function formatnumber(num){return number_format(num, 2, ".", ",");function formatstring(string = ""){string = preg_replace(array("/ /", "/ /"),array("&nbsp;","&nbsp;&nbsp;"), string);return nl2br(string);functio... « 阅读全文

发布于: 2010-09-08 16:34:49

Perl多线程与多进程范例

  #!/usr/bin/perluse strict;use warnings;use threads;use threads::shared;print "Starting main program\n";my @threads;for ( my $count = 1; $count <= 10; $count++) {my $t = threads->new(\&sub1, $count);push(@threads,$t);foreach (@thre... « 阅读全文

发布于: 2010-09-07 12:27:11

window环境下PHP6安装

  今天查看了php6的新特性安装试试,在window下安装方式与php5基本类似。我采用是的module方式安装的下载:apache2: http://apache.mirror.phpchina.com/httpd/binaries/win32/ php6: 1,先安装apache到D:/apach2(我安装的是php2.0.63)采用默认配置即可2,将php6文件复制到D盘下,将D:/php/php.ini-recommended 复制成 D:/php/php.ini ,或者直接改... « 阅读全文

发布于: 2010-09-07 10:41:19

PHP3+PHP4+PERL安装配置

  OS : Microsoft Windows 2000 Professional简体中文版WEB SERVER: Apache 1.3.12 for WIN32MYSQL : MySQL Shareware 3.22.34 for WIN32PHP3 : PHP 3.0.15 for WIN32PHP4 : PHP 4.0.0 for WIN32ZEND : Zend Optimizer beta4 for PHP 4.0.0 for WIN32【★★★ Apache快速安装 ★★★... « 阅读全文

发布于: 2010-09-05 11:26:14

说说perl和php的长短

  写了几年的程序,陆陆续续用了一些语言,因为做的多是CGI程序,Perl和PHP用得最多,体会也较深一些。网上比较二者的文章也不少,这是一个仁者见仁的问题,没有人能下孰优孰劣的结论。           1.变量名的定义           Perl的一般变量、哈希变量和数组变量,分别用$、%和@开头... « 阅读全文

发布于: 2010-09-05 09:14:22

Ruby发明者松本行弘的编程十句箴言

  松本行弘(Yukihiro Matsumoto)是Ruby语言的发明者。1 Learn more than one programming languages , preferably many different syle ones , like scripting ,object-oriented ,functional , logic ,etc. Learning languages teaches you many about programming.2 Read good boo... « 阅读全文

发布于: 2010-09-03 12:45:44

提高Perl代码可靠性和可维护性的简单技巧

  TeodorZlatanov程序员,GoldSoftwareSystems内容:“没有改进余地”编写循环使用map和grep使用对象使用ptkdbPSI::ESP模块参考资料关于作者用Perl语言完成作业很容易。设计这种语言的目的是使简单的任务更容易,使困难的任务有可能完成。可是,该语言内置的简易性... « 阅读全文

发布于: 2010-09-03 10:06:15

PHP的灯与红宝石在职业退休

  Thursday, January 24th, 2008 星期四, 2008年1月24日 Here LAMP stands for Linux, Apache, MySQL and PHP, most of sites nowdays are built upon LAMP, including ours.这里灯随时为Linux , Apache , MySQL和PHP中,大部分网站都是建立在nowdays灯,包括我们。 RoR stands for Ruby on Rails, Rai... « 阅读全文

发布于: 2010-09-02 13:22:33

perl 字符串操作

     字符串数组元素赋值:@tmp=qw(aaa bbb kkk 9000);相当于@tmp=(“aaa”, “bbb”,“kkk”,“9000);   字符串比较,绝不能用== ,要用eq[macg@localhost perltest]$ vi tip.pl#!/usr/bin/perlprint"input:";while(chomp($input=<>)) {print"your input is $input \n";if ($input=="q") {... « 阅读全文

发布于: 2010-09-02 10:11:34
相关分类