zMastaa.com

A geek at home. A web and mobile Apps Developer at Bella Design in Cheshire. A man united fan all day long.

Running wordpress cron jobs on a linux server

February 19th, 2015

I was having an issue with a site that required a database intensive update 4 times a day, we are talking 1000s of  mysql rows updated/deleted/inserted each time. It seemed to be getting by nicely on a test server using wordpress simple cron scheduler. Going live however was a different story, epic failures and error 500s on the clients live website.

Instead of running the script as a hook/function on wordpress I ran it instead using the servers direct crontab, problem solved.The simplest way to get your wordpress functions into an external PHP script is by calling the wp-blog-header.php script as follows

Remember on your linux server use type -a php to find your php interpreter location

You should get something along the lines of

Then at the top of your actual PHP script you’re going to run make sure you add the following line

 

You may encounter an issue with running your script on the server if your file is not formated correctly and the server complains about not being able to find your PHP interpreter

Simply open your script using VIM and do the following

Your file should now run as any normal PHP file would on a wordpress setup

The world is as big or as small as you make it.

February 16th, 2015
m4s0n501

Makes you think.

“The World Is As Big Or As Small As You Make It” | Sundance Institute from Sundance Institute on Vimeo.

The World Is As Big Or As Small As You Make It: In North Philadelphia local kids gather at a rec center to participate in an innovative program where they forge friendships with their peers across the world. Directed by Heidi Ewing and Rachel Grady. Story Idea by Sannii Crespina-Flores.

Looking for a Junior Web Developer

February 12th, 2015

Junior Web Developer needed to join our busy Knutsford studio. This is a fantastic opportunity for a Graduate/Junior Web Developer who is looking to gain a wealth of experience working within an agency. We are looking for a passionate web developer that can work well as part of a professional and friendly team, applicants with strong communication and client facing skills as well as the ability to develop excellent code are encouraged to apply.

Role Requirements

Development of new projects and maintenance of existing projects
Proficient in PHP, MySQL, HTML, CSS, jQuery/JavaScript and MySQL
Experience with CMS software (WordPress, Magento or Drupal)
Cross-browser and quality assurance testing
Strong analytical and problem-solving skills
Able to work on their own or in a team and to strict deadlines
Self-starter with good time-management skills

Useful Experience

Ability to work with third party API’s
Understanding of basic SEO concepts
Experience in SASS, SCSS
Experience in using the Adobe Creative Suite

Examples of portfolio a must

To apply send CV with portfolio of work to: eugene[at]belladesign.co.uk

 

STRICTLY NO AGENCIES

http://www.belladesign.co.uk/uncategorized/junior-web-developer/