Skip to main content

Home/ studay/ Group items tagged php

Rss Feed Group items tagged

doingtoing

PHP: 手工安装步骤 - Manual - 0 views

  • 本安装指南指导手动在一个 Microsoft Windows 的 web 服务器下安装和配置 PHP
  • 服务器模块比 CGI 可执行程序提供了更好的性能和更多的功能。
  • CGI 和 CLI 可执行文件以及 web 服务器模块都需要 php4ts.dll(php5ts.dll)。必须确认该文件可以在 PHP 安装路径中找到。对该 DLL 的搜索顺序为: 调用 php.exe 时所在的目录,或者若使用 SAPI 模块时,web 服务器的目录(例如 C:\Program Files\Apache Group\Apache2\bin)。 任何在 Windows 的 PATH 环境变量中指定的目录。
  • ...5 more annotations...
  • 要让 php4ts.dll / php5ts.dll 能正确被搜索到,有下面三个选择:复制该文件到 Windows 系统目录,复制该文件到 web 服务器的目录,或者把 PHP 目录(例如 C:\php)添加到 PATH 环境变量中。为了将来更好的维护,建议使用最后一个选择,将 PHP 目录添加到 PATH 环境变量中,因为这样更便于将来升级 PHP。
  • 下一步是为 PHP 设置一个有效的配置文件,php.ini
  • 如果使用 Apache 2,更简单的选择是使用 PHPIniDir 指令(请阅读在 Apache 2 下的安装);若不是,最好的选择是设置 PHPRC 环境变量。
  • 注意: 如果在 Windows NT、2000、XP 或 2003 中使用 NTFS 分区,请确认运行 web 服务器的用户有权限读取 php.ini(例如将其设置为 Everyone 可读)
  • 选择 PHP 装载的扩展库。请阅读关于 Windows 扩展一节以了解如何设置扩展库,以及哪些功能已经内置无需扩展库。请注意建议在全新安装时先不要在 php.ini 中加载任何扩展库,首先要保证 PHP 自身能够正常工作。
doingtoing

Running the PHP QuickStart Sample - 0 views

  • This topic explains how to install, run, and extend the QuickStart sample as provided in the PHP programming language.
  • The PHP QuickStart sample is preconfigured to use default values for the application ID, secret key, and return URL parameters. The return URL is preconfigured to point to http://localhost/webauth/sample/webauth-handler.php.
    • doingtoing
       
      在这里已经设置了返回的URL,所以把sample的代码放到cblogin里运行,它就直接回webauth地址了,之前未仔细看这段,一直纳闷。
  • On an openSUSE 10.2 Linux platform, ensure that the apache2, apache2-mod_PHP5, php5-mhash, php5-mcrypt, php5-openssl, php5-dba, php5-hash, and php5-dom packages are installed by means of the YaST tool.
    • doingtoing
       
      两个问题: 1.YaST tool是什么; 2.这句中提到的 php5-mhash, php5-mcrypt, php5-openssl, php5-dba, php5-hash, and php5-dom 非常重要,一个都不能少,在php.ini里面,要修改之使没有加载的扩展库加载上。 因为mhash dba mcrypt陆续出的问题,都解决了,但dba仍在login后出现问题。与stream有关。
  • ...1 more annotation...
  • Locate the <Directory "/srv/www/htdocs"> section (where "/srv/www/htdocs" is the document root for http://localhost/) and change the AllowOverride None line to AllowOverride All. This modification permits the .htaccess file that is included in the Web Authentication PHP package to take effect. You can inspect this file and make changes directly in the Apache configuration if you do not want to enable .htaccess overrides on the localhost.
    • doingtoing
       
      1.这段要修改 AllowOverride All,不知道在哪里修改; 2..htaccess为什么要被overrides?
doingtoing

PHP: 运行时配置 - Manual - 0 views

  • 配置文件(PHP 3 中是 php3.ini,自 PHP 4 起是 php.ini)在 PHP 启动时被读取。对于服务器模块版本的 PHP,仅在 web 服务器启动时读取一次。对于 CGI 和 CLI 版本,每次调用都会读取。
  • 如果存在 php-SAPI.ini(SAPI 是当前所用的 SAPI 名称,因此实际文件名为 php-cli.ini 或 php-apache.ini 等),则会用它替代 php.ini。SAPI 的名称可以用 php_sapi_name() 来测定。
  • 注意: Apache web 服务器在启动时会把目录转到根目录,这将导致 PHP 尝试在根目录下读取 php.ini,如果存在的话。
doingtoing

PHP: Windows 下安装扩展库 - Manual - 0 views

  • 在 Windows 下安装完 PHP 和 web 服务器之后,可能想要安装一些扩展库来获得更多功能。可以通过修改 php.ini 来选择当 PHP 启动时加载哪些扩展库。也可以在脚本中通过使用 dl() 来动态加载。
    • doingtoing
       
      此扩展库php_mhash.dll与正在研究的mhash0.9.9有什么关系?
  • php_mhash.dllMhash 函数库PHP >= 4.3.0 需要:libmhash.dll(已附带)
doingtoing

apache friends - xampp 的 windows 版 faq - 0 views

  • The \xampp\apache\bin\php.ini is the correct one! The others in the \xampp\php directory are only for PHP in CGI/CLI mode. So configure the \xampp\apache\bin\php.ini for web changes. Modifications in the php.ini will be saved also after the "PHP switch" (the changing of the PHP version). And note: Modifications in the php.ini and in the httpd.conf always need a Apache restart!
  • md5 checksum
    • doingtoing
       
      这个md5 checksum与将设置的mhash应没有关系。这貌似对文件进行校验的一个功能软件。
  • ...2 more annotations...
  • md5 checksum
    • doingtoing
       
      试着去修改php.ini,看是否在此添加编译参数。
  •  
    在apache里如何设置编译php的参数,仍未明了。

doingtoing

PHP: Mhash Functions - Manual - 0 views

  • 注意: 本扩展已被移动到 » PECL 库中且自以下版本起不再被绑定到 PHP 中:5.3.0.
    • doingtoing
       
      所以上一页的php_mhash.dll在php5.3.0以上就不可用了。
doingtoing

PHP: 安装常见问题 - Manual - 0 views

  • 怎样将 PHP 目录加入到 Windows 路径 PATH 中去?
  • 53.15. 怎样使 php.ini 文件在 Windows 下被 PHP 所用?
  •  
    这个主题是windows下安装php中关联到的。
doingtoing

cvs - php.ini - 0 views

  • This is the default settings file for new PHP installations.
  •  

doingtoing

PHP: Microsoft Windows 下的 Apache 2.0.x - Manual - 0 views

  • Windows 下有两种方法使 PHP 工作于 Apache 2.0.x 之中。一种是 使用 CGI 可执行程序,另一种是适用 Apache 模块的 DLL。不管哪种都需要编辑 httpd.conf 来配置 Apache 支持 PHP 并重新启动服务器。
  • 注意: 记住在 Windows 下给 Apache 的配置文件中加入路径值的时候,所有的反斜线例如 c:\directory\file.ext 必须转换成正斜线,如 c:/directory/file.ext。
doingtoing

PHP: PHP 手册 - Manual - 0 views

doingtoing

PHP: Mhash Functions - Manual - 0 views

  • Mhash can be used to create checksums, message digests, message authentication codes, and more.
  • You need to compile PHP with the --with-mhash[=DIR] parameter to enable this extension. DIR is the mhash install directory.
  • 以下常量由本扩展模块定义,因此只有在本扩展模块被编译到 PHP 中,或者在运行时被动态加载后才有效。 Here is a list of hashes which are currently supported by mhash. If a hash is not listed here, but is listed by mhash as supported, you can safely assume that this documentation is outdated. MHASH_ADLER32 MHASH_CRC32 MHASH_CRC32B MHASH_GOST MHASH_HAVAL128 MHASH_HAVAL160 MHASH_HAVAL192 MHASH_HAVAL256 MHASH_MD4 MHASH_MD5 MHASH_RIPEMD160 MHASH_SHA1 MHASH_SHA256 MHASH_TIGER MHASH_TIGER128 MHASH_TIGER160
  •  
    mhash需下载库才能在php中应用。
doingtoing

超越PHP - Exceed PHP: Mhash Functions - Manual - 0 views

  • 安装 You need to compile PHP with the --with-mhash[=DIR] parameter to enable this extension. DIR is the mhash install directory.
doingtoing

PHP 框架,第 1 部分: 开始使用三种常用框架 - 0 views

  • 首先创建一个文件夹来保存所有代码、框架并包括本系列需要的内容(例如,名为 /column 的目录)。在此目录中,创建四个附加目录:htdocs、protected、include 和 src。编辑 Apache conf 文件,使文档根目录指向 /column/htdocs —— 然后当您处于该目录中时(如果尚不在其中),应当启用 mod_rewrite。编辑 php.ini conf 文件使 /column/include/ 目录包含在 include_path 指令中。
doingtoing

超越PHP - Exceed PHP: ArrayObject::__construct - Manual - 0 views

  • ArrayObject::__construct (no version information, might be only in CVS)ArrayObject::__construct --  Construct a new array object Descriptionvoid ArrayObject::__construct ( mixed input) This constructs a new array object. The input parameter accepts an array or another ArrayObject.
doingtoing

apache的静态/动态编译在apache+php+mysql的应用 - 0 views

  • ./configure --prefix=/usr/local/php --with-mysql=/usr/local/mysql \ --with-apache=../apache_1.3.27 &&
  •  
    就是这个 ./configure 句,在什么状态下使用?apache的命令行?如果是xampp这样的集成环境,是在哪儿加的?
    如果是在服务器环境,这一句写在哪里?

doingtoing

Database (dbm-style) Abstraction Layer Functions - 0 views

  • These functions build the foundation for accessing Berkeley DB style databases. This is a general abstraction layer for several file-based databases. As such, functionality is limited to a common subset of features supported by modern databases such as Sleepycat Software's DB2. (This is not to be confused with IBM's DB2 software, which is supported through the ODBC functions.)
  • flatfile This is available since PHP 4.3.0 for compatibility with the deprecated dbm extension only and should be avoided. However you may use this where files were created in this format. That happens when configure could not find any external library.
doingtoing

apache friends - 非常容易安装的 apache、mysql、php 和 perl - 0 views

  • XAMPP 是一个易于安装且包含 MySQL、PHP 和 Perl 的 Apache 发行版。
  •  
    当前用1.8.3的lite版。看到1.8.4版已经出来,暂时不打算换。
doingtoing

SourceForge.net: Files - 0 views

  • Libmhash is a library that provides a uniform interface to several hash algorithms. It supports the basics for message authentication by following rfc2104 (HMAC). It also includes some key generation algorithms which are based on hash algorithms.
doingtoing

Using Apache with Microsoft Windows - Apache HTTP Server - 0 views

  • Using Apache with Microsoft Windows
  • For Windows installations you should download the version of Apache for Windows with the .msi extension. This is a single Microsoft Installer file, which contains a ready-to-run version of Apache. There is a separate .zip file, which contains only the source code. You can compile Apache yourself with the Microsoft Visual C++ (Visual Studio) tools.
    • doingtoing
       
      1.可直接按照.msi后缀的微软安装版; 2.也可用微软c 编译.zip后缀的源代码文件。
  • ...7 more annotations...
  • You need Microsoft Installer 1.2 or above for the installation to work.
    • doingtoing
       
      "Microsoft Installer "是什么?
  • A full install will require about 13 megabytes of free disk space.
  • Apache for Windows contains the ability to load modules at runtime, without recompiling the server
  • Apache can also load ISAPI (Internet Server Application Programming Interface) extensions (i.e. internet server applications), such as those used by Microsoft IIS and other Windows servers.
  • If you use the first command without any special parameters except -k install, the service will be called Apache2 and the configuration will be assumed to be conf\httpd.conf.
  • You can also restart a running service and force it to reread its configuration file by using: httpd -k restart
    • doingtoing
       
      restart与start的区别,是不是在于它有没有去读configuration file?
doingtoing

mhash library - 0 views

1 - 20 of 21 Next ›
Showing 20 items per page