378 solutions found in general-dev
Page 2 of 19votes
Looking at the [php documentation on setting a cookie][1] I see that I can set an expiration date for the cookie. You can set the cookie to expire at the end o...
votes
One of my fields in one of my entities is a "datetime" variable. How can I convert this field into a string to render in a browser? Here is a co...
votes
Is there something similar to a `phpinfo()` - that would display the version for CodeIgniter?
votes
My code to add one day to a date returns a date before day adding: `2009-09-30 20:24:00` date after adding one day SHOULD be rolled over to the next month: `1...
votes
The following code: ```php class Type { } function foo(Type $t) { } foo(null); ``` failed at run time: > PHP Fatal error: Argument 1...
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 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
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
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
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
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
I'm wondering what's the best, the cleanest and the most simply way to work with many-to-many relations in Doctrine2. Let's assume that we'v...
votes
I am trying to send mail from localhost. but i am unable to send the mail from localhost so can anybody tell me that how to reconfigure my xampp to send mail...
votes
I am facing an issue with URLs, I want to be able to convert titles that could contain anything and have them stripped of all special characters so they only ha...