I'm trying to make a PHP (5) object that can iterate through its properties, building an SQL query based only on its public properties, not its private ones.
As this parent object method is to be used by child objects, I can't simply choose to skip the private properties by name (I won't know what they are in the child objects).
Is the...
I'm looking to use a NoSQL solution for my next project, which will be written in PHP. What choices do I have in terms of NoSQL solutions that can easily interfaced via PHP? I haven't done much thinking about the architecture yet, so I'm not sure what my needs will be; I'd simply like to know what my choices are so I don't build somethin...
Hello,
There are a lot of IDE posts here but not for portable.
Can anybody help me find a good portable PHP IDE? I am looking for this features:
FTP && SFTP Sitemanager
Syntax Highlighting
Auto-complete (Optional)
I am fine even with a paid version. I tried aptana on my usb but the experience was not good.
...
I need the unix timestamp - the timestamp i have. Then display the time between like on twitter.
...
Hi all,
i want to control the drop down box to control show or hide statement. I do like this but it seems it doesn't work, i have it working if im using radio button.
can help me with the code? which part am i wrong?
thank you.
$dbcnx = mysql_connect('localhost', 'root', '');
mysql_select_db('dbase');
if($_POST['gred'])$gred=$_POST...
Hi,
I am working on a project which needs to extract text form a predefined div tag.
My requirement is to send the content in the target div in a email body. I have to use javascript or php for this task.
The Process :
When a given link will be clicked; a javascript function will trigger and read that target div. The content of the d...
I have a C++ object, Graph, which contains a property named cat of type Category. I'm exposing the Graph object to PHP in an extension I'm writing in C++.
As long as the Graph's methods return primitives like boolean or long, I can use the Zend RETURN_*() macros (e.g. RETURN_TRUE(); or RETURN_LONG(123);. But how can I make
Graph->ge...
I asked Google to help me I got no luck. :-(
Here's the particular code that generates the error:
$this->conn->query("UPDATE tz_members SET confirm='yes' WHERE usr='".$uname."'");
The whole function is the following:
function update_confirm_field($code) {
$uname = $this->conn->query("SELECT usr FROM tz_members WHERE
...
Hello,
I am writing a basic wizard for my web site. It will have 4 steps, and each needs to have its own URL. Each step must first validate a form before moving on.
If the form for a given step fails to validate, I don't want the URL to change. But if it passes, I do want it to move on.
What is the preferred way to write this? Usi...
Hello,
The HTML table below with mysql_query($sqlStr3) (the one with the word "Joined" in its row) does not echo if the result associated with mysql_query($sqlStr1) has a value of zero. This happens even if mysql_query($sqlStr3) returns a result.
In other words, if a given loginid has an entry in the MySQL table "login", but not one i...
i have a value store in variables as 11:30.
I need to add a minutes to this variable..Example, adding 15 minutes to make it 11:45
can i do that ? i tried to use time() but it will give current time... but i want to add time to the specified variable
...
Hi everyone,
Need to count the number of rows for each category in a MySQL table using PDO. For example, I need to have the number of entries for category 1, category 2, etc. If possible, I would like to do this without having to write out an SQL statement for each category.
Thanks!
...
So I've got a form... The relevant CSS is (I think):
.libform input {
background-color:transparent;
color:#000;
border-left:0;
border-right:0;
border-top:0;
border-bottom: 1px solid #555;
margin: 0 5px 1px 5px;
display:inline-block;
}
.libform input:focus {
border:0;
border-bottom: 1px dotted #000;
color:#939;
background-color:#fed;
}
....
Background: I am writing a script for a company that will allow users to create FTP accounts through a web interface. In the background, the script must run a bunch of commands:
Add the user to the system (useradd)
Open and edit various files
mail the user via sendmail
and a few other things...
I'm basically looking for the most sec...
I want implement something like facebook photo tagging, but I have no idea how should I do that?
is there any link or tutorial to help me how and where I must save tag and show on special photo???
...
The paypal ipn i set is sending the messsege in my site, which i get from paypal ipn history:
mc_gross=39.99&invoice=5f8907aea6ab76a1bc92c761211575a7&protection_eligibility=Eligible&address_status=confirmed&payer_id=EMQD7SB7STQQ2&tax=0.00&address_street=1
Main St&payment_date=13:11:02 May 12,
2010
PDT&payment_status=Completed&c...
I need a way to see all the defined variables of the current PHP instance.
By currently defined I mean all the globals, all the local to THIS scope and all the locals to other scopes.
Is there something built in?
...
I have button on the page that being used as a link to another page. So when the user clicks the button they are redirected to the right page.
I am using the Selenium extension for PHPUnit and I would like to test that the button is correctly redirecting the user. Here is the HTML that I am trying to test:
<button onclick="window.locat...
I'm working with an intranet system that, on each page, checks the user's cookie, verifies that they can see the current page based on database permissions, and records a page hit that includes their id and the page URL.
I just noticed that in the pagehits table, I see an entry for 404.php (my custom 404 page specified in the Apache con...
Hi!
I'm currently developing for an application (www.domain.se, .eu) where we're experiencing problems with sessions not propagating across domains. Internet Explorer is the root cause of this, as it will differentiate sessions depending on whether we're typing in "domain.se" or "www.domain.se". Due to some unfortunate redirecting, we're...