Hello there!
try {
$r->send ();
echo $r->getResponseBody();
} catch (HttpException $ex) {
echo 'Message: ' .$ex->getMessage();
echo "<h5>No Resutls provided from blah blah for this domain name</h5> </div>";
}
I use the HTTPRequest method to do requests to a server that I have im...
Hi!
I have just developed a facebook application. Most of it works fine but the multi-friend-selector does not show up on internet explorer.
Although Firefox and Google Chrome working fine it does not appear on IE. Also there is not any error messages.
Here is my code for multi-friend-selector:
<?php
// Prepare the invit...
How can I subtract an older date 2010-10-18 07:44:53 from a newer date using PHP?
...
Hi All,
I am building a timer for a website that will count down between two php date()s.
The whole site uses php and there are a lot of time/date functions which rely on date_default_timezone_set() etc.
So, back tot he timmer...
I can get it working, well if I refresh my screen every second, the problem I currently have is the date/t...
I am doing an experimental project.
What i am trying to achieve is, i want to find that what are the keywords in that text.
How i am trying to do this is i make a list of how many times a word appear in the text sorted by most used words at top.
But problem is some common words like is,was,were are always at top. Apparently these are ...
Hello I have always been thinking which is the best way of writing html in an MVC architecture.Would it be regular html as <div id="id1"> <input type="text" name="tBox" /></div> or echo '<div id="id1"> <input type="text" name="tBox" /></div>';. This is a very small example, but sometimes we can have a single variable or single echo state...
Hi there,
I'm running a query in MYSQL using LEFT JOIN to get users and their user groups. Both tables have columns named id. My result is being returned in an array (PHP) so that I have one array with all field data, but also only one array["id"].
Here's my query so far:
SELECT usr.id, usg.id FROM users usr
LEFT JOIN (user_gro...
I'm trying to extract src value from image tag using prag_match with perl pattern. I don't know where I'm making wrong but, I'm getting unwanted part as well. Here's how my pattern look like -
preg_match_all('#src="http.+"#',$imagetag,$temp);
$imagetag = "<img src="http://....." alt="build4.jpg" title="build4.jpg" width="320" height="2...
I am trying to write a PHP report for a MySql table however I am a bit stuck on the correct commands I should be looking in to...
The table structure is as follows:
| Int | employeeID | lessonID | date
| 1 | 15110 | 50 | 2010-10-18
| 2 | 15110 | 51 | 2010-10-18
| 3 | 15110 ...
I need to create a strategy pattern where a user selects four strategies from a list of twenty or thirty unique strategy objects. The list of strategies will be expanded as the project matures, and users can change their selected strategy at any time.
I plan to store the strategy names they have selected as strings, and then use a meth...
Hi, I am using jQuery UI autocomplete and I am relatively new to jQuery and JSON. Below is my code. I was wondering if it is possible to specify the field name and data table name inside the callback url so that the php file grabs it later. I have many input box with different names and ids which need to have autocomplete. Each input box...
Hey guys,
So I'm building an app using PHP and MongoDB which will have a fair bit of traffic in both reads and writes.. After a couple of months there should be around 2500 reads a second and 200 writes per second (not sure how that really rates in terms of traffic compared to others, though).
I'm a bit curious on what to do when upda...
Hi everyone,
I have a file called config.php with contents that looks like this:
$setting_1 = "value1";
$setting_2 = "value2";
$setting_3 = "value3";
$setting_4 = "value4";
How can I use a form to edit/save these values from a webpage? Any help would be appreciated.
...
Hi,
How to get all unique words from a webpage in an array? (without all attributes and javascript etc.)?
Could anybody help me with this?
...
am creating a .xls file using PHP fopen
write and append the contents to the file. Works fine with Excel 2003.
But excel 2007 showing a alert before opening as un supported type.
If i create file with .xlsx extension , it is not opening in 2003.
Is there any standard way that works fine in both 2003 and 2007 versions .
...
Hello,
We have a website developed in PHP with MySQL and sometimes facing problems when traffic increases. We have almost optimized the site in all ways to handle more requests but still facing problems at peak hours.
One of my friends suggests to rebuild the site using HBase / MongoDB as back-end to improve the performance. Also he su...
in the sidebar of the php web manual,
link text
the addChild method use the :: scope resolution operator, but in the example,it use the Arrow operator
Can anyone tell me why is it?!
...
Hello,
This has got me in a pickle, though I'm sure it's probably fairly easy.
I need to get the hash value from the parent window uri, and insert this into the set_value() function. Obviously I can't get a hash with PHP, so it has to be javascript.
parent.location.hash
works but I've no idea how to get it into set_value().
The fol...
Hi Everybody!
I have a problem With a "Special" AJAX Request. I have a Form with several combos ("Select" tag). I'm loading the items for each combo from a MySQL DB, with a Special class designed for me. Each Combo has a "+" Button (For Open a Pop-Up and Add a new Entry). When the user "Saves" the new value, the AJAX request should run,...
I'm working on a PHP web app that calls R through curl and RApache. Most things work fine. But one lattice plot throws this error:
RApache Warning/Error!!!Error in uy +
c(-1, 1) : non-numeric argument to
binary operator
I tried saving the data structures that feed into the plot and doing the plot in my local R, but then the pl...