Using a simple PHP call and Jquery script I'm displaying my twitter feed on my site, it all works fine but I'd like the links on my tweets to be in tags like on twitter.com.
example XML:
<text>There are over 20,000 design based businesses in London alone - http://icanhaz.com/designbusinesses</text>
I'd like to get <a href="......
Hi All,
My apologies in advance, this question may not be the clearest, but I will try my best to articulate.
In my PHP script I'm processing a string. I want to grab whatever is in between brackets [ ] and execute a google local search (see http://code.google.com/apis/ajax/playground/#show_driving_directions) on the string. Once the ...
All of our tables are currently set with a LATIN1 character set. A user is currently capable of putting together unicode sequences on the client and trying to embed them into our application. What's the best way to discard all Unicode characters from hitting our database? Even better, that's the best way to ensure that only characters ba...
If my URL is http://www.server.com/myapp/stuff/to/see and my directory structure on disk is htdocs/myapp/*, how can I extract the /myapp part? Also, what if there was no application folder and the application root was just '/'? Is there a predefined variable for getting that value?
What I want is a function that is able to trim /myapp o...
Hello,
I'm having trouble understanding how to pass user-defined types in PHP SOAP calls. Could someone give me a hint (or a link to a manual) please?
Example:
In my WSDL file, I define the type:
<types>
<schema targetNamespace="http://example.com/CustData"
xmlns="http://www.w3.org/2000/10/XMLSchema">
<element name="perso...
Hi friends,
I'm in trouble with a group of hackers. they hacked my client's site few times, and my client gets more angry :( my client lost his database (which has hundreds records), and had to enter all :(
now I'm following some more introductions;
fixed file permissions
changed ftp and host login info
cleared all remote mysql acce...
Lets say i have some code to iterate through an XML file recursively like this:
$xmlfile = new SimpleXMLElement('http://www.domain.com/file.xml',null,true);
xmlRecurse($xmlfile,0);
function xmlRecurse($xmlObj,$depth) {
foreach($xmlObj->children() as $child) {
echo str_repeat('-',$depth).">".$child->getName().": ".$subchild."\n";
...
When Ive created a new controller, ie in this case Authenticate, Ive also created the folder and file application/views/scripts/authentication/index.phtml
Not a problem when hitting the url http://dev.local/authentication/ but when calling any action ie http://dev.local/authentication/login, I get the error below.
Message: script 'aut...
I would like to ask you some questions about LGPL, I've used a library
written on PHP with license LGPL, I had made software and I'm not
license it using LGPL or GPL,
The libraries is a class' form
I had modified the libraries and made a class to access the library,
and I access the library through that class, but I'm not make it
inheri...
I'm looking for a function identical to DateTime::createFromFormat but I need it to work in an environment running a version of PHP which is older than v5.3.
Basically I need to provide a format, like you'd use with the Date() function, and I then need to parse/validate a string against that format, and return a timestamp if the string i...
I need to read multiple rss feeds from different blogs and get just the title, date, and url for the last 10 posts of each site, and then format those lists however I like.
I'm working on creating a buzz type website. Somewhat like affbuzz.com.
Please let me know the easiest and cleanest way of doing this, either in php, or jquery etc....
Hi,
I have two tables. One is items, and one istags. Query's here.
The idea is to create a search box to search through the items and then narrow down the search by selecting tags. (Some kind of faceted search).
After fiddling around with mysql tutorials i came up with this:
SELECT `items`.`id`, `items`.`name`, `items`.`pay`, `items`...
Hi Guys new to this site but a big fan.
Right the problem. It's come to our attention that sometimes on Internet Explorer the post variable don't come through.
This is our basic ajax function
function GetXmlHttpObject(handler){
var objXmlHttp=null
if (navigator.userAgent.indexOf("Opera")>=0){
xmlHttp=new XMLHttpRequest();
xmlHt...
Hi All,
How do I grab the email inside a string using Regex?
My string is as follows
"First Last <[email protected]>"
I want to grab "[email protected]" and store it somewhere.
Thanks in advance!
...
Which PHP SPL interface allows objects to do this:
$object->month = 'january';
echo $object['month']; // january
$record['day'] = 'saturday';
echo $record->day; // saturday
e.g. such as in libraries like Doctrine (Doctrine_Record)
how do I implement this? I've tried using ArrayObject, but they don't behave as I thought they would.
...
Ok, so I'm loading a list of images by directory using PHP:
<?php
# fetch image details
$images = getImages("marc/img/livingrooms/");
# display on page
foreach($images as $img) {
echo "<li><img src=\"{$img['file']}\" title=\"\" alt=\"\"></li>\n";
}
?>
Then I'm using the Galleria JQuery plugin to style thos...
How do i do in jquery, to check if there's anything in isset SESSION user_message, each 1 seconds, and if there is then display #box else dont..
thanks
...
I have a web page with a bunch of links. I want to write a script which would dump all the data contained in those links in a local file.
Has anybody done that with PHP? General guidelines and gotchas would suffice as an answer.
...
I have a products array of widgets.
Some widgets have the reserved period symbol in their names.
The problem occurs when php meets the period, the rest of the widget name is disregarded. How could I read the widget in as a string literal so that the period symbol will not interfere?
unset($products[$widget]);
I could replace the p...
I am attempting to create a UPnP method on an internal PHP server if at all possible. I need it to be mostly platform independent so that it may run on Windows, OSX, or Linux.
I believe I can get my SOAP protocols working for UPnP, but first I must determine the IP address of the gateway/router that the server goes through. Is it possib...