-
Posts
2,527 -
Joined
-
Last visited
Posts posted by DeanWhitehouse
-
-
This is a server set up issue not an Amazon issue.
We've solved the issue slightly by switching to InnoDB which only locks per row but we still experience crashes regularly.
-
Hello,
We run a medium Amazon EC2 instance with multiple sites on and we keep experiencing the error when running WordPress.
MySQL dead but subsys locked
Can someone help define and the error for us and advise on fixes ?
Thanks,
Dean
-
ah great thank you!
-
Are there any plans to add RSS feeds for forum boards ?
Cheers,
Dean
-
That is true, i'm using the class myself to store user configuration options retrieved from a database. Therefore it is cached from another data source. I wasn't trying to solve a problem per-say, but just create a simple re-usable system for storing such data.
-
All caching methods have to store the data in some form of file. I can see how a user could mis-interpret the name as a way to cache a session instead of a way to cache data using sessions, i think that is what you're going for
-
Thorpe: It just makes it easier to store items in a session and retrieve them when implementing on a website where you are unsure of the possible $_SESSION index names. It's basically just a few functions to manage a sites session caching instead of a user writing their own. Would only take a few minutes to re-create the functions yourself so I can see how it may seem pointless.
ignace: I'm afraid I don't see how the class name is misleading, could you please expand. Thank you for the links I'm not very experienced in OOP design or guidelines such as them so will be good for me to learn.
-
Hello,
My name is Dean Whitehouse and I'm a PHP developer with skills also in MySQL, CSS, HTML, JavaScript (Ajax + jQuery too), AS3 and more.
I am looking for some small projects to work on, generally jobs that can be completed within a few hours.
The company I am the web developer at maintains the websites for Radio Academy, Fun Kids Radio and provides tools to Planet Rocks websites, Red FM and more!
For my portfolio please visit my website http://www.deanwhitehouse.co.uk where my contact details for skype, mobile and email can be found.
If you require references, quotes or just a chat please contact me through here or my website.
Cheers,
Dean Whitehouse
-
I wrote a short article/tutorial about session caching in PHP and was just looking for tips on both my code and my article.
Any feedback would be great please.
http://www.deanwhitehouse.co.uk/session-caching-v1-0
I also wrote one on how to do cross-domain ajax calls using jquery.
http://www.deanwhitehouse.co.uk/cross-domain-request-with-jquery
Cheers,
Dean
-
Can I request a username change to DeanWhitehouse please as I wish to have a more professional (and related) username.
Thanks,
Dean
-
aha thank you, I'm a bit of a newbie to regex
-
Hello all,
I'm trying to generate a regex that will remove UTM parameters from my refferrer URLs.
<?php //"test" parameter is lost echo preg_replace("/&?utm_(.*)\=[^&]+/","","?utm_source=bottom&utm_medium=widget&test&test&utm_campaign=testcamp"); ?>
The regex works on removing the paremeters whilst keeping parameters before and after in tact. However parameters in-between are lost.
Any ideas would be great.
I'm testing the above code on http://writecodeonline.com/php/
-
Hello,
I am currently looking for new projects to work on.
I have worked on a multitude of sites and have experience in PHP, CSS, HTML, Basic SEO, Mid-Level Javascript, Flash/AS3 and more.
I have very competitive prices.
I can also provide web design at a very competitive price.
Contact me via PM or email at [email protected]
Cheers,
Blade
-
solved, didn't realise IE added margins for organised lists :s
Cheers
-
Thanks for the reply, afraid not, already tried all that.
I've narrowed down the problem to this div style
div#core #images { float:left; width:660px; height:248px; padding:2px; border:1px solid #dadada; } div#core { width:827px; margin-left:178px; margin-top:30px; padding:0; } div#core #images ol { padding:0px; display:inline; } div#core #images li { display:inline; }
The core div surrounds the main image area and the search box, the spacing appears in the image div area on the left. I can't find any cause or solution :s
-
*bump*
sorry guys, still need a solution
-
Hey Guys,
Long time no post
Here is my problem, i have this page http://development.djw-designs.com/CCC/ in development.
I am testing in Chrome, Firefox, Safari and IE 8.
In IE8 is displays without problem, however in compatability mode i get a large space on the left hand side of the image and i cannot find a solution to it.
Any Ideas?
Cheers,
Blade280891
-
-
Anyone any ideas/suggestions?
-
The query isn't stored in a variable, that was just to make it easier to read for anyone viewing the thread
-
Erm, dunno much bout this but either
Use .htaccess, try googling?
Or
Make it password protected and use curl to access it?
Just throwing ideas out
-
Easier to read
<?php $query = " SELECT *, MATCH(product_title,product_description,cat_name) AGAINST ('+$query* *+$query' IN BOOLEAN MODE) AS relevance FROM `{$config['tables']['product']}`,category WHERE category.id = (SELECT main_cat_id FROM cat_product WHERE product_id = {$config['tables']['product']}.product_id) AND cat_name LIKE '%".$query."%' OR category.id = (SELECT sub_cat_id FROM cat_product WHERE product_id = {$config['tables']['product']}.product_id) AND cat_name LIKE '%".$query."%' OR product_title LIKE '%".$query."%' OR product_description LIKE '%".$query."%' ".(isset($order) ? $order : "ORDER BY relevance DESC")." ".$limit; ?>
-
Ok, a few problems with this query
First one, it said it cannot search as the data encoding is different for one of the tables to the other one. I think i have fixed this in mysql but can't be sure as i need this query to be perfect, as we took the server down with it last night :$
Second the query doesn't seem to work as i think it should
The Query
<?php $query = "SELECT *, MATCH(product_title,product_description,cat_name) AGAINST ('+$query* *+$query' IN BOOLEAN MODE)AS relevance FROM `{$config['tables']['product']}`,category WHERE category.id = (SELECT main_cat_id FROM cat_product WHERE product_id = {$config['tables']['product']}.product_id) AND cat_name LIKE '%".$query."%' OR category.id = (SELECT sub_cat_id FROM cat_product WHERE product_id = {$config['tables']['product']}.product_id) AND cat_name LIKE '%".$query."%' OR product_title LIKE '%".$query."%' OR product_description LIKE '%".$query."%' ".(isset($order) ? $order : "ORDER BY relevance DESC")." ".$limit;
I need the query to search two tables;
The first table is "{$config['tables']['product']}", here it searches against the product_title and product_description.
The second table is categories, here it searches against the cat_name.
Now the hard part
The cat name to search against needs to be the category the product is in, so it needs to find the products category id from cat_product table then find the category name using the category id then search against the search criteria.
Complex
Any help and suggestions please?
Thanks,
Blade
-
Thanks that did it, i think there should be some more documentation/better documentation on the eval function.
Experienced Web Developer - Dean Whitehouse
in Archived Job Offerings
Posted
Hello,
I'm an experienced web developer with 5 years of experience in PHP, HTML, CSS and JavaScript. I also am experienced in ASP.net, C#.net, Java, *NIX Web Servers, SQL, AWS and more.
I'm currently looking for some medium sized web projects to work on. I offer very reasonable rates and will work with clients to help develop systems within their budget. I can offer full hosting and management packages or can just provide the client with the code they require.
My portfolio is at www.deanwhitehouse.co.uk
For more information get in touch at [email protected], message me on here or use my websites www.deanwhitehouse.co.uk/contact page