EvoTalk

Posts Tagged ‘php

06 十二月, 2007

PHP XML-RPC Client

Posted by: asd In: Code Snippet| Web| 程式設計

server 端同上篇用 perl 寫的,client 端改用 php 來 call。
參考

PHP XML-RPC 的使用(有效)
PHP XML-RPC Client(encode_xmlrpc) (有效)

view plain

PHP:

/**

* Debian: apt-get install php5-xmlrpc php5-curl

*/

 

/**

The MIT License

Copyright (c) 2007

Permission is hereby granted, free of charge, to any person obtaining a copy

of this software and associated documentation files (the "Software"), to deal

in the Software without restriction, including without limitation the rights

to use, copy, [...]

Tags: ,

09 二月, 2007

Uniform Server

Posted by: asd In: 科技新知| 軟體使用

輕量級整合 apache+mysql+php+perl 的免安裝軟體,約28 mb
Introduction
The Uniform Server is a WAMP package that allows you to run a server on any MS Windows OS based computer. It is small and mobile to download or move around and can also be used or setup as a production/live server. Developers also use The Uniform Server to test their applications made [...]

Tags: , , ,

有時候在其他機器上要執行PHP程式或者臨時修改一下PHP程式,一般通常是安裝AppServ,然後再配置 Apache、PHP、MySQL,真是很不方便。這套名為 APM Express,也就是Apache+PHP+MySQL 的精簡版,只有不到5M大,安裝後只有12MB,不寫入任何註冊表。移除時,刪除桌面的捷徑和 APM Express 所在目錄即可。
參考:Web 开发工具箱之 Apache PHP MySQL 绿色套装版

Tags: , ,

redhat9 已安裝 apache、php、mysql,為什麼在php網頁中呼叫mysql_connect卻出現
call to undefined function - mysql_connect()
此錯誤訊息呢?
Ans:
確定是否已安裝php-mysql package 檢查
[root@test root]# rpm -qa | grep php-mysql
若沒有的話,利用apt安裝
[root@test root]#apt-get install php-mysql
裝完後重新啟動apache即可。

Tags:

13 十一月, 2005

[Linux] apache加掛php

Posted by: asd In: Unix| 程式設計

以redhat9為例,假設安裝時已選擇php、apache等package
以root的帳號登入,找httpd.conf在哪?
[root@test root]# locate httpd.conf
/etc/httpd/conf/httpd.conf
用vi打開
[root@test root]# vi /etc/httpd/conf/httpd.conf
找到一堆LoadModule的區域,約176行開始
加入
LoadModule php4_module modules/libphp4.so
找DirectoryIndex,約409行
附加
index.php
找AddType,會找到 AddType application/x-tar .tgz
在底下空一行後,加入
AddType application/x-httpd-php .php
重新啟動 apache
/etc/init.d/xinetd restart
測試php,新增一檔案phptest.php於/var/www/html/下
鍵入
view plain

PHP:

<pre>&lt;?

phpinfo();

?&gt;

存儲後用瀏覽器開啟 http://yourip/phptest.php
若有列印出 php 相關版本及系統資訊則代表成功。

Tags:


  • BK: 大於和小於在今日更廣泛地使用於標籤上,故在此補充該英文用法: : angle bracket []: square bracket
  • luh1688: 非常實用且謝謝!~
  • asd: 好的,不過很久沒修改了,不知道能不能動 寄到您的yahoo信箱
  • LIANG: nice post, thank you
  • Justmaker: 您好,請問可以跟你要source嗎?我最近有在看股票,想要enhance您的小工具,不知是否可以開放?

Category

Page 1 of 212»