GithubHelp home page GithubHelp logo

duythien / php-mongodb Goto Github PK

View Code? Open in Web Editor NEW
80.0 80.0 64.0 387 KB

How to create blog used MongoDB

Home Page: http://phpmongodb-duythien.rhcloud.com/

PHP 7.88% CSS 2.27% JavaScript 87.59% HTML 2.25%

php-mongodb's Introduction

  • Hi, Iโ€™m @duythien
  • ๐Ÿ‘€ Iโ€™m interested in Web3.0 | Blockchain | NFTs | Substrate | Cosmos
  • ๐ŸŒฑ Iโ€™m currently learning Substrate | Rust | MetaProgramming | GoLang
  • ๐ŸŒฑ Iโ€™m looking to work with OpenStack, GCP
  • ๐Ÿ’ž๏ธ Iโ€™m looking to collaborate on Open Source Custom blockchains built with Substrate & Cosmos

๐Ÿ“ซ How to reach me Email at: [email protected] LinkedIn: https://www.linkedin.com/in/fcduythien/

php-mongodb's People

Contributors

duythien avatar lohardt avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

php-mongodb's Issues

Feature or bug?

After creating a post using markdown, it is saved as html. When editing, the editor shows html and markdown wont work. Am i missing a configuration flag somewhere?

Problem on line 28

Undefined type 'MongoClient'.intelephense(1009)

		$connection=  new \MongoClient($config['connection_string'],array('username'=>$config['username'],'password'=>$config['password']));

Read timed out after reading 0 bytes, waited for 0.000000 seconds

Hello,

I try to use the blog "application. I've just changing the connection (with "MongoClient"). It's work a little, but sometimes, there's errors, on differents lines, like this :

Fatal error: Uncaught exception 'MongoConnectionException' with message 'Failed to connect to: 127.0.0.1:27017: Read timed out after reading 0 bytes, waited for 0.000000 seconds' in /var/www/bdd/mongodb/blog/db.php:48 Stack trace: #0 /var/www/bdd/mongodb/blog/db.php(48): MongoCursor->getNext() #1 /var/www/bdd/mongodb/blog/single.php(6): Blog\DB\DB->getById('5425578dfc45a7e...', 'posts') #2 {main} thrown in /var/www/bdd/mongodb/blog/db.php on line 48

In this case,line 48 is : $article = $cursor->getNext();

//$connection= new \Mongo($config['connection_string'],array('username'=>$config['username'],'password'=>$config['password'])); $connection= new \MongoClient($config['connection_string'],array('username'=>$config['username'],'password'=>$config['password']));

have you an idea ?

Thanks,
Fabrice

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.