If you are planning on developing an Android app to accompany your MySQL backed website you will need to know how to connect to the database from the app. In this article we talk about how to make this remote connection.
You can include other files within your PHP files. This is great for when you want to reuse a block of code again and again. Just write the code once and include that file whenever you need it. You can do this using include () in PHP.
Did you know that you can interact directly with Facebook and Twitter using PHP? You can not only include buttons to let users share articles on different types of social media, but even manage your accounts remotely. [read more]
Although iOS has ways to deal with data storage on its own, if you already have established data that you now want your app to interact with, you need to be able to connect your app to your existing MySQL database. This article shows you your options for doing this.
You can calculate the hypotenuse of a triangle using the pythagorean theorem. However if you are working with PHP you don't have to bother with this math directly. You can just use the hypo () function. Read more.
Did you know that when formatting timezones in PHP, you can use a number of area names directly so you don't need to know exactly what time zone each area is in to switch between them. For more information on using timezones and what area names are allowed, check out this article.
Magic quotes is a feature of PHP that adds back slashes before quotations in PHP automatically to prevent them from messing up code. If you don't have it turned on you need to add these slashes yourself. If you do have it turned on you don't want to add any more back slashes. You can check if it is turned on using get_magic_quotes_gpc ().
The getenv () PHP function is used to get environmental variables. Some examples are the IP address, the document root, or the server admin's information. You can get a full list of what variables you can retrieve using getenv () by running phpinfo().
The ForEach () loop in PHP is used when you work with arrays. In this type of loop the code will be continued to cycle through itself until it has used everything in the array one time. Read More.
One type of loop used in PHP is a for () loop. A for loop continues to cycle through a block of code until a specified condition is met. For example, you could loop through a block until you have done it 10 times. Read More.