 | Format DateTime interval using PHP I have date1 and date2. I am trying to format difference of two dates like in facebook with "ago" such as "1 year 2 month ago" or "5 hours 3 mins ago."
A ... | 8 months 2 wks ago | Albert Isaev | 4 replies | |
 | How to make Asynchronous http calls using PHP? Is there a standard way to make async calls using php? I am looking for an approach to make asynchronous call from my php application. Actually I need to write metrics log so I really do ... | 1 yr 10 months ago | Sam Buchana | 2 replies | |
 | Difference between PHP Error Vs Exception I am kind of confused between PHP Error and Exception. It sounds similar but can not figure out the difference. What is the main difference between the two?
Thanks in advance. | 1 yr 10 months ago | Mason Miller | 2 replies | |
 | How to get client IP address using PHP I need to capture client user IP address using PHP. I need this specially for my logging and authentication purpose. How do I get client user IP address? | 1 yr 10 months ago | Bill Tucker | 2 replies | |
 | line break '\n' does not work in php Hi,
I have a code which is suppose to be very simple but not working. I am trying to insert '\n' to my data but it not working. In the screen, I see literal '\n' ins ... | 1 yr 11 months ago | Ramesh Shrestha | 3 replies | |
 | Undefined index: REQUEST_URI in PHP I am trying to access php server variable "REQUEST_URI" using $_SERVER["REQUEST_URI"] for full page url and trying to log into my log into mySql database. But I get t ... | 1 yr 11 months ago | Michael Gardnar | 2 replies | |
 | How to display my Url in REST style with php? I have a php application where I have dynamic page like category.php?c=1. I mean my pages are dynamic based on parameters. Now, I want to have more meaningful shortcut url like http://my ... | 1 yr 11 months ago | Tim Joseph | 4 replies | |
 | Whether preg_replace() or str_replace() is good in performace? I am using both preg_replace() and str_replace(). And this is more of performance question. I wanted to know which one is good in terms of peformance than the other? Is there is any pref ... | 1 yr 11 months ago | Richard Cox | 2 replies | |
 | remove special character from string in PHP I need to remove any special character like . \ > < etc etc from my string. I want to exclude everything except character and number. What would be the best way to achieve this in ... | 1 yr 11 months ago | Tim Joseph | 2 replies | |
 | MYSQL Bit field with PHP I wrote my program in windows environment with PHP - MYSQL. Everything works fine, I am able to compare my retrieved bit field with numeric number. But once I moved my code to Production ... | 1 yr 11 months ago | David Wu | 4 replies | |
 | How to redirect to different page in PHP? In ASP world, there use to be Response.Redirect() to redirect to a page. Is there any similar function to redirect in PHP? I am looking for temporary page direction in PHP. This should b ... | 1 yr 11 months ago | Richard Cox | 2 replies | |
 | Preg_match - Delimeter issue Hello
I've managed to convert most of my script to PHP 5.3. Some examples of what I changed are below:
----------------------------------------------------------------- ... | 1 yr 11 months ago | Robert Legoo | 2 replies | |
 | how to generate captcha image on the fly in PHP? Hi, I am trying to implement captcha for our website using php. For this, I am trying to generate random image on the fly. Can anyone please guide what could be the best way to create im ... | 1 yr 11 months ago | G-Stone | 3 replies | |
 | Config file in PHP? Is there way to have configuration file in PHP? I need to store my environment level variable in a config file like my database connection, backend service url etc. When I use to do ASP. ... | 1 yr 11 months ago | Michael Gardnar | 2 replies | |
 | PHP and AJAX Hi, I need to utilize AJAX functionality but I am using PHP for my site. It does not seem like there are any built-in function in PHP like in ASP.NET. Can anyone please guide me on how t ... | 1 yr 11 months ago | Dave Smith | 1 replies | |