I have a 24 hour time string (ie 16:30) and would like to add x time blocks of 30 mins. For example if x = 4, then 16:30 + 4(30) = 18:30. Is there any easy way to do this with out exploding the string and doing if statements for mins/hours.. etc? Also this is on a php page would it be easier to do this in php then echo it to the javascri...
Hi
How to install memcache in wamp,
am not find any php_memche in php.ini ,
What i do now.
...
So, I think i understand the cascading filesystem in it's basic terms, but I can't seem to wrap my head around the 'H'ierachy structure of the MVC. Could anyone tell me the advantages of using HMVC over MVC and it's basic intended functionality?
Thanks for your time!
...
Hi all,
I am a C++,Unix developer who has never dabbled in web development apart from creating simple HTML pages. I am going to change that and develop a website at a personal level soon. I am going to use php,mysql on a linux machine. In this regard I am browsing through relevant literature. The language isn't a problem but reading abo...
Hi,
I've created a view in Drupal that retrieves a list of nodes. The display of this view is a page and it works perfectly well. It does even allow me to filter its content by argument.
See the current's view configuration (click to enlarge):
I want to use AJAX to use the filter (by parameter) functionality without reloading the pa...
I'm trying to upload some pictures using php cURL on a classified ad website .I think that I set all the parameters properly but I see that there is a kind of redirect after I post the picture . The issue is that the url where I'm getting redirected gives 404 error instead to return the html that it does when I make the post with a norma...
Hi, I was wondering if some of you know about a library in php so that I can pass a date and a cron expression and it tells me wether the date satisfies the cron expression or not. The java Quartz library is able to do that (and more like getting the next valid date for a given cron expression) but I was wondering if this is possible usi...
actually what I am trying to do is store incoming searches in a database and then display to a web page limiting to a certain number say 10 with the heading of "Recent Searches". if you LIMIT 10 in database query then It stops after 10. so thought will cut off loop but both case it stops at 10. so after that what ever searches happens it...
PHP Filters are pretty cool, but what do you do if the filters don't quite match what you want? Can you create a custom filter?
...
I have an array of data in php and I need to display this data in a HTML table. Here is what an example data set looks like.
Array(
Array
(
[comparisonFeatureId] => 1182
[comparisonFeatureType] => Category
[comparisonValues] => Array
(
[0...
Hi guys, i am creating a new site, based in a pre-existing web page
The original site is http://oasisrio.intermediasp.com/
Its works great in Firefox, Chrome, and IE
But the new one "oasisba.intermediasp.com"
Dont show the right bar in IE, i check all that i can think about and i dont found the problem.
Someone have any ideas why this...
I have an array in PHP as a result of the following query to a Wordpress database:
SELECT * FROM wp_postmeta WHERE post_id = :id
I am returned a multidimensional array that looks like this:
Array ( [0] => Array ( [meta_id] => 380 [post_id] => 72 [meta_key] => _edit_last [meta_value] => 1 )
... etc.
What is the best way to fi...
I have the following for-loop. It uses the values 0-6 form monday-sunday respectively.
Is there a more condensed way to do this? As opposed to listing out the if ($i=="day")
// $i = 0 is monday... $i = 6 is Sunday
for($i=0;$i<7;$i++){
if ($i==0)
echo ' <input name="repeat_on_week[]" type="checkbox" value="0" /> Monday';
...
I am using document root to provide absolute path which is not working. if i echo this path it turns out to be C:wamp/www/proman/header.php. I i give relative path it works fine what is the problem here?
$path = $_SERVER['DOCUMENT_ROOT']."proman/header.php";
I elaborate my problem here: I have 2 php files data_object.php and user.clas...
Hi,
and thanks for reading.
My problem is that I'm trying to get a list of contacts belonging to a group in GData using Zend_Gdata_Query.
Using
$query = new Zend_Gdata_Query('http://www.google.com/m8/feeds/contacts/default/full/?group=http://www.google.com/m8/feeds/groups/xxx...xxx/base/XXX');
$feed = $gdata->getFeed($query);
give m...
My site is requesting a remote image which is being transferred with the wrong MIME type. I was wondering how might I override it in PHP to tell it that it's an image? I can't use header('Content-Type') because the image is being used in a HTML document.
http://manga.justcarl.co.uk/N/Naruto/494/1 - one of the pages attempting to request...
I have some code that uses the stristr function to extract data I need. It works, in that it gives me the results I'm looking for. BUT (you knew there was a but), it gives me this error message for every iteration of the loop:
Warning: stristr() [function.stristr]: Empty delimiter in ... line 55
Like I said, the code works apart from...
Hi guys,
I have a database that a time filed that is stored in this format "2010.06.04. | 18:53 01".
What I need is to select rows that have a specific date, for example "2010.06.04."
Right now I am doing it my first selecting all rows and then looping through them and adding ones with the specified date to a new array.
Maybe there is ...
Obviously, I am a novice web designer. I'm using php and sql to do all the under-the-hood stuff, but I want a visually appealing as well as functional comment system.
Right now I am just using HTML forms but they don't look very good. Should I be using javascript? Any tips to get me started?
...
In mysql, I have a tree that is represented using the adjacency list model.
MYTREE
id
parent_id
title
I am wondering:
Given the id of a node, is there any way to SELECT the entire tree beneathe that node, complete with depth information? The tree is arbitrarily deep, so I cannot say how many levels there may be. But the re...