change dd/mm/yy date format to yy/mm/dd using php
I'm having date 20/12/2001 in this formate . i need to convert in following formate 2001/12/20 using php . thanks in advance ...
I'm having date 20/12/2001 in this formate . i need to convert in following formate 2001/12/20 using php . thanks in advance ...
is there a solution to manage multiple background processes started by multiple users ? I am looking for a task scheduler/queuer. It should allow users to login, start new background processes, monitor them, and delete them. ...
For example if I am colecting a [URL value] in a form, saving that [URL value] in a database, and then using it in a page like this: <a href="[URL value]" > The Link </a> How do I protect against this [URL value]: http://www.somelink.com"> Evil text or can be empty </a> ALL THE EVIL HTML I WANT <a href=" How can I protect agai...
I have a page where onclick on a button displays the text content from the file in the text area on the page javascript function function displayOutput() { <?php $logfile = "hello"; $fh = fopen($logfile, 'r'); $size = filesize($logfile); if($size == 0) { ...
Is it viable to run Wordpress in a RAMDISK for performance reasons? ...
I'm getting this really bad error. I tried copying the example classes off PHP.net. The class worked but I cant seem to get it to include right. My index file includes the users.class.php and then the content.php which has the call to the class. Error: Fatal error: Class 'A' not found in X:\xxxxx\xxxx\xxxxx\content.php on line ...
I've got a template that I'm using that has the option of showing either a set of posts on the front page in a featured section or, optionally, display a set of specified pages in the same featured area. I found the code where it displays either/or, however I'm not exactly sure how to combine the two together and get a list of a set of ...
i am trying to get player logic in place with those if statements player 1 fires 1st -> player 2 2nd then start over again (an user checks a box)then the unset removes the pieces from the board as they are hit Parse error: syntax error, unexpected '(', expecting ']' in on line 93 the problem is this line of code: ...
There is a situation where I need to draw cube or cuboid using the PHP GD library. Does anyone know where to find a simple example or a PHP class to do this? Thank you for any reference. ...
I am trying to find an AJAX File uploader to use, I think i may go with this on below: http://valums.com/ajax-upload/ The issue i am having is that i cannot figure out how to make a jQuery AJAX call when the uploader has finished uploading the file. Is this possible? I don't have to necessarily use this specific uploader. ...
I haven't done much programing in many languages, but I know in C(++), you have to declare a variable type (int,char,etc). In PHP you, of course, don't have to do that. You can start with $str = "something"; then later $str = array("something" => "smells"); and she is happy. How does PHP compile? How does it know what the variable typ...
In Zend's Documentation they write about creating Navigation Containers. But they don't explain where I should create them. Does anyone know that? I'm also wondering if a custom Navigation Container extends or overwrites the navigation.xml file which contains the static links. (I want to make a custom Navigation Container to add dyna...
Is there a way of profiling only slow php pages on a production server? At the moment we're logging slow pages to a text file, but without more information it's hard to say why they're slow (not consistently slow). I've used XDEBUG profiler before, but I really don't want to enable this on our production servers as we are likely to get ...
this is my website i develop http://alessandro.babonmultimedia.com/ when we clicked at contact (navigation at top), there will be contact us form loaded via jquery AJAX, the question is: when we click submit, it will sending mail. this is work in Firefox 3.6.1, but in google chrome 7.0.517.41 the submit button do nothing.. why th...
Hi , i understand basic concept of cache , but one thing i cant able to understand , even i saw some example , assume , my first request is 9am , now new update information coming to cache , then another same content request from other user , now system get content from cache file instead of DB, example 1 : i set the cache expire ...
i was looking at http://www.2shared.com and when you upload something it shows how fast the file is being uploaded, and other info. does anyone know how i can do this under php/jquery ? ive used alot of loaders outthere and they dont work. most of them are under flash which i dont want to use. ...
$from = $_SERVER['REQUEST_URI']; echo /marketing/clients.php?action=sendbook&issue=29 How to get clients.php?action=sendbook&issue=29 only? Thank you! ...
Hi all, I have this CodeIgniter and MySQL application. I have a database table where one field must be unique. When I "delete" a record from the table I don't want to really remove it from the table, I just want to set free the value of the unique field so it can be used for a future new record without conflicts and leave it there. At...
Hello, I have the following code to add users to a particular role. The code works fine but I'd like to change the SQL so it only inserts the user into a role if it doesn't already exist. Any help is greatly appreciated. Here is my code: // ------------------------------------------------------------------ // ADD SELECTED USERS...
Hi, I have to filter data for last 3 months from current date, so that would be to fetch data from Aug to Oct. But value exist for October only in mysql table, so now i want to display record in following format: Month Values Aug 0 Sept 0 Oct 10 But my query only shows October month records as i dont have...