I need to build a CMS for a group of resident doctors.
The CMS should have (at least) the following features
Free/Opensource developed with PHP
User groups
User public profiles
User blogs/notes/articles/posts
Custom forms (for exams, polls, surveys)
Multimedia friendly (embed slideshare ppts, videos, audio, etc.)
WYSIWYG editor
SEF url...
Take a look on the code below:
$t=77;
date("H:i:s", $t);
It returns
21:01:17
The correct result, of course, should be something like 00:01:17.
The $t value indeed is a value in seconds returned by the YouTube GData API, trought($videoEntry->getVideoDuration()).
How can this problem be fixed?
...
hello everyone
i want to save my data to get copied from others
so only option left to me is to show data inside flash
i never done something this b4
if anyone guide me that will be great.
i want to pass one mysql field inside flash
tht contain text.
so it wont be get copied.
thanks
...
Hi,
I am trying to roll a caching system to reduce the load on the database.
I want to be able to compare timestamps of the last updated time the flat file was updated
to make sure it's not too long ago that the file was last updated.
Here's the code:
$cache_file = $_GET[ 'page_id' ] . '.html';
function cache() {
// Here ...
I am fetching HTML from a smarty template and need to clean it (simply want to remove extra whitespace, and format / indent the HTML nicely), I'm using tidy to do something like:
$html = $smarty->fetch('foo.tmpl');
$tidy = new tidy;
$tidy->parseString($html, array(
'hide-comments' => TRUE,
'output-xhtml' => TRUE,
'indent'...
What would be the easiest way to include a CI file?
Let's say I want to include http://example.com/ci/index.php/mycontroller/ on example.com
example.com doesn't run CI and I can't do include('ci/index.php/mycontroller').
...
I have a product I'm selling. Users purchase a license key and enter that into the config to enable the product.
My first idea was..
The product pings the license server w/ the license key on launch, and fails if the server returns a Not Authorized (expired license, invalid etc). But what if the license server is down..?
Another ide...
I have some emails that I have opened with PHP and now need to get the sender's email addresses. Can someone tell me what function I need to use for this? I already have the emails opening with PHP.
EDIT:
Is this a tough question or am I just not explaining it well enough?
Do I use preg_match to get the email addresses from the opened ...
How best to store the html for embedding?
the only ways I can think of are:
take the embed html and add <?php echo $var1; ?> where the id's go then store it in the db and use Eval to execute it.
or
insert a strange combination of characters to act as a marker to be replaced in php by the id's.
...
Hi guys I was wondering if you could help me if the folliwng:
I have a calendar that inserts dates in hidden fields like this:
<input name="selDay_start1" type="hidden" id="selDay_start1" />
<input name="selMonth_start1" type="hidden" id="selMonth_start1" />
<input name="selYear_start1" type="hidden" id="selYear_start1...
Hi all,
can someone guide me on how to do checking to tell if file already exist in database or not before we upload it?
i wanna upload a file into database, but before it save, i want to check whther file already exist first. if yes then dont do the insert execution.
i used this reference on uplaoding a files.
thank you very much.
...
I have an associative array. I need to add ':' to the start of all the keys.
What would be the fastest/simplest way of doing this?
And what would be the most efficient way to do this?
...
I have several thousand emails saved in a directory. These emails are opened with file_get_contents. I need to match all reply-to: emails from these headers. How do I match them?
...
What is the best way to make a user-login system using PHP?
I want to use same login system to be called by another languages also like
midp
iphone
java
Desktop
Flex
I don't want to use cookies
...
Hiya All,
I need to parse and process an XML feed, unfortunately the feed is about 110mb in size (and i cannot do anything about it) but to be able to parse it i need to see the structure (or if anyone has any other ideas i'd love to hear it).
But for some reason using editplus i've been unable to open the file. I'm on a 64bit Vista Ma...
I'm writing a trimming function that takes a string and finds the first newline \n character after the 500th character and returns a string up to the newline. Basically, if there are \n at indices of 200, 400, and 600, I want the function to return the first 600 characters of the string (not including the \n).
I tried:
$output = preg_r...
Here is what i try to get. i need the date format in php as this : 2009-11-29
$startdate = (date("Y")-1) .'-'. date("n") .'-'. (date("j")-1);
$enddate = date("Y") .'-'. date("n") .'-'. (date("j")-1);
$myAnalytics->setDateRange($startdate,$enddate);
echo 'Statistiques entre : ' . $startdate .' et ' . $enddate . '<br/><br/>';
i can ...
When using the PHP curl functions, is there anyway to see the exact raw headers that curl is sending to the server?
...
Is there any way to get access to a helper class from within a registered plugin. From within the controller, one can use:
$this->_helper->getHelper($helperName);
Specifically, we use the FlashMessenger helper to pass error and info messages around to different pages before we do a redirect. In one of our plugins, we log a user out an...
The JS
SWFlocation = "open-flash-chart.swf";
getMyData = function()
{
$.post(
myJsURL,
{
passedval: 1234
},
function (returned_json) {
return returned_json;
},
"json"
);
}
swfobject.embedSWF(SWFlocation, "myChartDiv", "650", "200", "9.0.0", "", {"get-data":"getMyData"} );
Using fir...