I have an array of reflectionClasses.
I need to get a reflectionObject from one of these and then call its constructor with some parameters.
The point is to instantiate an object without knowing the class name (i'll know it at runtime).
Example, just to render the idea:
foreach (Conf::get_array() as $reflection_class) {
//it's n...
Hi,
I have registered an iframe application. I want to give invite functionality. I have copied a php code for invite functionality but the invite functionality is not working only blank page is displayed.My code is
<fb:request-form
action="<? echo $invite_href; ?>"
method="post"
type="<? echo $app_name; ?>"
content=...
"<div id="diva">this is div a</div>"
"<div id="divb"> this is div b</div>"
now how can I change the text of div dynamically by button click. here also mention that all text come from a database. when I click the button then it detects the div id and replace the text with desire text.
All code will be in PHP.
...
Hi,
I am new to PHP. I am trying to hide total number of 'Views' and 'Replies' column on the forum view page. I am not sure what all changes would be required.
My working environment consists of phpBB v3.0.0 and MySQL v4.1.1. Would appreciate any help or inputs.
Best Regards,
Gaurav
...
$result = mysql_query("SELECT position
FROM ".$this->table_name."
WHERE c_name = '".$chName."'");
while($row = mysql_fetch_array($result))
{
return(array($row['position']));
}
I am getting the same value, even if i change the combox... i need the ID of the combox box when its changed. But for every ti...
Hey guys, I want to parse some xml but I don't know how I can get the same tags out of 1 element.
I want to parse this:
<profile>
<name>john</name>
<lang>english</lang>
<lang>dutch</lang>
</profile>
So I want to parse the languages that john speaks. how can I do that ?
...
I have problems displaying the Unicode character of U+009A.
It should look like "š", but instead looks like a rectangular block with the numbers 009A inside.
Converting it to the entity "š" displays the character correctly, but I don't want to store entities in the database.
The encoding of the webpage is in UTF-8.
The character...
$sql = "SELECT *
FROM ".$this->table_name."
WHERE position RLIKE '^([0-9]+>){1,1}$' AND c_group = '".$this->Group."'
ORDER BY c_name";
RLIKE '^[0-9]+>$'
Merge the below term in y query... i am getting errors.
...
i have installed wamp server and vsphp and my development environment is Visual Studio 2008. I was easily able to debug java script by turning on script debugging in IE, however now i have a java script which calls a php script and processes it's output, i want to know how in visual studio can i do that, so that it can execute php code b...
$values = array();
while($root = mysql_fetch_array($res)){
$root["prefix"] = $this->get_prefix($root['position']);
}
return $values;
I am getting the output as >>,position name
But I want... >>position name... is it possible to remove the comma.
...
I have this code and it's giving me an undefined error if country is not a variable in the URL. I've never had this problem before so it's obviously something to do with server settings but I'd rather not change those because this is probably done for security purposes. I've searched Google and can't find the workaround, although I'm sur...
Hi,
I'll go for interview soon and the recruiter told me to prepare a bit about joomla!
I use to develope in PHP5 for several years, and i know about OOP.
I'm not really scared about joomla! but i'm wondering what should i know about it ?
Any feedback for similar interview ? or any ideas on what i should know ?!
Thanks in advance
...
My query is how can i store data in secondary memory by fetching it from database and then displaying it in small units using zend framework coding ?
...
I'm a PHP/MySQL developer who hasn't used any form of versioning aside from copy/paste into a backup folder. I develop Windows, as well. Where should I go, and what should I do to start using Versioning and Control software?
I'm curious, do these methods also apply to the databases you're using and their schema's?
...
I have many php script with several iterations on rows from a mysql
database, every iteration opens another extra connection to get extra data not included in the original select. Suddenly, somewhere in the middle of theese scripts the Connection from Apache resets while is executing the script (and reading from the mysql database).
In ...
I am analyzing someone else's PHP code and I've noticed that the input HTML has many hidden input fields with names that end with '[]', for instance:
<input type="hidden" name="ORDER_VALUE[]" value="34" />
<input type="hidden" name="ORDER_VALUE[]" value="17" />
The PHP page that processes this input acquires each value like this:
for...
hi,
we are looking at moving our web development from a .net platform onto linux and php (mainly due to cost issues)
what are people using as their IDE to write php in, how do you go about debugging (i've only written php in text editors before and struggled stepping through etc), are we better of writing on a Linux or a windows platfo...
function saveFile($catId,$docuTitle,$linkTitle) {
$result = mysql_query("INSERT INTO categories (cd_title, cd_link)
VALUES ('$docuTitle','$linkTitle') WHERE c_name = '$catID'");
return 'yes';
}
I want to insert the cd title and cd links based on the catergory selected.
...
How to insert a NULL or empty value in a mysql date type field (NULL = yes).
If I try to insert an empty value it inserts 0000-00-00 but I want to keep it empty or NULL.
Thanks for help.
UPDATE
Please see that I have set default value as NULL
`payment_due_on` date DEFAULT NULL,
Ok OKies
I have got it working now
function get_m...
Hi there,
My gateway sends(posts) my server an xml datafeed when a purchase is made. The XML looks something like this:
<?xml version='1.0' standalone='yes'?>
<foxydata>
<datafeed_version>XML FoxyCart Version 0.6</datafeed_version>
<transactions>
<transaction>
<id>616</id>
<transaction_date>2007-05-04 20:53:57</transaction_date>...