PHPÁ¬½ÓOralce³öÏÖ£ºtns: no listener
ÎÒÓõÄÊÇOracle10gµÄclient¶Ë£¬
Á¬½ÓÔ¶³Ì¼ÆËã»ú168.1.1.3:1521/SMTRT
ʹÓÃclientµÄÆóÒµ¹ÜÀíÆ÷ÒÔ¼°sqlplus: smtuser/smtadm@SMTRT
¶¼ÄÜÕý³£Á¬½ÓÉÏOracle
µ«ÊÇʹÓÃPHPµÄadodbÁ¬½Ó¾Í³öÏÖÎÊÌ⣺tns:no listener.
Èç¹ûʹÓÃ$conn = OCINLogon("smtuser", "smtadm","168.1.1.3:1521/SMTRT");
¾Í³öÏÖ£ºORA-12737: Instant Client Light: unsupported server character set %s
Èç¹ûʹÓÃ$conn = OCINLogon("smtuser", "smtadm","168.1.1.3:1521/SMTRT","ZHS16GBK");
¾Í»á³öÏÖ£º
OCIEnvNlsCreate() failed. There is something wrong with your system - please check that PATH includes the directory with Oracle Instant Client libraries
×¢£º»·¾³Îª£ºZendServer5.0 £¨apache2.13£¬php5.30£©
oci8
OCI8 Support enabled
Version 1.3.5
Revision $Revision: 1.269.2.16.2.38.2.32 $
Active Persistent Connections 0
Active Connections 0
Temporary Lob support enabled
Collections support enabled
Directive Local Value Master Value
oci8.connection_class no value no value
oci8.default_prefetch 100 100
oci8.events Off Off
oci8.max_persistent -1 -1
oci8.old_oci_close_semantics On On
oci8.persistent_timeout 60 60
oci8.ping_interval 60 60
Ïà¹ØÎÊ´ð£º
¶Ôphp²»ÊǺÜÁ˽â дÁ˸ö¼òµ¥µÄÀý×Ó
ÏÖÓÃc#µ÷ÓÃphpдµÄ webservice£¨soap WSDL£©iis6.0+php5.2.8
webserviceÈçÏÂ
<?php
class WebService
{
public function Logout()
{
//header('Co ......
ÔÚ¹úÍâµÄ¿Õ¼ä£¬ÆäËüµÄphpÕ¾µã¶¼Õý³££¬¿ÉÖ»ÓÐ×î½ü½¨µÄÕâ¸öÕ¾µã£¬Ö»ÒªÒ»ä¯ÀÀphpÎļþ¾Í³öÏÖÏÂÔØÌáʾ£¬ÏÂÔØÏÂÀ´µÄÎļþ¶¼ÊÇ´øÓÐphpÔ´Â룬¸÷λ·¹ýµÄ£¬°ï°ïÎÒ£¬¿´¿´Ê²Ã´ÔÒò£¬ÏÈлÁË¡£
¿ÉÄÜÊÇÒòΪ¸ÃÕ¾µãûÓÐÄãÏëÒªµÄä¯ÀÀÆ ......
´úÂëÈçÏ£º
function uc_get_user($username, $isuid=0) {
$return = call_user_func(UC_API_FUNC, 'user', 'get_user', array('username'=>$username, 'isuid'=>$isuid));
return UC_CONNECT == 'mysql' ......
PHP code:
$date = '2009-12-25';
$ptn = '/([\d]{4})[- \/](0?[\d]|1[0-2])[-\/ ](0?[\d]|[1-2][\d]|3[0-1])/';
if (preg_match($ptn,$date,$out))
{
print_r($out);exit();
}
½á¹ûΪ:
PHP code:
......
ÕÒÈË¿ª·¢PHP³é½±³ÌÐò
ÓÐÒâÏòÕß¼ÓÎÒ
251414041
°ï¶¥ÁË£¡
結貼ÂÊÌ«µÍ
°ï¶¥¡£
How much?
¶¥
4Â¥µÄÎÊÁË£¬¶àÉÙÇ®
duoshao
°¥.............
Äã²»ÊÇÈÃÎÒ×öÁËÂ𣿡·¡·¡·Ôõà ......