<?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>WebSight Design Blog &#187; php</title>
	<atom:link href="http://blog.websightdesign.com/tag/php/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.websightdesign.com</link>
	<description>The Official Blog of WebSight Design, Inc.</description>
	<lastBuildDate>Tue, 27 Jul 2010 23:03:46 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>WebSight Design in Development</title>
		<link>http://blog.websightdesign.com/2010/03/11/websight-design-in-development/</link>
		<comments>http://blog.websightdesign.com/2010/03/11/websight-design-in-development/#comments</comments>
		<pubDate>Thu, 11 Mar 2010 17:45:46 +0000</pubDate>
		<dc:creator>Vanessa</dc:creator>
				<category><![CDATA[Code]]></category>
		<category><![CDATA[Web Development]]></category>
		<category><![CDATA[WebSight Design]]></category>
		<category><![CDATA[ASP]]></category>
		<category><![CDATA[Domain Driven Design]]></category>
		<category><![CDATA[Flash]]></category>
		<category><![CDATA[Model-View-Controller]]></category>
		<category><![CDATA[MVC]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[Rapid Application Development]]></category>
		<category><![CDATA[Ruby]]></category>
		<category><![CDATA[springloops]]></category>
		<category><![CDATA[Subversion]]></category>
		<category><![CDATA[web usability]]></category>
		<category><![CDATA[website development]]></category>
		<category><![CDATA[zend]]></category>

		<guid isPermaLink="false">http://blog.websightdesign.com/?p=639</guid>
		<description><![CDATA[The beauty of WebSight Design lies in our full range of web services.  From design to development, SEO, hosting, and IT support, we have an excellent 15-year track record of providing our clients with the best possible products and services. Over the years, we have built our own PHP development environment, based on the open-source [...]<p><a href="http://blog.websightdesign.com/2010/03/11/websight-design-in-development/">WebSight Design in Development</a> is a post from: WebSight Design, Inc. company blog. With headquarters in the San Francisco bay area, WebSight Design, Inc. has been providing world class web engineering, creative design and hosting solutions since 1995. <a href="http://Websightdesign.com">WebSight Design</a></p>
]]></description>
			<content:encoded><![CDATA[<p>The beauty of WebSight Design lies in our full range of <a href="http://www.websightdesign.com/services">web services</a>.  From design to development, SEO, hosting, and IT support, we have an excellent 15-year track record of providing our clients with the best possible products and services.</p>
<p>Over the years, we have built our own PHP development environment, based on the open-source <a href="http://www.zend.com/en/" target="_blank">Zend</a> framework. We have a strong belief in the <a href="http://en.wikipedia.org/wiki/Model%E2%80%93view%E2%80%93controller" target="_blank">Model-View-Controller</a> (MVC) architecture, and strict version control with <a href="http://subversion.apache.org/" target="_blank">Subversion</a> (SVN), because the results are cleaner, more efficient code. Utilizing the Zend framework also gives us access to the large and expanding library for <a href="http://www.cs.bgsu.edu/maner/domains/RAD.htm" target="_blank">Rapid Application Development</a> (RAD), while still having the flexibility to customize the framework and make it our own.</p>
<p style="text-align: center;"><a href="http://blog.websightdesign.com/wp-content/uploads/2010/03/samplesite1.jpg"><img class="size-medium wp-image-666 aligncenter" title="samplesite" src="http://blog.websightdesign.com/wp-content/uploads/2010/03/samplesite1-300x257.jpg" alt="" width="300" height="257" /></a></p>
<p>Using the MVC design pattern allows us to have a clear separation of business logic and presentation logic.  This presents a distinct advantage when building web applications because it separates what the user sees from what goes on in the background.  This moves away from mixing data-layer code, such as database queries, in with your display code and allows us to create <a href="http://www.websightdesign.com/services/programming-examples">reusable modules</a>, such as photo galleries and shopping carts, for significantly faster builds in large applications.</p>
<p>The MVC architecture also offers ease of maintenance, since each component (model, view and controller) is self contained, performing upgrades and changes, such as switching databases from Access to MySQL, become much less painful and cumbersome then in the past.</p>
<p>We make it a priority to stay on the frontline of the ever changing technology in the Web and Internet industry; currently, we are working on a 2.0 version of our framework that will use portions of <a href="http://domaindrivendesign.org/ ">Domain Driven Design</a> (DDD) to create clean structure and more efficient code patterns.  One of the biggest changes on the way is a central code base with customizable modules.  With this 2.0 framework we will be able to increase our build time on large projects, and push upgrades to a central code base rather then individual applications.</p>
<p>But don’t think that since we developed our own PHP framework we are averse to working with other languages.  Just send your application our way and we are happy to roll up our sleeves, jump into your Ruby/Flash/ASP project and get our hands dirty.</p>
<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;</p>
<p>Founded in 1995, WebSight Design offers business clients a range of website design and development services, including <a href="http://www.websightdesign.com/services/web-site-development">website programming</a>, website hosting, website marketing, and colocation management.</p>
<p><a href="http://blog.websightdesign.com/2010/03/11/websight-design-in-development/">WebSight Design in Development</a> is a post from: WebSight Design, Inc. company blog. With headquarters in the San Francisco bay area, WebSight Design, Inc. has been providing world class web engineering, creative design and hosting solutions since 1995. <a href="http://Websightdesign.com">WebSight Design</a></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.websightdesign.com/2010/03/11/websight-design-in-development/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Allowing PHP to write files in a Plesk server environment</title>
		<link>http://blog.websightdesign.com/2008/03/27/allowing-php-to-write-files-in-a-plesk-server-environment/</link>
		<comments>http://blog.websightdesign.com/2008/03/27/allowing-php-to-write-files-in-a-plesk-server-environment/#comments</comments>
		<pubDate>Thu, 27 Mar 2008 15:36:20 +0000</pubDate>
		<dc:creator>rmudgett</dc:creator>
				<category><![CDATA[Code]]></category>
		<category><![CDATA[Tips and Tricks]]></category>
		<category><![CDATA[Web Development]]></category>
		<category><![CDATA[apache]]></category>
		<category><![CDATA[files]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[plesk]]></category>
		<category><![CDATA[Plesk tips]]></category>

		<guid isPermaLink="false">http://blog.websightdesign.com/2008/03/27/allowing-php-to-write-files-in-a-plesk-server-environment/</guid>
		<description><![CDATA[As you may have found out, a web server that houses a bunch of web sites can cause some issues with file permissions when it comes to allowing PHP to write files that a web site needs, whether it is a data file, a document or an image. This is usually not an issue if [...]<p><a href="http://blog.websightdesign.com/2008/03/27/allowing-php-to-write-files-in-a-plesk-server-environment/">Allowing PHP to write files in a Plesk server environment</a> is a post from: WebSight Design, Inc. company blog. With headquarters in the San Francisco bay area, WebSight Design, Inc. has been providing world class web engineering, creative design and hosting solutions since 1995. <a href="http://Websightdesign.com">WebSight Design</a></p>
]]></description>
			<content:encoded><![CDATA[<p>As you may have found out, a web server that houses a bunch of web sites can cause some issues with file permissions when it comes to allowing PHP to write files that a web site needs, whether it is a data file, a document or an image.  This is usually not an issue if PHP is installed as a cgi module because cgi programs are usually setup to run as the user that owns them, but Plesk uses PHP installed as an Apache module, and thus it runs as the same user that Apache runs as, which is usually not the same user that owns the website files.</p>
<p>How to solve this?  It is really easy actually.  There are 2 possible solutions, the first is the easiest, but really shouldn&#8217;t be considered and that is to make the folders that PHP needs to write to 0777, which opens a possible security hole and that is why you shouldn&#8217;t really consider it.</p>
<p>The second is to simply add the user apache uses, which under Plesk is usually &#8220;apache&#8221; to the group &#8220;psacln&#8221;.  You can edit the /etc/group and /etc/group- files if you know what you are doing, or use usermod.</p>
<p>If you want to edit the files directly, locate the line that looks like this:</p>
<p>psacln:x:2524:</p>
<p>and just tack on &#8220;apache&#8221; to the end of it like so&#8230;</p>
<p>psacln:x:2524:apache</p>
<p>Do this for both files and restart apache and you are done.</p>
<p>Or, simpler</p>
<p>/usr/sbin/usermod -a -G psacln apache</p>
<p>Then simply make the folders and/or files that php needs access to 0775, which makes it more secure.</p>
<p>You can do similar with any server enviroment, we just happen to use Plesk here.</p>
<p>Rob</p>
<p><a href="http://blog.websightdesign.com/2008/03/27/allowing-php-to-write-files-in-a-plesk-server-environment/">Allowing PHP to write files in a Plesk server environment</a> is a post from: WebSight Design, Inc. company blog. With headquarters in the San Francisco bay area, WebSight Design, Inc. has been providing world class web engineering, creative design and hosting solutions since 1995. <a href="http://Websightdesign.com">WebSight Design</a></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.websightdesign.com/2008/03/27/allowing-php-to-write-files-in-a-plesk-server-environment/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
