|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2005-02-03 04:45 UTC] sniper@php.net
[2005-02-11 01:00 UTC] php-bugs at lists dot php dot net
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Thu Nov 20 00:00:02 2025 UTC |
Description: ------------ I installed sybase 12.5.2 (Linux) and apache (Windows XP) and php 4.3.9 (Windows XP) on the same server, the php testing is no problem. But i use function sybase_connect() in program testeConexao.php, when i open the file in IE, error messages : ============================ Warning: sybase_connect(): Sybase: Unable to allocate connection record in D:\WebServer\homebanking\include\testeConexao.php on line 15 ============================ I search all the internet, don't find the reason and the solution. PLase Help me, Thanks a lot. Bruno Mignoni Reproduce code: --------------- session_start(); $config["BANCO"]["usuario"] = "sa"; $config["BANCO"]["senha"] = "olaolaola"; $config["BANCO"]["host"] = "srvdatabase"; $config["BANCO"]["database"] = "ola"; if(!$bd=sybase_connect($config["BANCO"]["host"], $config["BANCO"]["usuario"], $config["BANCO"]["senha"], NULL, "HOMEBANKING 0100")){ echo("ERROR"); exit; }else{ if(!@sybase_select_db($config["BANCO"]["database"],$bd)){ echo("ERRO - DataBase"); exit; }else{ set_time_limit($config["TEMPO_LIMITE"]); } }