Sometimes we need to add quotes to values in a string separated by comma. For example while using MySQL FULLTEXT search, we need to use some kind of string like ‘pasta’,’ tuna’,’ eggs’ OR finding big list of Ids from MySQL such as WHERE item IN (‘pasta’,’ tuna’,’ eggs’). Here in this post, you have […]
PHP
Here you will find useful PHP tips and tutorials.
Uploading files through FTP using PHP
During developing a web project, we always need FTP Clients(FileZila, WinSCP, SmartFTP etc.) to send or upload files to a server via FTP. However, if you are PHP developer, you can easily create your own FTP script to sending files from one server to another server. The PHP provides ftp_put function to upload a file to […]
Overloading and Overriding in PHP with Examples
Overloading and Overriding are forms of Polymorphism in OOP. According to Object Oriented Programming (OOP) concept if a class has methods of the same name but different parameters then we say that we are overloading that method. Also if we were to create a method in the child class having the same name, same number […]
Make HTTP Requests Using Curl and Decoding JSON Responses in PHP
PHP has built-in Curl library that let’s you communicate with other servers. The Curl library is enabled by installing cUrl extension in PHP.INI. You just need to uncomment “extension=php_curl.dll” in PHP.INI file to install Curl library.
Commonly used PHP functions
PHP has very large library of built-in functions which are available to use. Here in this post, I have listed some most used PHP functions which will surely help you.