Sleepingdemon's Posts
Nairaland Forum › Sleepingdemon's Profile › Sleepingdemon's Posts
duvie92:oga, i can bet the op dosent even know what node.js/npm is, im sure the javascript he is talking about does not pass jqwery/javascript, o.p if u know what ejs, handlebars, jade is, ill retract this statement and use multer inside php apps. |
The guy sef dey find front end developer, e say na web developer....never knew html, css and Javascript is equals web developer. |
Abeg, whats the meaning of ALUU. Seen the site, looks quite cool, but ive not been able to navigate through ot, however theres a possible risk of integer overflow. But its almost nothing to worry about |
Abeg who wants to start e-war here? without settling boys for street so? this war no go nice if una no settle guys. |
me that ive been saching for davido's baby mama, i no even seen picture of davido talkless of the baby mama |
Ftc things, space booked...i dedicate this space to my ubuntu 16.04 lts. |
just passing by..... |
like i once said, he'd better move to mongodb and get better option for the application. looking at php as the forefront engine, talking about being resource hungry, i hope php gets to survive. talking about using hhvm and php are two different things, although they are both written in php, one in converted to c++ to deal with concurrency issues. |
dhtml18:ehen, that remind me, im still waiting for your php websocket version, if its not still documented, u can send without documentation |
land booked. this land is not for sale. when this sach engine big pass bing untop php, i go come build house for here, sorry i meant devilfinder not bing, till then beware of 419, this land is not for sale. beware of dogs too. |
Op the content of the file you outline is it index1.php? The class you provided, if ran, would return "you are an oop genius" the error you are recieving is from the index1.php class, not the class. besides, i guess you want the file to print out you are an oop genius and also usernames and id gotten from the user table. if that is the case, ive corrected your class to be like this, and it should work. But i repeat, the error of exec you are getting is from index1.php, not this file. <?php class user{ //inniating variables to be used in db_connect method. // Database assess values. public $db_host= "localhost"; public $username=""; public $password= ""; public $db_name="php_database"; public $dbc; public $sql; public $row; public $result; public $something; function __construct(){ $this->connect(); } // method to connect to database function connect(){ try{ $this->dbc= new PDO("mysql:host=$this->db_host; dbname=$this->db_name;charset=utf8", $this->username, $this->password); } catch (PDOException $e){ echo "failed to connect to database pdo "; echo $e->getmessage(); exit(); } return $this->dbc; } public function dbr(){ $this->sql="SELECT username, id FROM users"; $stmt=$this->dbc->query($this->sql); return $stmt; return $stmt->fetchAll(PDO::FETCH_ASSOC); } } $usermanagment= new user(); echo "you are an OOP genius"; echo "<br>"; try { $answer=$usermanagment->dbr(); foreach ($answer as $row) { print $row['id'] . "\t"; print $row['username'] . "\n"; } } catch(PDOException $ex) { echo $ex->getmessage(); //handle me. } echo "<br>"; echo $usermanagment->sql; ?> |
Nmeri17:as in ehn, i was hoping he was going to verify the fact that this monitor lizard actually eats the flex of our laptops screen and that is why we should roast it. |
its never that bad, jes buy holandia youghurt before you start building it, before you sip finish, you for don build the eCommerce app.another tip op, make sure you buy gala too. |
dhtml18:snake, you must be lala's brother |
must you store images in database, upload images to a folder in your web root, store the path in the database and your good to go. but if ure keen in storing the image to database directly, use a blob field in your database, convert image to blob and save in database |
i officially give up on this thread. any other thing i would do here is to read comments, troll and sip the new holandia youghurt...yummy something. |
guru01:mysql uses one connection pool, so if you have 10 users launching your app at the same time, and the 10 isers need to run 100 queries each, mysql lines up the 1000 queries from the 10 users and executes them one after the other. that said, the 10th user gets his data last and slower. now apply that logic to 1 million users running a query that searches a mysql database of over 40tb of data.... why do you think even mysql enginners wont tell you its scalable, rather they would optimize indexes for faster search time and at the worst, they master - slave replication, which is almost the same thing as data sharding which i mentioned. i hope this gives u a bit more insight to your understanding. |
micodon:op, just in case my oga here has killed you with too much technicals here, the pin point of what he is saying is php dosent handle concurrency very well, and its also having blocking i.o's and for a search engine on the other hand, concurrency is key. |
micodon:yeah yeah, but we all know most people this days learn java only for andriod development. |
dhtml18:i'm just here waiting for google to move on to swift so i dont have to hear the name JAVA all the time. i slightly hate that language. |
dhtml18:Using php and mysql isnt the best choice really because: To scale PHP on a relational database, you need to shard your data. This means splitting the data by some reasonable key. This might mean East Coast customers go on one RDBMS, Midwest customers go on another, and the West Coast on a third. This is a lot of complexity to swallow when you chose PHP because it was "simple" and "free." But like i said, till your app grows to when scaling is most needed, its not a bad idea using php alongside a no-sql database not a RDBMS database. |
the thing do mistake, e mean 3 hours |
everything rail in nigeria is slowly adapted, even the nigerian railways, so why complain. |
in all of this, that guy that asked you to use golang, i need to flog him very hard. ehen, that advice on java is still fair, on the other hand, what do i know, just in case you're more comfy with php, you can use mongodb as your database instead, when the app outgrows php, you can move to another lang. or if ure a javascript person, mean stack is actually useful. |
jes passing by and decided to say hi.. abeg i support that guy, what about codeigniter... op better add it to your list before we do street fight for here... i rest my case. |
proxy20:that's raised to the power of, same thing ^ is used for in some other languages |
o.p if i start to dey dress like woman and catwork, i go fit submit my c.v? shey na only because of diversity you need female programmer, make me sef diversify myself for the job. i expect your prompt response regards. the programmer you need |
hmm, first of all, whats ur range for affordability....someone who charges 1m per project is affordable to some a lot and still not affordable to a few, so by affordable, ure yet to narrow your search, its too ambiguous. anyways, i get affordable programmer, but yin go use 2and half years complete your project even if na to write script to echo i am here, can he apply too? |
proxy20:that is while building the app itself, the sockets.io is just for real time interaction as fast as that of bbm snd whatsapp... |
dhtml18:i go add pension pin join sef |