Hi,
I installed my Eclipse via the Ubuntu Software Center. Afterwhich, I follow the instruction in this wiki (http://wiki.eclipse.org/PDT/Installation#Eclipse%5F3.5%5F.2F%5FGalileo%5F.2F%5FPDT%5F2.2) and I met with the following errors:
Cannot complete the install because one or more required items could not be found.
Software being ...
I asked a similar question last week but did not get an answer that really nailed it. I suspect the question needs to be stated more plainly so here goes:
Given this XML:
<?xml version="1.0" encoding="utf-8"?>
<everyone>
<guest>
<name>Joseph Needham</name>
<age>53</age>
</guest>
<guest>
<name>Lu Gwei-djen</name>
<...
hi
my code is this,
$query = "SELECT * FROM `cars` WHERE (color LIKE '%". $key ."%' OR name LIKE '%". $key ."%') AND enabled = 'yes' ORDER BY `ID`";
database is like this
ID color name enabled
---- ------ -------- ---------
1 red red car yes
2 blue blue car yes
3 ...
Hi,
i am trying to create a note with SugarCRM's web service (using SOAP) but all i get is an Uncaught SoapFault exception: [Client] looks like we got no XML document error.
My code is as simple as that:
$note = $client->set_entry($session_id, 'Notes', array(
array('name'=>'name', 'value'=>'Test Note From website'),
...
Is there a way to build custom extensions into MAMP? I am constantly getting very funny errors when, for example, trying to compile WDDX into the MAMP package.
/Applications/MAMP/bin/php5/include/php/ext/wddx/wddx.c: In function 'php_wddx_pop_element':
/Applications/MAMP/bin/php5/include/php/ext/wddx/wddx.c:979: error: 'zval' has no me...
The question about says it all! I'm aware of the different flavours of RoR Beast, but I'm wondering if there is a PHP rewrite/port out there anywhere to be had.
Many thanks!
...
Ive got a problem. In each document I've got fields: threads.id and posts.id.
I want to get the field name value for them so i can get data from the database.
Between the lines beneath i have marked the lines where i want to get the fields.
But it returns error because they are $doc is object.
How can i get the fields? I have to do i...
hey everyone!
i am currently working a edit and delete pages for a company database.
edit.php
right now i am trying to get php to check that a form has been successfully submitted (it POSTs to itself) and once this check is done then it would render a jquery modal box informing the user that the form has been successfully edited.
de...
I am building a web application from scratch that has registration and login functionality. I am completely a novice when it comes to security issues and attack like mysql injection. Apart from encryption of password in database, what are other security issues that i have to worry about?? And how do i take care of them??
Thank you
...
I was wondering if there is any reason to stay away from object serialization in PHP. My use case is for deferred processing. Ex: A mail queue where the mail object would be serialized when a send request is received, stored in a db and unserialized by a scheduled worker script.
The alternative is to store all the information that is n...
Hi
I've got a script which works fine on our development server but dies on the clients server.
error_reporting(E_ALL);
if (function_exists('simplexml_load_file')) echo "function exists";
if (file_exists('test.xml'))
{
echo("<hr>just about to read local xml file :".__LINE__);
$xml = simplexml_load_file('test.xml'); // dies here
In ...
The lambda anonymous function is part of PHP 5.3. What use is it? Are there some things that one can only do with lambda? Is lambda better certain for some tasks?
I've seen the Fibonacci example, and I really don't need to write Fibonacci sequences, so I'm still not sure if it's that useful for the kinds of tasks I encounter in writing...
For instance, on the following CURL snippet:
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url); //set target URL
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, TRUE);// allow redirects
curl_setopt($ch, CURLOPT_POST, $usePost); // set POST method
curl_setopt($ch, CURLOPT_HTTPHEADER, $headers); //set headers
curl_seto...
I have this statement:
set_include_path('/sites/intranet/includes/Zend' . PATH_SEPARATOR . get_include_path());
but when I try to use the Acl library it seems that is not aboel to find;
require_once 'Zend/Acl/Resource/Interface.php';
The path is really included in the path, I have printed it. Any idea?
...
Possible Duplicate:
What PHP framework would you choose for a new application and why?
Hello!
I'm going to create a serious web project. Until this time, I've been developing projects with Drupal, but I want to switch to a PHP framework. Which framework can you suggest and why? Scalability and performance are must. I was playin...
Im trying to populate the POST checkboxes this way
foreach ($chk as $key => $value) {
if (isset($_POST[$key])) $chk[$key][$_POST[$key]] = 'checked="checked"';
}
But for some reason is not populating them for the following checkboxes
<input type="checkbox" name="chk[]" value="A" />A
<input type="checkbox" name="chk[]" value="B" ...
Hi,
I'll be building a Wordpress theme and would be needing some advice in implementing it. here's the outline of my design. I will using 960.gs for the css layout.
Now my worries is what approach will i be using to the services(1,2,3...)? Will I use widget fort hat? Those boxes should be easy to maintain and update. (I've been a Joom...
Is there a reason why a PHP cURL enblaed server will refuse to display xml responses? I have been working on a script to post numbers to a dialling service. I felt using cURL would be the best thing to do.
On 3 different servers, each running different versions of PHP, I am able to get responses with no problems. But on the particula...
I'm trying to use a script that is provided by an ecommerce site that obtains data from an xml feed that is posted to a URL on my site. The script gathers the data using....
$requestBodyXML = new DOMDocument();
# Load the request body into XML and check that the result has been parsed into XML
if ($requestBodyXML->loadXML($HTTP_RA...
If you were building an application that tracked event data, how would you push that event data out so it could be on people's personal calendars and smartphones?
My thought was to create an .ics file and subscribe to it via Google Calendar, Outlook, Exchange, etc. But they appear to subscribe to a "snapshot" of the file, and don't cons...