G'day,
I have a project where I need to build a "live" java application (server) to hold state about domain objects (it's a private auction system). The java server will be communicating to and from PHP classes that hold the main back-end business functionality. The PHP classes will be stateless.
I need to communicate domain objects up...
I have a php calendar at http://idea-palette.com/aleventcal/calendar.php.
I want the days that are not part of the current month to show up grayed out(which it does now), and I want it to appear as those are the days of the previous and next month.
As it is now, the days that appear before the first day of the month appear as negative n...
I am building a simple scheduling program for week long scheduling: Sunday - Saturday.
Under each day when the schedule is saved there will be a variable amount of employees working and the data for their shift and job code.
For example:
Sunday:
Bob - Kitchen - Opening Shift
Sam - Kitchen - Closing Shift
Amy - Bar - Opening Shift
Bill...
I am using codeigniter php framework. I have a url that looks like this:
www.mydomain.com/controller/function/param
however, when the param value has encoded characters such as 'plus%2b' all that I can see (by checking the parameter) is 'plus'. So basically I am loosing all encoded characters and anything that may occur after them. ...
hi
i am using xajax framework
i want redirect my url in for loop.
every time its go to the home.php at last
my sample code is this
for($i=0;$i<4;$i++) {
if($i == 1) {
header("index.php")
} else {
header("home.php")
}
}
...
Alright... this seems complicated for me..
I don't know if it is.
filename: add_types.js
I have some data, which i create into mysql db (is for a back-end system).
through jquery/ json. It work fine.
var last_id = data.last_id;
var fck_editor = data.fck_editor;
var new_data = '<div id="input_highlight'+last_id+'"><strong...
We're using Commission Junction's REST service, which requires we sent an API key in the Authorization header.
We set the header like this:
$ch = curl_init();
curl_setopt_array($ch, array(
// set url, timeouts, encoding headers etc.
CURLOPT_URL => 'https://....',
// ...
));
curl_setopt($ch, CURLOPT_HTTPHEADER, array(
'Authoriz...
Hello, I have a simple question but I don't know which term I should use to find the answer (english is not my first language).
I have a classical database design of products like and categories.
CREATE TABLE IF NOT EXISTS `a` (
`id_a` int(11) NOT NULL auto_increment,
`type` varchar(255) NOT NULL,
PRIMARY KEY (`id_a`)
) ENGINE=M...
Hi all,
While i am browsing my online app in the server i got an error like
Database Connection Failed
User coule_com@c17564 already has more than 'max_user_connections' active connections.
But this is working well in my local system. And this error occurs ANY TIME when i navigate in the server. If i refresh the browser i can able t...
I try to implement AJAX in my website. When the content of the div changepass is clicked then it should load changepass.template.php. Here is the code im using for that.
$(function() {
$(".changepass").click(function() {
$(".block1").load("views/changepass.template.php");
return false;
});
My question is how to show GIF A...
On a website I'm working on, I would like to collect a user's name and email address to add to a mailing list.
My question is NOT how to do this, I know that part.
What I would like to know is, how would I do this so as to avoid spam, robots, etc?
I would like to prevent as much non-human interaction as possible, while keeping the HTM...
I'm trying to convert this PHP code to query a Lotus Notes Ldap directory in Microsoft ASP
$ldap_serveur = "ldapserver"; // Nom ou IP du serveur LDAP
$ldap_port = 389; // Port de communications ldap (389 en standard)
$ldap_base = "O=SI"; // Base de l'annuaire LDAP
$conn_ldap=ldap_connect($ldap_serveur, $ldap_port);
if ($conn...
Hi all,
I'm trying to generate a graph for the statics of my site.
I need a couple of them, one for the hours of a day, one for the days of a week, one for the weeks of a month and one for the months of a year.
There are hits and unique visitors.
It could look like:
http://extjs.com/deploy/dev/examples/chart/charts.html - The last e...
I was just wondering how I can get the content of a variable starting from the last value instead of the first ( using foreach),
$variable = [1,2,3,4];
how can I print 4 then 3 and so on (if the size of the variable in unknown, is it possible to get the last value first).
thanks
...
I am trying to upload multiple files but when i select more than 1 djz_file it doesn't get any information form $_POST and $_FILES, in case of single file it works well.
<fieldset>
<legend>Add New Release</legend>
{if $action eq 'failure'}
<div class="error">Release Ad...
Possible Duplicates:
How do I use that <<<HTML thing in PHP?
PHP <<<EOB
$sql = <<<MySQL_QUERY
CREATE TABLE IF NOT EXISTS testDB (
title VARCHAR(150),
bodytext TEXT,
created VARCHAR(100)
)
MySQL_QUERY;
I've seen people use the above to include multiple lines of string and set it to a variable, was won...
Hi, is there a way to get or write data to/from joining table in many to many relation?
I have two tables joined by third.
Question one:
How can i GET data from the joining(middle) table, when i'm retrieving data in similar query
//table1 is "root" table - containing records related to table3
//table2 is joining/cross table
//table3 c...
Hello,
I've been playing with GWT lately, and I like the idea a lot. The only downside for me is Java, which I'm not a big fan of. (Please don't argue about Java being better than PHP, it's not the point here, really)
Do you know about any mature and efficient PHP toolkit providing a set of widgets just like GWT does ?
Thanks for your...
I'm developing a web app that will access and work with large amounts of data in a MySQL database, something like a dictionary/thesaurus. I need to test the performance of the DB as its size increases, so I know how slow each request will be in the future.
Any ideas? Like are there specific tools to check DB performance for a particular...
I have an array like:
Array ( [id] => 1 [code] => FAC876 )
How do I push it into another array using PHP, such that the result is like:
Array ( [0] => Array ( [id] => 1 [code] => FAC876 )
[1] => Array ( [id] => 2 [code] => GEO980 )
)
...