php

Twitter API: count followers, count total retweet, and retrieve RSS feed of someone's twitter page

Hi, I am new to Twitter API and only know that we can pull someone's Twitter feed from Twitter through RSS feed on that person's Twitter page/ profile. But, how can I pull more information of that person's Twitter page? For instance, His/ Her followers. Total of his/ her retweet items. http://www.qapture.net/ There are a couple of...

How to use jquery bubble popup for more than one content

Hello i need to load an image from an database and the popup should be there when i keep the mouse over the images...i used http://www.vegabit.com/jquery_bubble_popup/ $(document).ready(function() { $('#dummy1').SetBubblePopup({ innerHtml: '<p>You can set any HTML tag<br />inside this popup!<br /><a href="#">this is a link</...

[php] [spin] Finding string and replacing with same case string

Hello, I need help while trying to spin articles. I want to find text and replace synonymous text while keeping the case the same. For example, I have a dictionary like: hello|hi|howdy|howd'y I need to find all hello and replace with any one of hi, howdy, or howd'y. Assume I have a sentence: Hello, guys! Shouldn't you say hel...

Failed ARO/ACO node lookup

I'm getting a weird error when running through the tutorial in the e-book, "Practical CakePHP Projects" in chapter 8, "A Cake Control Panel". Everything is built out, the DB is set-up and completely blank, and I'm running through the test at the end of the chapter to verify everything is working... I'm not sure what happened, but I keep ...

PHP frameworks with AJAX scaffolding?

Does someone know of any PHP frameworks which can create scaffoldings with AJAX? ...

How much directory separation should my framework have?

Hey guys, just a small question here.. (hopefully!) I've been trying a bunch of different directory structures for my PHP MVC framework. While doing this, I thought of a few reasons to separate different parts of the application from each other. For instance, let's say this is my current structure: - index.php - private/ - applica...

send email using php

How do I know if my host is allowing me to send emails using PHP mail() function? Is that possible to check with phpinfo() output? ...

PHP function to build query string from array - not http build query

Hello I know all about http://www.php.net/manual/en/function.http-build-query.php to do this however I have a little problem. It "handly" turns boolean values into ones and zeros for me. I am building a little PHP wrapper for the Stack Overflow api and parsing an option array and then sending this onto the api breaks things..(doesn't li...

Populating an Extjs graph with json not working

So What Im trying to do is populate an Extjs line graph. Ive created a JSON store that pulls json from a remote page and for some reason my graph is not being populated. Heres my Ext code: Ext.onReady(function(){ var store = new Ext.data.JsonStore({ autoDestroy: true, url: 'http://myURL.com', storeId: 'graphStore', roo...

setting a form field if a table field is not empty

I have the following code: $theinput = new inputSmartSearch($db, "chooseproduct", "Choose Product", $therecord["product"], "Choose Product", TRUE, NULL, NULL, TRUE, $required=true); $theinput->setAttribute("class","important"); if(isset($therecord["product"]) || isset($therecord["cost"])) { $theinput->setAttribute("value", ...

Php Record Buffer Fread Problem

function Ifurl($subject) { $pattern = "/http:\/\//"; $regex = preg_match_all($pattern, $subject, $array); if ($regex == 1) { return true; //true that it exist } else { return false; //flase mother fucker! } } function g...

PHP date problem

Hi, I have web service in PHP which gets dateTime object (from asp) . I want to parse this date in my custom format . The date originally is in format "2010-07-05T00:00:00+02:00" . When I'm trying this: $oDate = strtotime($date_from_webservice); $sDate = date("d.m.Y",$oDate); echo $sDate; I'm getting date "07.04.2010" which is one da...

Convert Money to Text in PHP

I need to convert say $89.50 to Eighty-Nine Dollars and Fifty Cents using PHP. Is there a function I'm missing somewhere? ...

PHP: How to convert array to XML with support to attributes (DOMi ?)

I'm using DOMi ( http://domi.sourceforge.net ) to create XML from arrays. But I don't know how to create attributes in these XML (in arrays, so these attributes appear in the XML). How can I construct these arrays so I can get some tags with attributes after the convertion? Thank you! ...

Suggestion of best practices for implementing a Web Chat

I want to develop a good chat in my page, I know how to program in php, actionscript 2 and 3, and how to manage MySQL databases. So, given that I know to program, what do you suggest? Any good tutorials for making one? good open source projects? Implication of using this technologies in chats? ...

Is rtmp the only way to protect images

I have images that I need to manage access to. I've come across osmf and rtmp streaming which are flash/adobe technologies and would require me to install a special server. Anyone knows of other ways to get the same effect with php. Edit: By "manage access to" I mean that the average user would not be able to save the page and save the...

Redirect Search results from google to a specific page.

HI, I have a specific requirement, when a user searches in google.com which returns me a list of results and one of the results is my website but it is pointing to a different page. I need help in 2 places, Client is planing to enhance my website so that what ever link of my website appears in google results should show as cars.com/s...

How can I fix CodeIgniter from tinkering with my internal links to pictures?

I am using the CodeIgniter framework to work on my latest website. In my views, I am trying to load graphics from another folder, external of the CodeIgniter installation. However, CodeIgniter is rewriting the links when I use absolute links to the resources. Is there a way I can configure it to allow absolute links, rather than re-wri...

Best way to handle server-side user files?

I'm trying to make a webapp. The application I am making for myself to help with foreign language translations for classes at my college, and I am hoping to make it available online. All the data that the site saves is in a format like: section 1 foreign text translated text section 2 foreign text translated text T...

What is a good way to set up a site template with PHP on IIS6?

I am not very experienced with PHP. I have a site I'm maintaining that is on IIS6 using PHP. Right now it is using include files and querystrings to server up content. For example: http://mysite/index.php?maincontent=services&amp;subcontent=service1&amp;nav=subnav1 We want to change the site so that URLs look more like (for example):...