henbast
Members
-
Joined
-
Last visited
Reputation Activity
-
henbast got a reaction from Jock in Encryption algorithmsBcrypt. You can use the unfortunately named phpass to handle it. Everything else is pretty much a waste of time. -
henbast got a reaction from apollo-articles in Form not showing at all in FirefoxYour iframe src has backslash seperators:
><iframe src="lblform\life-insurance-form.php?keyword=" name="iframe_lbl" height="1270" width="460" frameborder="0"> </iframe>
Change to forward slash to sort the 404
-
henbast got a reaction from funsella in Form troublesYou can use something like http://labs.thesedays.com/projects/jquery/clearfield/ which will work across browsers.
-
henbast got a reaction from mbabuskov in Which payment processor for web based services?Paypal is about as widely used here as it is in the US. If you go for Website payments pro or Payflow then you can also take cards directly too, which covers everyone else. Google checkout is another option as mentioned. No experience of chronopay.
-
-
henbast got a reaction from Faevilangel in SQL ORDER BY not working ?Change to:
$readresult=$write->query("SELECT title, created_time, identifier, post_content FROM aw_blog WHERE status=1 ORDER BY identifier LIMIT 5");//select from db last 5 post
ORDER BY needs to go after the WHERE clause.
-
henbast got a reaction from gfxpixeldesigns in SQL ORDER BY not working ?Change to:
$readresult=$write->query("SELECT title, created_time, identifier, post_content FROM aw_blog WHERE status=1 ORDER BY identifier LIMIT 5");//select from db last 5 post
ORDER BY needs to go after the WHERE clause.
-
henbast got a reaction from Renaissance-Design in SQL ORDER BY not working ?Change to:
$readresult=$write->query("SELECT title, created_time, identifier, post_content FROM aw_blog WHERE status=1 ORDER BY identifier LIMIT 5");//select from db last 5 post
ORDER BY needs to go after the WHERE clause.
-
henbast got a reaction from Adam Boyce in CSS Curved Edges Bottom-webkit-border-bottom-right-radius: 8px; -webkit-border-bottom-left-radius: 8px; -moz-border-radius-bottomright: 8px; -moz-border-radius-bottomleft: 8px; border-bottom-right-radius: 8px; border-bottom-left-radius: 8px;
-
henbast got a reaction from BreakdownDesign.co.uk in Online application for sharing code/programming?For snippets you can use gists.
for anything bigger, use a DVCS. Bitbucket offers free private repos for up to 5 users & hg is easy to get started with. Unfuddle offers free private repos for git, or you could use github (paid).
-
henbast got a reaction from kingy da killa in is my site assecible by screen readersWhy not try it in some?
There's one here that's free.
-
henbast got a reaction from Renaissance-Design in PHP Monitor ScriptVery simple quick & dirty method:
<?php $ip = $_SERVER['REMOTE_ADDR']; $dt = date("d/m/Y H:i:s"); $msg = "Visitor to site.\nIP: $ip\nTime: $dt"; mail("you@example.com", "Visitor", $msg, "From: My site <you@example.com>"); ?>
Shove that at the top of your PHP file and it'll email you each time someone visits. If you have any real number of visitors though, it'll get very annoying. Why not add Google Analytics if you want to track visits & IP's?
-
henbast reacted to Connetu_C in UK VPS (cPanel) requiredIn my opinion, it depends. Example: we run most of our internal services virtualised (in a "cloud" as it were). Each VM is assigned its own 2GHz+ core and at least 1GB RAM. Aside from CPU cache misses, this works very well - better guaranteed resources for each application than on a shared server, and we ensure enough is available. We benefit from consolidation of hardware, power, wasted CPU cycles and RAM segments, improving efficiency.
In addition, files are cached by Linux in RAM - so it doesn't matter that the underlying hard drives are shared between VMs, as most static resources are being buffered in the VM RAM anyway, so are fast (much faster than dedicated hard drive in fact). Intensive disk I/O (usually very busy databases) is where VMs will bottleneck - for everything else they're usually as good, if not better (due to superior hardware), than a budget dedicated solution. Obviously if you're not paying for larger RAM allocations, that will decrease performance - RAM is basically the most important factor for a VPS with decent performance.
It's all highly dependent. To say VMs will never be speedy is relative as technology progresses: today's VMs (done right) are superior to the dedicated servers of 5 years ago.
-
henbast got a reaction from sarah3585 in Claiming expenses with student software/hardwareYou could buy it from him maybe? There's no law against that but I'm not sure if it would single you out for a bit more attention from the taxman.
Best bet I think would be speak to an accountant. They usually do a free hour consultation and even if not, it will be worth it to find a way of saving thousands without coming across as a crim
-
henbast got a reaction from AlecIsh in Wordpress and server loadAre you hosting the videos themselves? If not, then get a simple VPS with nginx and cache the **** out of everything. You'll be able to handle hundreds of requests/sec on a basic setup if you're just serving HTML. You can get proper good VPS's from Linodefrom $20pm.
p.s. I'm typing this while eating and rushing so it might make less sense than normal. if so, I'll come back later with a better post
-
henbast got a reaction from Crispy in Conflict Disabled my LightboxTry loading prototype first, then jquery and then moving this to immediately after you load jquery.
<script type="text/javascript"> var $j = jQuery.noConflict(); </script>
Then load all the other stuff
-
henbast got a reaction from timmo76 in Should height and width of image be in HTML tag or in CSS?Do it in HTML. It works everywhere, whether users have CSS off/custom/unsupported. It validates & it works.
Also yes, if there's a delay loading the CSS for some reason then it could affect the layout. Just do it in HTML and be done with it
-
henbast got a reaction from ayoungh in What system or program do you use for your managing your projects?Mercurial is easy to pick up if you've used SVN and you get all the advantages of a DVCS. Git vs hg is much of a muchness.
There's a good guide to getting started here which includes an SVN primer.
edit: Also, hg plays nicely with Windows which git does not.
-
henbast reacted to Ash Scott in New Website Help Needed!well for what you want your looking at about £6000 minimum. You need logins, ladders, forums, security, credits, a system which shows latest match results, SEO.
Many people have come here with kind of idea, then they have either given up, or the site hasnt been successful
-
henbast got a reaction from Renaissance-Design in What system or program do you use for your managing your projects?Mercurial is easy to pick up if you've used SVN and you get all the advantages of a DVCS. Git vs hg is much of a muchness.
There's a good guide to getting started here which includes an SVN primer.
edit: Also, hg plays nicely with Windows which git does not.
-
henbast got a reaction from AlecIsh in Copying data from website?Quick and dirty way is to do a File->Save As on each page. It'll take a bit of work to reassemble and normalise, but you'll have all the stuff. A better way would be to use something like wget and crawl the site, grabbing & saving resources.
If there's anything dynamic though, he's out of of luck without access to the server.
-
henbast got a reaction from j05hr in Virus on one of my websitesIs it Wordpress? Free themes are somewhat notorious for adding little presents (see here) and there's been several times where older versions have been vulnerable to having code injected.
If that's the case, best bet is to nuke the whole thing, install from latest clean version and careful re-insert your data after scanning for the common stuff like base64 and JS. If it's a dodgy theme, get one from Wordpress themselves or go to somewhere reputable like Woothemes or Theme Forest.
If it's not Wordpress, that's a whole new can o' worms.
-
henbast got a reaction from Renaissance-Design in Virus on one of my websitesIs it Wordpress? Free themes are somewhat notorious for adding little presents (see here) and there's been several times where older versions have been vulnerable to having code injected.
If that's the case, best bet is to nuke the whole thing, install from latest clean version and careful re-insert your data after scanning for the common stuff like base64 and JS. If it's a dodgy theme, get one from Wordpress themselves or go to somewhere reputable like Woothemes or Theme Forest.
If it's not Wordpress, that's a whole new can o' worms.
-
henbast got a reaction from Renaissance-Design in Excuse not to meet with clientJust say it in a different way. Charge for call outs. Explain it takes up 50% of your day which could be spent working and so you have a standard £50/100/150 charge for face to face meetings. Set it enough so that you won't mind going out for that
-
henbast got a reaction from Pondering tea drinker in Guestbook script - Admin/Mod commentJust whack in another field in the table for admin posts. Set this to 1, true, whatever when you add something as an admin and then check for that when printing output.