Programming › Re: A Web App That Automatically Tweak Imeis ( IMEI Genius) by seunoni34(m): 4:51pm On Apr 19, 2015 |
turn2honey: IMEI GENIUS app is a web application that enables you to generate an accurate International Mobile station Equipment's Identity IMEI. The app uses Luhn Algorithm to generate a Check digit of an incomplete IMEI; and also uses Mersenne Twister Algorithm to randomly select number(s) between 0-10, thereby automatically Tweaking(Generating) more valid IMEIs. The web app is mainly for Andriod users; I hope you remember that: without rooting your phone, you can't change it's IMEI . The main reason why i developed this web app is to reduce subscription worries, reduce my IMEI Guessing stress, test my programming skills and as well as for Educational Purpose.
Please click here to use the app. that's not true. If you're using an mtk processor device you can change your imei, with an app called "mtk engineering" without having to root your phone. |
Politics › Re: APC Website Vanishes With Road Map And Campaign Promises by seunoni34(m): 4:14pm On Apr 19, 2015 |
Hahahaha |
Romance › Re: Where And When Not To Approach A Lady by seunoni34(m): 3:16pm On Apr 19, 2015 |
[/b]Dotwillis1 : As important as it is to be willing to approach women you don’t know, it’s important to know when you shouldn’t be approaching them. As nerve-wracking as it might be for you to approach women, it can be an even more tense situation for the women being approached. Almost every woman out there has a story about being harassed by guys who wanted to “just say hello” and who thought that their desire to introduce themselves overrode her right to be left alone. So unless she is giving you very explicit indications that she’s interested in talking to you… give her a pass. It’s better to “miss out” on an opportunity than to end up being given a disparaging remark or get insulted. I'm no expert in ladies affairs  but I think this are some of the times you shouldn't be approaching a lady .. [b]At Night (except in social spaces) The social contract changes when the sun goes down. What is tolerable – if not expected – during the day is potentially threatening at night. Asking a lady for the time or directions during the day is completely normal. The exact same behaviors at night seem like the prelude to a mugging. You may have nothing but the most noble of intentions, but trying to approach a lady walking along the streets at night is most likely going to make her shiver with fear and she won't feel convenient because lots of bad/wrong impressions will be running through her mind as to what is this stranger up to... She may not even grant you the audience. When she is busywhen she’s reading, writing or working on her laptop. If she’s in a public place – a cafe, library, class what-have-you – and she’s busy, maybe on her laptop, then the odds are that she’s there because she really needed to get out of the apartment for a while. This means she’s there to work or study, not to flirt. And no, it doesn’t matter if you notice she’s updating her Facebook page instead of working on her thesis; if she was interested in talking to somebody, she wouldn’t be focusing on something else. If you really want to ask her for her opinion maybe on a book she’s reading, then you can wait until she’s put the book down, rather than plopping yourself in the seat next to her and demanding that she pay attention to you. At WorkFor example, take anyone who works in a hotel, waitresses – especially ones at restaurants, bartenders, etc. Their job description is almost literally “Flirting. This doesn’t mean that these ladies are cockteases or are being dishonest, but a certain level of flirtiness often means a heavier tip from male customers. It’s professional flirting without intent. But even those who aren’t overtly flirty have a vested interest in getting you to like them – it’s part of what helps bring customers back. Unfortunately, there are plenty of people who mistake professional niceness for genuine interest and assume that the waitress or the bartender is really into them. But beyond not mistaking niceness for interest, there’s one major complicating factor: they are at work. They’re not there to get dates or make new friends, they’re there to do their job. They literally don’t have time for prolonged flirt sessions and, frankly, most of them would like to get through their workday with minimal hassle. On Public TransportationMass transit is less of a convenient place for some ladies to interact freely. Moreso, it is not a safe space for ladies and she will already have her guard up when you try to say hello. If she wants to talk to you, she’ll let you know. Let her make the first move; Don't chat up a female pedestrian from your car  A Lady once told me its extremely frightening. No matter what time is it, you do something like that, it is sending out the message that you might drag the person into your car and drive off. ------------ sometimes yhu’ll see a very beeyootiful lady and yhu feel that pressure that says “if yhu don’t talk to her nownownow you’ll miss your opportunity and never see her again”, buh there are times when all a lady wants is to not have to deal with anyone, being respectful of her space and showing her courtesy is much more likely to make a positive impression on her than being one more headache in her daily commute. There’s a time and place for everything. Do you agree with this list? Feel free to add more!  what is it that is so special about approaching a lady? Posts like this make them feel special and kind of boosts their shakara to another level. |
Celebrities › Re: Seun Kuti: “jonathan Knelt For Prayer• David Cameron Stood • Is Adeboye Racist?” by seunoni34(m): 9:22am On Apr 19, 2015 |
The two leaders in question are from different backgrounds, and BTW I don't remember Adeboye asking president jonathan to kneel down in the first place. And even if he did that doesn't make him racist, most white leaders are conservative about religion, kneeling down in a church might make him look like an extremist. Seun kuti should grow up and do good music He's not even a star, he's just living in his father's shadows. |
Politics › Re: I Can't Promise My Government Will Find Missing Chibok Girls - Buhari by seunoni34(m): 7:31am On Apr 14, 2015 |
refreshrate: So saying you would do something and then changing mouth afterwards is better?
For your mind abi?
Try use the vacuum between your ears now?
Please even if just small. I know it's hard but just see if you can try.
Abeg. Pained jona supporter |
Politics › Re: I Can't Promise My Government Will Find Missing Chibok Girls - Buhari by seunoni34(m): 10:26pm On Apr 13, 2015 |
He's better than jona who promised and failed |
|
Programming › Re: Android Application With Vb.net by seunoni34(m): 8:47am On Apr 12, 2015 |
jboy01: I read it somewhere that android application can be created with vb.net using MONO. Has anyone heard about that or created an android app with mono? Its c# and it's not even mono it's xamarin |
Technology Market › Re: NAIRALAND MOBILE HQ[Android Authority] 3GB RAM PHONES*TABLETS*SMARTWATCH* inside by seunoni34(m): 12:12am On Apr 09, 2015 |
initialize: [b]Hello Everybody!!!
Simmer down, Simmer down
Ok!
******* || Introduction ||**********
>>> Welcome to Nairaland's Mobile Headquaters, The Pioneer of Every Great Mobile Device, Your No. 1 stop shop, home of High Quality, Long Lasting and Cost Effective Android Phones, Tablets, Mobile PowerBanks, Phone Accessories, Wrist watches, Jewelry Sets and Fashion Items and Mobile Conviniences....
We offer Sales (Order, Pre-order and Re-order), In-sale and After sales support, Effectiveness and Efficiency of our service is 101% ... Most orders are delivered same day, Pre-order only takes within 4 - 5 working days to deliver to you anywhere in Nigeria.
Seller is based in Lagos, while his Products are used all over Nigeria and Beyond....
Orders have been delivered through Lagos to Port-Harcourt, Borno, Yobe, Ado-Ekiti, Osogbo, Ilorin, Kwara, Bauchi, Nassarawa, Minna, Kogi, Jos, Katsina, Kaduna, Kano, Ebonyi, Abakaliki, Benue, Anambra, Onitsha, Akwa-Ibom, Calabar, Umuahia, Abia, Abuja, Ondo, Ekiti, Akure, Ilesha, Ibadan, Oyo, Ogun, Ogbomoso, Osun, Ondo, Asaba, Benin, Warri, Bayelsa, Yenogoa, and almost all cities and States in Nigeria || If your State/City isn't listed, be the first to announce me to in you vicinity.
Lagos delivery is Same Day
Customers Base is Endless; From SuperMods, Moderators, Pre-Mod, Nairaland Legends to Newbies; This is their Mobile Shop....
So come in, Relax, Consult, Conclude and Contact me. It is a known fact that I deliver and money paid to me is as secured as the one deposited in your Bank account.
From the Cheapest 1GB RAM Quadcore Android (#18,000), Cheapest Octacore Android (#28,000), to the Most Expensive. This is where you will find all your needs met.
Let's get it started in here:
******* || PHONES ||**********
Jiayu - F1, G2F, G3C, G4C, G4A, G4S, G5, G5S, G6, G6S, S1, S2, ---- From #15,000
THL - T5S, T6S, L969, W100, W200, W200s, T11, T100, T100s, T200, 4400, 5000, ---- From #18,000
Xiaomi -Hong mi 1s, Redmi, Redrice, Note, Mi2, Mi2s, Mi3, Mi4, ---- From #28,000
Huawei Honor, Ascend; P6, 3C, P7, G700, ----- From #30,000
ZTE - One 1, Redbull Nubia, Memo, Cellular, ---- From #35,000
Lenovo S650, S660, S720, S960, K900, K910, K920, A820, A850, P780, S8, ---- From #28,000
Elephone P6i, P6s, P7 mini, P7 Blade, P8, P9, P10/P10c, P2000, P3000, ---- From #20,000
Much - G2, i5,---- JDX S7800 Fr0m #27,000
Opo - OnePlus One From #68,000
Jiake - JK11, Jk12, JK13, X3s, N900W, ----- From #18,000
Doogee DG300, 310, 350, 450, 550, 800, ---- From #17,000
Zopo - C2, C3, Raiden, Cuppy, ZP700, 780, 990+, 998, ---- From #28,000
Asus - Zenphone,---
Mijue -
Star/Ulefone/HDC -
Cubot -
Kingzone -
iNew -
Foxconn -
CoolPad - 7320 Octacore @ #28,000
Leagoo -
and Many more
******* || TABLETS ||**********
Lenovo -IdealPads
Xiaomi - MiPads
Ainol - AX, BW, Novo, Numy, Sparks, ----
Pipo - M, U, T, P, W, ----
ACube - CubeTalk 5, 7, 9, ----
Chuwi - v88, 99
Asus - Zenphone
FNF - iFive
TeleCast
JDX
Voyo
Ampe
Onda
******* || MEMORY CARDS ||**********
Class 10 32GB Micro SD Card #4,000
Class 10 16GB Micro SD Card #2,500
No Class 8GB Micro SD Card #1,500
******* || Tablet/Phone Accessories, Apps, Games and Support ||**********
Phone {Silicon Case/Plastic Case/Flip Case}
Tablet {Leather Case/Flip Cover, Keyboard Case}
Screen Protector
Earphone
OTG Cable
Card Reader
Touch Pen
Phone Sucker Stand
Fish Cable winder
3.5mm Crystals
Free HD Games (Asphalt 8, MC4, MC5, Gangster Vegas, Despicable Me, GTA, NFS, 9MM, Fifa, Football Manager, NBA) bring it, Board Games like Chess, Premium Scrabble, Checkers, CandyCrush, etc, 2D and No " " games also available
Premium Applications for Office, Home, Health, Finance, utilities
My good works speaks volume and Millions of Nairalanders can't be wrong, Convincing trial awaits and the truth is I am trusted....
Make your orders without hesitating and see it delivered without delaying...
******* || LATEST OFFERS ||**********
Always check the last page of this thread for recent updates of stocks and their prices 
******* || CONTACTS ||**********
Call, Text or Whatsapp 08069321572 or 08080762473 || Telegram 08080762473
BBM: 33081682 www.facebook.com/bangysmv www.twitter.com/bangysmv http://instagram.com/bangysmv http:///bangysmv http://www.kaymu.com.ng/seller/bangysmv/
******* || Links to my other Sales Thread ||**********
For Tablets: Click Here or Here
For Powerbanks: Click Here
For Watches and Jewelry sets: Click Here
***BangysMV*** >>>>Quality Delivered Conveniently<<<< [/color][/b] bro I need elephone P6i |
Crime › Re: 'I Took A Risk; I Was Unlucky' — Suspected Drug Mule by seunoni34(m): 4:29pm On Apr 07, 2015 |
Definitely Igbo |
Politics › Re: Presidency Silent On Patience Jonathans Whereabouts by seunoni34(m): 4:25pm On Apr 07, 2015 |
softapple: she is better,influential,richer,exposed,famous,respected than ur mother n all ur family combine together. pained mothrfucka! |
Celebrities › Re: Nollywood Stars React To Kunle Afolayan Tribal Rants On Twitter by seunoni34(m): 5:34am On Apr 07, 2015 |
Felixsun20: Sorry to say, but Yorubas are highly tribalistic. Even in my room at school(UNILAG), those room mates of mine who are Yorubas do say hurtful things to me often inspite of the fact that I'm Ibibio. They say we're one, and I'm happy to be affiliated with Igbo. "One Nigeria" is a BIG LIE! I'm from the United States Of Biafra (USB), not Nigeria. If USB decides to be on her own, Yorubas and Hausas will never ever measure up to us in all aspects till Jesus comes! It is our oil resources that make all of you, we own the Nigerian economy, PETROLEUM. #Proudly Akwa-Ibomite# Ode! It will surprise you how irrelevant igbos will be when they get biafra. How many if the successful igbos made it in Igbo land? |
|
Tech Jobs › Re: A Data Aviation Company Needs A Programmer by seunoni34(m): 10:04pm On Apr 05, 2015 |
bdchange: A company based in lagos needs a female programmer and atleast 2 male programmers. Its not an open recruit. Xo if u re interested I will need to give u a recommendation as an insider.
I will only give u d email to send ur cv to wen I meet u and u re knowledgable in d programs needed.
Salary starts from 100k and above but its negotiable if u want to.
Dats d only space available xo no need for multiple entry.
Its real not a scam. bro please I'm a programmer currently working. I can't post my email here for the sake of being hijacked by scammers. Can I pm you or you pm me. I'm very much interested? |
Politics › Re: I Still Hold President Jonathan In Very High Esteem - Femi Fani-kayode by seunoni34(m): 9:49pm On Apr 05, 2015 |
Lmao, whoever takes this ffk guy seriously is as stupid as he is. |
Romance › Re: Guys, Ever Been Deceived By A Lady's Profile Picture? Share Your Experiences by seunoni34(m): 5:32am On Apr 05, 2015 |
Lol I was so surprised to read some of your experiences, I thought I was the only one though. I have had my own share of these deceitful dp's and ever since then I no longer fall for online pictures except I know you in person. The challenging truth is the real pretty ladies all have a life out there, they get more than enough attention from men. They don't usually have time for online stuff, even if they do, they're usually not as frequently online as the normal average looking girl. You notice some often ignore chats, pings or reply late it's as a result of the too much attention they're getting from people who've seen their beauty in person. In the other world, the average looking girl in her hunger and thirst for unending attention (as her beautiful counterpart) resort to the Internet to create an imaginary impression of herself I.e using filters in photos and forming an attractive personality etc So if you want a real queen, meet them in the real world. Less than one third of these fine dp's online are far from what some really look like in real time. |
Politics › Re: Can Someone Help Me Explain The 25% Issue Vs Popular Vote? by seunoni34(m): 5:22pm On Mar 31, 2015 |
It's at least 1/4(25%) votes in 2/3 of 36 States (24 states) regardless of whether he loses or wins in the 24 states. That's the first criteria that must be met. Then the normal rule of "highest votes" follows. Buhari already has 25% votes in more than 25 States self. So nothing to worry about. |
Jokes Etc › Re: Hilarious Picture Comment.. Are Vast Are U With Them??? by seunoni34(m): 1:40pm On Mar 28, 2015 |
That homeless girl joke is funny, plus the girl who've only had sex with one guy. |
Celebrities › Re: Patience Ozokwor Turns 57 Today by seunoni34(m): 1:09pm On Mar 28, 2015 |
Happy birthday to the woman who've infused the fear of mother-in-law into nigerian single ladies. |
Jobs/Vacancies › Re: Please Be Warry Of Push-cv Schemings by seunoni34(m): 11:05am On Mar 27, 2015 |
hammer2010: Just thought it wise and necessary to draw our attention to the on-going Push-CV recruitment/selection/elite programe quest.
Firstly, I must admit that I am the kind person who always critically look at situations, no matter who is involved. Even if the said situation involves my own pastor in the church, I dont just take it in hook, line, and sinker, without firstly examining it critically and objectively, in order to decipher the merits or otherwise.
Now when the Push-CV elite program advert was making the rounds on almost every social platform I came accross, by intuition, I initially had my doubts about the credibility of the program ( is there really any free launch in this part of the world? What is more, the adverts where comparable to that on the dreaded ebola virus). But then, I as always, relunctantly gave in to preasure from reasons and peers, and applied.
To make it short, I have since passed the initial stage (I believe it so, atleast for now) and proceeded to the second stage where you need to key in your educational information and the likes.
My attention was particularly drawn to the part where I was suppose to upload a CV. There were two options for this category: upload already created CV (recommended for professionals), and order a CV from us (conveniently recommended for the large army of students, Pre-NYSC, Post NYSC). Out of curiosity, I clicked on the second option just to be sure that I understood what they meant by the word "order." You already know the rest.
Now, that is the first part where I am joining issues with those behind this program. Come to think of how they took their time to give very compelling reasons why you should order a CV from them, got me thinking. Wouldnt it have been ideal if they gave tips (to those who for one reason or the other can not draft a good CV) on how best to prepare a good CV, rather than just cook a CV for a candidate?
Since its a program designed to make an unemployed person employable, how is this going to be possible if one (those who cant draft a good CV) doesnt even know the very fundamentals of a good CV drafting?
May be I am being unnecesarilly antagonistic here, but I still think it wont cost us a dime to punder on these few critical points befor going to pay a thousand naira to anyone.
Peace I'm a pre-NYSC going by may, the CV I used to get my current job was downloaded for free on the internet(dont know the website though) but there are thousands of free cv's online. Some have been prepared already , just change the name and contact info. Use Google bro. |
Romance › Re: Here's The Real Reason Men Like Big Butts by seunoni34(m): 9:51pm On Mar 26, 2015 |
Am I the only one who just doesn't fancy big butts / boobs? as long as it's visible and of reasonable size I'm ok. But I love p**sy like crazy! |
Family › Re: My Mother Inlaw Wants To Bath With Me by seunoni34(m): 7:55am On Mar 25, 2015 |
GreenApple123: Your head dey there my brother. You said it better..... @OP if you don't have anything to hide from your mother-inlaw, take shower will her as the intelligent mother-inlaw want to inspect wetin her son want to buy........ Please you are strongly advise to bath and even instruct the woman to bath you for her to have completely inspection.....if the mother-inlaw certified you okay, I SWEAR YOU DON MARRY her husband. This is crazy! Any man who allows this barbaric thing to be done with her fiance has no respect for her |
Programming › Re: Learn Php Mysql The Wordpress Way by seunoni34(m): 1:41pm On Mar 23, 2015*. Modified: 8:22pm On Mar 25, 2015 |
kayplus33: Thank you seunoni34 well i just want you to know that is a cms and top top organizations in the world to run there website on joomla and wordpress even GTBank is on joomla The fact that top organizations use cms Frameworks doesn't make it a good idea. Most of this companies put up those websites in a haste. They weren't patient enough, this is why they had to settle for less. They have no knowledge of how much power and control coding from scratch gives you. |
Romance › Re: Is There A Way A MAN Can RESIST This? by seunoni34(m): 12:30am On Mar 23, 2015 |
valmunich: Is this even attractive?  I don't know o. I was expecting to see a slim lady with curves. Not the bloated creature. |
NYSC › Re: How To Register NYSC On Your Own Computer by seunoni34(op): 1:52pm On Mar 22, 2015 |
kingadedayo5: I just concluded my online registration For batch A 2015, but while registering the day nd month of my birth didn't tally nd there Was no option to correct it Nd I carried on to conclusion. Upon conclusion my callup no was generated but I couldn't print my green slip. Here is my questions 1. In school, I make use of neco result for admission but I have waec also. I Hope when I purchase the waec verification pin, its would be accessible.
Immediate response would be much appreciated. hello, I have similar problem too. Even nysc knows that not all registered members have their information inputted correctly thus is why you will still have the option to update your info when you get to camp. So don't need to worry,as long as you have printed out your green card and you have your call up number, you're good to go. |
|
Programming › Re: Learn Php Mysql The Wordpress Way by seunoni34(m): 12:08am On Mar 22, 2015 |
thewebcraft: No offense but your website looks like it was codded in 2001.....please try re-designing because if I was interested in your courses I wound'nt want to learn how to create a site like yours... what else do you expect from a wordpress/joomla user? Their website design is always poor and lacks basic standards, yet they're the ones who make noise the most . |
Culture › Re: M-NET FINALLY LAUNCHES AFRICA MAGIC IGBO by seunoni34(m): 9:03am On Mar 21, 2015 |
No need, as the whole nollywood is igbowood in disguise |
Webmasters › Re: If You Don't Catch An Exception, PHP Spills Your MySQL Account Info By Default by seunoni34(m): 8:59am On Mar 21, 2015 |
toshodei: Link ~> http://php.net/manual/en/pdo.connections.php
Connections and Connection management ¶
Connections are established by creating instances of the PDO base class. It doesn't matter which driver you want to use; you always use the PDO class name. The constructor accepts parameters for specifying the database source (known as the DSN) and optionally for the username and password (if any).
Example #1 Connecting to MySQL
<?php $dbh = new PDO('mysql:host=localhost;dbname=test', $user, $pass); ?> If there are any connection errors, a PDOException object will be thrown. You may catch the exception if you want to handle the error condition, or you may opt to leave it for an application global exception handler that you set up via set_exception_handler().
Example #2 Handling connection errors
<?php try { $dbh = new PDO('mysql:host=localhost;dbname=test', $user, $pass); foreach($dbh->query('SELECT * from FOO') as $row) { print_r($row); } $dbh = null; } catch (PDOException $e) { print "Error!: " . $e->getMessage() . "<br/>"; die(); } ?> Warning If your application does not catch the exception thrown from the PDO constructor, the default action taken by the zend engine is to terminate the script and display a back trace. This back trace will likely reveal the full database connection details, including the username and password. It is your responsibility to catch this exception, either explicitly (via a catch statement) or implicitly via set_exception_handler(). Upon successful connection to the database, an instance of the PDO class is returned to your script. The connection remains active for the lifetime of that PDO object. To close the connection, you need to destroy the object by ensuring that all remaining references to it are deleted--you do this by assigning NULL to the variable that holds the object. If you don't do this explicitly, PHP will automatically close the connection when your script ends.
Example #3 Closing a connection
<?php $dbh = new PDO('mysql:host=localhost;dbname=test', $user, $pass); // use the connection here
// and now we're done; close it $dbh = null; ?> Many web applications will benefit from making persistent connections to database servers. Persistent connections are not closed at the end of the script, but are cached and re-used when another script requests a connection using the same credentials. The persistent connection cache allows you to avoid the overhead of establishing a new connection every time a script needs to talk to a database, resulting in a faster web application.
Example #4 Persistent connections
<?php $dbh = new PDO('mysql:host=localhost;dbname=test', $user, $pass, array( PDO::ATTR_PERSISTENT => true )); ?> Note: If you wish to use persistent connections, you must set PDO::ATTR_PERSISTENT in the array of driver options passed to the PDO constructor. If setting this attribute with PDO::setAttribute() after instantiation of the object, the driver will not use persistent connections. Note: If you're using the PDO ODBC driver and your ODBC libraries support ODBC Connection Pooling (unixODBC and Windows are two that do; there may be more), then it's recommended that you don't use persistent PDO connections, and instead leave the connection caching to the ODBC Connection Pooling layer. The ODBC Connection Pool is shared with other modules in the process; if PDO is told to cache the connection, then that connection would never be returned to the ODBC connection pool, resulting in additional connections being created to service those other modules. add a note add a note User Contributed Notes 9 notes
up down 64 cappytoi at yahoo dot com ¶11 months ago Using PHP 5.4.26, pdo_pgsql with libpg 9.2.8 (self compiled). As usual PHP never explains some critical stuff in documentation. You shouldn't expect that your connection is closed when you set $dbh = null unless all you do is just instantiating PDO class. Try following:
<?php $pdo = new PDO('pgsql:host=192.168.137.1;port=5432;dbname=anydb', 'anyuser', 'pw'); sleep(5); $stmt = $pdo->prepare('SELECT * FROM sometable'); $stmt->execute(); $pdo = null; sleep(60); ?>
Now check your database. And what a surprise! Your connection hangs for another 60 seconds. Now that might be expectable because you haven't cleared the resultset.
<?php $pdo = new PDO('pgsql:host=192.168.137.160;port=5432;dbname=platin', 'cappytoi', '1111'); sleep(5); $stmt = $pdo->prepare('SELECT * FROM admin'); $stmt->execute(); $stmt->closeCursor(); $pdo = null; sleep(60); ?>
What teh heck you say at this point? Still same? Here is what you need to do to close that connection:
<?php $pdo = new PDO('pgsql:host=192.168.137.160;port=5432;dbname=platin', 'cappytoi', '1111'); sleep(5); $stmt = $pdo->prepare('SELECT * FROM admin'); $stmt->execute(); $stmt->closeCursor(); // this is not even required $stmt = null; // doing this is mandatory for connection to get closed $pdo = null; sleep(60); ?>
PDO is just one of a kind because it saves you to depend on 3rd party abstraction layers. But it becomes annoying to see there is no implementation of a "disconnect" method even though there is a request for it for 2 years. Developers underestimate the requirement of such a method. First of all, doing $stmt = null everywhere is annoying and what is most annoying is you cannot forcibly disconnect even when you set $pdo = null. It might get cleared on script's termination but this is not always possible because script termination may delayed due to slow client connection etc.
Anyway here is how to disconnect forcibly using postgresql:
<?php $pdo = new PDO('pgsql:host=192.168.137.160;port=5432;dbname=platin', 'cappytoi', '1111'); sleep(5); $stmt = $pdo->prepare('SELECT * FROM admin'); $stmt->execute(); $pdo->query('SELECT pg_terminate_backend(pg_backend_pid());'); $pdo = null; sleep(60); ?>
Following may be used for MYSQL: (not guaranteed) KILL CONNECTION_ID() I use mysqli and I even created a class that queries database and stores array in a result that can be looped through with foreach. I suggest you do the same. |
Webmasters › Re: How To Download A Website And Redesign It by seunoni34(m): 8:54am On Mar 21, 2015 |
ugotex85: I'm new in web development, when I see beautiful and sophisticated sites up there in the cyberspace, I keep wondering when I would upgrade myself to meet up with this standard. However, I've heard it before that there is a way to download your desired website and modify the contents. Let's say a Client asks you to design a site similar to bbc. com, can you download the site and change the contents, and maybe colours so as to save yourself the stress of trying to create the site from the scratch? If yes, which software or tool can one use to achieve that, and what are the procedures? First thing you can do is to copy the layout. Use pencil to draw like grids. Then you can fix other components (sliders, banners, etc) in the grids and design. If you really want to clone the entire site (though it's a bad Idea) and like the first commenter said ;it will make you a bad designer. Google a software named "httrack" that will do the job for you. And you can also search Google for website templates. You will definitely find thousands that you like. |
Webmasters › Re: Why Is .ico Used For Favicon Instead Of Other Formats? by seunoni34(m): 8:48am On Mar 21, 2015 |
Lastdon02: have been wondring why most template and website favicon comes with .ico even tho .png,gif,jpg can work instead ? YOU can use other formats now. I use .png files and it works perfectly. Haven't you seen sites that use animated gifs as favicon brfore6? |
Politics › Re: Owl Appears In Delta Government House (picture) by seunoni34(m): 11:44am On Mar 14, 2015 |
UrennaNkoli: Why kill an innocent animal ? the owl might be a politician |