Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
100% Quality Score
Upvotes Received
1
Posts with Upvotes
1
Upvoting Members
1
Downvotes Received
0
Posts with Downvotes
0
Downvoting Members
0
3 Endorsements
Ranked #486
Ranked #31.8K
Ranked #3K
~2K People Reached
About Me

A big fan of Singleton pattern.. That's pretty obvious duh! My hobby is hang-out in Startbucks, use their FREE WiFi, and drink coffee with Veedoo and oop_php, during school breaks.

Favorite Forums
Favorite Tags
Member Avatar for Dani

I'm trying to get Memcached persistent connections to work. We currently have a cluster of four Memcached servers each with 2GB of RAM, and four web servers. My code looks like this: public function __construct() { global $config; $this->cache = new Memcached('daniweb'); if ($this->cache->isPristine()) { $this->cache->setOptions(array( Memcached::OPT_NO_BLOCK => true, Memcached::OPT_BUFFER_WRITES …

Member Avatar for Dani
0
1K
Member Avatar for showman13

Wow... I am baffled. I have a shopping cart script that works perfectly until I add in the following 3 lines of calculations What happens when that is added is that it stops the processing at that point altogether, and doesn't display the balance of the page, and yet when …

Member Avatar for showman13
0
205
Member Avatar for divyakrishnan

Hi.. I am using tinymce editor for mathematical and graphical functions. The graph in editor content which is inserted into the database is not showing in firefox and chrome. But it can be viewed in Explorer. I have downloded script from http://www.imathas.com/editordemo/demo.html There is demo is provided in the above …

Member Avatar for Larry_Singleton
0
202
Member Avatar for lukas.vandendijssel

Hello, My script uses the user 'www-data' (my webserver) when connecting to the MySQL Database, while I tell it not to. <?php include ('config.inc.php'); $connection = mysql_connect($host, $user, $password); mysql_select_db($database, $connection); $shorturls = mysql_query('SELECT shorturl FROM `' . $prefix . 'urls`'); $shorturl = rand(100000, 999999); foreach(mysql_fetch_array($shorturls) as $row) { if($row['shorturl']==$shorturl) …

Member Avatar for Larry_Singleton
0
391
Member Avatar for Resentful

Hello, everyone. I've recently switched hosts and the same script I was running in the past is now causing the rest of my MySQL queries to be locked, and it seems the query never completes. The code is: <? $con = mysqli_connect('localhost','user','password', 'database'); $Q = "DELETE FROM `Table1` WHERE `Field1` …

Member Avatar for Larry_Singleton
0
144