2108 solutions found
Page 8 of 106votes
I know that PHP is compiled to byte code before it is run on the server, and then that byte code can be cached so that the whole script doesn't have to be r...
votes
[Interfaces](http://php.net/Interfaces) allow you to create code that defines the methods of classes that implement it. You cannot however add any code to those...
votes
The following code: ```php class Type { } function foo(Type $t) { } foo(null); ``` failed at run time: > PHP Fatal error: Argument 1...
votes
Using PHP, I want to convert UNIX timestamps to date strings similar to this: `2008-07-17T09:24:17Z` How do I convert a timestamp such as `1333699439` to `20...
votes
> **Possible Duplicate:** > [Reference: Comparing PHP's print and echo](https://stackoverflow.com/questions/7094118/reference-comparing-phps-pr...
votes
In PHP scripts, whether calling `include()`, `require()`, `fopen()`, or their derivatives such as `include_once`, `require_once`, or even, `move_uploaded_file()...
votes
I'm trying to write a wrapper around an api my company is developing. It's restful, and using Postman I can send a post request to an endpoint like `ht...
votes
I need to allow users on my website to delete their images off the server after they have uploaded them if they no longer want them. I was previously using the...
votes
I am trying to generate a random password in php. However I am getting all 'a's and the return type is of type array and I would like it to be a str...
votes
I want to get the client IP address who uses my website. I am using the PHP `$_SERVER` superglobal: $_SERVER['REMOTE_ADDR']; But I see it can...
votes
I am learning advanced PHP standards and trying to implement new and useful methods. Earlier I was using `__autoload` just to escape including multiple files on...
votes
I'm doing a ajax call to my own server on a platform which they set prevent these ajax calls (but I need it to fetch the data from my server to display retr...
votes
I'm trying to pass a URL as a URL parameter in PHP but when I try to get this parameter I get nothing I'm using the following URL form: http:/...
votes
For the sake of creating a login system for my website, I read about cookies and sessions and their differences (cookies are stored in the user's browser an...
votes
I have something like this: $url = "http://ws.geonames.org/findNearbyPostalCodes?country=pl&placename="; $url .= rawurlencode($city[$i...
votes
What is output buffering and why would you use it in PHP?
votes
I'm experienced with PHP, JavaScript and a lot of other scripting languages, but I don't have a lot of experience with Java or Android. I'm look...
votes
Are PHP variables passed by value or by reference?
votes
I am wondering, What is the proper way for inserting PHP variables into a string? <br/><br/> **This way:**<br/> echo "Welcome &q...
votes
I have some PHP code. When I run it, a warning message appears. How can I remove/suppress/ignore these warning messages?