Category Archives: Basic PHP

basic php theory

PHP Tutorial : Check PHP server configuration

Wow, It’s aproximatively 2 months since I write on this php tutorials blog and I never writed about this premier function, very basic which I should show you in the very first two or three posts but I forgot about … Continue reading

Posted in Basic PHP | Tagged , , , , , , , , | Leave a comment

PHP Tutorial : Implode function

Hi, As I had issues with my old host, those days I worked to change it and didn’t had the time to post another nice php function called implode. This function php implode() simply joins the array elements into a … Continue reading

Posted in Basic PHP | Tagged , , , , | 1 Comment

PHP Tutorial : Read file with php

Reading the contents of a file with php is made via read php fread() function. Additionally we need to use other to functions for opening the file called fopen() and to close it with fclose(). PS : the f from … Continue reading

Posted in Basic PHP | Tagged , , , , , , , | Leave a comment

PHP Tutorial : Writing your own custom functions

Errrr, I dont know which hello word to say for this post to keep the “unique” style so will start explaining how you can do it. Firstly, you have red about a lot of “ready made” php functions which comes … Continue reading

Posted in Basic PHP | Tagged , , , , , | Leave a comment

PHP Tutorial : Parse/split url and get components

Hello folks, My question is : how do you split and get an URL to get his components? If you’re using all kind of functions, regular expressions or whatever, here is the save and original function you’ll need and it’ll … Continue reading

Posted in Basic PHP | Tagged , , , | Leave a comment

PHP Tutorial : Parse english time into unix timestamp

hello, Sometime I discovered a very “pretty” php function which parses about any english date/time into unix timestamp. I used it to calculate dates, like adding 1 more day to a date or 1 year who cares. Also, I used … Continue reading

Posted in Basic PHP | Tagged , , , , | Leave a comment

PHP Tutorial : Secured encrypted passwords

Are you searching for a way to encrypt and secure a password or just a simple phrase? If the answer is yes, in php exists a lot of functions which does that, but the most popular is md5() encrypting function. … Continue reading

Posted in Basic PHP | Tagged , , , , , , | Leave a comment

PHP Tutorial : Explode function to split words

Have you faced with a situation where you needed to split some words ? For that exists explode() php function. Look how it works : <?php $words = “some words needed to split”; $wordsarray = explode(” “, $words); print_r($wordsarray); ?>

Posted in Basic PHP | Tagged , , , , , | Leave a comment

PHP Tutorial : Unlink delete file

Do you want to make a file manager system or something like that where you will be able to delete ftp/local server files directly from your browser? If so, unlink() function from php will help you to do that. Look … Continue reading

Posted in Basic PHP | Tagged , , , , , , | Leave a comment

PHP Tutorial : Chmod file permissions

Did you encountered a script installation or something like that which bothers you with changing file permissions? You can do that via a FTP client or just with chmod (change file mode) function in php programming language like this: <?php … Continue reading

Posted in Basic PHP | Tagged , , , , , | Leave a comment