David Slack - Web developer

Subscribe to RSS - php

php

About David Slack - Web developer

Hi, My name is David Slack and I'm a Web Developer. I've been creating, updating, designing and developing websites for over 15 years and I'm using this website to show what I'm up to at the moment.

I'm going to add some bits that are useful to me to the site and some of it may be helpful to others so have a look through the Information section to see if there is any useful stuff. Also, if you have anything that might be useful to me (or others) don't hesitate to contact me or leave a comment on the relevant page.

Scripts, modules, apps, programs, snippets, plugins, etc

There are many scripts I create everyday in many different languages and I'll try to keep them all here for reference.

At the moment I use Javascript, php and html to create most of my scripts but I might add in C++, CSS, Pearl or any number of other languages to these pages at any time. Most of the bits you will find on these pages will be Drupal themes or modules,  jQuery plugins or php scripts.

I'll try to keep this all as up-to-date as possible and try to keep things as free from bugs as I can but please let me know if you have any problems.

php.ini

Some of the problems on a website are down to the server or the server host provider being stingy with the memory. For a Drupal website for the image handling and other bits you want at least 128m of RAM, but some hosts limit you to much less (1and1 only give you 30m in some cases.

To combat this - and some other issues - we create a php.ini file in the public_html (or other root) folder and add the following:

memory_limit = 256M
safe_mode = off
session.cache_limiter = nocache
open_basedir = none
extension = pdo.so
extension = pdo_mysql.so

 

PHP Fog

Just found out about PHP fog from Ian. It's a cloud based php hosting for php developers. I had Drupal 6 installed in a few clicks!

I've found it supports:

  • SSL
  • SSH
  • GIT
  • MySQL
  • Environment Variables

Not sure about online file management yet cos I've not had a good play with it.

Once they get emails and online file management shared hosting could be a thing of the past...

Local Server on Windows: WAMP

If you want a local server to create your web sites on your home computer to test them before sending them out into the real world then WAMP is for you. When you have it all set up you simply drag a folder into the www folder and go to localhost/FOLDER-NAME to see the site. This will run all the PHP as server side. If you don't want to use the www folder then you'll also want to set up virtual hosts. Keep reading if this is what your looking for.

Documenting the Mundane

Documenting the Mundane is a side scrolling website made with a bespoke CMS. The CMS is created using PHP and has no database with it. 

PHP

At times I'll create functions or full programmes or find programmes others have written; this is the place I'll keep them.

cPanel and WHM

cPanel and WHM is the industry leader for turning standalone servers into a fully automated point-and-click hosting platform. It's a fully webbrowser based front end for your server.

Once you have installed centOS and have SSH access you can install cPanel with WHM and and that is it, your server is ready to use. 

Follow this guide to install

OR

To begin your installation, use the following commands:

29 North

The 29North website was designed using Fireworks and Illustrator and created using php and mySQL.

Latest content

There are lots of developers out there with varying degrees of experience and expertise, some mid level, some junior and some senior. Some...
First thoughts are Symfony is ace!Only been using Symfony for 1 project but the amount of coding it has saved has been worth the time spent...
The Lost and Found website was built by myself (David Slack) and designed by Arm & Eye.The site was created to promote a bar and...

Social networks

Contact me here or catch me on one of
the social networks below


What I'm listening to

My blog

Wednesday, 2 August, 2017 - 06:56
There are lots of developers out there with varying degrees of experience and expertise, some mid level, some junior and some senior. Some developers...
Tuesday, 5 March, 2013 - 09:49
First thoughts are Symfony is ace!Only been using Symfony for 1 project but the amount of coding it has saved has been worth the time spent learning...
Monday, 3 December, 2012 - 10:07
As a web developer and web designer I need to take into account everything on a site from SEO, marketing, usability across devices, the look and feel...

Recent comments

Try this on your mobile

Use your QR reader to read this

You should be able to use this right from the screen

Latest tweets

Calendar

M T W T F S S
 
 
 
 
 
1
 
2
 
3
 
4
 
5
 
6
 
7
 
8
 
9
 
10
 
11
 
12
 
13
 
14
 
15
 
16
 
17
 
18
 
19
 
20
 
21
 
22
 
23
 
24
 
25
 
26
 
27
 
28
 
29
 
30
 
31
 
 
 
 
 
 
 

You are here

Back to top

Copyright David Slack - Web developer