Quantcast
Channel: php – Windows – Linux – Mac OSX Guides
Browsing all 11 articles
Browse latest View live

Image may be NSFW.
Clik here to view.

Howto call a python script from PHP

If you want to call a python script from PHP the quick & dirty way, then this post is for you. We will not install any thing other than standard PHP & Python, no mod_python or mod_wsgi messed...

View Article


Image may be NSFW.
Clik here to view.

Converting between PHP & MySql DateTime

I work most of the time in PHP and here are two functions I found to be helpful most of the time when dealing with DateTime value type between PHP & MySQL (It’s not written by me, but shared by a...

View Article


Image may be NSFW.
Clik here to view.

Get the complete url of the current web page with PHP

Going to share with you a small snippet today, to determine and get the complete url of the current page in PHP 1. The Function function getPageUrl() {   // First we see if the request was over SSL...

View Article

Image may be NSFW.
Clik here to view.

How to get AUTO_INCREMENT ID of the last MySQL Insert with PHP

Sometimes you may need to retrieve the ID of your latest record after inserting into MySQL. If you are using AUTO_INCREMENT columns for storing IDs then this is simple: Use mysql_insert_id() function...

View Article

Image may be NSFW.
Clik here to view.

How to get HTML source code with PHP

Sometimes you may want to get the source code of an external HTML webpage. Well, here is the solution that might work in almost every cases <?php $ch = curl_init(); // the external url $url =...

View Article


Image may be NSFW.
Clik here to view.

WordPress Cheat Sheets collection

Working on WordPress? And you want a quick way for reference, then choose one of the following cheatsheets, they are great & helpful.   1. WordPress Cheat Sheet by Andy Wibbels   Download:...

View Article

Image may be NSFW.
Clik here to view.

How to make Favicon for WordPress site

  What is Favicon?   Favicon is a small icon, with 16×16 px, appear on the url of the website when you visit To make a favicon for your WordPress, you can do as following:   1. Prepare an picture of...

View Article

Image may be NSFW.
Clik here to view.

How to have custom php.ini for each virtual host

Note: This is for Apache + mod_php   1. Assumptions I have a website that I don’t want to use global php.ini file, i want to use my own custom php.ini - Website: www.mysite.com - Document root:...

View Article


Image may be NSFW.
Clik here to view.

PYROCMS Tag Reference Cheat Sheet

I started to work on PYROCMS for a few personal projects and found that it’s quite powerful & flexible with my favorite Code Igniter PHP framework. I looked for a cheat sheet of the PYROCMS tag...

View Article


Image may be NSFW.
Clik here to view.

How to calculate MD5 in Linux

Well, there are many ways to calculate MD5 hash of a string, in this post, I show you 3 command line that you can find them handy to get MD5 hash quickly and easily   1. Using PHP If you have PHP...

View Article

PHP Manager for IIS on Windows 10

PROBLEM I recently try to install IIS (via features) and PHP 5.6 for IIS via WPI. Installing PHP along with other PHP extensions went smoothly, but installing PHP Manager for IIS failed immediately....

View Article
Browsing all 11 articles
Browse latest View live