I want to retrieve mails from an IMAP server.
I am running my script on a machine different from where the IMAP server is running.
For doing this, I am making use of imap_open function that comes with php-imap package. Both php and php-imap packages have version 4.1.2 (release 7).
Now, when...
Just FYI that I am looking for some method to end the script and not just a way of getting that example work.(coz in the example that I gave, an if else could have worked)
-Kunal
How can I terminate a PHP script prematurely based on some condition? At the same time, I would like to send some message to the user informing him of the reason of this premature termination..
For example
if (x>10)
echo "value greater than 9 is invalid";
//END PHP SCRIPT ( HOW TO DO...
I want to have a date (could be of date type or some other type) field in mysql database which would store an expiry date. This date is entered by the user and is sent to the PHP script as a querystring of the form mm/dd/yyyy and this value is then to be stored in the mysql table.
Now, I would...
giffords,
thanks for your reply. well, let me layout my problem in some other way.
I want to have a date (could be of date type or some other type) field in mysql database which would store an expiry date. This date is entered by the user and is sent to the PHP script as a querystring of the...
One more thing which I want to do in addition to what i mentioned in the previous post is:
retrieve the current time using some PHP function and then inserting this value in a mysql table. If someone suggests using a timestamp, then I would like to know how could I update this stored value of...
Hi all,
I am getting date in string format (for eg. 12/11/2002) from HTML form. I want to add this date into MySQL database in a field of type Date.
I may even want to format this date (say add 1 month to it so as to make it..1/11/2003 )..How to go about doing this in PHP ?
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.