<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<id>tag:www.nabble.com,2006:forum-140</id>
	<title>Nabble - PHP - General</title>
	<updated>2008-10-07T07:48:59Z</updated>
	<link rel="self" type="application/atom+xml" href="http://www.nabble.com/PHP---General-f140.xml" />
	<link rel="alternate" type="text/html" href="http://www.nabble.com/PHP---General-f140.html" />
	<subtitle type="html"></subtitle>
	
<entry>
	<id>tag:www.nabble.com,2006:post-19859914</id>
	<title>Re: Required files not being parsed properly...</title>
	<published>2008-10-07T07:48:59Z</published>
	<updated>2008-10-07T07:48:59Z</updated>
	<author>
		<name>Eric Butera-2</name>
	</author>
	<content type="html">On Tue, Oct 7, 2008 at 10:32 AM, Jim Lucas &amp;lt;&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=19859914&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;lists@...&lt;/a&gt;&amp;gt; wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Eric Butera wrote:
&lt;br&gt;&amp;gt;&amp;gt; On Mon, Oct 6, 2008 at 7:28 PM, Stephen Johnson
&lt;br&gt;&amp;gt;&amp;gt; &amp;lt;&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=19859914&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;stephen@...&lt;/a&gt;&amp;gt; wrote:
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; OK .. I am upgrading to PHP5 on a clients box, and &amp;nbsp;after doing so I have
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; run into the problem that files that get brought in by a require statement,
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; or include, end up just getting dumped to the browser as text..
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; For instance :
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; require(&amp;quot;/home/tnr/incs/tnr_db.php&amp;quot;);
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; $db = new mysql();
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; Produces what you see here :
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; &lt;a href=&quot;http://www.thumbnailresume.com/index.html?allow=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.thumbnailresume.com/index.html?allow=1&lt;/a&gt;&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; Any one have any thoughts on what is going on?
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; --
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; Stephen Johnson c | eh
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; The Lone Coder
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; office: &amp;nbsp;562.366.4433
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; fax: &amp;nbsp; &amp;nbsp; 562.278.0133
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; &lt;a href=&quot;http://www.thelonecoder.com&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.thelonecoder.com&lt;/a&gt;&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; continuing the struggle against bad code
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; &lt;a href=&quot;http://www.fortheloveofgeeks.com&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.fortheloveofgeeks.com&lt;/a&gt;&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; I¹m a geek and I¹m OK!
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; --
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; $user_id = $_COOKIE['user_id'];
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; $logFile = &amp;quot;/home/tnr/query_logs/tnr.&amp;quot;.$user_id.&amp;quot;.query.log&amp;quot;;
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; uh oh...
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Did you scare the OP or something? &amp;nbsp;The page isn't available any longer... :)
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; --
&lt;br&gt;&amp;gt; Jim Lucas
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;quot;Some men are born to greatness, some achieve greatness,
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; and some have greatness thrust upon them.&amp;quot;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Twelfth Night, Act II, Scene V
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;by William Shakespeare
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;/div&gt;&lt;br&gt;I hope not, but I also hope it's fixed. &amp;nbsp;After sending that I kicked
&lt;br&gt;myself since it should have been off-list. &amp;nbsp;;)
&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/Required-files-not-being-parsed-properly...-tp19848315p19859914.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-19859530</id>
	<title>Re: Required files not being parsed properly...</title>
	<published>2008-10-07T07:32:08Z</published>
	<updated>2008-10-07T07:32:08Z</updated>
	<author>
		<name>Jim Lucas-2</name>
	</author>
	<content type="html">Eric Butera wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; On Mon, Oct 6, 2008 at 7:28 PM, Stephen Johnson
&lt;br&gt;&amp;gt; &amp;lt;&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=19859530&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;stephen@...&lt;/a&gt;&amp;gt; wrote:
&lt;br&gt;&amp;gt;&amp;gt; OK .. I am upgrading to PHP5 on a clients box, and &amp;nbsp;after doing so I have
&lt;br&gt;&amp;gt;&amp;gt; run into the problem that files that get brought in by a require statement,
&lt;br&gt;&amp;gt;&amp;gt; or include, end up just getting dumped to the browser as text..
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; For instance :
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; require(&amp;quot;/home/tnr/incs/tnr_db.php&amp;quot;);
&lt;br&gt;&amp;gt;&amp;gt; $db = new mysql();
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; Produces what you see here :
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; &lt;a href=&quot;http://www.thumbnailresume.com/index.html?allow=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.thumbnailresume.com/index.html?allow=1&lt;/a&gt;&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; Any one have any thoughts on what is going on?
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; --
&lt;br&gt;&amp;gt;&amp;gt; Stephen Johnson c | eh
&lt;br&gt;&amp;gt;&amp;gt; The Lone Coder
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; office: &amp;nbsp;562.366.4433
&lt;br&gt;&amp;gt;&amp;gt; fax: &amp;nbsp; &amp;nbsp; 562.278.0133
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; &lt;a href=&quot;http://www.thelonecoder.com&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.thelonecoder.com&lt;/a&gt;&lt;br&gt;&amp;gt;&amp;gt; continuing the struggle against bad code
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; &lt;a href=&quot;http://www.fortheloveofgeeks.com&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.fortheloveofgeeks.com&lt;/a&gt;&lt;br&gt;&amp;gt;&amp;gt; I¹m a geek and I¹m OK!
&lt;br&gt;&amp;gt;&amp;gt; --
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; $user_id = $_COOKIE['user_id'];
&lt;br&gt;&amp;gt; 	
&lt;br&gt;&amp;gt; $logFile = &amp;quot;/home/tnr/query_logs/tnr.&amp;quot;.$user_id.&amp;quot;.query.log&amp;quot;;
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; uh oh...
&lt;/div&gt;&lt;br&gt;Did you scare the OP or something? &amp;nbsp;The page isn't available any longer... :)
&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;Jim Lucas
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp;&amp;quot;Some men are born to greatness, some achieve greatness,
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;and some have greatness thrust upon them.&amp;quot;
&lt;br&gt;&lt;br&gt;Twelfth Night, Act II, Scene V
&lt;br&gt;&amp;nbsp; &amp;nbsp; by William Shakespeare
&lt;br&gt;&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;PHP General Mailing List (&lt;a href=&quot;http://www.php.net/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.php.net/&lt;/a&gt;)
&lt;br&gt;To unsubscribe, visit: &lt;a href=&quot;http://www.php.net/unsub.php&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.php.net/unsub.php&lt;/a&gt;&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/Required-files-not-being-parsed-properly...-tp19848315p19859530.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-19859306</id>
	<title>Re: Re: php framework vs just php?</title>
	<published>2008-10-07T07:20:48Z</published>
	<updated>2008-10-07T07:20:48Z</updated>
	<author>
		<name>uaca man</name>
	</author>
	<content type="html">Farid,
&lt;br&gt;&lt;br&gt;I like to use PRADO(www.pradosoft.com), it is very easy to use for
&lt;br&gt;those who are coming from Microsoft .Net platform as it uses the same
&lt;br&gt;architecture. I did not like symfony, too much to read before the
&lt;br&gt;first example.
&lt;br&gt;&lt;br&gt;Angelo
&lt;br&gt;&lt;br&gt;2008/10/6 farid lópez &amp;lt;&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=19859306&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;faridlopez@...&lt;/a&gt;&amp;gt;:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; what is your framework??? uacaman.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; i'm using symfony, but i'm reading the book. it's hard but there are so many
&lt;br&gt;&amp;gt; things you can do easily with symfony!
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; 2008/10/7 uaca man &amp;lt;&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=19859306&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;uacaman@...&lt;/a&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; To be or not to be dump it your choice.
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; My framework it not just awesome it is super awesome.
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; Angelo
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; 2008/10/6 Dan Joseph &amp;lt;&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=19859306&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;dmjoseph@...&lt;/a&gt;&amp;gt;:
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt; On Mon, Oct 6, 2008 at 1:01 PM, Jason Pruim &amp;lt;&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=19859306&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;japruim@...&lt;/a&gt;&amp;gt; wrote:
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt;&amp;gt; But... Which framework is better? :P
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt; Oh my.. now we're gonna get all those guys popping back up telling us how
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt; dumb we are and how awesome their frameworks are again!
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt; --
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt; -Dan Joseph
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt; www.canishosting.com - Plans start @ $1.99/month.
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt; &amp;quot;Build a man a fire, and he will be warm for the rest of the day.
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt; Light a man on fire, and will be warm for the rest of his life.&amp;quot;
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; --
&lt;br&gt;&amp;gt;&amp;gt; PHP General Mailing List (&lt;a href=&quot;http://www.php.net/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.php.net/&lt;/a&gt;)
&lt;br&gt;&amp;gt;&amp;gt; To unsubscribe, visit: &lt;a href=&quot;http://www.php.net/unsub.php&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.php.net/unsub.php&lt;/a&gt;&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; --
&lt;br&gt;&amp;gt; Atte
&lt;br&gt;&amp;gt; Farid H. López Durán
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;quot;La naturaleza del hombre es tal que puede conseguir la perfección
&lt;br&gt;&amp;gt; únicamente cuando
&lt;br&gt;&amp;gt; trabaja para el bienestar y la dignidad de sus conciudadanos&amp;quot;. &amp;nbsp;Karl Marx
&lt;br&gt;&amp;gt;
&lt;/div&gt;&lt;br&gt;--
&lt;br&gt;PHP General Mailing List (&lt;a href=&quot;http://www.php.net/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.php.net/&lt;/a&gt;)
&lt;br&gt;To unsubscribe, visit: &lt;a href=&quot;http://www.php.net/unsub.php&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.php.net/unsub.php&lt;/a&gt;&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/php-framework-vs-just-php--tp16828943p19859306.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-19857146</id>
	<title>Re: $_SERVER[&quot;REMOTE_ADDR&quot;] returning ::1</title>
	<published>2008-10-07T05:33:24Z</published>
	<updated>2008-10-07T05:33:24Z</updated>
	<author>
		<name>Stut</name>
	</author>
	<content type="html">Please keep the discussion on the list.
&lt;br&gt;&lt;br&gt;On 7 Oct 2008, at 06:11, David Rocks wrote:
&lt;br&gt;&amp;gt; &amp;nbsp;Your work around worked fine for me but I just had some time to &amp;nbsp;
&lt;br&gt;&amp;gt; revisit this and wanted to see how hard it would be to rewrite this &amp;nbsp;
&lt;br&gt;&amp;gt; test. But I ran into a question. The test that was failing compared &amp;nbsp;
&lt;br&gt;&amp;gt; the clients IP address. It looks like transparent proxies are used &amp;nbsp;
&lt;br&gt;&amp;gt; for caching web server pages and shouldn't affect this test. I saw &amp;nbsp;
&lt;br&gt;&amp;gt; the problem because I was accessing the web server locally via &amp;nbsp;
&lt;br&gt;&amp;gt; localhost. What technology would raise the possibility that a remote &amp;nbsp;
&lt;br&gt;&amp;gt; clients IP address wouldn't be the same from one access of the web &amp;nbsp;
&lt;br&gt;&amp;gt; server to another?
&lt;br&gt;&lt;br&gt;Proxies do not necessarily cache web pages - this is an optional &amp;nbsp;
&lt;br&gt;feature of the technology. At the most basic level in most &amp;nbsp;
&lt;br&gt;implementations they provide a protected bridge between two networks.
&lt;br&gt;&lt;br&gt;Proxies can be implemented as shared clusters such that any request &amp;nbsp;
&lt;br&gt;going through the cluster could appear to come from one of a number of &amp;nbsp;
&lt;br&gt;IPs (i.e. the client is not tied to a single proxy appliance). In this &amp;nbsp;
&lt;br&gt;instance you cannot rely on a client always coming from the same IP.
&lt;br&gt;&lt;br&gt;In addition it's pretty standard practice for a lot of ISPs to have &amp;nbsp;
&lt;br&gt;relatively short leases on their IP pool. This means that a client &amp;nbsp;
&lt;br&gt;could move between different IPs between requests. This is unlikely &amp;nbsp;
&lt;br&gt;however because I believe most ISPs will do everything they can to &amp;nbsp;
&lt;br&gt;issue a connection with the same IP when the lease expires but it's &amp;nbsp;
&lt;br&gt;not something you can rely on.
&lt;br&gt;&lt;br&gt;In any case you cannot rely on the user not disconnecting their laptop &amp;nbsp;
&lt;br&gt;from a wired connection and then connecting to a wireless connection &amp;nbsp;
&lt;br&gt;that runs through a different router. This would also change their IP.
&lt;br&gt;&lt;br&gt;At the end of the day it's well understood that IP addresses should &amp;nbsp;
&lt;br&gt;not be used for authentication or continuity purposes. I've not come &amp;nbsp;
&lt;br&gt;across a session implementation that uses them for a very long time.
&lt;br&gt;&lt;br&gt;-Stut
&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;&lt;a href=&quot;http://stut.net/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://stut.net/&lt;/a&gt;&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Stut wrote:
&lt;br&gt;&amp;gt;&amp;gt; On 18 Sep 2008, at 16:37, David Rocks wrote:
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; Stut wrote:
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; On 18 Sep 2008, at 05:57, David Rocks wrote:
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; &amp;nbsp;I am running a test PHP web app on my local machine that uses &amp;nbsp;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; REMOTE_ADDR and most of the time ::1 is returned as the IP addr &amp;nbsp;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; and sometimes it is 127.0.0.1 . I am on OS X 10.5.5 and using &amp;nbsp;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; APACHE 2. PHPINFO always returns ::1 for REMOTE_ADDR. Is this a &amp;nbsp;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; PHP or a APACHE 2 thing?
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; It's coming from Apache and is correct. ::1 is the same as &amp;nbsp;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; 127.0.0.1 in IPv6. Which you get will depend on how you request &amp;nbsp;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; the page and how your DNS/hosts file is set up. Request it with &amp;nbsp;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; an IPv6 domain/IP and REMOTE_ADDR will also be IPv6.
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; You should be able to disable IPv6 in your system settings, but &amp;nbsp;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; from a future-proof point of view you should be able to handle &amp;nbsp;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; both.
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; -Stut
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; &amp;nbsp; This app uses this test to insure that the page being processed &amp;nbsp;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; came from the same machine as was used to login to the app. The &amp;nbsp;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; app is intended for broad use so I can't control the use of IPv6. &amp;nbsp;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; Is localhost the only case where the value returned might have &amp;nbsp;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; different values? Can you point to a reference where I might &amp;nbsp;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; figure out a better future proof test?
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; Using the IP is not a reliable way to check for this. Some ISPs use &amp;nbsp;
&lt;br&gt;&amp;gt;&amp;gt; transparent proxies which can cause each subsequent request to come &amp;nbsp;
&lt;br&gt;&amp;gt;&amp;gt; from a different IP, regardless of whether it's v4 or v6. You'd be &amp;nbsp;
&lt;br&gt;&amp;gt;&amp;gt; better off using a cookie, although that would be a bit less secure.
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; If you really need to use IP then you can probably rely on it not &amp;nbsp;
&lt;br&gt;&amp;gt;&amp;gt; switching between v4 and v6 if you're not using localhost. For &amp;nbsp;
&lt;br&gt;&amp;gt;&amp;gt; testing use the machine's real IP or hostname instead of localhost &amp;nbsp;
&lt;br&gt;&amp;gt;&amp;gt; and this problem should disappear.
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; -Stut
&lt;br&gt;&amp;gt;&amp;gt;
&lt;/div&gt;&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;PHP General Mailing List (&lt;a href=&quot;http://www.php.net/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.php.net/&lt;/a&gt;)
&lt;br&gt;To unsubscribe, visit: &lt;a href=&quot;http://www.php.net/unsub.php&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.php.net/unsub.php&lt;/a&gt;&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/%24_SERVER-%22REMOTE_ADDR%22--returning-%3A%3A1-tp19553653p19857146.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-19856942</id>
	<title>Re: Question about date()</title>
	<published>2008-10-07T05:22:07Z</published>
	<updated>2008-10-07T05:22:07Z</updated>
	<author>
		<name>tedd-2</name>
	</author>
	<content type="html">At 1:08 PM +0100 10/7/08, Stut wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt;On 7 Oct 2008, at 12:48, Jason Pruim wrote:
&lt;br&gt;&amp;gt;&amp;gt;Thanks for the quick response... You were right... I did a var_dump 
&lt;br&gt;&amp;gt;&amp;gt;both on $row['timein'] and $row['timeout'] and the error was 
&lt;br&gt;&amp;gt;&amp;gt;because of the way that I update the records. for time in, I insert 
&lt;br&gt;&amp;gt;&amp;gt;a new record, for time out, I update the record where timeout= NULL 
&lt;br&gt;&amp;gt;&amp;gt;and THAT is what was causing the issue... I guess I can just 
&lt;br&gt;&amp;gt;&amp;gt;redirect that error, ignore it, or come up with a different way to 
&lt;br&gt;&amp;gt;&amp;gt;update the current record without having to use NULL, or maybe, 
&lt;br&gt;&amp;gt;&amp;gt;write a timeout timestamp for like midnight on January 1 1955 or 
&lt;br&gt;&amp;gt;&amp;gt;something like that...
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;Try &amp;quot;is null&amp;quot; rather than &amp;quot;= null&amp;quot;.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;-Stut
&lt;/div&gt;&lt;br&gt;Yes, if I remember correctly, NULL is a different critter for MySQL 
&lt;br&gt;as compared to php. You can't directly test (i.e., make comparisons) 
&lt;br&gt;for it like you can in php.
&lt;br&gt;&lt;br&gt;As far as updating the time of the record, why not use current date 
&lt;br&gt;or 1/1/1970 -- the beginning of the world according to Unix. You 
&lt;br&gt;never know if you might have to update your dB to Unix time at some 
&lt;br&gt;time in the future.
&lt;br&gt;&lt;br&gt;Cheers,
&lt;br&gt;&lt;br&gt;tedd
&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;-------
&lt;br&gt;&lt;a href=&quot;http://sperling.com&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://sperling.com&lt;/a&gt;&amp;nbsp; &lt;a href=&quot;http://ancientstones.com&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://ancientstones.com&lt;/a&gt;&amp;nbsp; &lt;a href=&quot;http://earthstones.com&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://earthstones.com&lt;/a&gt;&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;PHP General Mailing List (&lt;a href=&quot;http://www.php.net/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.php.net/&lt;/a&gt;)
&lt;br&gt;To unsubscribe, visit: &lt;a href=&quot;http://www.php.net/unsub.php&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.php.net/unsub.php&lt;/a&gt;&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/Question-about-date%28%29-tp19856259p19856942.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-19856691</id>
	<title>Re: Question about date()</title>
	<published>2008-10-07T05:08:37Z</published>
	<updated>2008-10-07T05:08:37Z</updated>
	<author>
		<name>Stut</name>
	</author>
	<content type="html">On 7 Oct 2008, at 12:48, Jason Pruim wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; On Oct 7, 2008, at 7:41 AM, Stut wrote:
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; On 7 Oct 2008, at 12:38, Jason Pruim wrote:
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; I am trying to track down an error and can't seem to figure it &amp;nbsp;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; out... Here is the error out of my log:
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; [Tue Oct &amp;nbsp;7 07:31:43 2008] [error] PHP Warning: &amp;nbsp;date() expects &amp;nbsp;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; parameter 2 to be long, string given in /Volumes/RAIDer/webserver/ 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; Documents/dev/stimecard/timecard.php on line 57
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; Here is line 57:
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; $timeout = date(&amp;quot;m/d/y h:i:s A&amp;quot;, $row['timeout']);
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; And the info that is trying to grab from the database is:
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; +------------+------------+-------+--------+-------------------+
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; | timein &amp;nbsp; &amp;nbsp; | timeout &amp;nbsp; &amp;nbsp;| empID | record | Name &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;|
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; +------------+------------+-------+--------+-------------------+
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; | 1222354037 | 1222382837 | &amp;nbsp; &amp;nbsp; 1 | &amp;nbsp; &amp;nbsp;107 | Jason Pruim &amp;nbsp; &amp;nbsp; &amp;nbsp; |
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; +------------+------------+-------+--------+-------------------+
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; Now... the error only happens on line 57... On line 56 there is &amp;nbsp;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; the same command except: $timein = date(&amp;quot;m/d/y h:i:s A&amp;quot;, &amp;nbsp;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; $row['timein']);
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; And that doesn't cause any errors so I'm at a bit of a loss as to &amp;nbsp;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; what to do? I know I can redirect the warning to an error message, &amp;nbsp;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; but I don't want to do that... I am trying real hard to write &amp;nbsp;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; clean code... And this is my last error...
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; It's a total cosmetic thing since it still displays everything &amp;nbsp;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; right...
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; Any ideas? :)
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; Do a var_dump($row['timeout']) on the line before the one giving &amp;nbsp;
&lt;br&gt;&amp;gt;&amp;gt; the warning to check that it contains what you think it does.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Hey Stut,
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Thanks for the quick response... You were right... I did a var_dump &amp;nbsp;
&lt;br&gt;&amp;gt; both on $row['timein'] and $row['timeout'] and the error was because &amp;nbsp;
&lt;br&gt;&amp;gt; of the way that I update the records. for time in, I insert a new &amp;nbsp;
&lt;br&gt;&amp;gt; record, for time out, I update the record where timeout= NULL and &amp;nbsp;
&lt;br&gt;&amp;gt; THAT is what was causing the issue... I guess I can just redirect &amp;nbsp;
&lt;br&gt;&amp;gt; that error, ignore it, or come up with a different way to update the &amp;nbsp;
&lt;br&gt;&amp;gt; current record without having to use NULL, or maybe, write a timeout &amp;nbsp;
&lt;br&gt;&amp;gt; timestamp for like midnight on January 1 1955 or something like &amp;nbsp;
&lt;br&gt;&amp;gt; that...
&lt;/div&gt;&lt;br&gt;Try &amp;quot;is null&amp;quot; rather than &amp;quot;= null&amp;quot;.
&lt;br&gt;&lt;br&gt;-Stut
&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;&lt;a href=&quot;http://stut.net/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://stut.net/&lt;/a&gt;&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;PHP General Mailing List (&lt;a href=&quot;http://www.php.net/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.php.net/&lt;/a&gt;)
&lt;br&gt;To unsubscribe, visit: &lt;a href=&quot;http://www.php.net/unsub.php&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.php.net/unsub.php&lt;/a&gt;&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/Question-about-date%28%29-tp19856259p19856691.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-19856490</id>
	<title>Re: The 'at' sign (@) variable prefix</title>
	<published>2008-10-07T04:54:14Z</published>
	<updated>2008-10-07T04:54:14Z</updated>
	<author>
		<name>&quot;Crash&quot; Dummy</name>
	</author>
	<content type="html">&amp;gt;&amp;gt; mike schreef:
&lt;br&gt;&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; Mon, Oct 6, 2008 at 12:17 PM, Daniel Brown &amp;lt;&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=19856490&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;parasane@...&lt;/a&gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; wrote:
&lt;br&gt;&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; I will get an error, but if I prefix the value with '@',
&lt;br&gt;&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; $query=@$_GET[&amp;quot;q&amp;quot;];
&lt;br&gt;&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; The @ is an error control operator, used to buffer the output
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; and store it in a variable - $php_errormsg. &amp;nbsp; It's better to
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; write clean, secure code, of course.... but sometimes error
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; control is a good thing, too. &amp;nbsp;why not just use:
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; $query = isset($_GET['q']) ? $_GET['q'] : '';
&lt;br&gt;&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; that way it's always set.
&lt;br&gt;&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; or even better (what I recommend):
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; $query = filter_input(INPUT_GET, 'q', FILTER_SANITIZE_STRING);
&lt;br&gt;&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; and get an empty string or a sanitized string, depending on if
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; something exists.
&lt;br&gt;&lt;br&gt;&amp;gt;&amp;gt; Mike's ways are both better than suppressing the error not only
&lt;br&gt;&amp;gt;&amp;gt; because error suppression in general sucks but because it's
&lt;br&gt;&amp;gt;&amp;gt; actually less performant to trigger this kind of error.
&lt;br&gt;&lt;br&gt;&amp;gt; I second that. The @ symbol actually does this:
&lt;br&gt;&lt;br&gt;&amp;gt; @action();
&lt;br&gt;&lt;br&gt;&amp;gt; Becomes:
&lt;br&gt;&lt;br&gt;&amp;gt; $old = ini_set(&amp;quot;error_reporting&amp;quot;, 0);
&lt;br&gt;&amp;gt; action();
&lt;br&gt;&amp;gt; ini_set(&amp;quot;error_reporting&amp;quot;, $old);
&lt;br&gt;&lt;br&gt;&amp;gt; So, if you put that a hundred times all over your code, the errors
&lt;br&gt;&amp;gt; might be suppressed but your app is slow too.
&lt;br&gt;&lt;br&gt;Thank you all. As I said, I learned this by osmosis, applying other
&lt;br&gt;people's code. I am not fluent in PHP. That is why I wanted a
&lt;br&gt;reference in the documents. I do not sprinkle the @ symbol through my
&lt;br&gt;code to avoid careful construction, I used it in a specific instance
&lt;br&gt;to deal with an empty query string, over which I had no control. I
&lt;br&gt;will study the alternatives offered here and do some recoding.
&lt;br&gt;-- 
&lt;br&gt;Dave
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;PHP General Mailing List (&lt;a href=&quot;http://www.php.net/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.php.net/&lt;/a&gt;)
&lt;br&gt;To unsubscribe, visit: &lt;a href=&quot;http://www.php.net/unsub.php&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.php.net/unsub.php&lt;/a&gt;&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/The-%27at%27-sign--%28%40%29-variable-prefix-tp19844202p19856490.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-19856473</id>
	<title>Re: Question about date()</title>
	<published>2008-10-07T04:54:02Z</published>
	<updated>2008-10-07T04:54:02Z</updated>
	<author>
		<name>Jason Pruim</name>
	</author>
	<content type="html">&lt;br&gt;On Oct 7, 2008, at 7:49 AM, Richard Heyes wrote:
&lt;br&gt;&lt;br&gt;&amp;gt;&amp;gt; I am trying real hard to write clean code...
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Print it out and stick it in the washing machine... :-)
&lt;br&gt;&lt;br&gt;The way I used to write code I'd have to soak it in bleach for a week &amp;nbsp;
&lt;br&gt;before having a chance of it coming out clean! :P
&lt;br&gt;&lt;br&gt;&lt;br&gt;--
&lt;br&gt;&lt;br&gt;Jason Pruim
&lt;br&gt;Raoset Inc.
&lt;br&gt;Technology Manager
&lt;br&gt;MQC Specialist
&lt;br&gt;11287 James St
&lt;br&gt;Holland, MI 49424
&lt;br&gt;www.raoset.com
&lt;br&gt;&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=19856473&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;japruim@...&lt;/a&gt;
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;PHP General Mailing List (&lt;a href=&quot;http://www.php.net/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.php.net/&lt;/a&gt;)
&lt;br&gt;To unsubscribe, visit: &lt;a href=&quot;http://www.php.net/unsub.php&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.php.net/unsub.php&lt;/a&gt;&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/Question-about-date%28%29-tp19856259p19856473.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-19856403</id>
	<title>Re: Question about date()</title>
	<published>2008-10-07T04:49:21Z</published>
	<updated>2008-10-07T04:49:21Z</updated>
	<author>
		<name>Richard Heyes-4</name>
	</author>
	<content type="html">&amp;gt; I am trying real hard to write clean code...
&lt;br&gt;&lt;br&gt;Print it out and stick it in the washing machine... :-)
&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;Richard Heyes
&lt;br&gt;&lt;br&gt;HTML5 Graphing for FF, Chrome, Opera and Safari:
&lt;br&gt;&lt;a href=&quot;http://www.phpguru.org/RGraph&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.phpguru.org/RGraph&lt;/a&gt;&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;PHP General Mailing List (&lt;a href=&quot;http://www.php.net/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.php.net/&lt;/a&gt;)
&lt;br&gt;To unsubscribe, visit: &lt;a href=&quot;http://www.php.net/unsub.php&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.php.net/unsub.php&lt;/a&gt;&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/Question-about-date%28%29-tp19856259p19856403.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-19856380</id>
	<title>Re: Question about date()</title>
	<published>2008-10-07T04:48:36Z</published>
	<updated>2008-10-07T04:48:36Z</updated>
	<author>
		<name>Jason Pruim</name>
	</author>
	<content type="html">&lt;br&gt;On Oct 7, 2008, at 7:41 AM, Stut wrote:
&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; On 7 Oct 2008, at 12:38, Jason Pruim wrote:
&lt;br&gt;&amp;gt;&amp;gt; I am trying to track down an error and can't seem to figure it &amp;nbsp;
&lt;br&gt;&amp;gt;&amp;gt; out... Here is the error out of my log:
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; [Tue Oct &amp;nbsp;7 07:31:43 2008] [error] PHP Warning: &amp;nbsp;date() expects &amp;nbsp;
&lt;br&gt;&amp;gt;&amp;gt; parameter 2 to be long, string given in /Volumes/RAIDer/webserver/ 
&lt;br&gt;&amp;gt;&amp;gt; Documents/dev/stimecard/timecard.php on line 57
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; Here is line 57:
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; $timeout = date(&amp;quot;m/d/y h:i:s A&amp;quot;, $row['timeout']);
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; And the info that is trying to grab from the database is:
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; +------------+------------+-------+--------+-------------------+
&lt;br&gt;&amp;gt;&amp;gt; | timein &amp;nbsp; &amp;nbsp; | timeout &amp;nbsp; &amp;nbsp;| empID | record | Name &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;|
&lt;br&gt;&amp;gt;&amp;gt; +------------+------------+-------+--------+-------------------+
&lt;br&gt;&amp;gt;&amp;gt; | 1222354037 | 1222382837 | &amp;nbsp; &amp;nbsp; 1 | &amp;nbsp; &amp;nbsp;107 | Jason Pruim &amp;nbsp; &amp;nbsp; &amp;nbsp; |
&lt;br&gt;&amp;gt;&amp;gt; +------------+------------+-------+--------+-------------------+
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; Now... the error only happens on line 57... On line 56 there is the &amp;nbsp;
&lt;br&gt;&amp;gt;&amp;gt; same command except: $timein = date(&amp;quot;m/d/y h:i:s A&amp;quot;, $row['timein']);
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; And that doesn't cause any errors so I'm at a bit of a loss as to &amp;nbsp;
&lt;br&gt;&amp;gt;&amp;gt; what to do? I know I can redirect the warning to an error message, &amp;nbsp;
&lt;br&gt;&amp;gt;&amp;gt; but I don't want to do that... I am trying real hard to write clean &amp;nbsp;
&lt;br&gt;&amp;gt;&amp;gt; code... And this is my last error...
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; It's a total cosmetic thing since it still displays everything &amp;nbsp;
&lt;br&gt;&amp;gt;&amp;gt; right...
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; Any ideas? :)
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Do a var_dump($row['timeout']) on the line before the one giving the &amp;nbsp;
&lt;br&gt;&amp;gt; warning to check that it contains what you think it does.
&lt;/div&gt;&lt;br&gt;&lt;br&gt;Hey Stut,
&lt;br&gt;&lt;br&gt;Thanks for the quick response... You were right... I did a var_dump &amp;nbsp;
&lt;br&gt;both on $row['timein'] and $row['timeout'] and the error was because &amp;nbsp;
&lt;br&gt;of the way that I update the records. for time in, I insert a new &amp;nbsp;
&lt;br&gt;record, for time out, I update the record where timeout= NULL and THAT &amp;nbsp;
&lt;br&gt;is what was causing the issue... I guess I can just redirect that &amp;nbsp;
&lt;br&gt;error, ignore it, or come up with a different way to update the &amp;nbsp;
&lt;br&gt;current record without having to use NULL, or maybe, write a timeout &amp;nbsp;
&lt;br&gt;timestamp for like midnight on January 1 1955 or something like that...
&lt;br&gt;&lt;br&gt;Thanks again Stut!
&lt;br&gt;&lt;br&gt;&lt;br&gt;--
&lt;br&gt;&lt;br&gt;Jason Pruim
&lt;br&gt;Raoset Inc.
&lt;br&gt;Technology Manager
&lt;br&gt;MQC Specialist
&lt;br&gt;11287 James St
&lt;br&gt;Holland, MI 49424
&lt;br&gt;www.raoset.com
&lt;br&gt;&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=19856380&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;japruim@...&lt;/a&gt;
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;PHP General Mailing List (&lt;a href=&quot;http://www.php.net/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.php.net/&lt;/a&gt;)
&lt;br&gt;To unsubscribe, visit: &lt;a href=&quot;http://www.php.net/unsub.php&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.php.net/unsub.php&lt;/a&gt;&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/Question-about-date%28%29-tp19856259p19856380.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-19856303</id>
	<title>Re: Question about date()</title>
	<published>2008-10-07T04:41:30Z</published>
	<updated>2008-10-07T04:41:30Z</updated>
	<author>
		<name>Stut</name>
	</author>
	<content type="html">On 7 Oct 2008, at 12:38, Jason Pruim wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; I am trying to track down an error and can't seem to figure it &amp;nbsp;
&lt;br&gt;&amp;gt; out... Here is the error out of my log:
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; [Tue Oct &amp;nbsp;7 07:31:43 2008] [error] PHP Warning: &amp;nbsp;date() expects &amp;nbsp;
&lt;br&gt;&amp;gt; parameter 2 to be long, string given in /Volumes/RAIDer/webserver/ 
&lt;br&gt;&amp;gt; Documents/dev/stimecard/timecard.php on line 57
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Here is line 57:
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; $timeout = date(&amp;quot;m/d/y h:i:s A&amp;quot;, $row['timeout']);
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; And the info that is trying to grab from the database is:
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; +------------+------------+-------+--------+-------------------+
&lt;br&gt;&amp;gt; | timein &amp;nbsp; &amp;nbsp; | timeout &amp;nbsp; &amp;nbsp;| empID | record | Name &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;|
&lt;br&gt;&amp;gt; +------------+------------+-------+--------+-------------------+
&lt;br&gt;&amp;gt; | 1222354037 | 1222382837 | &amp;nbsp; &amp;nbsp; 1 | &amp;nbsp; &amp;nbsp;107 | Jason Pruim &amp;nbsp; &amp;nbsp; &amp;nbsp; |
&lt;br&gt;&amp;gt; +------------+------------+-------+--------+-------------------+
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Now... the error only happens on line 57... On line 56 there is the &amp;nbsp;
&lt;br&gt;&amp;gt; same command except: $timein = date(&amp;quot;m/d/y h:i:s A&amp;quot;, $row['timein']);
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; And that doesn't cause any errors so I'm at a bit of a loss as to &amp;nbsp;
&lt;br&gt;&amp;gt; what to do? I know I can redirect the warning to an error message, &amp;nbsp;
&lt;br&gt;&amp;gt; but I don't want to do that... I am trying real hard to write clean &amp;nbsp;
&lt;br&gt;&amp;gt; code... And this is my last error...
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; It's a total cosmetic thing since it still displays everything &amp;nbsp;
&lt;br&gt;&amp;gt; right...
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Any ideas? :)
&lt;/div&gt;&lt;br&gt;Do a var_dump($row['timeout']) on the line before the one giving the &amp;nbsp;
&lt;br&gt;warning to check that it contains what you think it does.
&lt;br&gt;&lt;br&gt;-Stut
&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;&lt;a href=&quot;http://stut.net/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://stut.net/&lt;/a&gt;&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;PHP General Mailing List (&lt;a href=&quot;http://www.php.net/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.php.net/&lt;/a&gt;)
&lt;br&gt;To unsubscribe, visit: &lt;a href=&quot;http://www.php.net/unsub.php&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.php.net/unsub.php&lt;/a&gt;&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/Question-about-date%28%29-tp19856259p19856303.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-19856259</id>
	<title>Question about date()</title>
	<published>2008-10-07T04:38:32Z</published>
	<updated>2008-10-07T04:38:32Z</updated>
	<author>
		<name>Jason Pruim</name>
	</author>
	<content type="html">Good morning all!
&lt;br&gt;&lt;br&gt;I am trying to track down an error and can't seem to figure it out... &amp;nbsp;
&lt;br&gt;Here is the error out of my log:
&lt;br&gt;&lt;br&gt;[Tue Oct &amp;nbsp;7 07:31:43 2008] [error] PHP Warning: &amp;nbsp;date() expects &amp;nbsp;
&lt;br&gt;parameter 2 to be long, string given in /Volumes/RAIDer/webserver/ 
&lt;br&gt;Documents/dev/stimecard/timecard.php on line 57
&lt;br&gt;&lt;br&gt;&lt;br&gt;Here is line 57:
&lt;br&gt;&lt;br&gt;$timeout = date(&amp;quot;m/d/y h:i:s A&amp;quot;, $row['timeout']);
&lt;br&gt;&lt;br&gt;&lt;br&gt;And the info that is trying to grab from the database is:
&lt;br&gt;&lt;br&gt;+------------+------------+-------+--------+-------------------+
&lt;br&gt;| timein &amp;nbsp; &amp;nbsp; | timeout &amp;nbsp; &amp;nbsp;| empID | record | Name &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;|
&lt;br&gt;+------------+------------+-------+--------+-------------------+
&lt;br&gt;| 1222354037 | 1222382837 | &amp;nbsp; &amp;nbsp; 1 | &amp;nbsp; &amp;nbsp;107 | Jason Pruim &amp;nbsp; &amp;nbsp; &amp;nbsp; |
&lt;br&gt;+------------+------------+-------+--------+-------------------+
&lt;br&gt;&lt;br&gt;Now... the error only happens on line 57... On line 56 there is the &amp;nbsp;
&lt;br&gt;same command except: $timein = date(&amp;quot;m/d/y h:i:s A&amp;quot;, $row['timein']);
&lt;br&gt;&lt;br&gt;And that doesn't cause any errors so I'm at a bit of a loss as to what &amp;nbsp;
&lt;br&gt;to do? I know I can redirect the warning to an error message, but I &amp;nbsp;
&lt;br&gt;don't want to do that... I am trying real hard to write clean code... &amp;nbsp;
&lt;br&gt;And this is my last error...
&lt;br&gt;&lt;br&gt;It's a total cosmetic thing since it still displays everything right...
&lt;br&gt;&lt;br&gt;Any ideas? :)
&lt;br&gt;&lt;br&gt;&lt;br&gt;--
&lt;br&gt;&lt;br&gt;Jason Pruim
&lt;br&gt;Raoset Inc.
&lt;br&gt;Technology Manager
&lt;br&gt;MQC Specialist
&lt;br&gt;11287 James St
&lt;br&gt;Holland, MI 49424
&lt;br&gt;www.raoset.com
&lt;br&gt;&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=19856259&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;japruim@...&lt;/a&gt;
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/Question-about-date%28%29-tp19856259p19856259.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-19854830</id>
	<title>Re: How to use MySQL queries...?</title>
	<published>2008-10-07T02:48:21Z</published>
	<updated>2008-10-07T02:48:21Z</updated>
	<author>
		<name>Jignesh Thummar</name>
	</author>
	<content type="html">&amp;gt;&amp;gt;And is there any effective way to calculate the statistics of comparison
&lt;br&gt;of
&lt;br&gt;&amp;gt;&amp;gt;query execution timings..
&lt;br&gt;&lt;br&gt;For query execution statistics, you need to log slow queries. To do so,
&lt;br&gt;enable following two directives in my.cnf file
&lt;br&gt;&lt;br&gt;long_query_time = 2
&lt;br&gt;log-slow-queries = /var/log/mysql/mysql_slow_query.log
&lt;br&gt;&lt;br&gt;This configuration will log all queries that take more than 2 sec in the
&lt;br&gt;file /var/log/mysql/mysql_slow_query.log
&lt;br&gt;&lt;br&gt;&lt;br&gt;And monitor the logs.
&lt;br&gt;&lt;br&gt;Parsing the logs from human eyes is bit trivial. You can user this
&lt;br&gt;&lt;a href=&quot;http://www.mysqlperformanceblog.com/files/utils/mysql_slow_log_parser&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.mysqlperformanceblog.com/files/utils/mysql_slow_log_parser&lt;/a&gt;&amp;nbsp;perl
&lt;br&gt;script to parse slow-queries.
&lt;br&gt;&lt;br&gt;- Jignesh
&lt;br&gt;&lt;br&gt;On Tue, Oct 7, 2008 at 10:24 AM, Richard Heyes &amp;lt;&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=19854830&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;richard@...&lt;/a&gt;&amp;gt; wrote:
&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; &amp;gt; Is there any big difference to use PROPEL or any other ORM mapping
&lt;br&gt;&amp;gt; &amp;gt; against basic
&lt;br&gt;&amp;gt; &amp;gt; functions provided by MySQL Extension...?
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; If it's MySQL you're looking to optimise, then you could also try
&lt;br&gt;&amp;gt; asking on the MySQL discussion list. On the PHP side, the MySQL
&lt;br&gt;&amp;gt; functions are long-winded at best, try simple abstraction. This could
&lt;br&gt;&amp;gt; be as simple as using a small object or set of functions that does a
&lt;br&gt;&amp;gt; lot of the grunt work for, eg:
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; $results = $db-&amp;gt;getAll(&amp;quot;SELECT * FROM mysql.user&amp;quot;);
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Much quicker to write than the equivalent using the PHP functions.
&lt;br&gt;&amp;gt; This does also make switching to another db far easier.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; --
&lt;br&gt;&amp;gt; Richard Heyes
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; HTML5 Graphing for FF, Chrome, Opera and Safari:
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://www.phpguru.org/RGraph&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.phpguru.org/RGraph&lt;/a&gt;&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; --
&lt;br&gt;&amp;gt; PHP General Mailing List (&lt;a href=&quot;http://www.php.net/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.php.net/&lt;/a&gt;)
&lt;br&gt;&amp;gt; To unsubscribe, visit: &lt;a href=&quot;http://www.php.net/unsub.php&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.php.net/unsub.php&lt;/a&gt;&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&lt;/div&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/How-to-use-MySQL-queries...--tp19854299p19854830.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-19854485</id>
	<title>Re: How to use MySQL queries...?</title>
	<published>2008-10-07T02:24:32Z</published>
	<updated>2008-10-07T02:24:32Z</updated>
	<author>
		<name>Richard Heyes-4</name>
	</author>
	<content type="html">&amp;gt; Is there any big difference to use PROPEL or any other ORM mapping
&lt;br&gt;&amp;gt; against basic
&lt;br&gt;&amp;gt; functions provided by MySQL Extension...?
&lt;br&gt;&lt;br&gt;If it's MySQL you're looking to optimise, then you could also try
&lt;br&gt;asking on the MySQL discussion list. On the PHP side, the MySQL
&lt;br&gt;functions are long-winded at best, try simple abstraction. This could
&lt;br&gt;be as simple as using a small object or set of functions that does a
&lt;br&gt;lot of the grunt work for, eg:
&lt;br&gt;&lt;br&gt;$results = $db-&amp;gt;getAll(&amp;quot;SELECT * FROM mysql.user&amp;quot;);
&lt;br&gt;&lt;br&gt;Much quicker to write than the equivalent using the PHP functions.
&lt;br&gt;This does also make switching to another db far easier.
&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;Richard Heyes
&lt;br&gt;&lt;br&gt;HTML5 Graphing for FF, Chrome, Opera and Safari:
&lt;br&gt;&lt;a href=&quot;http://www.phpguru.org/RGraph&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.phpguru.org/RGraph&lt;/a&gt;&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;PHP General Mailing List (&lt;a href=&quot;http://www.php.net/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.php.net/&lt;/a&gt;)
&lt;br&gt;To unsubscribe, visit: &lt;a href=&quot;http://www.php.net/unsub.php&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.php.net/unsub.php&lt;/a&gt;&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/How-to-use-MySQL-queries...--tp19854299p19854485.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-19854299</id>
	<title>How to use MySQL queries...?</title>
	<published>2008-10-07T02:12:45Z</published>
	<updated>2008-10-07T02:12:45Z</updated>
	<author>
		<name>Hemant Patel-2</name>
	</author>
	<content type="html">Hello &amp;nbsp;All, &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; I am here with one more doubt....
&lt;br&gt;Now I want to minimize my response time for a query..Can anybody tell me
&lt;br&gt;...,
&lt;br&gt;&lt;br&gt;Is there any big difference to use PROPEL or any other ORM mapping
&lt;br&gt;against basic
&lt;br&gt;functions provided by MySQL Extension...?
&lt;br&gt;And is there any effective way to calculate the statistics of comparison of
&lt;br&gt;query execution timings...?
&lt;br&gt;&lt;br&gt;With Regards,
&lt;br&gt;Hemant Patel
&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/How-to-use-MySQL-queries...--tp19854299p19854299.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-19853066</id>
	<title>Re: The 'at' sign (@) variable prefix</title>
	<published>2008-10-07T00:53:52Z</published>
	<updated>2008-10-07T00:53:52Z</updated>
	<author>
		<name>Aschwin Wesselius-2</name>
	</author>
	<content type="html">Jochem Maas wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; mike schreef:
&lt;br&gt;&amp;gt; &amp;nbsp; 
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp;Mon, Oct 6, 2008 at 12:17 PM, Daniel Brown &amp;lt;&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=19853066&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;parasane@...&lt;/a&gt;&amp;gt; wrote:
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; I will get an error, but if I prefix the value with '@',
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; $query=@$_GET[&amp;quot;q&amp;quot;];
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp;The @ is an error control operator, used to buffer the output and
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; store it in a variable - $php_errormsg.
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp;It's better to write clean, secure code, of course.... but
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; sometimes error control is a good thing, too.
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; 
&lt;br&gt;&amp;gt;&amp;gt; why not just use:
&lt;br&gt;&amp;gt;&amp;gt; $query = isset($_GET['q']) ? $_GET['q'] : '';
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; that way it's always set.
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; or even better (what I recommend):
&lt;br&gt;&amp;gt;&amp;gt; $query = filter_input(INPUT_GET, 'q', FILTER_SANITIZE_STRING);
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; and get an empty string or a sanitized string, depending on if something exists.
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; 
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Mike's ways are both better than suppressing the error not only because error
&lt;br&gt;&amp;gt; suppression in general sucks but because it's actually less performant to trigger
&lt;br&gt;&amp;gt; this kind of error.
&lt;br&gt;&amp;gt; &amp;nbsp; 
&lt;/div&gt;I second that. The @ symbol actually does this:
&lt;br&gt;&lt;br&gt;@action();
&lt;br&gt;&lt;br&gt;Becomes:
&lt;br&gt;&lt;br&gt;$old = ini_set(“error_reporting”, 0);
&lt;br&gt;action();
&lt;br&gt;ini_set(“error_reporting”, $old);
&lt;br&gt;&lt;br&gt;So, if you put that a hundred times all over your code, the errors might 
&lt;br&gt;be suppressed but your app is slow too.
&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;&lt;br&gt;Aschwin Wesselius
&lt;br&gt;&lt;br&gt;/'What you would like to be done to you, do that to the other....'/
&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/The-%27at%27-sign--%28%40%29-variable-prefix-tp19844202p19853066.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-19851899</id>
	<title>Re: Prefered Method for User authetification on VHosts</title>
	<published>2008-10-06T23:34:42Z</published>
	<updated>2008-10-06T23:34:42Z</updated>
	<author>
		<name>Per Jessen</name>
	</author>
	<content type="html">Michelle Konzack wrote:
&lt;br&gt;&lt;br&gt;&amp;gt; Currently I have
&lt;br&gt;&amp;gt; [snip]
&lt;br&gt;&lt;br&gt;&lt;br&gt;OK, so a plain file-password authentification. That's fine. 
&lt;br&gt;&lt;br&gt;&amp;gt; I like to know, whether this &amp;nbsp;is &amp;nbsp;good &amp;nbsp;enough &amp;nbsp;or &amp;nbsp;is &amp;nbsp;there &amp;nbsp;a 
&lt;br&gt;&amp;gt; better solution?
&lt;br&gt;&lt;br&gt;Good enough depends entirely on your security requirements, i.e. how
&lt;br&gt;safe do you need the authenticated access to be? &amp;nbsp;Are you protecting
&lt;br&gt;something that is valuable to others? Etc etc.
&lt;br&gt;&lt;br&gt;&lt;br&gt;/Per Jessen, Zürich
&lt;br&gt;&lt;br&gt;&lt;br&gt;--
&lt;br&gt;PHP General Mailing List (&lt;a href=&quot;http://www.php.net/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.php.net/&lt;/a&gt;)
&lt;br&gt;To unsubscribe, visit: &lt;a href=&quot;http://www.php.net/unsub.php&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.php.net/unsub.php&lt;/a&gt;&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/Prefered-Method-for-User-authetification-on-VHosts-tp19838783p19851899.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-19851041</id>
	<title>Re: Best Search Algorithm for Millions of record</title>
	<published>2008-10-06T21:52:42Z</published>
	<updated>2008-10-06T21:52:42Z</updated>
	<author>
		<name>Hemant Patel-2</name>
	</author>
	<content type="html">It will be a Postgres SQL Database and Fields will be like descriptive as
&lt;br&gt;well as Area of land,of street etc specific...
&lt;br&gt;With Regards,
&lt;br&gt;Hemant Patel
&lt;br&gt;&lt;br&gt;On Mon, Oct 6, 2008 at 8:30 PM, Micah Gersten &amp;lt;&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=19851041&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;micah@...&lt;/a&gt;&amp;gt; wrote:
&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; What type of data is in the fields? &amp;nbsp;Also, which database engine?
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Thank you,
&lt;br&gt;&amp;gt; Micah Gersten
&lt;br&gt;&amp;gt; onShore Networks
&lt;br&gt;&amp;gt; Internal Developer
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://www.onshore.com&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.onshore.com&lt;/a&gt;&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Hemant Patel wrote:
&lt;br&gt;&amp;gt; &amp;gt; I have couple of tables with 1,60,00000 records and now i need to
&lt;br&gt;&amp;gt; &amp;gt; search the records based on some crieteria...so which will help me...?
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; On Mon, Oct 6, 2008 at 12:30 PM, Micah Gersten &amp;lt;&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=19851041&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;micah@...&lt;/a&gt;
&lt;br&gt;&amp;gt; &amp;gt; &amp;lt;mailto:&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=19851041&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;micah@...&lt;/a&gt;&amp;gt;&amp;gt; wrote:
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; &amp;nbsp; &amp;nbsp; The question is, what are you searching for in the records?
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; &amp;nbsp; &amp;nbsp; Thank you,
&lt;br&gt;&amp;gt; &amp;gt; &amp;nbsp; &amp;nbsp; Micah Gersten
&lt;br&gt;&amp;gt; &amp;gt; &amp;nbsp; &amp;nbsp; onShore Networks
&lt;br&gt;&amp;gt; &amp;gt; &amp;nbsp; &amp;nbsp; Internal Developer
&lt;br&gt;&amp;gt; &amp;gt; &amp;nbsp; &amp;nbsp; &lt;a href=&quot;http://www.onshore.com&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.onshore.com&lt;/a&gt;&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; &amp;nbsp; &amp;nbsp; Hemant Patel wrote:
&lt;br&gt;&amp;gt; &amp;gt; &amp;nbsp; &amp;nbsp; &amp;gt; My question is Whether I should go for Full Text Based search or
&lt;br&gt;&amp;gt; &amp;gt; &amp;nbsp; &amp;nbsp; Database
&lt;br&gt;&amp;gt; &amp;gt; &amp;nbsp; &amp;nbsp; &amp;gt; Search...?And is there algorithm in php which can help me in
&lt;br&gt;&amp;gt; &amp;gt; &amp;nbsp; &amp;nbsp; this case...?
&lt;br&gt;&amp;gt; &amp;gt; &amp;nbsp; &amp;nbsp; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; &amp;nbsp; &amp;nbsp; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&lt;/div&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/Best-Search-Algorithm-for-Millions-of-record-tp19832527p19851041.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-19850303</id>
	<title>Re: Re: db_* =&gt; pg_*/my_*/ifx_* ?</title>
	<published>2008-10-06T20:06:05Z</published>
	<updated>2008-10-06T20:06:05Z</updated>
	<author>
		<name>Larry Garfield</name>
	</author>
	<content type="html">On Wednesday 01 October 2008 10:44:29 am Michelle Konzack wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Am 2008-09-30 19:58:03, schrieb Ashley Sheridan:
&lt;br&gt;&amp;gt; &amp;gt; Hi Michelle, I'm not sure exactly what it is you're after. Are you
&lt;br&gt;&amp;gt; &amp;gt; looking for software that will allow you to develop applications that
&lt;br&gt;&amp;gt; &amp;gt; are database agnostic?
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; What is &amp;quot;agnostic&amp;quot;?
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; If you mean &amp;quot;database independant&amp;quot;, the answer is yes.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Most Applications do not need &amp;nbsp;complex &amp;nbsp;database &amp;nbsp;specific &amp;nbsp;queries &amp;nbsp;and
&lt;br&gt;&amp;gt; generaly I need only
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; db_connect($server, $port, $db, $user, $pass)
&lt;br&gt;&amp;gt; 	1) &amp;nbsp;using pconnect if possibel
&lt;br&gt;&amp;gt; 	2) &amp;nbsp;there are already significant differences
&lt;br&gt;&amp;gt; 	 &amp;nbsp; &amp;nbsp;between pgsql and mysql
&lt;br&gt;&amp;gt; db_error()
&lt;br&gt;&amp;gt; 	1) &amp;nbsp;Works different between pgsql and mysql and ifx
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; db_close($handle)
&lt;br&gt;&amp;gt; 	1) &amp;nbsp;Works afaik with all databases the same way
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; db_getarray()	-&amp;gt; return array from SELECT
&lt;br&gt;&amp;gt; 	1) &amp;nbsp;Hell of SELECT FROM WHERE...
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; db_insert($handle, $table, $what, $where)
&lt;br&gt;&amp;gt; db_update($handle, $table, $what, $where)
&lt;br&gt;&amp;gt; db_delete($handle, $table, $what, $where)
&lt;br&gt;&amp;gt; 	1) &amp;nbsp;Sometimes heavy differences for ALL databases...
&lt;/div&gt;&lt;br&gt;PHP does offer a unified API: PDO.
&lt;br&gt;&lt;br&gt;&lt;a href=&quot;http://www.php.net/pdo&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.php.net/pdo&lt;/a&gt;&lt;br&gt;&lt;br&gt;It offers a lot of good features, although it doesn't abstract out the SQL 
&lt;br&gt;itself or some more annoying design limitations of some databases (like 
&lt;br&gt;BLOB/CLOB handling in Postgres or Oracle).
&lt;br&gt;&lt;br&gt;I actually just recently finished (OK, it's not done yet but the bulk of it 
&lt;br&gt;is) implementing a PDO-based fully OOP DB abstraction layer for Drupal 7. &amp;nbsp;
&lt;br&gt;It's actually quite slick, but is still somewhat Drupal dependent right now 
&lt;br&gt;due to the need to know the table structure ahead of time for non-MySQL 
&lt;br&gt;databases. &amp;nbsp;Eventually I want to split it out to its own standalone library, 
&lt;br&gt;but it's not at that point yet. &amp;nbsp;(And due to the weirdness that is SQL, it's 
&lt;br&gt;actually a lot harder than you think to do such a thing well, especially 
&lt;br&gt;WHERE clauses and the excitement that are Merge queries. &amp;nbsp;Tip: A simple array 
&lt;br&gt;is NOT sufficient for all of what WHERE can do.)
&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;Larry Garfield
&lt;br&gt;&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=19850303&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;larry@...&lt;/a&gt;
&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;PHP General Mailing List (&lt;a href=&quot;http://www.php.net/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.php.net/&lt;/a&gt;)
&lt;br&gt;To unsubscribe, visit: &lt;a href=&quot;http://www.php.net/unsub.php&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.php.net/unsub.php&lt;/a&gt;&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/db_*-%3D%3E-pg_*-my_*-ifx_*---tp19742539p19850303.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-19850240</id>
	<title>Re: Drupal 6</title>
	<published>2008-10-06T19:56:59Z</published>
	<updated>2008-10-06T19:56:59Z</updated>
	<author>
		<name>Larry Garfield</name>
	</author>
	<content type="html">On Monday 06 October 2008 9:19:03 am Nathan Rixham wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; So as part of my &amp;quot;new job&amp;quot; I've been asked to research and indeed get
&lt;br&gt;&amp;gt; used to drupal 6; recon I guess.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; I've been using it for the past week; figured out all the best modules
&lt;br&gt;&amp;gt; to do everything I want etc etc.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; q: do you use drupal 6
&lt;br&gt;&amp;gt; sub-q: and love it
&lt;br&gt;&amp;gt; sub-q: and would rather not
&lt;br&gt;&amp;gt; sub-q: have had to move away due to lack of functionality
&lt;br&gt;&amp;gt; sub-q: have found it actually didn't speed up but rather slowed development
&lt;br&gt;&amp;gt; sub-q: constantly need to write your own php to get it to do what you want.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Thanks for all responses, and please no &amp;quot;go to drupal forums&amp;quot; responses,
&lt;br&gt;&amp;gt; that's like asking microsoft for honest feedback on microsoft products;
&lt;br&gt;&amp;gt; I need the feedback from you skilled php programmers.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; ps: personally I've found it's looks v powerful and been a learning
&lt;br&gt;&amp;gt; curve setting it all up + researching modules; but finding it &amp;quot;not
&lt;br&gt;&amp;gt; great&amp;quot; for actually making real world sites!
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Many Regards
&lt;/div&gt;&lt;br&gt;Well, I'm biased, too, as I'm a Drupal core developer. &amp;nbsp;However, I also use it 
&lt;br&gt;professionally to build web sites for clients, mostly institutional 
&lt;br&gt;non-profits (museums, universities, etc.), and moving to Drupal was one of 
&lt;br&gt;the best decisions my company has ever made. &amp;nbsp;You can't make Drupal do 
&lt;br&gt;everything, but you can come very close to &amp;quot;everything&amp;quot; if you know how to 
&lt;br&gt;work with it. :-)
&lt;br&gt;&lt;br&gt;In general, if you're not using Views and CCK, you're doing something wrong. &amp;nbsp;
&lt;br&gt;Seriously, that is The Way Of The Future. &amp;nbsp;
&lt;br&gt;&lt;br&gt;You also need to not fall victim to the temptation to &amp;quot;just do it yourself&amp;quot;, 
&lt;br&gt;especially when it comes to theming. &amp;nbsp;Drupal's power comes from the fact 
&lt;br&gt;that, when you get down to it, it really is smarter than you in many ways if 
&lt;br&gt;you just learn to trust it. &amp;nbsp;Odds are that whatever you want to do, there's 
&lt;br&gt;already a module that does 80% of it or more or else a way to piece together 
&lt;br&gt;existing modules to get 90% of it or so. &amp;nbsp;I highly recommend these articles, 
&lt;br&gt;written by a colleague of mine:
&lt;br&gt;&lt;br&gt;&lt;a href=&quot;http://www.palantir.net/blog/sustainable-markup-how-be-a-themer-drupal&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.palantir.net/blog/sustainable-markup-how-be-a-themer-drupal&lt;/a&gt;&lt;br&gt;&lt;a href=&quot;http://www.palantir.net/blog/graycor-drupal-theming-works&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.palantir.net/blog/graycor-drupal-theming-works&lt;/a&gt;&lt;br&gt;&lt;br&gt;Along the same lines, use the Zen theme as a base theme (as discussed in those 
&lt;br&gt;articles). &amp;nbsp;Again, learn to trust it and don't try to rewrite all of its CSS 
&lt;br&gt;and change class names to what you're used to, etc. &amp;nbsp;It's CSS is *really* 
&lt;br&gt;solid, and takes care of so much for you it's not even funny. &amp;nbsp;(Disclaimer: 
&lt;br&gt;Zen was largely written by another colleague of mine.)
&lt;br&gt;&lt;br&gt;I've seen the same pattern in many people. &amp;nbsp;They try to think that their code 
&lt;br&gt;is better than whatever Drupal happens to do, so they fight it and try to do 
&lt;br&gt;things &amp;quot;their way&amp;quot;. &amp;nbsp;And they waste time and produce something inflexible. &amp;nbsp;
&lt;br&gt;Eventually they realize that wait, Drupal really is that flexible and can do 
&lt;br&gt;what you want it to do, if you allow yourself to trust Drupal and go &amp;quot;with 
&lt;br&gt;the grain&amp;quot; rather than fighting it. &amp;nbsp;Then you produce magic.
&lt;br&gt;&lt;br&gt;A smattering of Drupal sites that my company has done recently:
&lt;br&gt;&lt;br&gt;&lt;a href=&quot;http://www.imamuseum.org/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.imamuseum.org/&lt;/a&gt;&amp;nbsp;(writeup: &lt;a href=&quot;http://drupal.org/node/188312&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://drupal.org/node/188312&lt;/a&gt;)
&lt;br&gt;&lt;a href=&quot;http://www.artic.edu/aic/collections&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.artic.edu/aic/collections&lt;/a&gt;&amp;nbsp;(writeup: &lt;a href=&quot;http://drupal.org/node/279485&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://drupal.org/node/279485&lt;/a&gt;)
&lt;br&gt;&lt;a href=&quot;http://www.herron.iupui.edu/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.herron.iupui.edu/&lt;/a&gt;&lt;br&gt;&lt;a href=&quot;http://artsci.wustl.edu/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://artsci.wustl.edu/&lt;/a&gt;&lt;br&gt;&lt;a href=&quot;http://www.firstbt.com/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.firstbt.com/&lt;/a&gt;&lt;br&gt;&lt;a href=&quot;http://www.virtualk.org/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.virtualk.org/&lt;/a&gt;&lt;br&gt;&lt;br&gt;For us, we no longer ask &amp;quot;so can Drupal do this?&amp;quot; &amp;nbsp;We go straight to &amp;quot;so how 
&lt;br&gt;can we do this with Drupal?&amp;quot; because we are already confident that the answer 
&lt;br&gt;to the first question is &amp;quot;Yes we can&amp;quot;. &amp;nbsp;(Obama reference not intentional.)
&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;Larry Garfield
&lt;br&gt;&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=19850240&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;larry@...&lt;/a&gt;
&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;PHP General Mailing List (&lt;a href=&quot;http://www.php.net/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.php.net/&lt;/a&gt;)
&lt;br&gt;To unsubscribe, visit: &lt;a href=&quot;http://www.php.net/unsub.php&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.php.net/unsub.php&lt;/a&gt;&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/Drupal-6-tp19838917p19850240.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-19849451</id>
	<title>Re: The 'at' sign (@) variable prefix</title>
	<published>2008-10-06T18:16:06Z</published>
	<updated>2008-10-06T18:16:06Z</updated>
	<author>
		<name>Jochem Maas</name>
	</author>
	<content type="html">mike schreef:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; &amp;nbsp;Mon, Oct 6, 2008 at 12:17 PM, Daniel Brown &amp;lt;&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=19849451&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;parasane@...&lt;/a&gt;&amp;gt; wrote:
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; I will get an error, but if I prefix the value with '@',
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; $query=@$_GET[&amp;quot;q&amp;quot;];
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp;The @ is an error control operator, used to buffer the output and
&lt;br&gt;&amp;gt;&amp;gt; store it in a variable - $php_errormsg.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp;It's better to write clean, secure code, of course.... but
&lt;br&gt;&amp;gt;&amp;gt; sometimes error control is a good thing, too.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; why not just use:
&lt;br&gt;&amp;gt; $query = isset($_GET['q']) ? $_GET['q'] : '';
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; that way it's always set.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; or even better (what I recommend):
&lt;br&gt;&amp;gt; $query = filter_input(INPUT_GET, 'q', FILTER_SANITIZE_STRING);
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; and get an empty string or a sanitized string, depending on if something exists.
&lt;br&gt;&amp;gt; 
&lt;/div&gt;&lt;br&gt;Mike's ways are both better than suppressing the error not only because error
&lt;br&gt;suppression in general sucks but because it's actually less performant to trigger
&lt;br&gt;this kind of error.
&lt;br&gt;&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;PHP General Mailing List (&lt;a href=&quot;http://www.php.net/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.php.net/&lt;/a&gt;)
&lt;br&gt;To unsubscribe, visit: &lt;a href=&quot;http://www.php.net/unsub.php&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.php.net/unsub.php&lt;/a&gt;&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/The-%27at%27-sign--%28%40%29-variable-prefix-tp19844202p19849451.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-19849156</id>
	<title>Re: Required files not being parsed properly...</title>
	<published>2008-10-06T17:51:53Z</published>
	<updated>2008-10-06T17:51:53Z</updated>
	<author>
		<name>Eric Butera-2</name>
	</author>
	<content type="html">On Mon, Oct 6, 2008 at 7:28 PM, Stephen Johnson
&lt;br&gt;&amp;lt;&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=19849156&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;stephen@...&lt;/a&gt;&amp;gt; wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; OK .. I am upgrading to PHP5 on a clients box, and &amp;nbsp;after doing so I have
&lt;br&gt;&amp;gt; run into the problem that files that get brought in by a require statement,
&lt;br&gt;&amp;gt; or include, end up just getting dumped to the browser as text..
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; For instance :
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; require(&amp;quot;/home/tnr/incs/tnr_db.php&amp;quot;);
&lt;br&gt;&amp;gt; $db = new mysql();
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Produces what you see here :
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://www.thumbnailresume.com/index.html?allow=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.thumbnailresume.com/index.html?allow=1&lt;/a&gt;&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Any one have any thoughts on what is going on?
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; --
&lt;br&gt;&amp;gt; Stephen Johnson c | eh
&lt;br&gt;&amp;gt; The Lone Coder
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; office: &amp;nbsp;562.366.4433
&lt;br&gt;&amp;gt; fax: &amp;nbsp; &amp;nbsp; 562.278.0133
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://www.thelonecoder.com&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.thelonecoder.com&lt;/a&gt;&lt;br&gt;&amp;gt; continuing the struggle against bad code
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://www.fortheloveofgeeks.com&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.fortheloveofgeeks.com&lt;/a&gt;&lt;br&gt;&amp;gt; I¹m a geek and I¹m OK!
&lt;br&gt;&amp;gt; --
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;/div&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;$user_id = $_COOKIE['user_id'];
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 
&lt;br&gt;$logFile = &amp;quot;/home/tnr/query_logs/tnr.&amp;quot;.$user_id.&amp;quot;.query.log&amp;quot;;
&lt;br&gt;&lt;br&gt;uh oh...
&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/Required-files-not-being-parsed-properly...-tp19848315p19849156.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-19848574</id>
	<title>Re: Required files not being parsed properly...</title>
	<published>2008-10-06T16:51:48Z</published>
	<updated>2008-10-06T16:51:48Z</updated>
	<author>
		<name>Jim Lucas-2</name>
	</author>
	<content type="html">Stephen Johnson wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; OK .. I am upgrading to PHP5 on a clients box, and &amp;nbsp;after doing so I have
&lt;br&gt;&amp;gt; run into the problem that files that get brought in by a require statement,
&lt;br&gt;&amp;gt; or include, end up just getting dumped to the browser as text..
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; For instance : 
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; require(&amp;quot;/home/tnr/incs/tnr_db.php&amp;quot;);
&lt;br&gt;&amp;gt; $db = new mysql();
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Produces what you see here :
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://www.thumbnailresume.com/index.html?allow=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.thumbnailresume.com/index.html?allow=1&lt;/a&gt;&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Any one have any thoughts on what is going on?
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; --
&lt;br&gt;&amp;gt; Stephen Johnson c | eh
&lt;br&gt;&amp;gt; The Lone Coder
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; office: &amp;nbsp;562.366.4433
&lt;br&gt;&amp;gt; fax: &amp;nbsp; &amp;nbsp; 562.278.0133
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://www.thelonecoder.com&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.thelonecoder.com&lt;/a&gt;&lt;br&gt;&amp;gt; continuing the struggle against bad code
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://www.fortheloveofgeeks.com&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.fortheloveofgeeks.com&lt;/a&gt;&lt;br&gt;&amp;gt; I¹m a geek and I¹m OK!
&lt;br&gt;&amp;gt; --
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; 
&lt;/div&gt;&lt;br&gt;Well, if you look at the source for the page, you will notice that you have a
&lt;br&gt;&amp;lt;? at the top of the file. &amp;nbsp;The default for PHP5 is to disable the
&lt;br&gt;short_open_tag &amp;nbsp;it is set to off by default. &amp;nbsp;PHP4 was set to On
&lt;br&gt;&lt;br&gt;Change that restart apache. &amp;nbsp;You should be good to go.
&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;Jim Lucas
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp;&amp;quot;Some men are born to greatness, some achieve greatness,
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;and some have greatness thrust upon them.&amp;quot;
&lt;br&gt;&lt;br&gt;Twelfth Night, Act II, Scene V
&lt;br&gt;&amp;nbsp; &amp;nbsp; by William Shakespeare
&lt;br&gt;&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;PHP General Mailing List (&lt;a href=&quot;http://www.php.net/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.php.net/&lt;/a&gt;)
&lt;br&gt;To unsubscribe, visit: &lt;a href=&quot;http://www.php.net/unsub.php&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.php.net/unsub.php&lt;/a&gt;&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/Required-files-not-being-parsed-properly...-tp19848315p19848574.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-19848315</id>
	<title>Required files not being parsed properly...</title>
	<published>2008-10-06T16:28:46Z</published>
	<updated>2008-10-06T16:28:46Z</updated>
	<author>
		<name>Stephen Johnson-12</name>
	</author>
	<content type="html">OK .. I am upgrading to PHP5 on a clients box, and &amp;nbsp;after doing so I have
&lt;br&gt;run into the problem that files that get brought in by a require statement,
&lt;br&gt;or include, end up just getting dumped to the browser as text..
&lt;br&gt;&lt;br&gt;For instance : 
&lt;br&gt;&lt;br&gt;require(&amp;quot;/home/tnr/incs/tnr_db.php&amp;quot;);
&lt;br&gt;$db = new mysql();
&lt;br&gt;&lt;br&gt;Produces what you see here :
&lt;br&gt;&lt;br&gt;&lt;a href=&quot;http://www.thumbnailresume.com/index.html?allow=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.thumbnailresume.com/index.html?allow=1&lt;/a&gt;&lt;br&gt;&lt;br&gt;Any one have any thoughts on what is going on?
&lt;br&gt;&lt;br&gt;--
&lt;br&gt;Stephen Johnson c | eh
&lt;br&gt;The Lone Coder
&lt;br&gt;&lt;br&gt;office: &amp;nbsp;562.366.4433
&lt;br&gt;fax: &amp;nbsp; &amp;nbsp; 562.278.0133
&lt;br&gt;&lt;br&gt;&lt;a href=&quot;http://www.thelonecoder.com&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.thelonecoder.com&lt;/a&gt;&lt;br&gt;continuing the struggle against bad code
&lt;br&gt;&lt;br&gt;&lt;a href=&quot;http://www.fortheloveofgeeks.com&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.fortheloveofgeeks.com&lt;/a&gt;&lt;br&gt;I¹m a geek and I¹m OK!
&lt;br&gt;--
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/Required-files-not-being-parsed-properly...-tp19848315p19848315.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-19847357</id>
	<title>Re: How to capture origional client machine _directory_ and file name on uploads?</title>
	<published>2008-10-06T15:07:40Z</published>
	<updated>2008-10-06T15:07:40Z</updated>
	<author>
		<name>Ashley Sheridan-3</name>
	</author>
	<content type="html">On Mon, 2008-10-06 at 12:35 -0400, J. Hill wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; [Sorry Nathan.]
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Yes, I should have said &amp;quot;autopopulate&amp;quot;. &amp;nbsp;And from what I have found, 
&lt;br&gt;&amp;gt; you're right; it does appear java applets can do it, but I had hoped to 
&lt;br&gt;&amp;gt; avoid that option.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; &amp;gt; Eric Butera -- The file upload will only exist in the specified temp 
&lt;br&gt;&amp;gt; &amp;gt; directory . . ..
&lt;br&gt;&amp;gt; Perhaps I should have explained more. If they make an error, I only 
&lt;br&gt;&amp;gt; wanted to autopopulate the field with the correct value rather than 
&lt;br&gt;&amp;gt; tracking the temp file. However, it appears your solution may be the 
&lt;br&gt;&amp;gt; best solution, other than using java applets. Messy. Bummer.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; &amp;gt; Richard Heyes -- Tes, keep your pesky nose out . . .
&lt;br&gt;&amp;gt; I would love to keep my nose out ;-) &amp;nbsp; &amp;nbsp;Unfortunately, the request has 
&lt;br&gt;&amp;gt; been made by our paying clients who are the ones uploading the files.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; While I do appreciate the security issues, there are so many other 
&lt;br&gt;&amp;gt; vulnerabilities, the basic autopopulate concept seems to add very little 
&lt;br&gt;&amp;gt; to the mix.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Thanks to all for the input.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Jeff
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Nathan Rixham wrote:
&lt;br&gt;&amp;gt; &amp;gt; J. Hill wrote:
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; This should be trivial, but apparently not -- or maybe I just need 
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; more caffeine. My searches have come up empty.
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; I am trying to get not only the original file name on uploads, but 
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; also the original directory on the client machine as well.
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; The purpose is for users who make a mistake on another part of the 
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; form; when the form is returned for them to complete properly, all of 
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; the correct values are automatically filled in. That's trivial in 
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; most instances, but I'm not finding a solution for file uploads.
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; This seems like a common need. Any suggestions?
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; Thanks in advance,
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; Jeff
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; AFAIK that info is outside the security sandbox of web browsers; just 
&lt;br&gt;&amp;gt; &amp;gt; like you can't resend the file or autopopulate what file you want them 
&lt;br&gt;&amp;gt; &amp;gt; to upload.
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; only way is to use a third party browser extension or app; java 
&lt;br&gt;&amp;gt; &amp;gt; uploader or such like and you may have some luck.
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; 
&lt;/div&gt;This isn't possible, as people have explained, for security reasons.
&lt;br&gt;What you can do though, is capture and semi-process the file uploaded in
&lt;br&gt;the unsuccessful form submission and keep it in a sandbox until the form
&lt;br&gt;gets submitted correctly. This would get round your problems, but you
&lt;br&gt;will need a clean-up method to remove files that get left behind by
&lt;br&gt;people giving up filling in the form correctly.
&lt;br&gt;&lt;br&gt;&lt;br&gt;Ash
&lt;br&gt;www.ashleysheridan.co.uk
&lt;br&gt;&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;PHP General Mailing List (&lt;a href=&quot;http://www.php.net/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.php.net/&lt;/a&gt;)
&lt;br&gt;To unsubscribe, visit: &lt;a href=&quot;http://www.php.net/unsub.php&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.php.net/unsub.php&lt;/a&gt;&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/How-to-capture-origional-client-machine-_directory_-and-file-name-on-uploads--tp19840604p19847357.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-19847312</id>
	<title>Re: AJAX and PHP</title>
	<published>2008-10-06T15:03:36Z</published>
	<updated>2008-10-06T15:03:36Z</updated>
	<author>
		<name>Ashley Sheridan-3</name>
	</author>
	<content type="html">On Mon, 2008-10-06 at 17:09 +0200, Alain Roger wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; And AFAIK it does not work on linux platform
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; On Mon, Oct 6, 2008 at 3:36 PM, Wolf &amp;lt;&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=19847312&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;lonewolf@...&lt;/a&gt;&amp;gt; wrote:
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; &amp;gt; &amp;lt;!-- SNIP --&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; yes, flex is &amp;quot;flash for developers&amp;quot;; the main language is AS3 and it
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; outputs swf's; flex is basically a program which allows you to use mix
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; of pre-made ui elements &amp; classes, css and AS3 to quickly make great
&lt;br&gt;&amp;gt; &amp;gt; RIA's.
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; Yup, but you have to have flash enabled. &amp;nbsp;But some of us don't except for
&lt;br&gt;&amp;gt; &amp;gt; specific sites due to ads being swfs as well.
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; Wolf
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; 
&lt;/div&gt;&lt;br&gt;It can be made to work, but there is a lot of messing about. Not tried
&lt;br&gt;it myself, but I have spoken to some people on the Papervision team who
&lt;br&gt;have done it.
&lt;br&gt;&lt;br&gt;&lt;br&gt;Ash
&lt;br&gt;www.ashleysheridan.co.uk
&lt;br&gt;&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;PHP General Mailing List (&lt;a href=&quot;http://www.php.net/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.php.net/&lt;/a&gt;)
&lt;br&gt;To unsubscribe, visit: &lt;a href=&quot;http://www.php.net/unsub.php&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.php.net/unsub.php&lt;/a&gt;&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/AJAX-and-PHP-tp19810673p19847312.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-19847182</id>
	<title>Re: Re: db_* =&gt; pg_*/my_*/ifx_* ?</title>
	<published>2008-10-06T14:55:26Z</published>
	<updated>2008-10-06T14:55:26Z</updated>
	<author>
		<name>Ashley Sheridan-3</name>
	</author>
	<content type="html">On Wed, 2008-10-01 at 17:44 +0200, Michelle Konzack wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Am 2008-09-30 19:58:03, schrieb Ashley Sheridan:
&lt;br&gt;&amp;gt; &amp;gt; Hi Michelle, I'm not sure exactly what it is you're after. Are you
&lt;br&gt;&amp;gt; &amp;gt; looking for software that will allow you to develop applications that
&lt;br&gt;&amp;gt; &amp;gt; are database agnostic?
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; What is &amp;quot;agnostic&amp;quot;?
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; If you mean &amp;quot;database independant&amp;quot;, the answer is yes.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Most Applications do not need &amp;nbsp;complex &amp;nbsp;database &amp;nbsp;specific &amp;nbsp;queries &amp;nbsp;and
&lt;br&gt;&amp;gt; generaly I need only
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; db_connect($server, $port, $db, $user, $pass)
&lt;br&gt;&amp;gt; 	1) &amp;nbsp;using pconnect if possibel
&lt;br&gt;&amp;gt; 	2) &amp;nbsp;there are already significant differences
&lt;br&gt;&amp;gt; 	 &amp;nbsp; &amp;nbsp;between pgsql and mysql
&lt;br&gt;&amp;gt; db_error()
&lt;br&gt;&amp;gt; 	1) &amp;nbsp;Works different between pgsql and mysql and ifx
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; db_close($handle)
&lt;br&gt;&amp;gt; 	1) &amp;nbsp;Works afaik with all databases the same way
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; db_getarray()	-&amp;gt; return array from SELECT
&lt;br&gt;&amp;gt; 	1) &amp;nbsp;Hell of SELECT FROM WHERE...
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; db_insert($handle, $table, $what, $where)
&lt;br&gt;&amp;gt; db_update($handle, $table, $what, $where)
&lt;br&gt;&amp;gt; db_delete($handle, $table, $what, $where)
&lt;br&gt;&amp;gt; 	1) &amp;nbsp;Sometimes heavy differences for ALL databases...
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Thanks, Greetings and nice Day/Evening
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; Michelle Konzack
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; Systemadministrator
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; 24V Electronic Engineer
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; Tamay Dogan Network
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; Debian GNU/Linux Consultant
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; 
&lt;/div&gt;I think you may need to write these wrappers yourself if you need them.
&lt;br&gt;I don't know of any library that will provide these, and most PHP
&lt;br&gt;systems I've used have their own like this as well.
&lt;br&gt;&lt;br&gt;&lt;br&gt;Ash
&lt;br&gt;www.ashleysheridan.co.uk
&lt;br&gt;&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;PHP General Mailing List (&lt;a href=&quot;http://www.php.net/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.php.net/&lt;/a&gt;)
&lt;br&gt;To unsubscribe, visit: &lt;a href=&quot;http://www.php.net/unsub.php&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.php.net/unsub.php&lt;/a&gt;&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/db_*-%3D%3E-pg_*-my_*-ifx_*---tp19742539p19847182.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-19846380</id>
	<title>Re: Re: php framework vs just php?</title>
	<published>2008-10-06T13:59:23Z</published>
	<updated>2008-10-06T13:59:23Z</updated>
	<author>
		<name>farid lópez</name>
	</author>
	<content type="html">what is your framework??? uacaman.
&lt;br&gt;&lt;br&gt;i'm using symfony, but i'm reading the book. it's hard but there are so many
&lt;br&gt;things you can do easily with symfony!
&lt;br&gt;&lt;br&gt;2008/10/7 uaca man &amp;lt;&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=19846380&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;uacaman@...&lt;/a&gt;&amp;gt;
&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; To be or not to be dump it your choice.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; My framework it not just awesome it is super awesome.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Angelo
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; 2008/10/6 Dan Joseph &amp;lt;&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=19846380&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;dmjoseph@...&lt;/a&gt;&amp;gt;:
&lt;br&gt;&amp;gt; &amp;gt; On Mon, Oct 6, 2008 at 1:01 PM, Jason Pruim &amp;lt;&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=19846380&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;japruim@...&lt;/a&gt;&amp;gt; wrote:
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; But... Which framework is better? :P
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; Oh my.. now we're gonna get all those guys popping back up telling us how
&lt;br&gt;&amp;gt; &amp;gt; dumb we are and how awesome their frameworks are again!
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; --
&lt;br&gt;&amp;gt; &amp;gt; -Dan Joseph
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; www.canishosting.com - Plans start @ $1.99/month.
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; &amp;quot;Build a man a fire, and he will be warm for the rest of the day.
&lt;br&gt;&amp;gt; &amp;gt; Light a man on fire, and will be warm for the rest of his life.&amp;quot;
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; --
&lt;br&gt;&amp;gt; PHP General Mailing List (&lt;a href=&quot;http://www.php.net/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.php.net/&lt;/a&gt;)
&lt;br&gt;&amp;gt; To unsubscribe, visit: &lt;a href=&quot;http://www.php.net/unsub.php&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.php.net/unsub.php&lt;/a&gt;&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;/div&gt;&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;Atte
&lt;br&gt;Farid H. López Durán
&lt;br&gt;&lt;br&gt;&amp;quot;La naturaleza del hombre es tal que puede conseguir la perfección
&lt;br&gt;únicamente cuando
&lt;br&gt;trabaja para el bienestar y la dignidad de sus conciudadanos&amp;quot;. &amp;nbsp;Karl Marx
&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/php-framework-vs-just-php--tp16828943p19846380.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-19844981</id>
	<title>Re: The 'at' sign (@) variable prefix</title>
	<published>2008-10-06T12:43:33Z</published>
	<updated>2008-10-06T12:43:33Z</updated>
	<author>
		<name>mike503-2</name>
	</author>
	<content type="html">&amp;nbsp;Mon, Oct 6, 2008 at 12:17 PM, Daniel Brown &amp;lt;&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=19844981&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;parasane@...&lt;/a&gt;&amp;gt; wrote:
&lt;br&gt;&lt;br&gt;&amp;gt;&amp;gt; I will get an error, but if I prefix the value with '@',
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; $query=@$_GET[&amp;quot;q&amp;quot;];
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;The @ is an error control operator, used to buffer the output and
&lt;br&gt;&amp;gt; store it in a variable - $php_errormsg.
&lt;br&gt;&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;It's better to write clean, secure code, of course.... but
&lt;br&gt;&amp;gt; sometimes error control is a good thing, too.
&lt;br&gt;&lt;br&gt;why not just use:
&lt;br&gt;$query = isset($_GET['q']) ? $_GET['q'] : '';
&lt;br&gt;&lt;br&gt;that way it's always set.
&lt;br&gt;&lt;br&gt;or even better (what I recommend):
&lt;br&gt;$query = filter_input(INPUT_GET, 'q', FILTER_SANITIZE_STRING);
&lt;br&gt;&lt;br&gt;and get an empty string or a sanitized string, depending on if something exists.
&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;PHP General Mailing List (&lt;a href=&quot;http://www.php.net/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.php.net/&lt;/a&gt;)
&lt;br&gt;To unsubscribe, visit: &lt;a href=&quot;http://www.php.net/unsub.php&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.php.net/unsub.php&lt;/a&gt;&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/The-%27at%27-sign--%28%40%29-variable-prefix-tp19844202p19844981.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-19844464</id>
	<title>Re: The 'at' sign (@) variable prefix</title>
	<published>2008-10-06T12:17:28Z</published>
	<updated>2008-10-06T12:17:28Z</updated>
	<author>
		<name>Daniel Brown-5</name>
	</author>
	<content type="html">On Mon, Oct 6, 2008 at 3:03 PM, Crash Dummy &amp;lt;&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=19844464&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;gmane@...&lt;/a&gt;&amp;gt; wrote:
&lt;br&gt;&amp;gt; I learned through osmosis that I could use the '@' sign to prevent an
&lt;br&gt;&amp;gt; error with an uncertain variable. For example, if there is no $_GET[]
&lt;br&gt;&amp;gt; value in this line,
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; $query=$_GET[&amp;quot;q&amp;quot;];
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; I will get an error, but if I prefix the value with '@',
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; $query=@$_GET[&amp;quot;q&amp;quot;];
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; The @ is an error control operator, used to buffer the output and
&lt;br&gt;store it in a variable - $php_errormsg.
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; Check it out:
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;a href=&quot;http://php.net/manual/en/language.operators.errorcontrol.php&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://php.net/manual/en/language.operators.errorcontrol.php&lt;/a&gt;&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; It's better to write clean, secure code, of course.... but
&lt;br&gt;sometimes error control is a good thing, too.
&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;&amp;lt;/Daniel P. Brown&amp;gt;
&lt;br&gt;More full-root dedicated server packages:
&lt;br&gt;Intel 2.4GHz/60GB/512MB/2TB $49.99/mo.
&lt;br&gt;Intel 3.06GHz/80GB/1GB/2TB $59.99/mo.
&lt;br&gt;Intel 2.4GHz/320/GB/1GB/3TB $74.99/mo.
&lt;br&gt;Dedicated servers, VPS, and hosting from $2.50/mo.
&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;PHP General Mailing List (&lt;a href=&quot;http://www.php.net/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.php.net/&lt;/a&gt;)
&lt;br&gt;To unsubscribe, visit: &lt;a href=&quot;http://www.php.net/unsub.php&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.php.net/unsub.php&lt;/a&gt;&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/The-%27at%27-sign--%28%40%29-variable-prefix-tp19844202p19844464.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-19844319</id>
	<title>Re: The 'at' sign (@) variable prefix</title>
	<published>2008-10-06T12:10:03Z</published>
	<updated>2008-10-06T12:10:03Z</updated>
	<author>
		<name>uaca man</name>
	</author>
	<content type="html">Documentation &amp;nbsp;is at:
&lt;br&gt;&lt;a href=&quot;http://br.php.net/manual/en/language.operators.errorcontrol.php&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://br.php.net/manual/en/language.operators.errorcontrol.php&lt;/a&gt;&lt;br&gt;&lt;br&gt;Angelo
&lt;br&gt;&lt;br&gt;2008/10/6 Crash Dummy &amp;lt;&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=19844319&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;gmane@...&lt;/a&gt;&amp;gt;:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; I learned through osmosis that I could use the '@' sign to prevent an
&lt;br&gt;&amp;gt; error with an uncertain variable. For example, if there is no $_GET[]
&lt;br&gt;&amp;gt; value in this line,
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; $query=$_GET[&amp;quot;q&amp;quot;];
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; I will get an error, but if I prefix the value with '@',
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; $query=@$_GET[&amp;quot;q&amp;quot;];
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; and no value is available, a null string is returned, and no error is
&lt;br&gt;&amp;gt; generated.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; This is great, but I'd like to see it in writing. I can't find this
&lt;br&gt;&amp;gt; feature in the documentation. Can someone steer me to it?
&lt;br&gt;&amp;gt; --
&lt;br&gt;&amp;gt; Dave
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; --
&lt;br&gt;&amp;gt; PHP General Mailing List (&lt;a href=&quot;http://www.php.net/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.php.net/&lt;/a&gt;)
&lt;br&gt;&amp;gt; To unsubscribe, visit: &lt;a href=&quot;http://www.php.net/unsub.php&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.php.net/unsub.php&lt;/a&gt;&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;/div&gt;&lt;br&gt;-- 
&lt;br&gt;PHP General Mailing List (&lt;a href=&quot;http://www.php.net/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.php.net/&lt;/a&gt;)
&lt;br&gt;To unsubscribe, visit: &lt;a href=&quot;http://www.php.net/unsub.php&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.php.net/unsub.php&lt;/a&gt;&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/The-%27at%27-sign--%28%40%29-variable-prefix-tp19844202p19844319.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-19844290</id>
	<title>Re: Re: php framework vs just php?</title>
	<published>2008-10-06T12:08:21Z</published>
	<updated>2008-10-06T12:08:21Z</updated>
	<author>
		<name>uaca man</name>
	</author>
	<content type="html">To be or not to be dump it your choice.
&lt;br&gt;&lt;br&gt;My framework it not just awesome it is super awesome.
&lt;br&gt;&lt;br&gt;Angelo
&lt;br&gt;&lt;br&gt;2008/10/6 Dan Joseph &amp;lt;&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=19844290&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;dmjoseph@...&lt;/a&gt;&amp;gt;:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; On Mon, Oct 6, 2008 at 1:01 PM, Jason Pruim &amp;lt;&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=19844290&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;japruim@...&lt;/a&gt;&amp;gt; wrote:
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; But... Which framework is better? :P
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt; Oh my.. now we're gonna get all those guys popping back up telling us how
&lt;br&gt;&amp;gt; dumb we are and how awesome their frameworks are again!
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; --
&lt;br&gt;&amp;gt; -Dan Joseph
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; www.canishosting.com - Plans start @ $1.99/month.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;quot;Build a man a fire, and he will be warm for the rest of the day.
&lt;br&gt;&amp;gt; Light a man on fire, and will be warm for the rest of his life.&amp;quot;
&lt;br&gt;&amp;gt;
&lt;/div&gt;&lt;br&gt;-- 
&lt;br&gt;PHP General Mailing List (&lt;a href=&quot;http://www.php.net/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.php.net/&lt;/a&gt;)
&lt;br&gt;To unsubscribe, visit: &lt;a href=&quot;http://www.php.net/unsub.php&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.php.net/unsub.php&lt;/a&gt;&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/php-framework-vs-just-php--tp16828943p19844290.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-19844202</id>
	<title>The 'at' sign  (@) variable prefix</title>
	<published>2008-10-06T12:03:37Z</published>
	<updated>2008-10-06T12:03:37Z</updated>
	<author>
		<name>&quot;Crash&quot; Dummy</name>
	</author>
	<content type="html">I learned through osmosis that I could use the '@' sign to prevent an
&lt;br&gt;error with an uncertain variable. For example, if there is no $_GET[]
&lt;br&gt;value in this line,
&lt;br&gt;&lt;br&gt;$query=$_GET[&amp;quot;q&amp;quot;];
&lt;br&gt;&lt;br&gt;I will get an error, but if I prefix the value with '@',
&lt;br&gt;&lt;br&gt;$query=@$_GET[&amp;quot;q&amp;quot;];
&lt;br&gt;&lt;br&gt;and no value is available, a null string is returned, and no error is
&lt;br&gt;generated.
&lt;br&gt;&lt;br&gt;This is great, but I'd like to see it in writing. I can't find this
&lt;br&gt;feature in the documentation. Can someone steer me to it?
&lt;br&gt;-- 
&lt;br&gt;Dave
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;PHP General Mailing List (&lt;a href=&quot;http://www.php.net/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.php.net/&lt;/a&gt;)
&lt;br&gt;To unsubscribe, visit: &lt;a href=&quot;http://www.php.net/unsub.php&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.php.net/unsub.php&lt;/a&gt;&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/The-%27at%27-sign--%28%40%29-variable-prefix-tp19844202p19844202.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-19843558</id>
	<title>Re: Re: php framework vs just php?</title>
	<published>2008-10-06T11:28:24Z</published>
	<updated>2008-10-06T11:28:24Z</updated>
	<author>
		<name>Dan Joseph</name>
	</author>
	<content type="html">On Mon, Oct 6, 2008 at 1:01 PM, Jason Pruim &amp;lt;&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=19843558&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;japruim@...&lt;/a&gt;&amp;gt; wrote:
&lt;br&gt;&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; But... Which framework is better? :P
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;Oh my.. now we're gonna get all those guys popping back up telling us how
&lt;br&gt;dumb we are and how awesome their frameworks are again!
&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;-Dan Joseph
&lt;br&gt;&lt;br&gt;www.canishosting.com - Plans start @ $1.99/month.
&lt;br&gt;&lt;br&gt;&amp;quot;Build a man a fire, and he will be warm for the rest of the day.
&lt;br&gt;Light a man on fire, and will be warm for the rest of his life.&amp;quot;
&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/php-framework-vs-just-php--tp16828943p19843558.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-19843237</id>
	<title>RE: NTLM Auth For grabbing data.</title>
	<published>2008-10-06T11:11:39Z</published>
	<updated>2008-10-06T11:11:39Z</updated>
	<author>
		<name>Boyd, Todd M.</name>
	</author>
	<content type="html">&lt;div class='shrinkable-quote'&gt;&amp;gt; -----Original Message-----
&lt;br&gt;&amp;gt; From: DJ Necrogami [mailto:&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=19843237&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;djnecrogami@...&lt;/a&gt;]
&lt;br&gt;&amp;gt; Sent: Monday, October 06, 2008 12:41 PM
&lt;br&gt;&amp;gt; To: &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=19843237&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;fw-general@...&lt;/a&gt;; &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=19843237&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;php-general@...&lt;/a&gt;
&lt;br&gt;&amp;gt; Subject: [PHP] NTLM Auth For grabbing data.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Content-Length	1656
&lt;br&gt;&amp;gt; Content-Type	text/html
&lt;br&gt;&amp;gt; Server	Microsoft-IIS/6.0
&lt;br&gt;&amp;gt; WWW-Authenticate	Negotiate NTLM
&lt;br&gt;&amp;gt; X-Powered-By	ASP.NET
&lt;br&gt;&amp;gt; MicrosoftSharePointTeamServices	12.0.0.6023
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; I'm needing to authenticate against that with php. Is this possible?
&lt;br&gt;&amp;gt; I can manually provide the details but the http auth script only
&lt;br&gt;&amp;gt; allows basic auth not NTLM.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; I'm not trying to have the user authenticate against it. I'm trying to
&lt;br&gt;&amp;gt; get the server to authenticate against NTLM because i'm trying to grab
&lt;br&gt;&amp;gt; and parse html pages.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; If anyone can help thank you.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; If there is a method of doing this easily in php normally please let
&lt;br&gt;&amp;gt; me know. ZF or PHP either way.
&lt;/div&gt;&lt;br&gt;STFW:
&lt;br&gt;&lt;br&gt;&lt;a href=&quot;http://blog.thinkphp.de/archives/125-Accessing-NTLM-secured-resources-wi&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://blog.thinkphp.de/archives/125-Accessing-NTLM-secured-resources-wi&lt;/a&gt;&lt;br&gt;th-PHP.html
&lt;br&gt;&lt;a href=&quot;http://forums.whirlpool.net.au/forum-replies-archive.cfm/630826.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://forums.whirlpool.net.au/forum-replies-archive.cfm/630826.html&lt;/a&gt;&lt;br&gt;&lt;a href=&quot;http://bytes.com/forum/thread9108.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://bytes.com/forum/thread9108.html&lt;/a&gt;&lt;br&gt;&lt;a href=&quot;http://www.experts-exchange.com/Web_Development/Web_Languages-Standards/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.experts-exchange.com/Web_Development/Web_Languages-Standards/&lt;/a&gt;&lt;br&gt;PHP/Q_21586189.html
&lt;br&gt;&lt;a href=&quot;http://rabaix.net/articles/2008/3/13/using-soap-php-with-ntlm-authentica&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://rabaix.net/articles/2008/3/13/using-soap-php-with-ntlm-authentica&lt;/a&gt;&lt;br&gt;tion
&lt;br&gt;&lt;a href=&quot;http://siphon9.net/loune/2007/10/simple-lightweight-ntlm-in-php/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://siphon9.net/loune/2007/10/simple-lightweight-ntlm-in-php/&lt;/a&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;Todd Boyd
&lt;br&gt;Web Programmer
&lt;br&gt;&lt;br&gt;--
&lt;br&gt;PHP General Mailing List (&lt;a href=&quot;http://www.php.net/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.php.net/&lt;/a&gt;)
&lt;br&gt;To unsubscribe, visit: &lt;a href=&quot;http://www.php.net/unsub.php&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.php.net/unsub.php&lt;/a&gt;&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/NTLM-Auth-For-grabbing-data.-tp19842709p19843237.html" />
</entry>

</feed>
