I'm looking at building an API and was considering oauth for managing access to the api, but what I'm doing is more of a b2b system allowing businesses to access data to incorporate into their sites. I won't have any b2c at the beginning.
So oauth doesn't seem like the right tool for me, I've been looking for sources regarding building...
I'm trying to grab a specific bit of raw text from a web site. Using this site and other sources, I learned how to grab specific images using simpleXML and xpath.
However the same approach doesn't appear to be working for grabbing raw text. Here's what's NOT working right now.
// first I set the xpath of the div that contains the text...
I am constructing a large HTML document from fragments supplied by users that have the annoying habit of being malformed in various ways. Browsers are robust and forgiving enough but I want to be able to validate and (ideally) fix any malformed HTML if at all possible. For example:
<td><b>Title</td>
can be reasonably fixed to:
<td>...
I have previously used DTO in Flex which is mapped to a PHP DTO file. I used PHP through remoteobject (AMFPHP) to retrieve info from a MySQL database which is converted into the DTO type and then passed back to Flex to populate Datagrid.
The data used to populate the Datagrid is an ArrayCollection of DataVO, as follows.
Public Function...
Hi,
We are developing flash site with php.the problem is ...
It storeing the cache ,but we have to disable the cache using javascript or php script.
help me how to disable
...
Hello,
I am relatively new to The Zend framework having only been working with it probably two months at the most. I am now trying to get a list of results from a query I run, send it through the zend paginator class and display 4 results per page, however it does not seem to be recognising when it has got 4 results, I believe there is...
I made a drag and drop utility that make it possible for users to drag and drop elements directly on a workplace and create their page, I wound how can I save the user's work as HTML page!
...
I would like to setup two environments for my new website written in PHP. One - to develop new versions and test them. And second production where my actual stable version of website will be available.
Website in PHP will consist of many PHP and other files (JS, images, and so on). So I think how to prepare this environment in best way ...
All of the questions that I've asked recently about Python have been for this project. I have realised that the reason I'm asking so many questions may not be because I'm so new to Python (but I know a good bit of PHP) and is probably not because Python has some inherent flaw.
Thus I will now say what the project is and what my current ...
Using the standard MVC set up in Zend Framework, I want to be able to display pages that have anchors throughout. Right now I'm just adding a meaningless parameter with the '#anchor' that I want inside the .phtml file.
<?= $this->url(array(
'controller'=>'my.controller',
'action'=>'my.action',
'anchor'=>'#myanchor'
));
Thi...
Are there any good comprehensive PHP programming books or articles/tutorials out there that I can learn about how to integrate SMS communications with my PHP application?
I've done a Google search and found some information scattered about the web but I need a comprehensive resource. I want to learn everything I can about how a PHP appl...
hi, please i want help im a begginer
I have a form with checkboxes. Each have a value when the checkboxes are checked it's value is added to the sum... I want to save the checkboxes that are checked into a database.
<script type="text/javascript">
function checkTotal() {
document.listForm.total.value = '';
var sum = 0;
...
I currently have a custom session handler class which simply builds on php's session functionality (and ties in some mySQL tables).
I have a wide variety of session variables that best suits my application (primarily kept on the server side). Although I am also using jQuery to improve the usability of the front-end, and I was wondering ...
I am having trouble with PHP regarding encoding.
I have a JavaScript/jQuery HTML5 page interact with my PHP script using $.post.
However, PHP is facing a weird problem, probably related to encoding.
When I write
htmlentities("í")
I expect PHP to output í. However, instead it outputs í
At the beginning, I thought ...
I am updating some code from the old mysql_* functions to PDO. It connects without a problem, runs the query without a problem, but the resultset is empty. PDO::query() is supposed to return a PDOStatement object, yet I am getting true in return. No errors are reported.
Here is my code:
try
{
$DB = new PDO("mysql:host=localhost...
I am wondering if you use unset variables, empty strings (or 0's), or "None" to determine if a variable is "None"?
The case I'm thinking of is, I'm retrieving something from the database, but find that the value is not set for the record, usually determined by the fact that there are no records or a null value. This will display to the ...
Using Zend_Form, how would I create form elements like this:
<input type="text" name="element[1]" value="" />
<input type="text" name="element[2]" value="" />
// etc...
...
It bothers me just now and got it solved. Just want to know how you'd do it.
...
I'm working on an 'advanced search' page on a site where you would enter a keyword such as 'I like apples' and it can search the databse using the following options:
Find : With all the words, With the
exact phrase , With at least one of
the words, Without the words
I can take care of the 'Exact phrase' by:
SELECT * FROM myTab...
Hello,
I'm having a little problem with the following:
When I execute this line:
echo exec(createDir($somevariable));
I get this error:
Warning: exec() [function.exec]: Cannot execute a blank command in /home/mydir/myfile.inc.php on line 32
Any ideas.
Thanks.
...