mongo database, how to deal with it

mongo databaseHow to test whether the mongo database is connected? I just came into contact with mongodb today. Not familiar with. Are there any learning materials in this area? Thank you! ——Solution——————– PHP code selectDB(‘fish_test’); //If there is no database, it will be automatically created $collection=$db->selectCollection(‘fish’);//If there is no database table, it will be automatically created $record=array( ‘name’=>’fish’, ‘time’=>’123’, ‘StartTime’=>’456’, ) $collection->save($record);//Add new record } } ?>

ocilogon()function.ocilogonocienvnlscreate()failed, how to deal with it

ocilogon() function.ocilogon ocienvnlscreate() failedA windows server (the PHP program is also here), “remote connection” to Oracle, but this error is reported. According to the Internet, it is an ORACLE_HOME problem, and it has also been set on this machine. Adding ORACLE_HOMT to the environment variable cannot solve the problem… ——Solution————– —— I have never used something as high-end as Oracle. This is Lao Xu’s specialty. Wait for Lao Xu to help you take a look. ——Solution——————–Post Show your connection code It seems that remote connection to oracle8 requires configuring environment variables, but not necessarily! Just give the address, port, and listening name of the remote database. I am not familiar with Oracle. I only became familiar with it when I needed to read data from Oracle10 last year. After some explorationI feel that using pdo_oci to connect to oracle is extremely simple. ——Solution——————– ocilogon — Alias ​​for oci_connect() oci_connect() returns a connection identifier required by most OCI calls. The optional third parameter can contain the name of the local Oracle instance or entry in tnsnames.ora to which you want to connect. If the optional third parameter is not specified, PHP uses the environment variable ORACLE_SID (Oracle instance) or TWO_TASK (tnsnames.ora)…

CAKEphp, Node.js, MongoDB, how to deal with it

CAKEphp, Node.js, MongoDB, how to deal with it

CAKEphp, Node.js, MongoDBThe three technologies of CAKEphp, Node.js and MongoDB As a beginner, I hope you can share with me some good learning websites or books, thank you! ——Solution——————– Quote: Download the mongoDB installation package on WindowsXP? It can be downloaded from its official website. If it supports XP, it can be installed as a service or started using a command. Document: http://docs.mongodb.org/manual/tutorial/install-mongodb-on-windows/ Step by step, very simple. ——Solution——————–Learn and help Top…

mongo database, how to deal with it

mongo databaseHow to test whether the mongo database is connected? I just came into contact with mongodb today. Not familiar with. Are there any learning materials in this area? Thank you! ——Solution——————– PHP code selectDB(‘fish_test’); //If there is no database, it will be automatically created $collection=$db->selectCollection(‘fish’);//If there is no database table, it will be automatically created $record=array( ‘name’=>’fish’, ‘time’=>’123’, ‘StartTime’=>’456’, ) $collection->save($record);//Add new record } } ?>

ocilogon()function.ocilogonocienvnlscreate()failed, how to deal with it

ocilogon() function.ocilogon ocienvnlscreate() failedA windows server (the PHP program is also here), “remote connection” to Oracle, but this error is reported. According to the Internet, it is an ORACLE_HOME problem, and it has also been set on this machine. Adding ORACLE_HOMT to the environment variable cannot solve the problem… ——Solution————– —— I have never used something as high-end as Oracle. This is Lao Xu’s specialty. Wait for Lao Xu to help you take a look. ——Solution——————–Post Show your connection code It seems that remote connection to oracle8 requires configuring environment variables, but not necessarily! Just give the address, port, and listening name of the remote database. I am not familiar with Oracle. I only became familiar with it when I needed to read data from Oracle10 last year. After some explorationI feel that using pdo_oci to connect to oracle is extremely simple. ——Solution——————– ocilogon — Alias ​​for oci_connect() oci_connect() returns a connection identifier required by most OCI calls. The optional third parameter can contain the name of the local Oracle instance or entry in tnsnames.ora to which you want to connect. If the optional third parameter is not specified, PHP uses the environment variable ORACLE_SID (Oracle instance) or TWO_TASK (tnsnames.ora)…

mongo database, how to deal with it

mongo databaseHow to test whether the mongo database is connected? I just came into contact with mongodb today. Not familiar with. Are there any learning materials in this area? Thank you! ——Solution——————– PHP code selectDB(‘fish_test ‘); //If there is no database, it will be automatically created $collection=$db->selectCollection(‘fish’); //If there is no database table, it will be automatically created $record=array( ‘name’=>’fish’, ‘time’=>’123’, ‘StartTime’=>’456’, ) $collection->save($record);//Add new record} }?>

If the defer delayed processing function in golang has an err return value, how to deal with it?

123456789101112131415 package main import ( “fmt” ” os” ) func main() { file, err := os.Open(“./src/ main/test.txt”) if err != nil { fmt.Println(“open error “, err) } defer file.Close() fmt.Println(file) } defer file.Close() will have a gray prompt in goland, saying Unhandled error. An error may occur during close. How should I deal with this error?

Javaer learns PHP, how to deal with it

Javaer learns PHPJava has been developed for 2 yearsI want to learn PHPI just read it on w3cschool. It’s considered a beginner.Please recommend learning materials >——Solution——————– http://www.phpuser.com – PHP Chinese usershttp://www.phpx.com – China PHP Alliancehttp://www.phpsite.net – PHP dedicated sitehttp://www.cpcw.com/netschool/homepage/cgi/ – Computer newspaper website Tao Barhttp://www.php.net/ – PHP official sitehttp://www .devshed.com/ – Excellent tutorial computer technologyhttp://px.sklar.com – Code exchange hardware technology, network technology, virus securityhttp://www.phpbuilder.com/ – Tutorials, columns and mailing list archiveshttp://www.weberdev.com/ – Articles and code hardware technology, network technology,http://www.phpwizard.net/ – Tips and tricks http://www.iometrics.com/php/phplist.php3/http://www.e-gineer.com/phpkb/ – PHP Knowledge Base http://phplib.netuse.de – PHPLib, a complete set of PHP function librarieshttp://www.phorum.org – Phorum is a very complete BBS system Star Computer Technology Forumhttp:/ /www.fishcartsql.org – FishCartSQL is an e-commerce solutionhttp://www.midgard-project.org – Midgard is a web application development platform Some of the above are outdated , identify by yourself. “Programming PHP 2nd Edition” covers PHP5 “Programming PHP 2nd Edition” [US] Written by Rasmus Lerdorf, Kevin Tatroe & Peter MacIntyre, Chen Hao, Hu Dan, and Xu Jing Translation ISBN 978-7-121- 03870-9 Priced at RMB 78 Electronic Industry Press ——Solution——————–” “Programming PHP 2nd Edition” covers PHP5 “Programming PHP 2nd Edition” [US] Rasmus Lerdorf, Kevin Tatroe & Peter MacIntyre, written by Chen Hao, Hu Dan, and Xu…

Javaer learns PHP, how to deal with it

Javaer learns PHPJava has been developed for 2 yearsI want to learn PHPI just read it on w3cschool. It’s considered a beginner.Please recommend learning materials >——Solution——————– http://www.phpuser.com – PHP Chinese usershttp://www.phpx.com – China PHP Alliancehttp://www.phpsite.net – PHP dedicated sitehttp://www.cpcw.com/netschool/homepage/cgi/ – Computer newspaper website Tao Barhttp://www.php.net/ – PHP official sitehttp://www .devshed.com/ – Excellent tutorial computer technologyhttp://px.sklar.com – Code exchange hardware technology, network technology, virus securityhttp://www.phpbuilder.com/ – Tutorials, columns and mailing list archiveshttp://www.weberdev.com/ – Articles and code hardware technology, network technology,http://www.phpwizard.net/ – Tips and tricks http://www.iometrics.com/php/phplist.php3/http://www.e-gineer.com/phpkb/ – PHP Knowledge Base http://phplib.netuse.de – PHPLib, a complete set of PHP function librarieshttp://www.phorum.org – Phorum is a very complete BBS system Star Computer Technology Forumhttp:/ /www.fishcartsql.org – FishCartSQL is an e-commerce solutionhttp://www.midgard-project.org – Midgard is a web application development platform Some of the above are outdated , identify by yourself. “Programming PHP 2nd Edition” covers PHP5 “Programming PHP 2nd Edition” [US] Written by Rasmus Lerdorf, Kevin Tatroe & Peter MacIntyre, Chen Hao, Hu Dan, and Xu Jing Translation ISBN 978-7-121- 03870-9 Priced at RMB 78 Electronic Industry Press ——Solution———– ———“PHP Programming” The second edition covers PHP5 “Programming PHP 2nd Edition” [US] Written by Rasmus Lerdorf, Kevin Tatroe & Peter MacIntyre, Chen Hao, Hu Danxu Jingyi…

java receives mail ssl_javamailssl reports an error when receiving mail, how to deal with it

java mail ssl error when receiving emails, how to deal with it Hot:5086 Release time:2013-02-25 21:42:42 java mail ssl error when receiving mail Exception in thread “main” javax.mail.MessagingException: Connect failed; nested exception is: javax.net .ssl.SSLHandshakeException: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target at com.sun.mail .pop3.POP3Store.protocolConnect(POP3Store.java:210) at javax.mail.Service.connect(Service.java:295) at javax.mail.Service.connect (Service.java:176) at javax.mail.Service.connect(Service.java:125) at com.test.GmailFetch.main(GmailFetch.java:41 ) Caused by: javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target at com.sun.net.ssl.internal.ssl.Alerts.getSSLException(Alerts.java:174) at com.sun.net.ssl.internal.ssl .SSLSocketImpl.fatal(SSLSocketImpl.java:1591) at com.sun.net.ssl.internal.ssl.Handshaker.fatalSE(Handshaker.java:187) at com .sun.net.ssl.internal.ssl.Handshaker.fatalSE(Handshaker.java:181) at com.sun.net.ssl.internal.ssl.ClientHandshaker.serverCertificate(ClientHandshaker.java:975 ) at com.sun.net.ssl.internal.ssl.ClientHandshaker.processMessage(ClientHandshaker.java:123) at com.sun.net.ssl.internal.ssl .Handshaker.processLoop(Handshaker.java:516) at com.sun.net.ssl.internal.ssl.Handshaker.process_record(Handshaker.java:454) at com .sun.net.ssl.internal.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:884) at com.sun.net.ssl.internal.ssl.SSLSocketImpl.performInitialHandshake(SSLSocketImpl.java:1096 ) at com.sun.net.ssl.internal.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1123) at com.sun.net.ssl.internal.ssl .SSLSocketImpl.startHandshake(SSLSocketImpl.java:1107) at com.sun.mail.util.SocketFetcher.configureSSLSocket(SocketFetcher.java:548) at com.sun.mail .util.SocketFetcher.createSocket(SocketFetcher.java:352) at com.sun.mail.util.SocketFetcher.getSocket(SocketFetcher.java:207) at com.sun .mail.pop3.Protocol.(Protocol.java:111) at com.sun.mail.pop3.POP3Store.getPort(POP3Store.java:261) at com. sun.mail.pop3.POP3Store.protocolConnect(POP3Store.java:206) … 4 more Caused by: sun.security.validator.ValidatorException: PKIX path building failed : sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target at sun.security.validator.PKIXValidator.doBuild(PKIXValidator.java:285) at sun.security.validator.PKIXValidator.engineValidate(PKIXValidator.java:191) at sun.security.validator.Validator.validate(Validator.java:218) at com.sun.net.ssl.internal.ssl.X509TrustManagerImpl.validate(X509TrustManagerImpl.java:126) at com.sun.net.ssl.internal.ssl.X509TrustManagerImpl.checkServerTrusted(X509TrustManagerImpl.java: 209) at com.sun.net.ssl.internal.ssl.X509TrustManagerImpl.checkServerTrusted(X509TrustManagerImpl.java:249) at com.sun.net.ssl.internal. ssl.ClientHandshaker.serverCertificate(ClientHandshaker.java:954) … 17 more Caused by: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target at sun.security.provider.certpath.SunCertPathBuilder.engineBuild(SunCertPathBuilder.java:174) at java.security.cert.CertPathBuilder.build(CertPathBuilder.java :238)

Contact Us

Contact us

181-3619-1160

Online consultation: QQ交谈

E-mail: [email protected]

Working hours: Monday to Friday, 9:00-17:30, holidays off

Follow wechat
Scan wechat and follow us

Scan wechat and follow us

Follow Weibo
Back to top
首页
微信
电话
搜索