2108 solutions found
Page 9 of 106votes
I'm building a REST web service client in PHP and at the moment I'm using curl to make requests to the service. How do I use curl to make authenticat...
votes
I have this array Array ( [data] => Array ( [0] => Array ( [page_id] => 204725966262...
votes
I want to create a custom page for my WordPress blog that will execute my PHP code in it, whilst remaining a part of the overall site CSS/theme/design. The P...
votes
How can I convert an array to a SimpleXML object in PHP?
votes
What is the simplest most basic way to find out if a number/variable is odd or even in PHP? Is it something to do with mod? I've tried a few scripts but...
votes
How can the following be accomplished in Magento? - Display a "Hello World" message using a controller/view/model approach. So, if I went to `http:...
votes
I have installed php 5.6 and and php 7.1 on my Ubuntu 16.04 I know with Apache as my web server, I can do a2enmod php5.6 #to enable php5 a2enmod...
votes
I've seen the following new line in PHP 7, but nobody really explains what it means. I've googled it and all they talk about is will you be enabling it...
votes
> This is intended to be a general reference question and answer covering many of the never-ending *"How do I access data in my JSON?"* questions....
votes
I'm working on a generative art project where I would like to allow users to save the resulting images from an algorithm. The general idea is: * Create a...
votes
I am aware of function `debug_backtrace`, but I am looking for some ready to use implementation of function like `GetCallingMethodName()`? It would be perfect i...
votes
I want to get the first letter of a string and I've noticed that `$str[0]` works great. I am just not sure whether this is 'good practice', as that...
votes
My web application uses sessions to store information about the user once they've logged in, and to maintain that information as they travel from page to pa...
votes
I know that this issue has been posted many times, but for me it seems to be a different problem. Indeed, this error > Warning: require(vendor/autoload.ph...
votes
Because of the Twitter API 1.0 retirement as of [June 11th 2013](https://dev.twitter.com/blog/api-v1-retirement-date-extended-to-june-11), the script below does...
votes
I have this function to validate an email addresses: function validateEMAIL($EMAIL) { $v = "/[a-zA-Z0-9_-.+]+@[a-zA-Z0-9-]+.[a-zA-Z]+/"...
votes
Is there a difference between `isset` and `!empty`. If I do this double boolean check, is it correct this way or redundant? and is there a shorter way to do the...
votes
Sorry if this is duplicate,I would think it would be but couldn't find anything. I have a flex application that I am posting data back to a PHP/MySQL ser...
votes
After the latest update of PHP Intelephense that I get today, Intelephense keeps showing an error for an undefined symbol for my route (and other classes too)....
votes
I want to remove the `/public/` fragment from my Laravel 5 URLs. I don't want to run a VM, this just seems awkward when switching between projects. I...