Category : php
Generating random PHP string
Posted on 2009-05-02 by JamesOccasionally we need to create randomized strings with PHP.
There is an easy way for doing this, by using just a few lines of code.
read full article
Get file extension php upload
Posted on 2009-05-05 by JamesUsing PHP to fetch uploaded files and place them on our own server.
Sometimes we want to check the extension first before placing it onto our server.
This could be to ensure safety or just to avoid problems reading the file later on.
read full article
If, else, while and switch statements PHP
Posted on 2009-05-06 by JamesThe if and else statement is used in pretty much every PHP application on the web.
When developing applications you want to keep in mind that even though they might seem unimportant
when keeping the loadtime to a minimum they can have quite an impact on your server.
read full article
Using secure hash passwords
Posted on 2009-05-07 by JamesWhen working with passwords in your PHP application you want to safely transfer them between different services. Insecure passwords can even be viewed in your internal network.
This is especially the case when there's no HTTPS SSL connection used. I will explain how you can hash passwords to make them less insecure when sending through an internet or network connection.
read full article
Creating text files with PHP
Posted on 2009-06-07 by JamesYou can create, update and delete files with PHP on your own website.
This guide will show you how you can create files using the Fopen() function.
read full article
Creating a shopping cart webshop with PHP
Posted on 2009-06-22 by JamesSelling products with custom made webshops can be a daunting task when you don't have alot of experience working with PHP sessions. This article provides a basic approach to creating primary knowledge for building a functional webshop.
read full article
Get real IP host address with php
Posted on 2009-07-10 by JamesWith PHP we can get access to the visitors IP address using the predefined SERVER['REMOTE_ADDR'] global.
Getting one's real IP address is a bit more difficult, as users can 'hide' behind proxy or sharing their IP's.
read full article
Send email with PHP with headers
Posted on 2009-08-06 by JamesAgainst contrary belief it's fairly easy to send emails using PHP. In just afew lines of code you can set up an email.
read full article
How to check your php script for bugs
Posted on 2009-09-04 by JamesWebsites are really becoming an important part of our daily life. It has changed the way we used to shop, and has provided us with options that we cannot find in a normal store. With the increasing trend of internet all over the globe, more people have started getting connected to the internet to see what cyberspace has to offer. Taking advantage of this virtual revolution, new entrepreneurs and established merchants have dive into this pool of web pages, where they try and provide more options to their visitors.
read full article
Installing PHP on Ubuntu
Posted on 2009-10-12 by JamesAre you looking for how to install PHP on Ubuntu, if yes, than you are on the right page. However, before we go ahead and discuss in details about how to install PHP on Ubuntu, let me first give you a little information about Ubuntu operating system because it is always good to know more about the operating system and its features and options before we go ahead and install several things to it.
read full article
How to create a foreach loops in smarty?
Posted on 2009-10-22 by JamesThe demand for PHP websites is already on rise as more and more people today prefer to have their websites done with PHP scripting language. Even those who are new to the cyberspace and looking for opportunities to come up with their own websites prefer to go for PHP as it is simple and open source and available freely on different websites on internet with codes and scripting language almost similar to that of C, C++ and Java. The other factors that play an important role in the growth of PHP websites are stability and speed. With PHP websites are designed in a simple way that makes it faster and efficient compare to the HTML websites that are now becoming history. As the demand for PHP is growing, other systems and applications related to PHP are also becoming popular and one of them is Smarty.
read full article
How to make a redirect using PHP?
Posted on 2009-10-25 by JamesToday we live in the website age where we see millions of websites coming up every day with some new goods and services that will help us in some way or the other. The dotcom industry has been flourishing since the advent of internet as this piece of technology has not only shrunk the world, it has also provided opportunities for those who have entrepreneurial skills but have very little money to invest. New entrepreneurs and other website owners develop their own business domain from where they do their business with less of investments.
read full article
How to upload files using PHP?
Posted on 2009-10-29 by JamesHypertext Pre-processor (PHP) is a server side scripting language and there are special server side commands that you have to place in your web pages. Once you have the commands ready, these commands are processed before the pages are sent from your server to the web browser of the visitor. Basically, all files in PHP have a command embedded in it which is executed in the server and which are a mixture of text and HTML tags.
read full article
