search

连接不上数据库
直接调用mysql_connect()函数
出Call to undefined function mysql_connect()错误
数据库正常的
可能跟配置文件有关
网上也找不到答案 
有也是ISAPI模式的解决方案
程序本身没问题
有没有大牛解决一下
第一次搞fastcgi


回复讨论(解决方案)

敢为天下先,佩服!
php 5.5 尚未发行就敢用,真神人也

敢为天下先,佩服!
php 5.5 尚未发行就敢用,真神人也


5.5发行了呀,64位86位都有

咦,妞妞版主怎么没通告

咦,妞妞版主怎么没通告


话说这位前辈会不会搞呢
别的版本也行
只要是IIS7+FASTCGI就可以

好吧
刚才逛论坛,发现5.5不支持mysql的扩展函数,例如mysql_connect()
但是有谁知道DISCUZ2用的什么方式连接数据库
我是搞.NET的
不懂PHP
懂的莫喷

换成5.3.26依旧老问题
前辈们
支支招

php.ini 中mysql 扩展打开没有?
你phpinfo; 看看支持pdo、mysqli 没有,如果支持可以使用其中一个。

php.ini 中mysql 扩展打开没有?
你phpinfo; 看看支持pdo、mysqli 没有,如果支持可以使用其中一个。


前辈,这个mysql扩展怎么打开啊,我用的是fastcgi模式
PHP5.5只支持pdo和mysqli 不支持mysql扩展 但是我不会哎

http://theshinband.com/phpinfo.php
这个是我那个站点
前辈们帮帮忙咯

5.5为什么不支持mysql扩展了,......




我是见别人的一篇帖子说不支持mysql扩展了
看来版主正在研究5.5  顺便研究下fastcgi嘛
帮我弄弄这个问题

php5.5 不再支持 XP 了,我还没有奢侈到去换台机器

php5.5 不再支持 XP 了,我还没有奢侈到去换台机器


解决了
下载了一个神器,叫做PHP Manager  直接FASTCGI模式  上去就能用

WIN8,WIN7中直接手动集成fastcgi模式,mysql,mysqli,mysqlnd扩展,会加载不上,原因不明,我遇到过,和楼主一样的解决办法,下载了个php manager就解决了。


ps:
mysql5.5中mysql扩展确实已经废弃,请使用mysqli连接,貌似discuz支持mysqli

php5.5已经不再支持mysql_connect 函数了,弃用了

我也同问一个问题。php5.5还支持MSSQL扩展吗?

好像是php5.5不支持FastCGI了

好像是php5.5不支持FastCGI了

不好意思是我搞错了php5.5是支持FastCGI的。
是我本地论坛配置过php5.4,现在弄成5.5,IIS7.5中有之前5.4的ISAPI,删除后就可以了。

要使用FastCGI,php必须选择非线程安全的版本才可以的。
Statement
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Explain the concept of a PHP session in simple terms.Explain the concept of a PHP session in simple terms.Apr 26, 2025 am 12:09 AM

PHPsessionstrackuserdataacrossmultiplepagerequestsusingauniqueIDstoredinacookie.Here'showtomanagethemeffectively:1)Startasessionwithsession_start()andstoredatain$_SESSION.2)RegeneratethesessionIDafterloginwithsession_regenerate_id(true)topreventsessi

How do you loop through all the values stored in a PHP session?How do you loop through all the values stored in a PHP session?Apr 26, 2025 am 12:06 AM

In PHP, iterating through session data can be achieved through the following steps: 1. Start the session using session_start(). 2. Iterate through foreach loop through all key-value pairs in the $_SESSION array. 3. When processing complex data structures, use is_array() or is_object() functions and use print_r() to output detailed information. 4. When optimizing traversal, paging can be used to avoid processing large amounts of data at one time. This will help you manage and use PHP session data more efficiently in your actual project.

Explain how to use sessions for user authentication.Explain how to use sessions for user authentication.Apr 26, 2025 am 12:04 AM

The session realizes user authentication through the server-side state management mechanism. 1) Session creation and generation of unique IDs, 2) IDs are passed through cookies, 3) Server stores and accesses session data through IDs, 4) User authentication and status management are realized, improving application security and user experience.

Give an example of how to store a user's name in a PHP session.Give an example of how to store a user's name in a PHP session.Apr 26, 2025 am 12:03 AM

Tostoreauser'snameinaPHPsession,startthesessionwithsession_start(),thenassignthenameto$_SESSION['username'].1)Usesession_start()toinitializethesession.2)Assigntheuser'snameto$_SESSION['username'].Thisallowsyoutoaccessthenameacrossmultiplepages,enhanc

What are some common problems that can cause PHP sessions to fail?What are some common problems that can cause PHP sessions to fail?Apr 25, 2025 am 12:16 AM

Reasons for PHPSession failure include configuration errors, cookie issues, and session expiration. 1. Configuration error: Check and set the correct session.save_path. 2.Cookie problem: Make sure the cookie is set correctly. 3.Session expires: Adjust session.gc_maxlifetime value to extend session time.

How do you debug session-related issues in PHP?How do you debug session-related issues in PHP?Apr 25, 2025 am 12:12 AM

Methods to debug session problems in PHP include: 1. Check whether the session is started correctly; 2. Verify the delivery of the session ID; 3. Check the storage and reading of session data; 4. Check the server configuration. By outputting session ID and data, viewing session file content, etc., you can effectively diagnose and solve session-related problems.

What happens if session_start() is called multiple times?What happens if session_start() is called multiple times?Apr 25, 2025 am 12:06 AM

Multiple calls to session_start() will result in warning messages and possible data overwrites. 1) PHP will issue a warning, prompting that the session has been started. 2) It may cause unexpected overwriting of session data. 3) Use session_status() to check the session status to avoid repeated calls.

How do you configure the session lifetime in PHP?How do you configure the session lifetime in PHP?Apr 25, 2025 am 12:05 AM

Configuring the session lifecycle in PHP can be achieved by setting session.gc_maxlifetime and session.cookie_lifetime. 1) session.gc_maxlifetime controls the survival time of server-side session data, 2) session.cookie_lifetime controls the life cycle of client cookies. When set to 0, the cookie expires when the browser is closed.

See all articles

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

Video Face Swap

Video Face Swap

Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Tools

VSCode Windows 64-bit Download

VSCode Windows 64-bit Download

A free and powerful IDE editor launched by Microsoft

MinGW - Minimalist GNU for Windows

MinGW - Minimalist GNU for Windows

This project is in the process of being migrated to osdn.net/projects/mingw, you can continue to follow us there. MinGW: A native Windows port of the GNU Compiler Collection (GCC), freely distributable import libraries and header files for building native Windows applications; includes extensions to the MSVC runtime to support C99 functionality. All MinGW software can run on 64-bit Windows platforms.

EditPlus Chinese cracked version

EditPlus Chinese cracked version

Small size, syntax highlighting, does not support code prompt function

SAP NetWeaver Server Adapter for Eclipse

SAP NetWeaver Server Adapter for Eclipse

Integrate Eclipse with SAP NetWeaver application server.

Dreamweaver Mac version

Dreamweaver Mac version

Visual web development tools