As I am well aware that PHPDom can solve half of my problem, I'm in need of a way (not necessarily regex) to be able to find a certain DOM element based on a given innerHTML.
say for example i got this code:
<tr>
<td class="ranking_rank" style="vertical-align:middle;">48697</td>
<td class="ranking_ign" style="vertical-align:middle;...
I have the TPLancer component for Joomla installed on my site and I am trying to add some more information to the profile page of both the Freelancer and the Buyer. I am no genius with PHP or mySQL but can kind of bluff my way thru usually.
The information currently displayed on the profile pages is just data pulled from the database. I...
I think the title is clear.
...
I was talking with one of my programmers earlier and he showed me a piece of code he was considering:
foreach($_REQUEST as $var=>$val) {
$$var = addslashes($val);
}
He wanted to be able to use $varName instead of having to write $_REQUEST['varName']
I advised him to use the mysql_real_escape_string instead of addSlashes and to no...
Hi, can someone please tell/type here how to generate models from an existing DB using php and doctrine ?, what i did was, I placed the Doctrine folder + Doctrine.php inside a folder named e.g test , now within that test folder I added a php script named test1.php, and within that test1.php , here's the code that I used
include_once('D...
So i installed XMAPP to view my php site im developing for a php mysql class at my local college and I ran aground hours ago and have been searching frantically for answers since. whenever i try to view my site all i see is this
" . $row['tid'] . ""; echo $id; $thisName = "\n
" . $row['fname'] . " " . $row['lname'] ."
"; echo $thisName...
Hi guys, i hope you can cast some light on my problem. I need to do an AJAX / PHP / MYSQL application to display posts and stuff on the page i'm writing.
I only discovered how to do some simple stuff in PHP after taking some mushrooms but that was years ago and now i don't have mushrooms and i'm just stuck!
So here's the problem:
i t...
Here is my original query...
SELECT `id`
FROM `properties`
LIMIT 10, 20
The LIMIT condition is for pagination.
Now, I have to get all like before, but I need to get only a third of rows where a condition is present.
I came up with this, just throwing LIMIT 30 in before I figured out how to do (total rows matched / 3) * 2.
SELECT...
It's a big question but I just need a push in the right direction.
I have a website being released soon. One of the services it provides is image hosting. I'm thinking about writing a desktop app in Java to help facilitate mass uploads as well as forcing me to use Java for real-world experience.
How does java send "requests" to an API...
Ok, I ll try to be as concise as possible.
What I want:
I want to build a website that will allow clients to sign up for a small fee and allow them to upload content to their UNIQUE USER FOLDER.
General users will then be able to sign up for free and request to download specific files from various clients (not just one). Administrato...
I'm working on a site that will create pre-set packages of items. To start, I'm using Amazon to test the idea, pulling some affiliate sales, and then I'll fulfill orders myself if the idea deems successful.
My goal is to have a "buy now" type button, and upon clicking, the user will arrive at an Amazon checkout now page, with a cart pr...
Last week I started playing around with LAMP Ubuntu and I didnt have any issues. Today some code wasn't working so I tried running this in index.php:
<?php phpinfo(); ?>
This doesn't work when I connect to localhost in my browser, but it works in testphp.php at localhost/testphp.php
Any suggestions?
Thanks
...
I am attempting to encrypt certain database fields by adding a call to mysql AES_ENCRYPT (and AES_DECRYPT) using Doctrine DQL Hooks.
for SQL SELECT's I have a preDqlSelect() in my Doctrine_Record_Listener class, which goes through each parameter in the select fields, and adds a AES_DECRYPT() for encrypted fields.
But, it looks like ca...
Why does this code
$string = "!@#$%^&*(<[email protected]";
echo $string;
only output:
!@#$%^&*(
Is this is a PHP bug?
...
Hello
in Codeigniter I am building an Authentication system for my web site and to achieve that I use session library
session->set_userdata('username')
this will save the session -I believe- for some time
I want to provide a "remember me" checkbox in the login form so the user can save the session forever - could not find a way...
Dear all,
I want to write the regular expression in php for matching the line within a double and single quotes. Actually I am writing the code for removing comment lines in css file.
Like:
"/* I don't want to remove this line */"
but
/* I want to remove this line */
Eg:
- valid code /* comment */ next valid code "/* not a comme...
The signature method is HMAC-SHA1, and I already have <SignedInfo> generated. The problem is that I am not sure what to use as the key in the HMAC calculation.
I noticed that there are two <Entropy> with enclosing <BinarySecret> from the initial request (RST) and response (RSTR). I read from WS-Trust that this indicates that I could ge...
I have a query like this
SELECT *
FROM test JOIN test2 ON test.id=test2.id
WHERE test.id IN (562,553,572)
GROUP BY test.id
Its results are ordered like this: 553, 562, 572...
But I need the same order that I specified in the IN(562,553,572) condition. How can I do that?
...
I'm debating contracting the development of a web application but don't want to insult a professionally experienced programmer with my budget if it's unrealistic.
Can someone with expertise here comment on how much time you'd spend or payment you would expect to program the following type of project from scratch?
Project is basically ...
Please help, how do I configure apache (wamp) in windows when I want to use symfony as my php framework, I followed the guide(pdf) from the symfony site. But I end up with this when I access http://127.0.0.1:8080/:
But I end up with this, when I try to access http://localhost/sfproject/web/frontend_dev.php
What is the correct url to a...