Skip to content
View in the app

A better way to browse. Learn more.

Web Designer Forum

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

SniderDK

Privileged
  • Joined

  • Last visited

  1. Hi, its because with Ubuntu a lot of packages won't be installed, in this case it would be the GD lib... sudo apt-get update sudo apt-get upgrade sudo apt-get install php5-gd *** disclaimer, i have been using red hat for a couple of years now so might not be exactly correct, none of those commands will break your machine tho **** run the above in the terminal and that will install the GD lib... if you do a <?php phpinfo(); ?> on both machines and compare which libs is missing... then try the apt-get command using php5-{name of package}... some are just php-{name of package} but try the php5 version first.... if you are stuck as to what package try doing a search " apt-get search php " a trick i normally do is install phpmyadmin as it would install most of the normal packages you need... and is fine for a dev box. sudo apt-get install phpmyadmin another alternative is to use Zend Server - community edition
  2. Hopfully some sample code is the better answer... i wrote this on the forum, and as such does not function. <?php class UserRole { function add($key){} function allowedAccess($key){} } class UserProfile {} class User { function __construct($id == false){ if($id){ $this->role = new UserRole($id); $this->profile = new UserProfile($id); } } } $user = new User(1); // passing user id one $user->role->add('some text to pass to UserRole->add()'); if(!$user->role->allowedAccess('contentEditing')){ die('you dont have permission to do this'); }
  3. HTML is just a mark up language, to do processing you need to use a programming language like php for example... so html is just a formatting method not a processing method to put it simply
  4. yes, if you google for shoutcast widgets you will find something.. track playing, people listening are all bits of information available from shoutcast servers for people to display
  5. Your setting $validationError twice, $hasError and $validationError would seam correct. if(isset($_POST['validation']) && $_POST['validation'] == 4){ $validationError = 'Please enter a number!'; $hasError = true; } else { $validation = trim($_POST['validation']); }
  6.    drennan reacted to a post in a topic: PHP echo only month from record
  7. <?php $parts = explode('-', $row_events['fromdate']); echo $parts[1]; ?> if thats uk format or <?php $parts = explode('-', $row_events['fromdate']); echo $parts[2]; ?> if it is USA format
  8. booking.com have a white label service... maybe check that out... http://www.booking.com/general.en-gb.html?aid=356983;label=gog235jc-general-en-XX-docsaffiliates-unspec-gb-com;sid=ce156cd8a63658e7f2150c9649b81edf;dcid=1;tmpl=docs/partners_affiliate_examples
  9. Hiya, if you look at the payment gateways for woocommerce there is one called CardStream which uses a hosted form (on our end) so the customers submit their card details on our PCI Level 1 system meaning you can just do a self assesment to pass PCI. taking card payments requires a merchant account which we can help your customer find the cheapest https://www.cardstream.com/paymentgateway/merchant-accounts if you are kinda wondering what a Gateway does then take a ganders here: https://www.cardstream.com/paymentgateway/payment_gateway
  10. only way i know how to achive micro payments like this would be to impliment your own account system and charge in larger blocks so the micro payments go through as one payment... obviously thats got massive draw backs to you. i use micro payments alot for a game i play via steam, other than being pure evil my bank statement is also littered with steam payments so see where your coming from just dont think there is a way around it via the payment gateways
  11. i can see why its free i wouldnt use it as it is simply because it links to images hosted on blogger e.g http://1.bp.blogspot.com/-oWZKI64V-_c/UBS8s6OvZUI/AAAAAAAAH9c/rFYRikZoVgE/s1600/featured-pager.png i wont get started on the code lol
  12.    Anonimista reacted to a post in a topic: PHP class modifiers
  13. Hey, Panda was about duplicate content, content farms etc.... it is widly talked about online. Pengin is a direct attack on SEO and spam, as pointed out above SEO is gaming the search engines... and there for is spam in a search engine sense. these are 8 guidelines taken verbatum from google on the recent update... its quite telling really. Anderz i've not seen your blog so was talking in general, and was trying to strike up a convo. evedntly my view point is a controvertial one.... i talk in a absract way about stuff which you have to, im not saying Matt cutts blog is bad.... but hes not using as I described... he actually talks about stuff... that intrests people who link to him... http://www.moo.com/blog/ moo's blog would fall under my spamdar i supose... because focus its pushing products, not talking about... stuff... I should of made myself more clear rather than tacking the sentence onto the end of my post in a cryptive way... "its a very subtile diffrence in intent that results in a massive diffrence to writing."... im not saying blogs are bad, im saying they are often used wrongly... without pointing fingers at anyone in perticular apart from the moo thing above, but you guys forced that one out to show you what i mean. also, Anderz... it is somtimes given a bad name because of sharlitons and blackhat marketeers making a quick buck.... ive been doing this for like a decade and know fully why its got a bad name.... because its wrong... white, gray or black its gaming the search engines for bussiness results... and the goal of any bussiness is to make more money... and thats the pitfall... there is never engough results... more is allways wanted, and todo that tricks get used which make it ruddy hard to make a search engine... and for people who play by the rules to rank. expressing opionions is not what gives the SEO industory a bad name, and is actually how the SEO industory progresses in general. this forum is a place to talk... and talking is what im doing so implying im giving the SEO industory a bad name by the expresion of my research/views is below the belt. i can see how you thought that was a personal attack on you... which it was not, i dont do subtile digs i am alot more direct when on a attack, sure someone here can vouch for that.... either case im sorry my writing struck nervs but i do still stand by my words. and, Jason Dexter its cool, it dosnt bother me im enjoying this.... i supose i do alot of shock factor, ya know ruffle feathers.... i do alot of consultant work these days and know everything i say to clients only gets like 50% taken in... so you go the extream ruote and a nice middle ground gets found.... like having a blog for a online shop is cool, im not really saying its not but taking on-board what i said (remebering people dont do everything advised) then hopfully there would be more posts about stuff than directly about products.
  14. actually yes it is. its the first update to spam fighting in a algorythmic sense in almost ten years... call it a hunch based on a decade in the field. but "The company I'm working for have me adding content to a blog, they've asked me to talk about a product or category, and pick keywords, and link back to our website (e-commerce website)." dosnt fill the heart with a sense of qaulity, a blog to promote a e-commerce shop that the writer, as a non seo is told to focus on keyword density.... which you can deduce the content is not qaulity.... you can not write somthing of qaulity while a focus on keyword density is paramount. granted this bit is very either paranoid or insightful, Gogole translate (which they closed the public API) has given them a deep understanding of language, now stop words can have context in a algorhymic sense... structures of naturally formed senstences can be worked out and they could work out what is written for users and what is written for them.... call me a crazy if you like, but its not wise to think that that many PhD students wouldnt work out how to fight spam in the end.... its obvious to a human but computationaly hard work but thanks to mores law time is all you need to solve that. having a blog for the purpose of promoting a single website is spam, or heck a blog filled with affiliate links in posts is spam.... its content written for another purpose than publishing a good content piece on a certain subject for the blog.... its a very subtile diffrence in intent that results in a massive diffrence to writing.
  15. i dunno im fond of the method, it works... but i would not like to read that blog or any blog whos purpose is to market the owners other website.... mark my words, one day... google will update the algo and push these sites down the rankings... its a dead cert i should put money on it!... untill then it will work tho and you can fill the internet with more crap (although with the pengin update that ship might have sailed allready... YaY! )
  16. Think the only time final would be handy is for Library writers, so you can make sure some functions dont get overwritten by child classes and other developers and not use private.... but using absract and final would be extreamly odd as Jock says, Also google did this guide years ago, which basicly has 3 valid points Avoid writing naive setters and getters Don't copy variables for no reason Avoid doing SQL queries within a loop https://developers.google.com/speed/articles/optimizing-php "- final can be used for class properties? (why?)" also checkout this section of the php manual: http://uk3.php.net/manual/en/language.oop5.php

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.