<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<id>tag:old.nabble.com,2006:forum-140</id>
	<title>Nabble - PHP - General</title>
	<updated>2009-11-26T14:37:50Z</updated>
	<link rel="self" type="application/atom+xml" href="http://old.nabble.com/PHP---General-f140.xml" />
	<link rel="alternate" type="text/html" href="http://old.nabble.com/PHP---General-f140.html" />
	<subtitle type="html"></subtitle>
	
<entry>
	<id>tag:old.nabble.com,2006:post-26535799</id>
	<title>Re: php htaccess logins and logouts</title>
	<published>2009-11-26T14:37:50Z</published>
	<updated>2009-11-26T14:37:50Z</updated>
	<author>
		<name>Andy Shellam (Mailing Lists)-2</name>
	</author>
	<content type="html">Hi,
&lt;br&gt;&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; IIRC if you unset $_SERVER['PHP_AUTH_USER'] and
&lt;br&gt;&amp;gt; $_SERVER['PHP_AUTH_PW'] it will log you out.
&lt;br&gt;&lt;br&gt;I've done some research on this in the past - and not all browsers/web servers honour that as it's the browser that keeps the username/password cached and sends it after a 401 response, so the server knows nothing about the &amp;quot;login&amp;quot; - i.e.
&lt;br&gt;&lt;br&gt;1. User visits page 1
&lt;br&gt;2. Server sends 401 Unauthorised header
&lt;br&gt;3. Browser does not have any login details for the realm and prompts user
&lt;br&gt;4. User inputs credentials, browser re-submits the request with the credentials attached
&lt;br&gt;5. User visits page 2
&lt;br&gt;6. Server sends 401 Unauthorised header
&lt;br&gt;7. Browser has login details for the realm and re-submits the request with the credentials attached
&lt;br&gt;&lt;br&gt;From the conclusion I came to after my research, there is no reliable way for the server to de-authorise a login after a 401 request.
&lt;br&gt;&lt;br&gt;There are tricks you can do on the server, such as changing the authentication realm when the user has logged out - but if the user visits the same site again the realms will match and they will be logged in.
&lt;br&gt;&lt;br&gt;I've seen a &amp;quot;hack&amp;quot; which uses a cookie on the user's machine - if the user has the cookie, the correct authentication realm is returned in the authentication request. &amp;nbsp;If the user doesn't have the cookie, the server sends a random realm to trick the browser into thinking it's not logged in. &amp;nbsp;By the time you've done all that, you might as well just use sessions.
&lt;br&gt;&lt;br&gt;Regards,
&lt;br&gt;Andy
&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://old.nabble.com/php-htaccess-logins-and-logouts-tp26529648p26535799.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26535638</id>
	<title>Re: php htaccess logins and logouts</title>
	<published>2009-11-26T14:16:58Z</published>
	<updated>2009-11-26T14:16:58Z</updated>
	<author>
		<name>James McLean-2</name>
	</author>
	<content type="html">On Fri, Nov 27, 2009 at 12:12 AM, Ashley Sheridan
&lt;br&gt;&amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26535638&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;ash@...&lt;/a&gt;&amp;gt; wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Hi all,
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; I've got a site set up that is using an htaccess file to provide secure
&lt;br&gt;&amp;gt; access to a directory. That is working fine. What I wondered was, is
&lt;br&gt;&amp;gt; there a way to log out via PHP. As I understand it, the login mechanism
&lt;br&gt;&amp;gt; is part of Apache, so I guess what I'm really asking is, is there a way
&lt;br&gt;&amp;gt; that I can get Apache to end the 'session' that Apache has set up, using
&lt;br&gt;&amp;gt; PHP?
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; I'm sure I've seen cPanel do it, so I was wondering how easy this would
&lt;br&gt;&amp;gt; be to do myself.
&lt;/div&gt;&lt;br&gt;IIRC if you unset $_SERVER['PHP_AUTH_USER'] and
&lt;br&gt;$_SERVER['PHP_AUTH_PW'] it will log you out.
&lt;br&gt;&lt;br&gt;Cheers.
&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://old.nabble.com/php-htaccess-logins-and-logouts-tp26529648p26535638.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26534811</id>
	<title>Re: string concatenation with fgets</title>
	<published>2009-11-26T12:57:52Z</published>
	<updated>2009-11-26T12:57:52Z</updated>
	<author>
		<name>aurfalien</name>
	</author>
	<content type="html">So here is my final test code, notice the check for ' ' in the if.
&lt;br&gt;&lt;br&gt;Since I'm on Linux, this has to do with whats between the last LF and &amp;nbsp;
&lt;br&gt;EOF which is nothing but this nothing will get printed out.
&lt;br&gt;&lt;br&gt;$file = fopen(&amp;quot;somefile.txt&amp;quot;, &amp;quot;r&amp;quot;);
&lt;br&gt;while (! feof($file))
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; {
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; $names = trim(fgets($file));
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if ($names == '')
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; {
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; break;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; print $names.&amp;quot;sometext\n&amp;quot;;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }
&lt;br&gt;fclose($file);
&lt;br&gt;&lt;br&gt;&lt;br&gt;- aurf
&lt;br&gt;&lt;br&gt;On Nov 24, 2009, at 5:52 PM, ryan wrote:
&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Is this what you want
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; $file = fopen(&amp;quot;test.txt&amp;quot;, &amp;quot;r&amp;quot;);
&lt;br&gt;&amp;gt; while (!feof($file)) {
&lt;br&gt;&amp;gt; &amp;nbsp; $line = trim(fgets($file));
&lt;br&gt;&amp;gt; &amp;nbsp; print $line.&amp;quot;sometext\n&amp;quot;;
&lt;br&gt;&amp;gt; &amp;nbsp; }
&lt;br&gt;&amp;gt; fclose($file);
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; outputs
&lt;br&gt;&amp;gt; asometext
&lt;br&gt;&amp;gt; bsometext
&lt;br&gt;&amp;gt; csometext
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Ref to &lt;a href=&quot;http://us3.php.net/manual/en/function.fgets.php&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://us3.php.net/manual/en/function.fgets.php&lt;/a&gt;. &amp;quot;Reading &amp;nbsp;
&lt;br&gt;&amp;gt; ends when /length/ - 1 bytes have been read, on a newline (which is &amp;nbsp;
&lt;br&gt;&amp;gt; included in the return value), or on EOF (whichever comes first). If &amp;nbsp;
&lt;br&gt;&amp;gt; no length is specified, it will keep reading from the stream until &amp;nbsp;
&lt;br&gt;&amp;gt; it reaches the end of the line. &amp;quot;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26534811&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;aurfalien@...&lt;/a&gt; wrote:
&lt;br&gt;&amp;gt;&amp;gt; Hi all,
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; I'm trying to append some text to what I read from a file.
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; My code;
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; $file = fopen(&amp;quot;foo.txt&amp;quot;, &amp;quot;r&amp;quot;);
&lt;br&gt;&amp;gt;&amp;gt; while (!feof($file)) {
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp;$line = fgets($file);
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp;print $line.&amp;quot;sometext&amp;quot;;
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp;}
&lt;br&gt;&amp;gt;&amp;gt; fclose($file);
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; foo,txt;
&lt;br&gt;&amp;gt;&amp;gt; a
&lt;br&gt;&amp;gt;&amp;gt; b
&lt;br&gt;&amp;gt;&amp;gt; c
&lt;br&gt;&amp;gt;&amp;gt; d
&lt;br&gt;&amp;gt;&amp;gt; e
&lt;br&gt;&amp;gt;&amp;gt; f
&lt;br&gt;&amp;gt;&amp;gt; g
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; And when I run the script, it looks like;
&lt;br&gt;&amp;gt;&amp;gt; a
&lt;br&gt;&amp;gt;&amp;gt; sometextb
&lt;br&gt;&amp;gt;&amp;gt; sometextc
&lt;br&gt;&amp;gt;&amp;gt; sometextd
&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; Any ideas?
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; Thanks in advance,
&lt;br&gt;&amp;gt;&amp;gt; - aurf
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&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://old.nabble.com/string-concatenation-with-fgets-tp26506250p26534811.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26534469</id>
	<title>Re: register_globals and sessions</title>
	<published>2009-11-26T12:20:02Z</published>
	<updated>2009-11-26T12:20:02Z</updated>
	<author>
		<name>Brady Mitchell-2</name>
	</author>
	<content type="html">On Wed, Nov 25, 2009 at 3:01 PM, Allen McCabe &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26534469&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;allenmccabe@...&lt;/a&gt;&amp;gt; wrote:
&lt;br&gt;&amp;gt; *Warning*: Unknown: Your script possibly relies on a session side-effect
&lt;br&gt;&amp;gt; which existed until PHP 4.2.3. Please be advised that the session extension
&lt;br&gt;&amp;gt; does not consider global variables as a source of data, unless
&lt;br&gt;&amp;gt; register_globals is enabled. You can disable this functionality and this
&lt;br&gt;&amp;gt; warning by setting session.bug_compat_42 or session.bug_compat_warn to off,
&lt;br&gt;&amp;gt; respectively in *Unknown* on line *0*
&lt;br&gt;&lt;br&gt;It sounds like you're trying to use $_SESSION without having a
&lt;br&gt;session_start() call first.
&lt;br&gt;&lt;br&gt;&amp;gt; I have Googled this extensively, and the solutions other people tried
&lt;br&gt;&amp;gt; (turning off the warning) don't work for me; I don't have permission to my
&lt;br&gt;&amp;gt; PHP settings (currently working on a free-hosted site).
&lt;br&gt;&lt;br&gt;There are many settings that can be changed using the function ini_set
&lt;br&gt;(&lt;a href=&quot;http://php.net/ini_set&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://php.net/ini_set&lt;/a&gt;) and display_errors is one of them.
&lt;br&gt;That said, it is always best to fix stuff like this than just hiding
&lt;br&gt;it. When you just hide errors/warnings/notices things don't always
&lt;br&gt;work reliably.
&lt;br&gt;&lt;br&gt;HTH,
&lt;br&gt;&lt;br&gt;Brady
&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://old.nabble.com/register_globals-and-sessions-tp26521845p26534469.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26533024</id>
	<title>My new address</title>
	<published>2009-11-26T10:02:00Z</published>
	<updated>2009-11-26T10:02:00Z</updated>
	<author>
		<name>Austin Ladd</name>
	</author>
	<content type="html">Acce dot ssRx pro ap vides Men’s He gbh alth prod ak ucts to tr vr eat ere zee ctile dysf ltm unction (ED). Cho ge ose from all three FD xpq A-appr cz oved ED pres uq crip ac tion medi gd cations: Via ff gra, Cia iad lis and Lev ja itra. Only a small per id cent og age of men seek help for ED, alth is ough a lar khi ge num zl ber of men expe wyp rience it in var gds ying deg nq rees. All three F iq DA-app dpj roved dru pxc gs are pro pt ven to be eff nky ective in most hea cev lthy men. See Acces gaw sRx’s prod rz uct information pages for deta iz ils about dos pm ages, dire fw ctions, side eff pg ects, pre ua cautions, freq tj uently ask wvl ed ques dkj tions, links to manu ii facturer web jvb sites and patie vt nt/presc tky ribing infor pp mation. You can also acc sjt ess aVia ezt gra, Ci fmv alis, Lev cy itra compa up rison chart that sum wr marizes medi uq cation info xy rmation for the thr bx ee ED d oig rugs in one cent rsq ral loc oel ation. &amp;nbsp; &amp;nbsp; &amp;nbsp;Via huj gra &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Silde pd nafil 50/100mg
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; $1.42 Per P oa ill &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;More info
&lt;br&gt;&amp;nbsp; &amp;nbsp; 
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; C prr ia rva lis &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Tada gb lafil 10/20mg
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; $1.66 Per P ys ill &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;More info
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;
&lt;br&gt;&amp;nbsp; &amp;nbsp; 
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Levi kj tra &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Vard js enafil 20mg
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; $1.72 Per P bk ill &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;More info
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; </content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/My-new-address-tp26533024p26533024.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26532610</id>
	<title>Re: PHP Equivalent to Java Jar or Python Eggs</title>
	<published>2009-11-26T09:22:13Z</published>
	<updated>2009-11-26T09:22:13Z</updated>
	<author>
		<name>Greg Maruszeczka</name>
	</author>
	<content type="html">On Thu, 26 Nov 2009 13:09:48 +1030
&lt;br&gt;James McLean &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26532610&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;james.mclean@...&lt;/a&gt;&amp;gt; wrote:
&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; On Thu, Nov 26, 2009 at 11:50 AM, &amp;nbsp;&amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26532610&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;c4632@...&lt;/a&gt;&amp;gt; wrote:
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; Has anyone done any work towards packaging of PHP in a manner
&lt;br&gt;&amp;gt; &amp;gt; similar to jar or eggs? I was working on a project the other day
&lt;br&gt;&amp;gt; &amp;gt; with a lot of class files and thought this would be a cool, simple
&lt;br&gt;&amp;gt; &amp;gt; way to deploy the app.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Yes; Greg Beaver has done a lot of work with PHAR, which is very
&lt;br&gt;&amp;gt; similar. See &lt;a href=&quot;http://au2.php.net/phar&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://au2.php.net/phar&lt;/a&gt;&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Cheers
&lt;br&gt;&amp;gt; 
&lt;/div&gt;&lt;br&gt;&lt;br&gt;...it's even bundled with PHP 5.3+
&lt;br&gt;&lt;br&gt;GM
&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://old.nabble.com/PHP-Equivalent-to-Java-Jar-or-Python-Eggs-tp26523100p26532610.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26531290</id>
	<title>Re: Re: Detecting The Encoding Of A Text File</title>
	<published>2009-11-26T07:45:46Z</published>
	<updated>2009-11-26T07:45:46Z</updated>
	<author>
		<name>דניאל דנון</name>
	</author>
	<content type="html">I was thinking that if notepad can open it correctly it has headers - but
&lt;br&gt;the link you gave clarify that, my bad.
&lt;br&gt;&lt;br&gt;2009/11/26 Nisse Engström &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26531290&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;news.NOSPAM.0ixbtqKe@...&lt;/a&gt;&amp;gt;
&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; On Thu, 26 Nov 2009 15:39:04 +0200, דניאל דנון wrote:
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; If windows notepad can detect encoding there must be a way to do it
&lt;br&gt;&amp;gt; &amp;gt; yourself.
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; Maybe try to get the file's headers, I think it should also contain the
&lt;br&gt;&amp;gt; &amp;gt; encoding of the file...
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Plain text files don't have any headers. Perhaps they use
&lt;br&gt;&amp;gt; heuristics, eg. examine the distribution of characters to
&lt;br&gt;&amp;gt; determine a probable encoding.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; [Quick Google...]
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;lt;&lt;a href=&quot;http://blogs.msdn.com/oldnewthing/archive/2007/04/17/2158334.aspx&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://blogs.msdn.com/oldnewthing/archive/2007/04/17/2158334.aspx&lt;/a&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; /Nisse
&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;Use ROT26 for best security
&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Detecting-The-Encoding-Of-A-Text-File-tp26524363p26531290.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26530492</id>
	<title>Re: Re: Detecting The Encoding Of A Text File</title>
	<published>2009-11-26T06:49:26Z</published>
	<updated>2009-11-26T06:49:26Z</updated>
	<author>
		<name>Nisse Engström</name>
	</author>
	<content type="html">On Thu, 26 Nov 2009 15:39:04 +0200, דניאל דנון wrote:
&lt;br&gt;&lt;br&gt;&amp;gt; If windows notepad can detect encoding there must be a way to do it
&lt;br&gt;&amp;gt; yourself.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Maybe try to get the file's headers, I think it should also contain the
&lt;br&gt;&amp;gt; encoding of the file...
&lt;br&gt;&lt;br&gt;Plain text files don't have any headers. Perhaps they use
&lt;br&gt;heuristics, eg. examine the distribution of characters to
&lt;br&gt;determine a probable encoding.
&lt;br&gt;&lt;br&gt;[Quick Google...]
&lt;br&gt;&lt;br&gt;&amp;lt;&lt;a href=&quot;http://blogs.msdn.com/oldnewthing/archive/2007/04/17/2158334.aspx&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://blogs.msdn.com/oldnewthing/archive/2007/04/17/2158334.aspx&lt;/a&gt;&amp;gt;
&lt;br&gt;&lt;br&gt;&lt;br&gt;/Nisse
&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://old.nabble.com/Detecting-The-Encoding-Of-A-Text-File-tp26524363p26530492.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26529648</id>
	<title>php htaccess logins and logouts</title>
	<published>2009-11-26T05:42:48Z</published>
	<updated>2009-11-26T05:42:48Z</updated>
	<author>
		<name>Ashley Sheridan-3</name>
	</author>
	<content type="html">Hi all,
&lt;br&gt;&lt;br&gt;I've got a site set up that is using an htaccess file to provide secure
&lt;br&gt;access to a directory. That is working fine. What I wondered was, is
&lt;br&gt;there a way to log out via PHP. As I understand it, the login mechanism
&lt;br&gt;is part of Apache, so I guess what I'm really asking is, is there a way
&lt;br&gt;that I can get Apache to end the 'session' that Apache has set up, using
&lt;br&gt;PHP?
&lt;br&gt;&lt;br&gt;I'm sure I've seen cPanel do it, so I was wondering how easy this would
&lt;br&gt;be to do myself.
&lt;br&gt;&lt;br&gt;Thanks,
&lt;br&gt;Ash
&lt;br&gt;&lt;a href=&quot;http://www.ashleysheridan.co.uk&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.ashleysheridan.co.uk&lt;/a&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/php-htaccess-logins-and-logouts-tp26529648p26529648.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26529573</id>
	<title>Re: Re: Detecting The Encoding Of A Text File</title>
	<published>2009-11-26T05:39:04Z</published>
	<updated>2009-11-26T05:39:04Z</updated>
	<author>
		<name>דניאל דנון</name>
	</author>
	<content type="html">If windows notepad can detect encoding there must be a way to do it
&lt;br&gt;yourself.
&lt;br&gt;&lt;br&gt;Maybe try to get the file's headers, I think it should also contain the
&lt;br&gt;encoding of the file...
&lt;br&gt;&lt;br&gt;2009/11/26 Nitsan Bin-Nun &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26529573&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;nitsanbn@...&lt;/a&gt;&amp;gt;
&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Someone have already suggested it but I haven't tried it yet.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; The thing is that right now it contains Hebrew, but tommorrow this file
&lt;br&gt;&amp;gt; will
&lt;br&gt;&amp;gt; be in German or any other accented language.
&lt;br&gt;&amp;gt; I'm trying to create a function which would detect the encoding and convert
&lt;br&gt;&amp;gt; it into UTF8.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; (I don't have much experience in encoding.. :( )
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; 2009/11/26 Nisse Engström &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26529573&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;news.NOSPAM.0ixbtqKe@...&lt;/a&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; On Thu, 26 Nov 2009 06:55:31 +0200, Nitsan Bin-Nun wrote:
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; Hi,
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; I have been trying for the last couple of hours to determine the
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; encoding of a text file (.txt in windowz).
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; I have this code:
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; $contents = file_get_contents($config['
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; txt_dir'] . $file);
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; $encoding = mb_detect_encoding($contents,
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; &amp;quot;UTF-8,ISO-8859-1,WINDOWS-1252&amp;quot;); //,Windows-1255
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; echo &amp;quot;||encoding:&amp;quot;.$encoding.&amp;quot;||&amp;quot;;
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if ($encoding == 'UTF-8')
&lt;br&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; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; $utfcontents = $contents;
&lt;br&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; &amp;nbsp; &amp;nbsp; else if ($encoding == 'ISO-8859-1')
&lt;br&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; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; $utfcontents = utf8_encode($contents);
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; &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; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; var_dump($utfcontents);
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; The $encoding is ISO-8859-1, the text file contains Hebrew characters,
&lt;br&gt;&amp;gt; &amp;gt; then
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; I'm converting it to utf8.
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; The above code is outputing gibbrish, it seems that it has converted it
&lt;br&gt;&amp;gt; &amp;gt; in
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; some way but not in the
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; proper way that it should have converted it.
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; If you know that the file contains Hebrew, maybe you should
&lt;br&gt;&amp;gt; &amp;gt; try converting from ISO-8859-8?
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; /Nisse
&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;/div&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;Use ROT26 for best security
&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Detecting-The-Encoding-Of-A-Text-File-tp26524363p26529573.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26529600</id>
	<title>Re: Re: Detecting The Encoding Of A Text File</title>
	<published>2009-11-26T05:38:35Z</published>
	<updated>2009-11-26T05:38:35Z</updated>
	<author>
		<name>Ashley Sheridan-3</name>
	</author>
	<content type="html">On Thu, 2009-11-26 at 15:39 +0200, דניאל דנון wrote:
&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; If windows notepad can detect encoding there must be a way to do it
&lt;br&gt;&amp;gt; yourself.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Maybe try to get the file's headers, I think it should also contain the
&lt;br&gt;&amp;gt; encoding of the file...
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; 2009/11/26 Nitsan Bin-Nun &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26529600&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;nitsanbn@...&lt;/a&gt;&amp;gt;
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; &amp;gt; Someone have already suggested it but I haven't tried it yet.
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; The thing is that right now it contains Hebrew, but tommorrow this file
&lt;br&gt;&amp;gt; &amp;gt; will
&lt;br&gt;&amp;gt; &amp;gt; be in German or any other accented language.
&lt;br&gt;&amp;gt; &amp;gt; I'm trying to create a function which would detect the encoding and convert
&lt;br&gt;&amp;gt; &amp;gt; it into UTF8.
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; (I don't have much experience in encoding.. :( )
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; 2009/11/26 Nisse Engström &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26529600&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;news.NOSPAM.0ixbtqKe@...&lt;/a&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; On Thu, 26 Nov 2009 06:55:31 +0200, Nitsan Bin-Nun wrote:
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; &amp;gt; Hi,
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; &amp;gt; I have been trying for the last couple of hours to determine the
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; &amp;gt; encoding of a text file (.txt in windowz).
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; &amp;gt; I have this code:
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; &amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; $contents = file_get_contents($config['
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; &amp;gt; txt_dir'] . $file);
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; &amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; $encoding = mb_detect_encoding($contents,
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; &amp;gt; &amp;quot;UTF-8,ISO-8859-1,WINDOWS-1252&amp;quot;); //,Windows-1255
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; &amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; echo &amp;quot;||encoding:&amp;quot;.$encoding.&amp;quot;||&amp;quot;;
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; &amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if ($encoding == 'UTF-8')
&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;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; $utfcontents = $contents;
&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;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; else if ($encoding == 'ISO-8859-1')
&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;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; $utfcontents = utf8_encode($contents);
&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;gt;
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; &amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; var_dump($utfcontents);
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; &amp;gt; The $encoding is ISO-8859-1, the text file contains Hebrew characters,
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; then
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; &amp;gt; I'm converting it to utf8.
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; &amp;gt; The above code is outputing gibbrish, it seems that it has converted it
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; in
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; &amp;gt; some way but not in the
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; &amp;gt; proper way that it should have converted it.
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; If you know that the file contains Hebrew, maybe you should
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; try converting from ISO-8859-8?
&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; /Nisse
&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; 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; &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; &amp;gt;
&lt;br&gt;&amp;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;/div&gt;&lt;br&gt;&lt;br&gt;A plain text file wouldn't have headers like that would it? At least,
&lt;br&gt;not in the sense that an image file has a header, or an office document
&lt;br&gt;file has a header.
&lt;br&gt;&lt;br&gt;Thanks,
&lt;br&gt;Ash
&lt;br&gt;&lt;a href=&quot;http://www.ashleysheridan.co.uk&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.ashleysheridan.co.uk&lt;/a&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Detecting-The-Encoding-Of-A-Text-File-tp26524363p26529600.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26528929</id>
	<title>SOAP: Return object to client</title>
	<published>2009-11-26T04:41:34Z</published>
	<updated>2009-11-26T04:41:34Z</updated>
	<author>
		<name>Manoj Singh</name>
	</author>
	<content type="html">Hi All,
&lt;br&gt;&lt;br&gt;I am implementing the web service through PHP SOAP library.
&lt;br&gt;&lt;br&gt;Actually I want to return the object to the client through web service so
&lt;br&gt;that client can call all the methods of that object.
&lt;br&gt;&lt;br&gt;Please help me out.
&lt;br&gt;&lt;br&gt;Regards,
&lt;br&gt;Manoj
&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/SOAP%3A-Return-object-to-client-tp26528929p26528929.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26528810</id>
	<title>Re: Re: Detecting The Encoding Of A Text File</title>
	<published>2009-11-26T04:32:44Z</published>
	<updated>2009-11-26T04:32:44Z</updated>
	<author>
		<name>Nitsan Bin-Nun</name>
	</author>
	<content type="html">Someone have already suggested it but I haven't tried it yet.
&lt;br&gt;&lt;br&gt;The thing is that right now it contains Hebrew, but tommorrow this file will
&lt;br&gt;be in German or any other accented language.
&lt;br&gt;I'm trying to create a function which would detect the encoding and convert
&lt;br&gt;it into UTF8.
&lt;br&gt;&lt;br&gt;(I don't have much experience in encoding.. :( )
&lt;br&gt;&lt;br&gt;2009/11/26 Nisse Engström &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26528810&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;news.NOSPAM.0ixbtqKe@...&lt;/a&gt;&amp;gt;
&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; On Thu, 26 Nov 2009 06:55:31 +0200, Nitsan Bin-Nun wrote:
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; Hi,
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; I have been trying for the last couple of hours to determine the
&lt;br&gt;&amp;gt; &amp;gt; encoding of a text file (.txt in windowz).
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; I have this code:
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; $contents = file_get_contents($config['
&lt;br&gt;&amp;gt; &amp;gt; txt_dir'] . $file);
&lt;br&gt;&amp;gt; &amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; $encoding = mb_detect_encoding($contents,
&lt;br&gt;&amp;gt; &amp;gt; &amp;quot;UTF-8,ISO-8859-1,WINDOWS-1252&amp;quot;); //,Windows-1255
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; echo &amp;quot;||encoding:&amp;quot;.$encoding.&amp;quot;||&amp;quot;;
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if ($encoding == 'UTF-8')
&lt;br&gt;&amp;gt; &amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; {
&lt;br&gt;&amp;gt; &amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; $utfcontents = $contents;
&lt;br&gt;&amp;gt; &amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }
&lt;br&gt;&amp;gt; &amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; else if ($encoding == 'ISO-8859-1')
&lt;br&gt;&amp;gt; &amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; {
&lt;br&gt;&amp;gt; &amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; $utfcontents = utf8_encode($contents);
&lt;br&gt;&amp;gt; &amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; var_dump($utfcontents);
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; The $encoding is ISO-8859-1, the text file contains Hebrew characters,
&lt;br&gt;&amp;gt; then
&lt;br&gt;&amp;gt; &amp;gt; I'm converting it to utf8.
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; The above code is outputing gibbrish, it seems that it has converted it
&lt;br&gt;&amp;gt; in
&lt;br&gt;&amp;gt; &amp;gt; some way but not in the
&lt;br&gt;&amp;gt; &amp;gt; proper way that it should have converted it.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; If you know that the file contains Hebrew, maybe you should
&lt;br&gt;&amp;gt; try converting from ISO-8859-8?
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; /Nisse
&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://old.nabble.com/Detecting-The-Encoding-Of-A-Text-File-tp26524363p26528810.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26526752</id>
	<title>Re: Wiki recommendation?</title>
	<published>2009-11-26T01:40:06Z</published>
	<updated>2009-11-26T01:40:06Z</updated>
	<author>
		<name>O. Lavell</name>
	</author>
	<content type="html">Jonathan Tapicer wrote:
&lt;br&gt;&lt;br&gt;&amp;gt; I also recommend dokuwiki (with a k, not c :) ):
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://www.dokuwiki.org/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.dokuwiki.org/&lt;/a&gt;&lt;br&gt;&lt;br&gt;I will add just my 2 cts to that. I have used several wikis but I always 
&lt;br&gt;come back to DokuWiki. Among other things that I like about it, like 
&lt;br&gt;plugins, is the fact that it is file based. It can be nice sometimes to 
&lt;br&gt;be able to make certain changes to your pages with a normal editor, 
&lt;br&gt;search and replace tool or whatever.
&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://old.nabble.com/Wiki-recommendation--tp26521567p26526752.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26525838</id>
	<title>Re: Detecting The Encoding Of A Text File</title>
	<published>2009-11-26T00:17:43Z</published>
	<updated>2009-11-26T00:17:43Z</updated>
	<author>
		<name>Nisse Engström</name>
	</author>
	<content type="html">On Thu, 26 Nov 2009 06:55:31 +0200, Nitsan Bin-Nun wrote:
&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Hi,
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; I have been trying for the last couple of hours to determine the
&lt;br&gt;&amp;gt; encoding of a text file (.txt in windowz).
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; I have this code:
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; $contents = file_get_contents($config['
&lt;br&gt;&amp;gt; txt_dir'] . $file);
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; $encoding = mb_detect_encoding($contents,
&lt;br&gt;&amp;gt; &amp;quot;UTF-8,ISO-8859-1,WINDOWS-1252&amp;quot;); //,Windows-1255
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; echo &amp;quot;||encoding:&amp;quot;.$encoding.&amp;quot;||&amp;quot;;
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if ($encoding == 'UTF-8')
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; {
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; $utfcontents = $contents;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; else if ($encoding == 'ISO-8859-1')
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; {
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; $utfcontents = utf8_encode($contents);
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; var_dump($utfcontents);
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; The $encoding is ISO-8859-1, the text file contains Hebrew characters, then
&lt;br&gt;&amp;gt; I'm converting it to utf8.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; The above code is outputing gibbrish, it seems that it has converted it in
&lt;br&gt;&amp;gt; some way but not in the
&lt;br&gt;&amp;gt; proper way that it should have converted it.
&lt;/div&gt;&lt;br&gt;If you know that the file contains Hebrew, maybe you should
&lt;br&gt;try converting from ISO-8859-8?
&lt;br&gt;&lt;br&gt;&lt;br&gt;/Nisse
&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://old.nabble.com/Detecting-The-Encoding-Of-A-Text-File-tp26524363p26525838.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26525788</id>
	<title>Re: Wiki recommendation?</title>
	<published>2009-11-26T00:12:20Z</published>
	<updated>2009-11-26T00:12:20Z</updated>
	<author>
		<name>Lester Caine</name>
	</author>
	<content type="html">Skip Evans wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Hey all,
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Thanks much for the recommendations. I'll check them out.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; We don't need fine grained control over access; basically admins that 
&lt;br&gt;&amp;gt; can modify content and the public who cannot.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; But right now DocuWiki is sounding good, and I'd rather, for some 
&lt;br&gt;&amp;gt; strange reason, not use a DB, although I can't justify that in any 
&lt;br&gt;&amp;gt; rational way. I mean, MySQL is already on the machine.
&lt;/div&gt;&lt;br&gt;Perhaps good enough reason for NOT wanting to use a database ;)
&lt;br&gt;Although a lot more stable than it used to be - but until one can run a backup 
&lt;br&gt;transparently at intervals is it really suitable for live data? My own live 
&lt;br&gt;sites just mirror to a backup machine including a backup of the database 
&lt;br&gt;automatically.
&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;Lester Caine - G8HFL
&lt;br&gt;-----------------------------
&lt;br&gt;Contact - &lt;a href=&quot;http://lsces.co.uk/wiki/?page=contact&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://lsces.co.uk/wiki/?page=contact&lt;/a&gt;&lt;br&gt;L.S.Caine Electronic Services - &lt;a href=&quot;http://lsces.co.uk&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://lsces.co.uk&lt;/a&gt;&lt;br&gt;EnquirySolve - &lt;a href=&quot;http://enquirysolve.com/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://enquirysolve.com/&lt;/a&gt;&lt;br&gt;Model Engineers Digital Workshop - &lt;a href=&quot;http://medw.co.uk//&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://medw.co.uk//&lt;/a&gt;&lt;br&gt;Firebird - &lt;a href=&quot;http://www.firebirdsql.org/index.php&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.firebirdsql.org/index.php&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://old.nabble.com/Wiki-recommendation--tp26521567p26525788.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26524406</id>
	<title>Re: Wiki recommendation?</title>
	<published>2009-11-25T21:03:34Z</published>
	<updated>2009-11-25T21:03:34Z</updated>
	<author>
		<name>tg-php</name>
	</author>
	<content type="html">Well, if you want to get really extreme, you could use TiddlyWiki:
&lt;br&gt;&lt;a href=&quot;http://www.tiddlywiki.com/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.tiddlywiki.com/&lt;/a&gt;&lt;br&gt;&lt;br&gt;It's a wiki contained in a single HTML file. &amp;nbsp;No database. &amp;nbsp;No server side 
&lt;br&gt;scripting. &amp;nbsp;No server! &amp;nbsp;hah
&lt;br&gt;&lt;br&gt;-TG
&lt;br&gt;&lt;br&gt;----- Original Message -----
&lt;br&gt;From: Skip Evans &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26524406&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;skip@...&lt;/a&gt;&amp;gt;
&lt;br&gt;To: TG &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26524406&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;tg-php@...&lt;/a&gt;&amp;gt;
&lt;br&gt;Cc: Jonathan Tapicer &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26524406&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;tapicer@...&lt;/a&gt;&amp;gt;, &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26524406&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;aurfalien@...&lt;/a&gt;, 
&lt;br&gt;&amp;quot;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26524406&amp;i=4&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;php-general@...&lt;/a&gt;&amp;quot; &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26524406&amp;i=5&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;php-general@...&lt;/a&gt;&amp;gt;
&lt;br&gt;Date: Wed, 25 Nov 2009 22:33:54 -0600
&lt;br&gt;Subject: Re: [PHP] Wiki recommendation?
&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Hey all,
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Thanks much for the recommendations. I'll check them out.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; We don't need fine grained control over access; basically 
&lt;br&gt;&amp;gt; admins that can modify content and the public who cannot.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; But right now DocuWiki is sounding good, and I'd rather, for 
&lt;br&gt;&amp;gt; some strange reason, not use a DB, although I can't justify 
&lt;br&gt;&amp;gt; that in any rational way. I mean, MySQL is already on the machine.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Thanks again!
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Skip
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; TG wrote:
&lt;br&gt;&amp;gt; &amp;gt; A while back I set up a TikiWiki for a client. &amp;nbsp;I think I liked it 
&lt;/div&gt;better 
&lt;br&gt;&amp;gt; &amp;gt; than any of the other wikis I've messed with. &amp;nbsp;But honestly, I didn't 
&lt;br&gt;get 
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; &amp;gt; to use it much and I've only ever used Mediawiki to any real length.
&lt;br&gt;&amp;gt; &amp;gt; 
&lt;br&gt;&amp;gt; &amp;gt; Definitely give it a look, though.
&lt;br&gt;&amp;gt; &amp;gt; 
&lt;br&gt;&amp;gt; &amp;gt; -TG
&lt;br&gt;&amp;gt; &amp;gt; 
&lt;br&gt;&amp;gt; &amp;gt; ----- Original Message -----
&lt;br&gt;&amp;gt; &amp;gt; From: Jonathan Tapicer &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26524406&amp;i=6&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;tapicer@...&lt;/a&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; To: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26524406&amp;i=7&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;aurfalien@...&lt;/a&gt;
&lt;br&gt;&amp;gt; &amp;gt; Cc: Skip Evans &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26524406&amp;i=8&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;skip@...&lt;/a&gt;&amp;gt;, &amp;quot;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26524406&amp;i=9&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;php-general@...&lt;/a&gt;&amp;quot; 
&lt;br&gt;&amp;gt; &amp;gt; &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26524406&amp;i=10&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;php-general@...&lt;/a&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; Date: Wed, 25 Nov 2009 23:54:07 -0300
&lt;br&gt;&amp;gt; &amp;gt; Subject: Re: [PHP] Wiki recommendation?
&lt;br&gt;&amp;gt; &amp;gt; 
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; On Wed, Nov 25, 2009 at 8:37 PM, &amp;nbsp;&amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26524406&amp;i=11&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;aurfalien@...&lt;/a&gt;&amp;gt; wrote:
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt;&amp;gt; On Nov 25, 2009, at 2:42 PM, Skip Evans wrote:
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt;&amp;gt;&amp;gt; Hey all,
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt;&amp;gt;&amp;gt; I'm looking for a good Wiki to maintain documentation on a large
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt;&amp;gt;&amp;gt; commercial web site that is always growing.
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt;&amp;gt;&amp;gt; DokuWiki is the only one I've installed and used at any length, so 
&lt;br&gt;&amp;gt; &amp;gt; before
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt;&amp;gt;&amp;gt; I just use that one again I'd like to hear from the peanut gallery 
&lt;/div&gt;what
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; &amp;gt;&amp;gt;&amp;gt;&amp;gt; other suggestions you'd have.
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt;&amp;gt;&amp;gt; Remember, this will be for end user documentation for a large 
&lt;br&gt;&amp;gt; &amp;gt; commercial
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt;&amp;gt;&amp;gt; CMS type system, something site admins will go to for information on 
&lt;br&gt;&amp;gt; &amp;gt; site
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt;&amp;gt;&amp;gt; features, updates, etc.
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt;&amp;gt;&amp;gt; Let the shouting begin!
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt;&amp;gt;&amp;gt; Thanks, all, and a very happy eating-charred-dead-bird-flesh day to 
&lt;/div&gt;you
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt;&amp;gt;&amp;gt; all!!!
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt;&amp;gt;&amp;gt; Skip
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt;&amp;gt; Well, I've used DocuWiki and bit new to MediaWiki which I think 
&lt;br&gt;&amp;gt; &amp;gt; WikiPedia
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt;&amp;gt; uses.
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt;&amp;gt; MediaWiki uses a MySQL DB were as DocuWiki is a tree dir structure 
&lt;br&gt;kind 
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; &amp;gt; of
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt;&amp;gt; thing.
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt;&amp;gt; I actually prefer DocuWiki but maybe thats because I didn't setup 
&lt;br&gt;&amp;gt; &amp;gt; MediaWiki
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt;&amp;gt; correctly.
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt;&amp;gt; Cacti uses DocuWiki by the way and I personally avoid DB usage if 
&lt;br&gt;&amp;gt; &amp;gt; possible.
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt;&amp;gt; I think its easier to corrupt a DB then it is to corrupt a filesystem.
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt;&amp;gt; However I'm unsure of how scalable a pure file system based Wiki is, 
&lt;/div&gt;I 
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; &amp;gt; think
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt;&amp;gt; if you put it on a mirrored disk with a decent cache on the Raid 
&lt;br&gt;&amp;gt; &amp;gt; controller,
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt;&amp;gt; you'll be fine performance and DR wise.
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt;&amp;gt; If its Linux, then MD based (software raids) works pretty well.
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt;&amp;gt; - aurf
&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;&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;&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;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; I also recommend dokuwiki (with a k, not c :) ): 
&lt;/div&gt;&lt;a href=&quot;http://www.dokuwiki.org/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.dokuwiki.org/&lt;/a&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; &amp;gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; Regards,
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; Jonathan
&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; 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;&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;&amp;gt;
&lt;br&gt;&amp;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; Skip Evans
&lt;br&gt;&amp;gt; PenguinSites.com, LLC
&lt;br&gt;&amp;gt; 503 S Baldwin St, #1
&lt;br&gt;&amp;gt; Madison WI 53703
&lt;br&gt;&amp;gt; 608.250.2720
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://penguinsites.com&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://penguinsites.com&lt;/a&gt;&lt;br&gt;&amp;gt; ------------------------------------
&lt;br&gt;&amp;gt; Those of you who believe in
&lt;br&gt;&amp;gt; telekinesis, raise my hand.
&lt;br&gt;&amp;gt; &amp;nbsp; -- Kurt Vonnegut
&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://old.nabble.com/Wiki-recommendation--tp26521567p26524406.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26524363</id>
	<title>Detecting The Encoding Of A Text File</title>
	<published>2009-11-25T20:55:31Z</published>
	<updated>2009-11-25T20:55:31Z</updated>
	<author>
		<name>Nitsan Bin-Nun</name>
	</author>
	<content type="html">Hi,
&lt;br&gt;&lt;br&gt;I have been trying for the last couple of hours to determine the
&lt;br&gt;encoding of a text file (.txt in windowz).
&lt;br&gt;&lt;br&gt;I have this code:
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; $contents = file_get_contents($config['
&lt;br&gt;txt_dir'] . $file);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; $encoding = mb_detect_encoding($contents,
&lt;br&gt;&amp;quot;UTF-8,ISO-8859-1,WINDOWS-1252&amp;quot;); //,Windows-1255
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; echo &amp;quot;||encoding:&amp;quot;.$encoding.&amp;quot;||&amp;quot;;
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if ($encoding == 'UTF-8')
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; {
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; $utfcontents = $contents;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; else if ($encoding == 'ISO-8859-1')
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; {
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; $utfcontents = utf8_encode($contents);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; var_dump($utfcontents);
&lt;br&gt;&lt;br&gt;The $encoding is ISO-8859-1, the text file contains Hebrew characters, then
&lt;br&gt;I'm converting it to utf8.
&lt;br&gt;&lt;br&gt;The above code is outputing gibbrish, it seems that it has converted it in
&lt;br&gt;some way but not in the
&lt;br&gt;proper way that it should have converted it.
&lt;br&gt;&lt;br&gt;My page is UTF-8 encoded, without BOM, I send UTF-8 headers to the browser
&lt;br&gt;and HTML content
&lt;br&gt;encoding meta tag as well.
&lt;br&gt;&lt;br&gt;I have no idea what I am doing wrong.
&lt;br&gt;&lt;br&gt;I would highly appreciate it if someone could point me to the right
&lt;br&gt;direction.
&lt;br&gt;&lt;br&gt;Thanks in Advance,
&lt;br&gt;&lt;br&gt;Nitsan
&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Detecting-The-Encoding-Of-A-Text-File-tp26524363p26524363.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26524255</id>
	<title>Re: Wiki recommendation?</title>
	<published>2009-11-25T20:33:54Z</published>
	<updated>2009-11-25T20:33:54Z</updated>
	<author>
		<name>Skip Evans</name>
	</author>
	<content type="html">Hey all,
&lt;br&gt;&lt;br&gt;Thanks much for the recommendations. I'll check them out.
&lt;br&gt;&lt;br&gt;We don't need fine grained control over access; basically 
&lt;br&gt;admins that can modify content and the public who cannot.
&lt;br&gt;&lt;br&gt;But right now DocuWiki is sounding good, and I'd rather, for 
&lt;br&gt;some strange reason, not use a DB, although I can't justify 
&lt;br&gt;that in any rational way. I mean, MySQL is already on the machine.
&lt;br&gt;&lt;br&gt;Thanks again!
&lt;br&gt;&lt;br&gt;Skip
&lt;br&gt;&lt;br&gt;TG wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; A while back I set up a TikiWiki for a client. &amp;nbsp;I think I liked it better 
&lt;br&gt;&amp;gt; than any of the other wikis I've messed with. &amp;nbsp;But honestly, I didn't get 
&lt;br&gt;&amp;gt; to use it much and I've only ever used Mediawiki to any real length.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Definitely give it a look, though.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; -TG
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; ----- Original Message -----
&lt;br&gt;&amp;gt; From: Jonathan Tapicer &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26524255&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;tapicer@...&lt;/a&gt;&amp;gt;
&lt;br&gt;&amp;gt; To: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26524255&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;aurfalien@...&lt;/a&gt;
&lt;br&gt;&amp;gt; Cc: Skip Evans &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26524255&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;skip@...&lt;/a&gt;&amp;gt;, &amp;quot;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26524255&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;php-general@...&lt;/a&gt;&amp;quot; 
&lt;br&gt;&amp;gt; &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26524255&amp;i=4&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;php-general@...&lt;/a&gt;&amp;gt;
&lt;br&gt;&amp;gt; Date: Wed, 25 Nov 2009 23:54:07 -0300
&lt;br&gt;&amp;gt; Subject: Re: [PHP] Wiki recommendation?
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt;&amp;gt; On Wed, Nov 25, 2009 at 8:37 PM, &amp;nbsp;&amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26524255&amp;i=5&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;aurfalien@...&lt;/a&gt;&amp;gt; wrote:
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; On Nov 25, 2009, at 2:42 PM, Skip Evans wrote:
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; Hey all,
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; I'm looking for a good Wiki to maintain documentation on a large
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; commercial web site that is always growing.
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; DokuWiki is the only one I've installed and used at any length, so 
&lt;br&gt;&amp;gt; before
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; I just use that one again I'd like to hear from the peanut gallery what
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; other suggestions you'd have.
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; Remember, this will be for end user documentation for a large 
&lt;br&gt;&amp;gt; commercial
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; CMS type system, something site admins will go to for information on 
&lt;br&gt;&amp;gt; site
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; features, updates, etc.
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; Let the shouting begin!
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; Thanks, all, and a very happy eating-charred-dead-bird-flesh day to you
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; all!!!
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; Skip
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; Well, I've used DocuWiki and bit new to MediaWiki which I think 
&lt;br&gt;&amp;gt; WikiPedia
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; uses.
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; MediaWiki uses a MySQL DB were as DocuWiki is a tree dir structure kind 
&lt;br&gt;&amp;gt; of
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; thing.
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; I actually prefer DocuWiki but maybe thats because I didn't setup 
&lt;br&gt;&amp;gt; MediaWiki
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; correctly.
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; Cacti uses DocuWiki by the way and I personally avoid DB usage if 
&lt;br&gt;&amp;gt; possible.
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; I think its easier to corrupt a DB then it is to corrupt a filesystem.
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; However I'm unsure of how scalable a pure file system based Wiki is, I 
&lt;br&gt;&amp;gt; think
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; if you put it on a mirrored disk with a decent cache on the Raid 
&lt;br&gt;&amp;gt; controller,
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; you'll be fine performance and DR wise.
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; If its Linux, then MD based (software raids) works pretty well.
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; - aurf
&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; 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;&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;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; I also recommend dokuwiki (with a k, not c :) ): &lt;a href=&quot;http://www.dokuwiki.org/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.dokuwiki.org/&lt;/a&gt;&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; Regards,
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; Jonathan
&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;/div&gt;&lt;br&gt;-- 
&lt;br&gt;====================================
&lt;br&gt;Skip Evans
&lt;br&gt;PenguinSites.com, LLC
&lt;br&gt;503 S Baldwin St, #1
&lt;br&gt;Madison WI 53703
&lt;br&gt;608.250.2720
&lt;br&gt;&lt;a href=&quot;http://penguinsites.com&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://penguinsites.com&lt;/a&gt;&lt;br&gt;------------------------------------
&lt;br&gt;Those of you who believe in
&lt;br&gt;telekinesis, raise my hand.
&lt;br&gt;&amp;nbsp; -- Kurt Vonnegut
&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://old.nabble.com/Wiki-recommendation--tp26521567p26524255.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26524127</id>
	<title>Re: Wiki recommendation?</title>
	<published>2009-11-25T20:12:43Z</published>
	<updated>2009-11-25T20:12:43Z</updated>
	<author>
		<name>tg-php</name>
	</author>
	<content type="html">A while back I set up a TikiWiki for a client. &amp;nbsp;I think I liked it better 
&lt;br&gt;than any of the other wikis I've messed with. &amp;nbsp;But honestly, I didn't get 
&lt;br&gt;to use it much and I've only ever used Mediawiki to any real length.
&lt;br&gt;&lt;br&gt;Definitely give it a look, though.
&lt;br&gt;&lt;br&gt;-TG
&lt;br&gt;&lt;br&gt;----- Original Message -----
&lt;br&gt;From: Jonathan Tapicer &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26524127&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;tapicer@...&lt;/a&gt;&amp;gt;
&lt;br&gt;To: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26524127&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;aurfalien@...&lt;/a&gt;
&lt;br&gt;Cc: Skip Evans &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26524127&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;skip@...&lt;/a&gt;&amp;gt;, &amp;quot;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26524127&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;php-general@...&lt;/a&gt;&amp;quot; 
&lt;br&gt;&amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26524127&amp;i=4&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;php-general@...&lt;/a&gt;&amp;gt;
&lt;br&gt;Date: Wed, 25 Nov 2009 23:54:07 -0300
&lt;br&gt;Subject: Re: [PHP] Wiki recommendation?
&lt;br&gt;&lt;br&gt;&amp;gt; On Wed, Nov 25, 2009 at 8:37 PM, &amp;nbsp;&amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26524127&amp;i=5&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;aurfalien@...&lt;/a&gt;&amp;gt; wrote:
&lt;br&gt;&amp;gt; &amp;gt; On Nov 25, 2009, at 2:42 PM, Skip Evans wrote:
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; Hey all,
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; I'm looking for a good Wiki to maintain documentation on a large
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; commercial web site that is always growing.
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; DokuWiki is the only one I've installed and used at any length, so 
&lt;br&gt;before
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; I just use that one again I'd like to hear from the peanut gallery what
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; other suggestions you'd have.
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; Remember, this will be for end user documentation for a large 
&lt;br&gt;commercial
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; CMS type system, something site admins will go to for information on 
&lt;br&gt;site
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; features, updates, etc.
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; Let the shouting begin!
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; Thanks, all, and a very happy eating-charred-dead-bird-flesh day to you
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; all!!!
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; Skip
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; Well, I've used DocuWiki and bit new to MediaWiki which I think 
&lt;/div&gt;WikiPedia
&lt;br&gt;&amp;gt; &amp;gt; uses.
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; MediaWiki uses a MySQL DB were as DocuWiki is a tree dir structure kind 
&lt;br&gt;of
&lt;br&gt;&amp;gt; &amp;gt; thing.
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; I actually prefer DocuWiki but maybe thats because I didn't setup 
&lt;br&gt;MediaWiki
&lt;br&gt;&amp;gt; &amp;gt; correctly.
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; Cacti uses DocuWiki by the way and I personally avoid DB usage if 
&lt;br&gt;possible.
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; I think its easier to corrupt a DB then it is to corrupt a filesystem.
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; However I'm unsure of how scalable a pure file system based Wiki is, I 
&lt;br&gt;think
&lt;br&gt;&amp;gt; &amp;gt; if you put it on a mirrored disk with a decent cache on the Raid 
&lt;br&gt;controller,
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; &amp;gt; you'll be fine performance and DR wise.
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; If its Linux, then MD based (software raids) works pretty well.
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; - aurf
&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; 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; I also recommend dokuwiki (with a k, not c :) ): &lt;a href=&quot;http://www.dokuwiki.org/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.dokuwiki.org/&lt;/a&gt;&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Regards,
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Jonathan
&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://old.nabble.com/Wiki-recommendation--tp26521567p26524127.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26523715</id>
	<title>Re: Wiki recommendation?</title>
	<published>2009-11-25T18:54:07Z</published>
	<updated>2009-11-25T18:54:07Z</updated>
	<author>
		<name>Jonathan Tapicer</name>
	</author>
	<content type="html">On Wed, Nov 25, 2009 at 8:37 PM, &amp;nbsp;&amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26523715&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;aurfalien@...&lt;/a&gt;&amp;gt; wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; On Nov 25, 2009, at 2:42 PM, Skip Evans wrote:
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; Hey all,
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; I'm looking for a good Wiki to maintain documentation on a large
&lt;br&gt;&amp;gt;&amp;gt; commercial web site that is always growing.
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; DokuWiki is the only one I've installed and used at any length, so before
&lt;br&gt;&amp;gt;&amp;gt; I just use that one again I'd like to hear from the peanut gallery what
&lt;br&gt;&amp;gt;&amp;gt; other suggestions you'd have.
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; Remember, this will be for end user documentation for a large commercial
&lt;br&gt;&amp;gt;&amp;gt; CMS type system, something site admins will go to for information on site
&lt;br&gt;&amp;gt;&amp;gt; features, updates, etc.
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; Let the shouting begin!
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; Thanks, all, and a very happy eating-charred-dead-bird-flesh day to you
&lt;br&gt;&amp;gt;&amp;gt; all!!!
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; Skip
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Well, I've used DocuWiki and bit new to MediaWiki which I think WikiPedia
&lt;br&gt;&amp;gt; uses.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; MediaWiki uses a MySQL DB were as DocuWiki is a tree dir structure kind of
&lt;br&gt;&amp;gt; thing.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; I actually prefer DocuWiki but maybe thats because I didn't setup MediaWiki
&lt;br&gt;&amp;gt; correctly.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Cacti uses DocuWiki by the way and I personally avoid DB usage if possible.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; I think its easier to corrupt a DB then it is to corrupt a filesystem.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; However I'm unsure of how scalable a pure file system based Wiki is, I think
&lt;br&gt;&amp;gt; if you put it on a mirrored disk with a decent cache on the Raid controller,
&lt;br&gt;&amp;gt; you'll be fine performance and DR wise.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; If its Linux, then MD based (software raids) works pretty well.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; - aurf
&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;I also recommend dokuwiki (with a k, not c :) ): &lt;a href=&quot;http://www.dokuwiki.org/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.dokuwiki.org/&lt;/a&gt;&lt;br&gt;&lt;br&gt;Regards,
&lt;br&gt;&lt;br&gt;Jonathan
&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://old.nabble.com/Wiki-recommendation--tp26521567p26523715.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26523622</id>
	<title>Re: PHP Equivalent to Java Jar or Python Eggs</title>
	<published>2009-11-25T18:39:48Z</published>
	<updated>2009-11-25T18:39:48Z</updated>
	<author>
		<name>James McLean-2</name>
	</author>
	<content type="html">On Thu, Nov 26, 2009 at 11:50 AM, &amp;nbsp;&amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26523622&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;c4632@...&lt;/a&gt;&amp;gt; wrote:
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Has anyone done any work towards packaging of PHP in a manner similar to jar or eggs? I was working on a project the other day with a lot of class files and thought this would be a cool, simple way to deploy the app.
&lt;br&gt;&lt;br&gt;Yes; Greg Beaver has done a lot of work with PHAR, which is very
&lt;br&gt;similar. See &lt;a href=&quot;http://au2.php.net/phar&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://au2.php.net/phar&lt;/a&gt;&lt;br&gt;&lt;br&gt;Cheers
&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://old.nabble.com/PHP-Equivalent-to-Java-Jar-or-Python-Eggs-tp26523100p26523622.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26523100</id>
	<title>PHP Equivalent to Java Jar or Python Eggs</title>
	<published>2009-11-25T17:20:42Z</published>
	<updated>2009-11-25T17:20:42Z</updated>
	<author>
		<name>c4632</name>
	</author>
	<content type="html">&lt;br&gt;Has anyone done any work towards packaging of PHP in a manner similar to jar or eggs? I was working on a project the other day with a lot of class files and thought this would be a cool, simple way to deploy the app. 
&lt;br&gt;&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/PHP-Equivalent-to-Java-Jar-or-Python-Eggs-tp26523100p26523100.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26522845</id>
	<title>Re: how to prevent a mild DOSS attack?</title>
	<published>2009-11-25T16:44:44Z</published>
	<updated>2009-11-25T16:44:44Z</updated>
	<author>
		<name>LinuxManMikeC</name>
	</author>
	<content type="html">On Wed, Nov 25, 2009 at 3:57 PM, Ashley Sheridan
&lt;br&gt;&amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26522845&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;ash@...&lt;/a&gt;&amp;gt; wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; On Wed, 2009-11-25 at 16:38 -0600, LAMP wrote:
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; hi guys,
&lt;br&gt;&amp;gt;&amp;gt; this morning I got complains from website owner and tons of visitors -
&lt;br&gt;&amp;gt;&amp;gt; nobody was able to access the website. it will just timeout.
&lt;br&gt;&amp;gt;&amp;gt; I contacted hosting company  for more info but they said the virtual
&lt;br&gt;&amp;gt;&amp;gt; privet server, where the website is, has a lot of traffic and 512MB of
&lt;br&gt;&amp;gt;&amp;gt; RAM is not enough and I have to make an upgrade to at least 1GB etc.
&lt;br&gt;&amp;gt;&amp;gt; it does a make a sense.
&lt;br&gt;&amp;gt;&amp;gt; though, at 4pm I, nor 10 other people I asked for help, was able to
&lt;br&gt;&amp;gt;&amp;gt; access to the website.
&lt;br&gt;&amp;gt;&amp;gt; it was a little bit fishy about BIG traffic whole day long (the website
&lt;br&gt;&amp;gt;&amp;gt; is far from it) and, since I don't have a problem accessing WHM/cPanel
&lt;br&gt;&amp;gt;&amp;gt; of the server, I downloaded apache access file (stupid, I supposed to do
&lt;br&gt;&amp;gt;&amp;gt; it in the morning) and found 20-30 IP addresses, repeatedly were trying
&lt;br&gt;&amp;gt;&amp;gt; to access one (only one) page (something like article.php). and they
&lt;br&gt;&amp;gt;&amp;gt; were requesting the same page so frequently - nobody else was able to
&lt;br&gt;&amp;gt;&amp;gt; access to the website. it looked to me like a little DOSS attack - where
&lt;br&gt;&amp;gt;&amp;gt; attacker wanted just to make the website busy, not to crush the server.
&lt;br&gt;&amp;gt;&amp;gt; I contacted hosting company again. they said there is nothing they can
&lt;br&gt;&amp;gt;&amp;gt; do about this-  even I'm paying them to manage my virtual server (I can
&lt;br&gt;&amp;gt;&amp;gt; manage this way by my self too). of course they can if I pay extra :-(
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; now, my question is: is there anything I can do to stop these attacks
&lt;br&gt;&amp;gt;&amp;gt; using php? something? anything?
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; thanks
&lt;br&gt;&amp;gt;&amp;gt; L
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; There's nothing you could do with PHP to fix this really, as trying to
&lt;br&gt;&amp;gt; block IP addresses from there would be expensive for the processor and
&lt;br&gt;&amp;gt; memory of the server.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; You could use the cPanel to block access to the offending IP addresses
&lt;br&gt;&amp;gt; though.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Thanks,
&lt;br&gt;&amp;gt; Ash
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://www.ashleysheridan.co.uk&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.ashleysheridan.co.uk&lt;/a&gt;&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;/div&gt;&lt;br&gt;Ok... serious answer. &amp;nbsp;The DoS is either coming from script kiddies
&lt;br&gt;dumb enough to do it from their own IP, or its coming from a bot-net
&lt;br&gt;comprised of computers who's owners are morons and don't keep their
&lt;br&gt;computer secure. Either way, do a WHOIS, reverse DNS query, and
&lt;br&gt;traceroute on the IPs. &amp;nbsp;You should be able to find the ISPs of the
&lt;br&gt;attacking systems. &amp;nbsp;Email the ISP tech department with your info and
&lt;br&gt;let them take care of the offending systems.
&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://old.nabble.com/how-to-prevent-a-mild-DOSS-attack--tp26521515p26522845.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26522667</id>
	<title>Re: how to prevent a mild DOSS attack?</title>
	<published>2009-11-25T16:24:09Z</published>
	<updated>2009-11-25T16:24:09Z</updated>
	<author>
		<name>LinuxManMikeC</name>
	</author>
	<content type="html">Or DoS back at em. :-D
&lt;br&gt;&lt;br&gt;On Wed, Nov 25, 2009 at 3:57 PM, Ashley Sheridan
&lt;br&gt;&amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26522667&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;ash@...&lt;/a&gt;&amp;gt; wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; On Wed, 2009-11-25 at 16:38 -0600, LAMP wrote:
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; hi guys,
&lt;br&gt;&amp;gt;&amp;gt; this morning I got complains from website owner and tons of visitors -
&lt;br&gt;&amp;gt;&amp;gt; nobody was able to access the website. it will just timeout.
&lt;br&gt;&amp;gt;&amp;gt; I contacted hosting company  for more info but they said the virtual
&lt;br&gt;&amp;gt;&amp;gt; privet server, where the website is, has a lot of traffic and 512MB of
&lt;br&gt;&amp;gt;&amp;gt; RAM is not enough and I have to make an upgrade to at least 1GB etc.
&lt;br&gt;&amp;gt;&amp;gt; it does a make a sense.
&lt;br&gt;&amp;gt;&amp;gt; though, at 4pm I, nor 10 other people I asked for help, was able to
&lt;br&gt;&amp;gt;&amp;gt; access to the website.
&lt;br&gt;&amp;gt;&amp;gt; it was a little bit fishy about BIG traffic whole day long (the website
&lt;br&gt;&amp;gt;&amp;gt; is far from it) and, since I don't have a problem accessing WHM/cPanel
&lt;br&gt;&amp;gt;&amp;gt; of the server, I downloaded apache access file (stupid, I supposed to do
&lt;br&gt;&amp;gt;&amp;gt; it in the morning) and found 20-30 IP addresses, repeatedly were trying
&lt;br&gt;&amp;gt;&amp;gt; to access one (only one) page (something like article.php). and they
&lt;br&gt;&amp;gt;&amp;gt; were requesting the same page so frequently - nobody else was able to
&lt;br&gt;&amp;gt;&amp;gt; access to the website. it looked to me like a little DOSS attack - where
&lt;br&gt;&amp;gt;&amp;gt; attacker wanted just to make the website busy, not to crush the server.
&lt;br&gt;&amp;gt;&amp;gt; I contacted hosting company again. they said there is nothing they can
&lt;br&gt;&amp;gt;&amp;gt; do about this-  even I'm paying them to manage my virtual server (I can
&lt;br&gt;&amp;gt;&amp;gt; manage this way by my self too). of course they can if I pay extra :-(
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; now, my question is: is there anything I can do to stop these attacks
&lt;br&gt;&amp;gt;&amp;gt; using php? something? anything?
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; thanks
&lt;br&gt;&amp;gt;&amp;gt; L
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; There's nothing you could do with PHP to fix this really, as trying to
&lt;br&gt;&amp;gt; block IP addresses from there would be expensive for the processor and
&lt;br&gt;&amp;gt; memory of the server.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; You could use the cPanel to block access to the offending IP addresses
&lt;br&gt;&amp;gt; though.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Thanks,
&lt;br&gt;&amp;gt; Ash
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://www.ashleysheridan.co.uk&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.ashleysheridan.co.uk&lt;/a&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;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://old.nabble.com/how-to-prevent-a-mild-DOSS-attack--tp26521515p26522667.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26522262</id>
	<title>Re: Wiki recommendation?</title>
	<published>2009-11-25T15:37:56Z</published>
	<updated>2009-11-25T15:37:56Z</updated>
	<author>
		<name>aurfalien</name>
	</author>
	<content type="html">On Nov 25, 2009, at 2:42 PM, Skip Evans wrote:
&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Hey all,
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; I'm looking for a good Wiki to maintain documentation on a large &amp;nbsp;
&lt;br&gt;&amp;gt; commercial web site that is always growing.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; DokuWiki is the only one I've installed and used at any length, so &amp;nbsp;
&lt;br&gt;&amp;gt; before I just use that one again I'd like to hear from the peanut &amp;nbsp;
&lt;br&gt;&amp;gt; gallery what other suggestions you'd have.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Remember, this will be for end user documentation for a large &amp;nbsp;
&lt;br&gt;&amp;gt; commercial CMS type system, something site admins will go to for &amp;nbsp;
&lt;br&gt;&amp;gt; information on site features, updates, etc.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Let the shouting begin!
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Thanks, all, and a very happy eating-charred-dead-bird-flesh day to &amp;nbsp;
&lt;br&gt;&amp;gt; you all!!!
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Skip
&lt;/div&gt;&lt;br&gt;&lt;br&gt;Well, I've used DocuWiki and bit new to MediaWiki which I think &amp;nbsp;
&lt;br&gt;WikiPedia uses.
&lt;br&gt;&lt;br&gt;MediaWiki uses a MySQL DB were as DocuWiki is a tree dir structure &amp;nbsp;
&lt;br&gt;kind of thing.
&lt;br&gt;&lt;br&gt;I actually prefer DocuWiki but maybe thats because I didn't setup &amp;nbsp;
&lt;br&gt;MediaWiki correctly.
&lt;br&gt;&lt;br&gt;Cacti uses DocuWiki by the way and I personally avoid DB usage if &amp;nbsp;
&lt;br&gt;possible.
&lt;br&gt;&lt;br&gt;I think its easier to corrupt a DB then it is to corrupt a filesystem.
&lt;br&gt;&lt;br&gt;However I'm unsure of how scalable a pure file system based Wiki is, I &amp;nbsp;
&lt;br&gt;think if you put it on a mirrored disk with a decent cache on the Raid &amp;nbsp;
&lt;br&gt;controller, you'll be fine performance and DR wise.
&lt;br&gt;&lt;br&gt;If its Linux, then MD based (software raids) works pretty well.
&lt;br&gt;&lt;br&gt;- aurf
&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://old.nabble.com/Wiki-recommendation--tp26521567p26522262.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26521862</id>
	<title>Re: Create client certificate with openssl</title>
	<published>2009-11-25T15:03:34Z</published>
	<updated>2009-11-25T15:03:34Z</updated>
	<author>
		<name>mlemos</name>
	</author>
	<content type="html">Hello,
&lt;br&gt;&lt;br&gt;on 11/25/2009 05:53 AM Tanveer Chowdhury said the following:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Hi all,
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; I have an apache server and for that I created CA as the signing authority
&lt;br&gt;&amp;gt; using openssl.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Now I created a &amp;nbsp;php page which will generate client certificates with key
&lt;br&gt;&amp;gt; and will sign by CA. Now the output is in .pem .
&lt;br&gt;&amp;gt; Now how to convert it in .p12 for exporting it in client browser..
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Again, If using exec gives another problem which is it asks for export
&lt;br&gt;&amp;gt; password so how to give this via php.
&lt;/div&gt;&lt;br&gt;You may want to take a look at this class:
&lt;br&gt;&lt;br&gt;&lt;a href=&quot;http://www.phpclasses.org/crypt_openssl&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.phpclasses.org/crypt_openssl&lt;/a&gt;&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;&lt;br&gt;Regards,
&lt;br&gt;Manuel Lemos
&lt;br&gt;&lt;br&gt;Find and post PHP jobs
&lt;br&gt;&lt;a href=&quot;http://www.phpclasses.org/jobs/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.phpclasses.org/jobs/&lt;/a&gt;&lt;br&gt;&lt;br&gt;PHP Classes - Free ready to use OOP components written in PHP
&lt;br&gt;&lt;a href=&quot;http://www.phpclasses.org/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.phpclasses.org/&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://old.nabble.com/Create-client-certificate-with-openssl-tp26508735p26521862.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26521845</id>
	<title>register_globals and sessions</title>
	<published>2009-11-25T15:01:15Z</published>
	<updated>2009-11-25T15:01:15Z</updated>
	<author>
		<name>Allen McCabe</name>
	</author>
	<content type="html">LPAC - Arts for Youth - Seat OrdersI am getting the following error message,
&lt;br&gt;but ONLY on a page where I am querying multiple tables, and I don't see the
&lt;br&gt;correlation:
&lt;br&gt;&lt;br&gt;*
&lt;br&gt;*
&lt;br&gt;*Warning*: Unknown: Your script possibly relies on a session side-effect
&lt;br&gt;which existed until PHP 4.2.3. Please be advised that the session extension
&lt;br&gt;does not consider global variables as a source of data, unless
&lt;br&gt;register_globals is enabled. You can disable this functionality and this
&lt;br&gt;warning by setting session.bug_compat_42 or session.bug_compat_warn to off,
&lt;br&gt;respectively in *Unknown* on line *0*
&lt;br&gt;&lt;br&gt;I have Googled this extensively, and the solutions other people tried
&lt;br&gt;(turning off the warning) don't work for me; I don't have permission to my
&lt;br&gt;PHP settings (currently working on a free-hosted site).
&lt;br&gt;&lt;br&gt;Does ANYONE know what might be causing this?
&lt;br&gt;&lt;br&gt;On my login page, I use this code snippet to instantiate my SESSION
&lt;br&gt;variables for the session:
&lt;br&gt;&lt;br&gt;// Register $myusername, $mypassword and redirect to &amp;quot;default.php?page=211&amp;quot;
&lt;br&gt;$_SESSION['myusername'] = $myusername;
&lt;br&gt;$_SESSION['mypassword'] = $mypassword;
&lt;br&gt;&lt;br&gt;Again, the error only comes up on the page where I am querying multiple.
&lt;br&gt;&lt;br&gt;If you would like to take a look at this, follow this link and sign in as
&lt;br&gt;username: micky &amp;nbsp;&amp; password: 123456 (
&lt;br&gt;&lt;a href=&quot;http://lpacmarketing.hostzi.com/afy/orders/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://lpacmarketing.hostzi.com/afy/orders/&lt;/a&gt;)
&lt;br&gt;&lt;br&gt;You will notice on other pages, that error doesn't display, just this one.
&lt;br&gt;&lt;br&gt;Any help would be wonderful, I don't want my users to see this when the
&lt;br&gt;order system is opened for their use.
&lt;br&gt;&lt;br&gt;Thanks!
&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/register_globals-and-sessions-tp26521845p26521845.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26521825</id>
	<title>Re: how to prevent a mild DOSS attack?</title>
	<published>2009-11-25T14:57:59Z</published>
	<updated>2009-11-25T14:57:59Z</updated>
	<author>
		<name>Ashley Sheridan-3</name>
	</author>
	<content type="html">On Wed, 2009-11-25 at 16:38 -0600, LAMP wrote:
&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; hi guys,
&lt;br&gt;&amp;gt; this morning I got complains from website owner and tons of visitors - 
&lt;br&gt;&amp;gt; nobody was able to access the website. it will just timeout.
&lt;br&gt;&amp;gt; I contacted hosting company &amp;nbsp;for more info but they said the virtual 
&lt;br&gt;&amp;gt; privet server, where the website is, has a lot of traffic and 512MB of 
&lt;br&gt;&amp;gt; RAM is not enough and I have to make an upgrade to at least 1GB etc.
&lt;br&gt;&amp;gt; it does a make a sense.
&lt;br&gt;&amp;gt; though, at 4pm I, nor 10 other people I asked for help, was able to 
&lt;br&gt;&amp;gt; access to the website.
&lt;br&gt;&amp;gt; it was a little bit fishy about BIG traffic whole day long (the website 
&lt;br&gt;&amp;gt; is far from it) and, since I don't have a problem accessing WHM/cPanel 
&lt;br&gt;&amp;gt; of the server, I downloaded apache access file (stupid, I supposed to do 
&lt;br&gt;&amp;gt; it in the morning) and found 20-30 IP addresses, repeatedly were trying 
&lt;br&gt;&amp;gt; to access one (only one) page (something like article.php). and they 
&lt;br&gt;&amp;gt; were requesting the same page so frequently - nobody else was able to 
&lt;br&gt;&amp;gt; access to the website. it looked to me like a little DOSS attack - where 
&lt;br&gt;&amp;gt; attacker wanted just to make the website busy, not to crush the server.
&lt;br&gt;&amp;gt; I contacted hosting company again. they said there is nothing they can 
&lt;br&gt;&amp;gt; do about this- &amp;nbsp;even I'm paying them to manage my virtual server (I can 
&lt;br&gt;&amp;gt; manage this way by my self too). of course they can if I pay extra :-(
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; now, my question is: is there anything I can do to stop these attacks 
&lt;br&gt;&amp;gt; using php? something? anything?
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; thanks
&lt;br&gt;&amp;gt; L
&lt;br&gt;&amp;gt; 
&lt;/div&gt;&lt;br&gt;&lt;br&gt;There's nothing you could do with PHP to fix this really, as trying to
&lt;br&gt;block IP addresses from there would be expensive for the processor and
&lt;br&gt;memory of the server.
&lt;br&gt;&lt;br&gt;You could use the cPanel to block access to the offending IP addresses
&lt;br&gt;though.
&lt;br&gt;&lt;br&gt;Thanks,
&lt;br&gt;Ash
&lt;br&gt;&lt;a href=&quot;http://www.ashleysheridan.co.uk&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.ashleysheridan.co.uk&lt;/a&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/how-to-prevent-a-mild-DOSS-attack--tp26521515p26521825.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26521567</id>
	<title>Wiki recommendation?</title>
	<published>2009-11-25T14:42:40Z</published>
	<updated>2009-11-25T14:42:40Z</updated>
	<author>
		<name>Skip Evans</name>
	</author>
	<content type="html">Hey all,
&lt;br&gt;&lt;br&gt;I'm looking for a good Wiki to maintain documentation on a 
&lt;br&gt;large commercial web site that is always growing.
&lt;br&gt;&lt;br&gt;DokuWiki is the only one I've installed and used at any 
&lt;br&gt;length, so before I just use that one again I'd like to hear 
&lt;br&gt;from the peanut gallery what other suggestions you'd have.
&lt;br&gt;&lt;br&gt;Remember, this will be for end user documentation for a large 
&lt;br&gt;commercial CMS type system, something site admins will go to 
&lt;br&gt;for information on site features, updates, etc.
&lt;br&gt;&lt;br&gt;Let the shouting begin!
&lt;br&gt;&lt;br&gt;Thanks, all, and a very happy eating-charred-dead-bird-flesh 
&lt;br&gt;day to you all!!!
&lt;br&gt;&lt;br&gt;Skip
&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;====================================
&lt;br&gt;Skip Evans
&lt;br&gt;PenguinSites.com, LLC
&lt;br&gt;503 S Baldwin St, #1
&lt;br&gt;Madison WI 53703
&lt;br&gt;608.250.2720
&lt;br&gt;&lt;a href=&quot;http://penguinsites.com&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://penguinsites.com&lt;/a&gt;&lt;br&gt;------------------------------------
&lt;br&gt;Those of you who believe in
&lt;br&gt;telekinesis, raise my hand.
&lt;br&gt;&amp;nbsp; -- Kurt Vonnegut
&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://old.nabble.com/Wiki-recommendation--tp26521567p26521567.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26521533</id>
	<title>Re: function not returning query</title>
	<published>2009-11-25T14:39:11Z</published>
	<updated>2009-11-25T14:39:11Z</updated>
	<author>
		<name>Philip Thompson-4</name>
	</author>
	<content type="html">On Nov 25, 2009, at 4:32 AM, Ashley Sheridan wrote:
&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; On Tue, 2009-11-24 at 23:27 -0800, Allen McCabe wrote:
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt;&amp;gt; If I were to loop through my inputs, I could just exclude any
&lt;br&gt;&amp;gt;&amp;gt; problematic names, eg.:
&lt;br&gt;&amp;gt;&amp;gt; 
&lt;br&gt;&amp;gt;&amp;gt; foreach ($_POST as $var = $val)
&lt;br&gt;&amp;gt;&amp;gt; {
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; if ($var != filter.x || $var != filter.y)
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp;{
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp;$var = $val;
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp;}
&lt;br&gt;&amp;gt;&amp;gt; }
&lt;br&gt;&amp;gt;&amp;gt; 
&lt;br&gt;&amp;gt;&amp;gt; Like that?
&lt;/div&gt;&lt;br&gt;&amp;lt;!--snip--&amp;gt;
&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Not really, what if someone else decided they wanted to throw in their
&lt;br&gt;&amp;gt; own form field values in the hope of breaking your system? It's much
&lt;br&gt;&amp;gt; better to be specifically looking for certain form fields and certain
&lt;br&gt;&amp;gt; field values/ranges. For example, if you had some fields that would
&lt;br&gt;&amp;gt; filter something by cost, you might have two form fields named 'max' and
&lt;br&gt;&amp;gt; 'min' which would be ranges for the cost. You should check that these
&lt;br&gt;&amp;gt; fields only contain numbers for example before processing them. Any data
&lt;br&gt;&amp;gt; coming from the client-side is untrustworthy and should be regarded as
&lt;br&gt;&amp;gt; tainted until you can prove otherwise.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Thanks,
&lt;br&gt;&amp;gt; Ash
&lt;/div&gt;&lt;br&gt;The system Ash is referring to is a whitebox approach. You know what you should get in, so only accept those values. A simple thing to accomplish what you're trying to do, Allen, would be to create an array of required/accepted fields...
&lt;br&gt;&lt;br&gt;&amp;lt;?php
&lt;br&gt;$acceptable = array('green', 'blue', 'red');
&lt;br&gt;foreach ($_POST as $var =&amp;gt; $val) {
&lt;br&gt;&amp;nbsp; &amp;nbsp; if (in_array ($var, $acceptable)) {
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; // Do whatever here
&lt;br&gt;&amp;nbsp; &amp;nbsp; } else {
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; // Not acceptable - throw error message or do nothing
&lt;br&gt;&amp;nbsp; &amp;nbsp; }
&lt;br&gt;}
&lt;br&gt;?&amp;gt;
&lt;br&gt;&lt;br&gt;Hope that helps.
&lt;br&gt;~Philip
&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://old.nabble.com/function-not-returning-query-tp26488573p26521533.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26521515</id>
	<title>how to prevent a mild DOSS attack?</title>
	<published>2009-11-25T14:38:05Z</published>
	<updated>2009-11-25T14:38:05Z</updated>
	<author>
		<name>LAMP-3</name>
	</author>
	<content type="html">hi guys,
&lt;br&gt;this morning I got complains from website owner and tons of visitors - 
&lt;br&gt;nobody was able to access the website. it will just timeout.
&lt;br&gt;I contacted hosting company &amp;nbsp;for more info but they said the virtual 
&lt;br&gt;privet server, where the website is, has a lot of traffic and 512MB of 
&lt;br&gt;RAM is not enough and I have to make an upgrade to at least 1GB etc.
&lt;br&gt;it does a make a sense.
&lt;br&gt;though, at 4pm I, nor 10 other people I asked for help, was able to 
&lt;br&gt;access to the website.
&lt;br&gt;it was a little bit fishy about BIG traffic whole day long (the website 
&lt;br&gt;is far from it) and, since I don't have a problem accessing WHM/cPanel 
&lt;br&gt;of the server, I downloaded apache access file (stupid, I supposed to do 
&lt;br&gt;it in the morning) and found 20-30 IP addresses, repeatedly were trying 
&lt;br&gt;to access one (only one) page (something like article.php). and they 
&lt;br&gt;were requesting the same page so frequently - nobody else was able to 
&lt;br&gt;access to the website. it looked to me like a little DOSS attack - where 
&lt;br&gt;attacker wanted just to make the website busy, not to crush the server.
&lt;br&gt;I contacted hosting company again. they said there is nothing they can 
&lt;br&gt;do about this- &amp;nbsp;even I'm paying them to manage my virtual server (I can 
&lt;br&gt;manage this way by my self too). of course they can if I pay extra :-(
&lt;br&gt;&lt;br&gt;now, my question is: is there anything I can do to stop these attacks 
&lt;br&gt;using php? something? anything?
&lt;br&gt;&lt;br&gt;thanks
&lt;br&gt;L
&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://old.nabble.com/how-to-prevent-a-mild-DOSS-attack--tp26521515p26521515.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26519807</id>
	<title>Detecting The Encoding Of A Text File</title>
	<published>2009-11-25T12:30:43Z</published>
	<updated>2009-11-25T12:30:43Z</updated>
	<author>
		<name>Nitsan Bin-Nun-2</name>
	</author>
	<content type="html">Hi,
&lt;br&gt;&lt;br&gt;I have been trying for the last couple of hours to determine the
&lt;br&gt;encoding of a text file (.txt in windowz).
&lt;br&gt;&lt;br&gt;I have this code:
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; $contents = file_get_contents($config['txt_dir'] . $file);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; $encoding = mb_detect_encoding($contents,
&lt;br&gt;&amp;quot;UTF-8,ISO-8859-1,WINDOWS-1252&amp;quot;); //,Windows-1255
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; echo &amp;quot;||encoding:&amp;quot;.$encoding.&amp;quot;||&amp;quot;;
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if ($encoding == 'UTF-8')
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; {
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; $utfcontents = $contents;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; else if ($encoding == 'ISO-8859-1')
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; {
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; $utfcontents = utf8_encode($contents);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; var_dump($utfcontents);
&lt;br&gt;&lt;br&gt;The $encoding is ISO-8859-1, the text file contains Hebrew characters, then
&lt;br&gt;I'm converting it to utf8.
&lt;br&gt;&lt;br&gt;The above code is outputing gibbrish, it seems that it has converted it in
&lt;br&gt;some way but not in the
&lt;br&gt;proper way that it should have converted it.
&lt;br&gt;&lt;br&gt;My page is UTF-8 encoded, without BOM, I send UTF-8 headers to the browser
&lt;br&gt;and HTML content
&lt;br&gt;encoding meta tag as well.
&lt;br&gt;&lt;br&gt;I have no idea what I am doing wrong.
&lt;br&gt;&lt;br&gt;I would highly appreciate it if someone could point me to the right
&lt;br&gt;direction.
&lt;br&gt;&lt;br&gt;Thanks in Advance,
&lt;br&gt;&lt;br&gt;Nitsan
&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Detecting-The-Encoding-Of-A-Text-File-tp26519807p26519807.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26518827</id>
	<title>Re: php mail() function</title>
	<published>2009-11-25T11:26:29Z</published>
	<updated>2009-11-25T11:26:29Z</updated>
	<author>
		<name>James Prentice</name>
	</author>
	<content type="html">It looks like using XAMPP wasn't strictly necessary. I tried running
&lt;br&gt;this example again using my previous versions of mysql and apache and
&lt;br&gt;it worked fine. So the key is to configure Sendmail as described at
&lt;br&gt;the URL I gave.
&lt;br&gt;&lt;br&gt;On Wed, Nov 25, 2009 at 10:58 AM, James Prentice &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26518827&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;prentice.j.a@...&lt;/a&gt;&amp;gt; wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; After a long delay, I've finally got mail working. I had decided to
&lt;br&gt;&amp;gt; move on in the book that I'm working through (Head First PHP &amp; MySQL)
&lt;br&gt;&amp;gt; but doubled back to address the mail issue again. This is how I
&lt;br&gt;&amp;gt; finally got it to work:
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; 1. Switched to XAMPP for linux rather than using my existing versions
&lt;br&gt;&amp;gt; of mysql, php and apache.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; 2. Uninstalled Postfix and reinstalled Sendmail. Then I followed the
&lt;br&gt;&amp;gt; instructions here:
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://dbaron.org/linux/sendmail&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://dbaron.org/linux/sendmail&lt;/a&gt;&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; I can't vouch that the method described at that link is completely
&lt;br&gt;&amp;gt; safe and secure, but it worked for me and was very easy. I've spent
&lt;br&gt;&amp;gt; many hours and days trying to get this to work so am very relieved.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; My only complaint is that there is quite a long delay after submitting
&lt;br&gt;&amp;gt; report.html (from Ch. 1) while it says 'waiting for localhost...'. It
&lt;br&gt;&amp;gt; can take up to 20 seconds or so before sending and giving
&lt;br&gt;&amp;gt; confirmation.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Thanks for all your help.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; On Mon, Oct 26, 2009 at 4:37 AM, Bob McConnell &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26518827&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;rvm@...&lt;/a&gt;&amp;gt; wrote:
&lt;br&gt;&amp;gt;&amp;gt; From: James Prentice
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; I have tried setting both $to and $email to be the same shaw address
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; since I assumed it should be recognized by the mail server, but it's
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; still getting bounced. So why is 'www-data@homemade' being listed as
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; the sender? Any ideas?
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; I strongly recommend you call the help desk at Shaw and ask them to
&lt;br&gt;&amp;gt;&amp;gt; explain what is happening. They should know what is going on with their
&lt;br&gt;&amp;gt;&amp;gt; servers. Everyone on this list appears to be guessing at the problem,
&lt;br&gt;&amp;gt;&amp;gt; which is not likely to help you.
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; Bob McConnell
&lt;br&gt;&amp;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://old.nabble.com/php-mail%28%29-function-tp26017906p26518827.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26518714</id>
	<title>Re: processing html forms and keeping the values</title>
	<published>2009-11-25T11:18:56Z</published>
	<updated>2009-11-25T11:18:56Z</updated>
	<author>
		<name>Kim Madsen-3</name>
	</author>
	<content type="html">Merlin Morgenstern wrote on 2009-11-24 18:38:
&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; This is not so easy. I am doing some checking with php on the values and 
&lt;br&gt;&amp;gt; if one failes php returns via GET to the form with the help of header 
&lt;br&gt;&amp;gt; location:
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;$parameter = &amp;nbsp;&amp;quot;&amp;demo=this&amp;quot;;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;HEADER(&amp;quot;Location:/test.html?error=1&amp;quot;.$parameter);
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;exit;
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; I would need to change way to many things in order to simply change to 
&lt;br&gt;&amp;gt; post.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Isn't there another way?
&lt;/div&gt;&lt;br&gt;This is what I normally do with larger forms:
&lt;br&gt;&lt;br&gt;1. create the form as a function: form()
&lt;br&gt;2. submit the form to the same page
&lt;br&gt;3. test relevant input and if the fail print form()
&lt;br&gt;&lt;br&gt;Example:
&lt;br&gt;&lt;br&gt;function form() {
&lt;br&gt;print '
&lt;br&gt;&amp;lt;form action=&amp;quot;'.$_SERVER['PHP_SELF'].'&amp;quot; method=&amp;quot;post&amp;quot;&amp;gt;
&lt;br&gt;&amp;lt;input type=&amp;quot;text&amp;quot; name=&amp;quot;email&amp;quot; value=&amp;quot;'.$_POST['email'].'&amp;quot;&amp;gt;
&lt;br&gt;&amp;lt;input type=&amp;quot;submit&amp;quot; name=&amp;quot;submit&amp;quot; value=&amp;quot;send form&amp;quot;&amp;gt;
&lt;br&gt;&amp;lt;/form&amp;gt;';
&lt;br&gt;}
&lt;br&gt;&lt;br&gt;if($_POST['submit']) {
&lt;br&gt;&amp;nbsp; &amp;nbsp;// test email is entered
&lt;br&gt;&amp;nbsp; &amp;nbsp;if(!$_POST['email']) {
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;print &amp;quot;error: you must enter an e-mail address&amp;quot;;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;form();
&lt;br&gt;&amp;nbsp; &amp;nbsp;}
&lt;br&gt;&amp;nbsp; &amp;nbsp;else {
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;// do stuff from here...
&lt;br&gt;&amp;nbsp; &amp;nbsp;}
&lt;br&gt;}
&lt;br&gt;else
&lt;br&gt;&amp;nbsp; &amp;nbsp;form();
&lt;br&gt;&lt;br&gt;With a 50 field form this is a nice approach for me :-)
&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;Kind regards
&lt;br&gt;Kim Emax - masterminds.dk
&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://old.nabble.com/processing-html-forms-and-keeping-the-values-tp26499851p26518714.html" />
</entry>

</feed>
