Sponsor
Now Playing
- Alix Perez – I'm Free 3 hours ago
- Alix Perez – Intersections 3 hours ago
- Alix Perez – Forsaken 3 hours ago
- Glen E Ston – Ouroboros (Original Mix) 3 hours ago
- Black Sun Empire – Everything 3 hours ago
Posts in PHP
Protecting Files Against Hotlinking...
August 11, 2010
I recently had to lock down some important files that first required some level of authentication. The problem was the only way to guard against hotlinking or direct access to these files was to pipe the data through php after an Auth check. Using fread,... [+]
1
11Aug
Picking up where strtotime() left...
May 6, 2010
I was working on a project where dates were being calculated (sort of) based on user input. For example the user was able to type in “Next Saturday” or the “Second Sunday of the Month”. This wouldn’t really be sortable, as strtotime doesn’t exactly allow... [+]
0
06May
Downgrade PHP 5.3 Port to 5.2.10
October 7, 2009
It’s pretty simple! Just make sure subversion client is installed and then checkout the php port file with the revision number of 53555 which is the latest for the 5.2.10: svn co -r 53555 http://svn.macports.org/repository/macports/trunk/dports/lang/php5 cd php5 sudo port install +fastcgi+mysql5+pear Or you can simply... [+]
2
07Oct
Ultimate Guestbook Tutorial: How to...
April 26, 2008
In this tutorial i will teach you how to make a guestbook script with PHP and mySQL. Guestbooks are very common today on the internet and are great for getting user feedback or a simple hello from your site fan’s. This tutorial will feature form... [+]
60
26Apr
Tutorial: How to build a poll system...
April 11, 2008
If you have been doing the other tutorials on this site you will notice that I have been teaching PHP and mySQL through projects. Projects that you can slot into your website, or if you are building a project, code that you can use within... [+]
73
11Apr
HowTo: Get Cookies Across Subdomains...
April 8, 2008
So you are using cookies on your website, but when a visitor visits www.yourdomain.com and yourdomain.com the cookie doesn’t get set across both! That is because in essence, www. is simply a subdomain. The “www” component is not a protocol, it is not necessary, instead... [+]
6
08Apr
Tutorial: How to make an Image...
April 8, 2008
So you have completed the file upload tutorial. The tutorial has taught you how to upload an image using a form, and then it auto makes a thumbnail and shows it to you, nice. Now lets say you are on a public computer, and can’t... [+]
3
Tutorial: How to make an Image...
April 8, 2008
In this tutorial we will make a thumbnailing script using PHP. The script will allow your users to upload their images using a html form, and then be shown the thumbnail and a link to the file on completion. Also the user will be able... [+]
7
Howto: Get Number of Rows
April 8, 2008
If you have a MySQL table and you want to know how many records there are in this table you can run a query on the entire table for example: This will show you how many rows were supplied in that query. So if you... [+]
0
Tutorial: Doing basic MySQL database...
April 8, 2008
This tutorial is quite easy. If you want to connect to a mysql database you can use something like this: $host = 'localhost'; $username = 'yourusername'; $password = 'yourpassword'; $databasename = 'yourdbname'; //don't edit this stuff okay? $connect = mysql_connect($host, $username, $password); $selectdb = mysql_select_db($databasename);... [+]
0