<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>http://wiki.whirlwind-ecommerce.com/mediawiki/index.php?action=history&amp;feed=atom&amp;title=Functions%3AfullyQualifyAllURLs</id>
		<title>Functions:fullyQualifyAllURLs - Revision history</title>
		<link rel="self" type="application/atom+xml" href="http://wiki.whirlwind-ecommerce.com/mediawiki/index.php?action=history&amp;feed=atom&amp;title=Functions%3AfullyQualifyAllURLs"/>
		<link rel="alternate" type="text/html" href="http://wiki.whirlwind-ecommerce.com/mediawiki/index.php?title=Functions:fullyQualifyAllURLs&amp;action=history"/>
		<updated>2026-04-24T12:45:05Z</updated>
		<subtitle>Revision history for this page on the wiki</subtitle>
		<generator>MediaWiki 1.24.2</generator>

	<entry>
		<id>http://wiki.whirlwind-ecommerce.com/mediawiki/index.php?title=Functions:fullyQualifyAllURLs&amp;diff=608&amp;oldid=prev</id>
		<title>71.163.185.8: New page: == Description == eV::fullyQualifyAllURLs($domain,$copy) returns a string where all non-fully qualified URLs are prepended with the value $domain. This is useful for pages that will be pre...</title>
		<link rel="alternate" type="text/html" href="http://wiki.whirlwind-ecommerce.com/mediawiki/index.php?title=Functions:fullyQualifyAllURLs&amp;diff=608&amp;oldid=prev"/>
				<updated>2009-02-25T03:06:51Z</updated>
		
		<summary type="html">&lt;p&gt;New page: == Description == eV::fullyQualifyAllURLs($domain,$copy) returns a string where all non-fully qualified URLs are prepended with the value $domain. This is useful for pages that will be pre...&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;== Description ==&lt;br /&gt;
eV::fullyQualifyAllURLs($domain,$copy) returns a string where all non-fully qualified URLs are prepended with the value $domain. This is useful for pages that will be presented outside of the domain of the website (emailed, used for API data, etc).&lt;br /&gt;
&lt;br /&gt;
== Syntax ==&lt;br /&gt;
$string = eV::fullyQualifyAllURLs($domain,$copy);&lt;br /&gt;
&lt;br /&gt;
== Paramaters ==&lt;br /&gt;
*$domain STRING REQUIRED&lt;br /&gt;
:: the domain name to prepend all non-fully qualified URLs. Should include protocol and no trailing slash (http://www.website.com).&lt;br /&gt;
*$copy STRING REQUIRED&lt;br /&gt;
:: the string that will have it's non-fully qualified URL contents prepended.&lt;br /&gt;
&lt;br /&gt;
== Return Values ==&lt;br /&gt;
Returns a string identical to the incoming $copy string, except for URLs that where non-fully qualified are no fully qualified with the passed $domain.&lt;br /&gt;
&lt;br /&gt;
== Examples ==&lt;br /&gt;
&amp;lt;source lang=&amp;quot;php&amp;quot;&amp;gt;&lt;br /&gt;
// set data to be fixed.&lt;br /&gt;
$dataString = &amp;quot;&lt;br /&gt;
This is some text with an &amp;lt;a href=\&amp;quot;page.html\&amp;quot;&amp;gt;absolute link&amp;lt;/a&amp;gt;, &lt;br /&gt;
a &amp;lt;a href=\&amp;quot;http://www.google.com\&amp;quot;&amp;gt;fully qualified domain name link&amp;lt;/a&amp;gt;&lt;br /&gt;
and a &amp;lt;form action=\&amp;quot;anotherpage.html\&amp;quot; method=\&amp;quot;post\&amp;quot;&amp;gt;form&amp;lt;/form&amp;gt;&lt;br /&gt;
&amp;quot;;&lt;br /&gt;
&lt;br /&gt;
// convert all non-fully qualified URLs to fully qualified&lt;br /&gt;
$newDataString = eV::fullyQualifyAllURLs('http://www.website.com',$dataString);&lt;br /&gt;
&lt;br /&gt;
// output the resulting string&lt;br /&gt;
echo $newDataString;&lt;br /&gt;
&lt;br /&gt;
/*&lt;br /&gt;
this string will look like the following:&lt;br /&gt;
--------------------------&lt;br /&gt;
This is some text with an &amp;lt;a href=\&amp;quot;http://www.website.com/page.html\&amp;quot;&amp;gt;absolute link&amp;lt;/a&amp;gt;, &lt;br /&gt;
a &amp;lt;a href=\&amp;quot;http://www.google.com\&amp;quot;&amp;gt;fully qualified domain name link&amp;lt;/a&amp;gt;&lt;br /&gt;
and a &amp;lt;form action=\&amp;quot;http://www.website.com/anotherpage.html\&amp;quot; method=\&amp;quot;post\&amp;quot;&amp;gt;form&amp;lt;/form&amp;gt;&lt;br /&gt;
*/&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;/div&gt;</summary>
		<author><name>71.163.185.8</name></author>	</entry>

	</feed>