need to use a good PHP ORM that has elements of Datamapper and i am not clever enough to code it myself.
chosen doctrine, but after reading through the user guide, cannot find anything that says how to use identity map to lower calls to database.
please show me how to have identity map in doctrine ORM?
just read and understood stuff ...
I'm having issues with includes when the included file itself includes another file but refers to it with the dot prefix. For example there are three files - inc1.php, inc2.php, and subdir/test.php, the contents of which are -
subdir/test.php:
set_include_path(get_include_path().":../:../.");
require("inc1.php");
inc1.php:
require("...
Hello All,
I have some TCL scripts on the server . I am using a client (html/php ) to call them .
I want to know if each seperate http request ( to call a TCL script from php script ) executes in separate thread ? i.e can i have multiple instances calling the same TCL script ?
Could some one throw some light on this .
Regards,
Mithun
...
Why is this microtime showing up weird in PHP
$start4 = microtime(true);
// run some php code
$end4 = microtime(true);
print "Time4: ". ($end4 - $start4)."<br />";
The above is showing:
Time4: 2.69412994385E-5
Something with a more complex, longer running process shows up like this instead:
Time1: 0.000292062759399
...
Just a quick question: I've seen that some PHP functions are commented at the top, using a format that is unknown to me:
/**
*
* Convert an object to an array
*
* @param object $object The object to convert
* @return array
*
*/
My IDE gives me a dropdown selection for the things such as @param and @return, so it must b...
I'm trying to print an ID from MySQL, the field loads into an array and is visible via print_r but I can't echo it or transfer it to another variable ... what am I missing?
if ( $_POST['section'] == "freelance" ) {
$field_name = "promoter";
} else {
$field_name = "connector";
}
echo $row[$field_name.'_login_ID']
As requested t...
any other solution for getting file modification date using ftp function
...
Hai
I want to build a web site containing chat. i am working with PHP, I want a code to implement a chat with php .Any one help me to do this? I know Ajax . i don't Know any other languages...
...
On my windows laptop I have Apache and PHP so I can develop websites locally. Then recently PHP files stopped reporting errors. In the php.ini file I have set
error_reporting = E_ALL & E_STRICT;
display_errors = On
But it still does not report any errors. If I echo error_reporting() i get 0.
What could be causing this problem?
...
Hello,
I have a report say,
Sno Address Name Age
when users click on Print button, they should be able to print the respective report
Can anyone help me how can i handle this in php, as i generate this report in php
I get all the info from table(MySql)
Thanks for the help
...
When i add a node to a tree, i store its parent address (i thought so) in it:
-- Client --
$parent = new Node();
$child = new Node();
$parent->add($child)
-- Class Node --
function add($child) {
$this->setParent(&$this);
$this->children[] = $child;
}
function setParent($ref_parent) {
$this->ref_parent = $ref_parent;
}
Bu...
How naive bayes classifier can be used for email classification using PHP?
...
Hello everyone,
I am trying to get my data which is hierarchically set up with a tree traversal model into an < ul> in order to show on my site.
Here is my code:
function getCats($) {
// retrieve all children of $parent
$query = "SELECT max(rght) as max from t_categories";
$row = C_DB::fetchSingleRow($query);
$max = $row["max...
Hey everyone, I have a database result that returns from a method. I need to push 4 more values onto the stack but I need to name the keys. array_push() automatically assigns an int. How can I overcome this behavior?
Array
(
[these] => df
[are] => df
[the] => sdf
[keys] => sd
[ineed] => daf
[0] => something
[...
I am having issues with pspell when searching for numeric values I end up with a blank white page and a segmentation fault in the server logs:
[Fri Aug 21 10:08:43 2009] [notice] child pid 30064 exit signal Segmentation fault (11)
When searching for a string everything works as expected. Below is the code I am using
$pspell_link = ps...
Hi friends,
I'm working on a property portal. I need to do implementation with gMap :/
I have a dynamic listbox and I need google map to dynamically put mark on map for my city and town selection...
appreciate helps!! thanks
...
I'm using XMPPHP to retrieve the roster of my application users GMail account.
Can XMPPHP also tell me the roster contacts online status?
I can't seem to find how to do that...
cheers.
...
hi,
I need a regular expression that identify special links.
I have an array with links, for example this one
array[1] = "http://domain.com/dfdf"
array[2] = "http://domain.com/dfgf"
array[3] = "http://domain2.com/derf"
I want to use a regular expression that extract links from this array under a specific domain (for example domain2)
...
What tools are available for developing PHP programs. I'm particularly looking for something that can hook into Drupal so you can step through code and add breakpoints. Basically, a Visual Studio for PHP would be the best. Anyone know of this? Can you guys maybe mention what you currently use (even if it's just mentioning the text editor...
Hello, I know that using single quotes around a string in PHP is faster than using the double quotes because PHP doesn't need to check for variable presence in the single quoted string. My question is which will perform better:
A) A double quoted string with variables present:
echo "foo bar $baz";
or
B) Single quoted with a concaten...