php sybase配置问题:C:\ xampp \ htdocs中的未定义函数sybase_connect() [英] php sybase config problem:undefined function sybase_connect() in C:\xampp\htdocs

查看:100
本文介绍了php sybase配置问题:C:\ xampp \ htdocs中的未定义函数sybase_connect()的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

致命错误:在第3行的C:\ xampp \ htdocs \ pcgear \ index.php中调用未定义的函数sybase_connect()

Fatal error: Call to undefined function sybase_connect() in C:\xampp\htdocs\pcgear\index.php on line 3

<?php
$link = sybase_connect(''Sybase'', ''sa'', '''')
        or die("Could not connect !");
echo "Connected successfully";
sybase_close($link);
?>



Sybase和Apache本身可以工作.但是php无法连接到sybase

我已取消注释extension = php_sybase_ct.dll并打开magic_quotes_sybase = On @ c:\ xampp \ php \ php.ini

我使用Windows 7 Ultimate,xampp-win32-1.7.4-VC6-installer,sybase ase155esd2_winx86.

请帮忙.非常感谢您!



Sybase and Apache themselves work. but php can''t connect to sybase

I have uncommented out extension=php_sybase_ct.dll and turn on magic_quotes_sybase = On @ c:\xampp\php\php.ini

I use Windows 7 Ultimate, xampp-win32-1.7.4-VC6-installer,sybase ase155esd2_winx86.

Please help. Thank you very much!

推荐答案

link = sybase_connect("Sybase","sa",'''') 或死(无法连接!"); 回显连接成功"; sybase_close(
link = sybase_connect(''Sybase'', ''sa'', '''') or die("Could not connect !"); echo "Connected successfully"; sybase_close(


链接); ?>
link); ?>



Sybase和Apache本身可以工作.但是php无法连接到sybase

我已取消注释extension = php_sybase_ct.dll并打开magic_quotes_sybase = On @ c:\ xampp \ php \ php.ini

我使用Windows 7 Ultimate,xampp-win32-1.7.4-VC6-installer,sybase ase155esd2_winx86.

请帮忙.非常感谢!



Sybase and Apache themselves work. but php can''t connect to sybase

I have uncommented out extension=php_sybase_ct.dll and turn on magic_quotes_sybase = On @ c:\xampp\php\php.ini

I use Windows 7 Ultimate, xampp-win32-1.7.4-VC6-installer,sybase ase155esd2_winx86.

Please help. Thank you very much!


这直接出自《 PHP手册》的"Sybase"部分.


安装
要启用Sybase-DB支持,请配置PHP --with-sybase [= DIR]. DIR是Sybase主目录,默认为/home/sybase.要启用Sybase-CT支持,请配置PHP --with-sybase-ct [= DIR]. DIR是Sybase主目录,默认为/home/sybase.

注意:从PHP 5.3.0开始,Sybase扩展已由sybase_ct扩展取代,并且不再维护.要继续使用sybase,必须使用sybase_ct扩展名.


就像说的那样,如果您使用的是PHP 5.3,则需要切换到sybase_ct或放回旧的PHP.

彼得
This is straight out of the PHP Manual, Sybase section.


Installation
To enable Sybase-DB support configure PHP --with-sybase[=DIR]. DIR is the Sybase home directory, defaults to /home/sybase. To enable Sybase-CT support configure PHP --with-sybase-ct[=DIR]. DIR is the Sybase home directory, defaults to /home/sybase.

Note: As of PHP 5.3.0, the Sybase extension has been superseded by the sybase_ct extension and is no longer maintained. To continue using sybase you must use the sybase_ct extension.


As it says, if you are using PHP 5.3, you need to switch to sybase_ct or drop back to an older PHP.

Peter


这篇关于php sybase配置问题:C:\ xampp \ htdocs中的未定义函数sybase_connect()的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆