Hi guys.
I have :
<a href="http://abc.com">Title</a>
And :
<a href="http://xyz.com">Title</a>
I want to replace link to text "Title", but only from http://abc.com. But I don't know how ( I tried Google ), can you explain for me. I'm not good in PHP.
Thanks in advance.
...
I'm currently using this code to get the number of subscribers to my blog:
$whaturl="http://api.feedburner.com/awareness/1.0/GetFeedData?uri=http://feeds.feedburner.com/DesignDeluge";
$ch = curl_init();
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_URL, $whaturl);
$data = curl_exec($ch);
curl_close($ch);
$xml = ...
Hi,
I'm trying to make a page for use with wordpress and it's almost working,
The page I want to use is an HTML page with designated space for it within certain DIVs.
I'm encountering the problem of wordpress using the wrong links to kind of everything. I will probably have to change every link to http://www.mydomain.com/sub/folder/imag...
phpQuery is a really nice tool which has helped me tremendously in the past parse well-formed XHTML and XML documents, but I have recently run into a problem trying to select elements that have colons in their tagname, such as the following:
<isc:thumb><![CDATA[http://example.com/foo_thumb.jpg]]></isc:thumb>
I've tried to use...
Possible Duplicate:
Cannot modify header information - headers already sent, Why its happening
Hi
I am new with php and I was hoping you could help. I hav a function that uses the javascript alert:
Function promptuser($msg)
{
echo "<script type='text/
javascript'>
alert('$msg');
</script>";
}
Now I have saved this f...
I have a database with blog entries in it. The desired output I am trying to acheive is 3 entrys displayed using the css3 multi paragraph and then another 3(or more) formatted with the codeigniter Character_limiter. So I need 3 displays formatted one way and 3+ formatted another way on the same page.
So far this is what I have, but i ...
Jquery i dont have alert and firefox i dont have anything in return. The code was working before, database query have successfull records also. What i am missing???
Jquery ajax.
$.ajax({
type : "POST",
url : "include/add_edit_del.php?model=teksten_display",
data : "oper=search
}
});
PHP
...
I have a PHP server script that SELECTs some data from a MySQL database.
As soon as I have the result from mysql_query and mysql_fetch_assoc stored in my own local variables, I want to delete the row I just selected.
The problem with this approach is that it seems that PHP has done pass-by-reference to my local variables instead of pas...
I wonder if there is a way to get offsets and delimiters while I am splitting a string in ruby analagous to PHP preg_split:
preg_split("/( | |<|>|\t|\n|\r|;|\.)/i", $html_string, -1, PREG_SPLIT_DELIM_CAPTURE|PREG_SPLIT_OFFSET_CAPTURE);
I imagine I can achieve it by traversing string by characters or using something heavy as treet...
I am trying to write a snippet of PHP to connect to a third party's API via SOAP to enter some data into their database. The API requires me to pass several mandatory fields for every call (username, password, companyid, entitytype) in addition to the mandatory data fields. It also requires me to call the "ValidateEntity" funciton befo...
I'm at a loss here. I've defined an abstract superclass in one file and a subclass in another. I have required the super-classes file and the stack trace reports to find an include it. However, it then returns an error when it hits the 'extends' line: Fatal error: Class 'HTMLBuilder' not found in View/Markup/HTML/HTML4.01/HTML4_01Buil...
The code
$global_obj = null;
class my_class
{
var $value;
function my_class()
{
global $global_obj;
$global_obj = &$this;
}
}
$a = new my_class;
$a->my_value = 5;
$global_obj->my_value = 10;
echo $a->my_value;
echoes 5, not 10.
"Upon first examination, it would seem that the c...
Hi is there a free avaible translation backend with database avaible which can handle multiple users(no login needed), multiple languages (UTF-8) and provides automatic google translation?
I just need this tool to fill a database (preferable mysql) with simple tables like this:
language | label | text
english | _helloworld | Hello Wor...
I have installed SQLite on my UNIX system, and am planning on accessing it from PHP. However, the database is created in the directory I initialize it in, and if a script runs in a different directory a new database is created in the same directory.
Is there an option for SQLite (or the PHP wrappers) to create the databases in one loc...
Hello,
i'm a very new user to flex (never use flex, nor flashbuilder, nor action script before), but i want to learn this langage because of the beautiful RIA and chart it can do.
I watched the video on adobe : 1 hour to build your first program but i'm stuck :
On the video it says that we have to provide a PHP class for accessing da...
Hey I have this kinda structure in my ini file I want to be able parse a variable inside a variable value
site.url = "www.example.com"
site.url.images = site.url "/images"
However, site.url is not parsed inside the site.url.images.
I am using zend config ini to parse my ini files. Is there a solution beside adding this feature mysel...
Curious. I'm starting to broadcast high school football games online, and it uses a program to broadcast the feeds off my computer. However, when I shut the program down or the computer down, the server goes offline and guests won't be able to access the feeds.
Is there any kind of code out there that I can post onto my website that wil...
If I have a ZIP file whose structure is:
-directory1 DIR
-files in here
-directory2 DIR
-more files in here
Using pclzip.lib.php how can I open up this ZIP file and extract directory1 (recursive) into a directory and then extract directory2 (recursive) into another directory.
...
I have an XML file that needs parsing in PHP. I am currenlty using simplexml_load_file to load the file like so:
$xml = simplexml_load_file('Project.xml');
Inside that XML file lies a structure like this:
<?xml version="1.0" encoding="ISO-8859-1"?>
<project>
<name>Project 1</name>
<features>
<feature>Feature 1</feature>
<fea...
I sometimes see one or the other in my server logs.
Thank You
...