<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>BrainWired Blog</title>
	<atom:link href="http://www.brainwired.com/blog/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.brainwired.com/blog</link>
	<description>Just another WordPress site</description>
	<lastBuildDate>Sat, 09 Jul 2011 20:32:13 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1.3</generator>
		<item>
		<title>How to strip all html tags except some</title>
		<link>http://www.brainwired.com/blog/strip-html-tags/</link>
		<comments>http://www.brainwired.com/blog/strip-html-tags/#comments</comments>
		<pubDate>Sat, 09 Jul 2011 20:27:36 +0000</pubDate>
		<dc:creator>BrainWired</dc:creator>
				<category><![CDATA[Tutorials]]></category>

		<guid isPermaLink="false">http://www.brainwired.com/blog/?p=94</guid>
		<description><![CDATA[If you are building an application where you allow your users to input content through and HTML editor, often they will simply copy and paste from Word or other applications that might add some weird tags which might endup breaking &#8230; <a href="http://www.brainwired.com/blog/strip-html-tags/">Continue reading <span class="meta-nav">&#8594;</span></a>

<li><a href='http://www.brainwired.com/blog/send-email-php/' rel='bookmark' title='Permanent Link: How to send email with PHP'>How to send email with PHP</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<!-- Start LikeButtonSetTop --><!-- End LikeButtonSetTop --><p>If you are building an application where you allow your users to input content through and HTML editor, often they will simply copy and paste from Word or other applications that might add some weird tags which might endup breaking your layout or causing the content not to display as expected.</p>
<p>One solution is to clean the content prior to displaying it or prior to posting it into the database.  Eitherway, the resulting content will display with only the chosen HTML tags, thus giving you more control on the final display to your visitors and removing all junk code that nobody wants and that could cause display headaches for you.</p>
<pre class="brush: php; title: ; notranslate">&lt;?php
 $sampletext = '&lt;b&gt;Some bold content&lt;/b&gt; &lt;a href=&quot;&quot;&gt;Test&lt;/a&gt;&lt;h3&gt;some more text&lt;/h3&gt;&lt;p&gt;More content here&lt;/p&gt;';

echo strip_tags($sampletext);
 //The above code usses the built in PHP function strip_tags, which will remove/strip all tags.

 echo strip_tags($sampletext, '&lt;p&gt;&lt;a&gt;&lt;h3&gt;');
 //The above code uses the same built in PHP strip_tags function, but we added some exceptions to it.   Any tag listed as an exception will not be removed/striped.
?&gt;
</pre>
<p>As you can see it is pretty easy to control what tags get stripped and which ones do not.</p>
<p>You can also apply the same strip_tags function prior to posting to a MySQL database, so that the content will be saved only with the enabled tags you allow or no tags if you did not specify any exceptions.</p>
<p>No matter if you use the function prior to posting to your database or after, it will save many headaches and you will retain control of the display of the content on the site and prevent other script from breaking due to junk code.</p>
<div class="shr-publisher-94"></div><!-- Start LikeButtonSetBottom --><!-- End LikeButtonSetBottom -->

<li><a href='http://www.brainwired.com/blog/send-email-php/' rel='bookmark' title='Permanent Link: How to send email with PHP'>How to send email with PHP</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.brainwired.com/blog/strip-html-tags/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Page redirection using PHP</title>
		<link>http://www.brainwired.com/blog/page-redirection-php/</link>
		<comments>http://www.brainwired.com/blog/page-redirection-php/#comments</comments>
		<pubDate>Thu, 23 Jun 2011 20:48:01 +0000</pubDate>
		<dc:creator>BrainWired</dc:creator>
				<category><![CDATA[Tutorials]]></category>

		<guid isPermaLink="false">http://www.brainwired.com/blog/?p=83</guid>
		<description><![CDATA[A very easy way to redirect users to another page is by using the following code: That&#8217;s it, as you can see this is pretty simple. Just make sure that this code is added to the top of your page &#8230; <a href="http://www.brainwired.com/blog/page-redirection-php/">Continue reading <span class="meta-nav">&#8594;</span></a>


No related posts.]]></description>
			<content:encoded><![CDATA[<!-- Start LikeButtonSetTop --><!-- End LikeButtonSetTop --><p>A very easy way to redirect users to another page is by using the following code:</p>
<pre class="brush: php; title: ; notranslate">&lt;?php
header('Location: http://urltosenduserto.com/somepage.php');
// Just replace the http://urltosenduserto.com/somepage.php
// with the URL of any page or site you want to forward the user to.
 ?&gt;
</pre>
<p>That&#8217;s it, as you can see this is pretty simple.  Just make sure that this code is added to the top of your page before any other header information is passed, otherwise it might not work properly.</p>
<div class="shr-publisher-83"></div><!-- Start LikeButtonSetBottom --><!-- End LikeButtonSetBottom -->

<p>No related posts.</p>]]></content:encoded>
			<wfw:commentRss>http://www.brainwired.com/blog/page-redirection-php/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to send email with PHP</title>
		<link>http://www.brainwired.com/blog/send-email-php/</link>
		<comments>http://www.brainwired.com/blog/send-email-php/#comments</comments>
		<pubDate>Thu, 23 Jun 2011 20:25:33 +0000</pubDate>
		<dc:creator>BrainWired</dc:creator>
				<category><![CDATA[Tutorials]]></category>

		<guid isPermaLink="false">http://www.brainwired.com/blog/?p=74</guid>
		<description><![CDATA[Many web applications often require the ability send automatically send out notifications through email to members or site owners.  <a href="http://www.brainwired.com/blog/send-email-php/">Continue reading <span class="meta-nav">&#8594;</span></a>


No related posts.]]></description>
			<content:encoded><![CDATA[<!-- Start LikeButtonSetTop --><!-- End LikeButtonSetTop --><p>Many web applications often require the ability to automatically send out notifications through email to members or site owners.  </p>
<p>PHP makes it very easy to achive this using the built-in mail function as demonstrated in the code below:</p>
<pre class="brush: php; title: ; notranslate">&lt;?php

// BELOW WE SET THE TO: FIELD
// This is where the email message will be sent to.

$to = &quot;youremail@somedomain.com&quot;;

// BELOW WE SET THE SUBJECT AND MESSAGE
// Pretty self explanatory.  These are the Subject
// and Message of the email you want to send out.

$subject = &quot;Your Email Subject&quot;;
$message = &quot;Write your email message text in here.&quot;;

// BELOW WE SETUP THE HEADER OF THE EMAIL MESSAGE.

$headers = &quot;From: TypeYourName&quot;;
$headers .= &quot;Reply-To:&quot; 'test@yourdomain.com'.&quot;\r\n&quot;;
$headers .= &quot;Return-Path:&quot; 'test@yourdomain.com'. &quot;\r\n&quot;;
$headers .= &quot;X-Mailer: PHP5\n&quot;;
$headers .= 'MIME-Version: 1.0' . &quot;\n&quot;;
$headers .= 'Content-type: text/html; charset=iso-8859-1' . &quot;\r\n&quot;;
mail($to,$subject,$message,$headers);
?&gt;
</pre>
<p> <br />
That&#8217;s it, it is that simple.</p>
<p>For advanced PHP programmers, you can easily replace the subject, message, to, from fields and other portions of the above code to pull the information from a database in order to send multiple emails or more customized messages.</p>
<p>For now we just want to cover the basics and might add another post at a later time to expand deeper into what can be done using the PHP mail capabilities.</p>
<div class="shr-publisher-74"></div><!-- Start LikeButtonSetBottom --><!-- End LikeButtonSetBottom -->

<p>No related posts.</p>]]></content:encoded>
			<wfw:commentRss>http://www.brainwired.com/blog/send-email-php/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Advertising &amp; Marketing Budgets?</title>
		<link>http://www.brainwired.com/blog/advertising-marketing-budgets/</link>
		<comments>http://www.brainwired.com/blog/advertising-marketing-budgets/#comments</comments>
		<pubDate>Thu, 23 Jun 2011 19:35:28 +0000</pubDate>
		<dc:creator>BrainWired</dc:creator>
				<category><![CDATA[Advertising & Marketing]]></category>

		<guid isPermaLink="false">http://www.brainwired.com/blog/?p=70</guid>
		<description><![CDATA[It seems that many people find themselves very puzzled when talking to advertising, marketing or web development agencies and the very common question of &#8220;Do you have a budget for your project?&#8221; is asked. Why is it that many business &#8230; <a href="http://www.brainwired.com/blog/advertising-marketing-budgets/">Continue reading <span class="meta-nav">&#8594;</span></a>


No related posts.]]></description>
			<content:encoded><![CDATA[<!-- Start LikeButtonSetTop --><!-- End LikeButtonSetTop --><p>It seems that many people find themselves very puzzled when talking to advertising, marketing or web development agencies and the very common question of &#8220;Do you have a budget for your project?&#8221; is asked.</p>
<p>Why is it that many business owners are afraid of answering that question?   In my opinion many think that if they tell the budget amount, then the agency is going to charge them more if the budget is high.  Sure, that&#8217;s a possibility, just like in any industry there are unethical and greedy individuals, but any reputable agency will use that information in order to come up with a good plan/strategy that will fit the budget and deliver the expected results.  Alternatively, if the budget it way too low (which happens in many cases), the agency can explain the costs and the client can decided to either increase the budget or reduce the goal requirements.</p>
<p>Why am I writing about this?  Well&#8230; I have been in the web design, marketing and advertising industry for over 15 years and I have to say that it still surprises me when a client asks for a nationwide or global campaign and expects it done for just a few thousand dollars.  Alternatively in the web development arena, I have seen many ask for sites with the same functionality of some of the major search engines or biggest sites, which most of the times can&#8217;t be achieved unless a reasonable budget is available to work with.  No, Google, eBay, PayPal and many other large sites were not built overnight and for $500.   It took years of development to get them to the point where they are now.</p>
<p>Again, why the budget information is kept so secret and why is it seen as a bad thing to ask for?</p>
<p>Wouln&#8217;t it make it much easier for both the agency and the client in creating an advertising or marketing campaign strategy that will fit within the client&#8217;s budget and set some clear limits on what can be achieved with the given budget?  Wouln&#8217;t this provide all the details needed by the agency and client to see if the available budget will indeed be able to achieve the expected goals or if some additional funding might be needed?   Isn&#8217;t it a big time saver for both parties since it can all be represented in black &amp; white with required dollars &amp; cents needed to achieve the goal?</p>
<p>Again, I don&#8217;t see why such a simple question gets avoided by most. </p>
<p>If the client is scared that the agency will charge more because they know the client&#8217;s budget, then why isn&#8217;t the client getting multiple quotes from different agencies?  </p>
<p>I know I am just rambling on and on about this simple question, but it does have a huge impact in the relationship with a client, it can save time for both parties and it can certainly ensure that the project is planned with a strategy that will fit within the client&#8217;s expected budget  and bring positive results, thus making the client happy.</p>
<p>My humble conclusion is that many small businesses don&#8217;t actually set aside a budget for web development, advertising or marketing, thus they find themselves struggling with the idea of someone asking what the budget is for the project. </p>
<p>No matter the size of the business, a budget should always be set.  This will help control cashflow and it will provide the business with the needed information to determine if they are just day dreaming or if they can actually afford to proceed with they plan or project.</p>
<p>What do you think?</p>
<div class="shr-publisher-70"></div><!-- Start LikeButtonSetBottom --><!-- End LikeButtonSetBottom -->

<p>No related posts.</p>]]></content:encoded>
			<wfw:commentRss>http://www.brainwired.com/blog/advertising-marketing-budgets/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

