Web programming - Questions with the answers


php - Transpose Multidimensional Array


class="s-notice s-notice__info post-notice js-post-notice mb16" role="status">
Continue reading

xml - PHP DOM: How to get child elements by tag name in an elegant manner?


I'm parsing some XML with PHP DOM extension in order to store the data in some other form. Quite unsurprisingly, when
Continue reading

shell exec - How to use the function shell_exec() PHP


I have a problem with the function shell_exec(), i've tried everything but I don't know where is the problem. I have
Continue reading

php - HTACCESS ModRewrite to hide extra URL attributes


I have an URL looking like this: {-code-1} which already uses ModRewrite conditions: {-code-2} The code above does change the ?url= to blog/
Continue reading

php - A function call as argument in Symfony/Twig path function


I have a route like this: {-code-1} And then a Twig template, where I list all users: {-code-2} As you can see I'm
Continue reading

php - Google API Key Http referrers issue


I am using PHP cURL to retrieve Google book information using my Google API key, but getting ipRefererBlocked error whenever I
Continue reading

Sorting my guestbook posts on time/date (php/mySQL)


I need the posts on my guestbook to be sorted by time ascending. I have been told that I need to add: {-code-1}
Continue reading

php - How to get Twilio Geo Permissions set in Account via API?


I'm using Twilio PHP Library to communicate with Twilio API. I need to find out which countries are allowed in client's
Continue reading

php - Deleting a row using AJAX using fadeOut


I am following a tutorial online on AJAX. There is a lecture on how to delete a row from a table
Continue reading

php - Enable Datepicker in a WooCommerce Checkout custom text field


In WooCommerce, I can get a field hooked into my WooCommerce cart page & showing up OK using the following in
Continue reading