П О Р Т А Л                            
С Е Т Е В Ы Х                          
П Р О Е К Т О В                        
  
                                                 
Главная

О проекте

Web-мастеру
     HTML & JavaScript
     SSI
     Perl
     PHP
     XML & XSLT
     Unix Shell

MySQL

Безопасность

Хостинг

Другое







Самое читаемое:

Учебник PHP - "Для Чайника".
Просмотров 98194 раз(а).

Иллюстрированный самоучитель по созданию сайтов.
Просмотров 29079 раз(а).

Учебник HTML.
Просмотров 56200 раз(а).

Руководство по PHP5.
Просмотров 25940 раз(а).

Хостинг через призму DNS.
Просмотров 30467 раз(а).

Подборка текстов стандартных документов.
Просмотров 28982 раз(а).

Учебник PHP - Самоучитель
Просмотров 33731 раз(а).

Документация на MySQL (учебник & справочное руководство)
Просмотров 34989 раз(а).

Внешние атаки...
Просмотров 26957 раз(а).

Учебник PHP.
Просмотров 22783 раз(а).

SSI в примерах.
Просмотров 17856 раз(а).



 
 



Руководство по PHP
Пред. След.

sybase_connect

(PHP 3, PHP 4, PHP 5)

sybase_connect -- Opens a Sybase server connection

Description

resource sybase_connect ( [string servername [, string username [, string password [, string charset [, string appname]]]]] )

Returns a positive Sybase link identifier on success, or FALSE on failure.

sybase_connect() establishes a connection to a Sybase server. The servername argument has to be a valid servername that is defined in the 'interfaces' file.

In case a second call is made to sybase_connect() with the same arguments, no new link will be established, but instead, the link identifier of the already opened link will be returned.

The link to the server will be closed as soon as the execution of the script ends, unless it's closed earlier by explicitly calling sybase_close().

Пример 1. sybase_connect() example

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

See also sybase_pconnect() and sybase_close().



 





Copyright © 2005-2011 Project.Net.Ru