How to declare a PHP variable with the current date formatted as Y-m-d [duplicate]
I need to set a variable to the current date in this format: eg: 2012-05-12 , I get that's YYYY-MM-DD ? I've tried: [Cod...
Latest news, tutorials, and updates from the PHP community
8612 articles available
I need to set a variable to the current date in this format: eg: 2012-05-12 , I get that's YYYY-MM-DD ? I've tried: [Cod...
I have a 40K line EDI (fixed length) file that I must parse into a csv. If you know edi you know that each element has i...
How can I find out the path of the httpd.conf file on apache (PHP)? I do not know whether my script will be runned in wi...
Is there a shorter syntax in Twig to output a conditional string of text? [Code Block] Traditional php is even easier th...
Inpage is an Urdu software with which we can write Urdu. I found a website which provides the feature to convert Inpage ...
I am tring to use get_where and order_by like so... [Code Block] but got this error... [Code Block] What am I doing wron...
I installed `XAMPP for Windows` on my computer. I started it up and checked the status and it said that `PHP` is activat...
A PHP Error was encountered Severity: Warning Message: Invalid argument supplied for foreach() Filename: views/content_v...
I'm getting the following error with $_POST['str']: Notice: Undefined index: str in C:\Program Files\EasyPHP-5.3.8.0\www...
Simple question but I don't know why it is not printing correctly or working as expected. I have this in model (works be...
I'm trying to find the "users" current subscription on the database and display it's name in a view. Primary is the ID, ...
I want to read a file line by line, but without completely loading it in memory. My file is too large to open in memory,...
Showing 7321 to 7332 of 8612 articles