James John – Software Engineer

Archives

PHP

Extracting Date and Time from time() function in PHP

Extracting Date and Time from time() function in PHP

Sometime ago the time() function in PHP seems to confuse me of not knowing how to use it but I was just told it calls up current time and date. Well, my research later gave me something when I was accessing all functions my Dreamweaver suggests for me. I found the getdate() function and saw […]

How to Extract a Zip file Using PHP

Below is a little snippet of what you are looking for

Generate Dynamic XML Sitemap Using PHP/MySQL

Hello, you know its gonna be cool if you have your own sitemap been generated automatically from database, this is also for those who update items to db. How i wrote this code is that, assuming you have an item in the db which details are shown in a page, just generate the links and […]

How to create/manage database,tables and columns in PhpMyAdmin

How to create/manage database,tables and columns in PhpMyAdmin

Hi all, Its really true that some are still having problem in localhost PhpMyAdmin, now let me show you some basic ways to handle, create and modify a database and the tables. Open your browser and type localhost/phpmyadmin or 127.0.0.1/phpmyadmin Click on Database as highlighted in the picture below Next Page is the list of […]

How To Code Rating/Liking System Using PHP/MySQL

Hi all, I have come to know that most growing PHP Developers have difficult to write a liking or rating system, yes both of them goes alike with the same codeline. The below code is for rating system, just change some wordings and it becomes of liking system. Now in this code, you are to […]

Searching MySQL Database using PHP

Searching MySQL Database using PHP

Hi all, To all gurus in PHP, i know this is just a piece of cake….but i confess, during my newbie day it tortured me seriously and i want to make it not to torture newbies of today. Lets Begin: Now you already have your data in the database, all you want is to search […]

How to Detect User’s Language Using PHP

How to Detect User’s Language Using PHP

Hi all, I know seeing this post topic, you will think is a huge of code but looking through it well you recognise its just a pieces of codes integrated to give us what we are looking for. Here every browser has a language its browsing with, now I use PHP to call it out […]

PASSWORD SALTING USING PHP

PASSWORD SALTING USING PHP

Hi all, Why do we do password salting/hashing? Just because we need our admin or user panel be protected even if you break into the database you cant find it, even with md5 decoder it won’t work  . Now am going to do this with md5() function in php, when a user registers i mix […]

[PHP] COMMENT SYSTEM USING PHP

Hi all, Am dropping this coz some are having problem with it, all procedures on how to do it is in the code, read well and edit well! 🙂

Hope it helps!

[PHP] GET IMAGE HEIGHT AND WIDTH

Hi all, You need to get an image height and width in PHP? which normally use in passport or profile pictures…now try this code am going to give you.

Hope it works