Re: [PHP] Wiki recommendation?

2009-11-25 Thread TG
Well, if you want to get really extreme, you could use TiddlyWiki: http://www.tiddlywiki.com/ It's a wiki contained in a single HTML file. No database. No server side scripting. No server! hah -TG - Original Message - From: Skip Evans To: TG Cc: Jonathan Tapicer , aurfal...@gmail.

[PHP] Detecting The Encoding Of A Text File

2009-11-25 Thread Nitsan Bin-Nun
Hi, I have been trying for the last couple of hours to determine the encoding of a text file (.txt in windowz). I have this code: $contents = file_get_contents($config[' txt_dir'] . $file); $encoding = mb_detect_encoding($contents, "UTF-8,ISO-8859-1,WINDOWS-1252"); //,Windows-125

Re: [PHP] Wiki recommendation?

2009-11-25 Thread Skip Evans
Hey all, Thanks much for the recommendations. I'll check them out. We don't need fine grained control over access; basically admins that can modify content and the public who cannot. But right now DocuWiki is sounding good, and I'd rather, for some strange reason, not use a DB, although I ca

Re: [PHP] Wiki recommendation?

2009-11-25 Thread TG
A while back I set up a TikiWiki for a client. I think I liked it better than any of the other wikis I've messed with. But honestly, I didn't get to use it much and I've only ever used Mediawiki to any real length. Definitely give it a look, though. -TG - Original Message - From: Jon

Re: [PHP] Wiki recommendation?

2009-11-25 Thread Jonathan Tapicer
On Wed, Nov 25, 2009 at 8:37 PM, wrote: > On Nov 25, 2009, at 2:42 PM, Skip Evans wrote: > >> Hey all, >> >> I'm looking for a good Wiki to maintain documentation on a large >> commercial web site that is always growing. >> >> DokuWiki is the only one I've installed and used at any length, so bef

Re: [PHP] PHP Equivalent to Java Jar or Python Eggs

2009-11-25 Thread James McLean
On Thu, Nov 26, 2009 at 11:50 AM, wrote: > > 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. Yes; Greg Beaver has done a

[PHP] PHP Equivalent to Java Jar or Python Eggs

2009-11-25 Thread c4632
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.

Re: [PHP] how to prevent a mild DOSS attack?

2009-11-25 Thread LinuxManMikeC
On Wed, Nov 25, 2009 at 3:57 PM, Ashley Sheridan wrote: > On Wed, 2009-11-25 at 16:38 -0600, LAMP wrote: > >> hi guys, >> this morning I got complains from website owner and tons of visitors - >> nobody was able to access the website. it will just timeout. >> I contacted hosting company  for more

Re: [PHP] how to prevent a mild DOSS attack?

2009-11-25 Thread LinuxManMikeC
Or DoS back at em. :-D On Wed, Nov 25, 2009 at 3:57 PM, Ashley Sheridan wrote: > On Wed, 2009-11-25 at 16:38 -0600, LAMP wrote: > >> hi guys, >> this morning I got complains from website owner and tons of visitors - >> nobody was able to access the website. it will just timeout. >> I contacted ho

Re: [PHP] Wiki recommendation?

2009-11-25 Thread aurfalien
On Nov 25, 2009, at 2:42 PM, Skip Evans wrote: Hey all, I'm looking for a good Wiki to maintain documentation on a large commercial web site that is always growing. DokuWiki is the only one I've installed and used at any length, so before I just use that one again I'd like to hear from th

[PHP] Re: Create client certificate with openssl

2009-11-25 Thread Manuel Lemos
Hello, on 11/25/2009 05:53 AM Tanveer Chowdhury said the following: > Hi all, > > I have an apache server and for that I created CA as the signing authority > using openssl. > > Now I created a php page which will generate client certificates with key > and will sign by CA. Now the output is in

[PHP] register_globals and sessions

2009-11-25 Thread Allen McCabe
LPAC - Arts for Youth - Seat OrdersI am getting the following error message, but ONLY on a page where I am querying multiple tables, and I don't see the correlation: * * *Warning*: Unknown: Your script possibly relies on a session side-effect which existed until PHP 4.2.3. Please be advised that t

Re: [PHP] how to prevent a mild DOSS attack?

2009-11-25 Thread Ashley Sheridan
On Wed, 2009-11-25 at 16:38 -0600, LAMP wrote: > hi guys, > this morning I got complains from website owner and tons of visitors - > nobody was able to access the website. it will just timeout. > I contacted hosting company for more info but they said the virtual > privet server, where the webs

[PHP] Wiki recommendation?

2009-11-25 Thread Skip Evans
Hey all, I'm looking for a good Wiki to maintain documentation on a large commercial web site that is always growing. DokuWiki is the only one I've installed and used at any length, so before I just use that one again I'd like to hear from the peanut gallery what other suggestions you'd have

Re: [PHP] function not returning query

2009-11-25 Thread Philip Thompson
On Nov 25, 2009, at 4:32 AM, Ashley Sheridan wrote: > On Tue, 2009-11-24 at 23:27 -0800, Allen McCabe wrote: > >> If I were to loop through my inputs, I could just exclude any >> problematic names, eg.: >> >> foreach ($_POST as $var = $val) >> { >> if ($var != filter.x || $var != filter.y) >>

[PHP] how to prevent a mild DOSS attack?

2009-11-25 Thread LAMP
hi guys, this morning I got complains from website owner and tons of visitors - nobody was able to access the website. it will just timeout. I contacted hosting company for more info but they said the virtual privet server, where the website is, has a lot of traffic and 512MB of RAM is not eno

[PHP] Detecting The Encoding Of A Text File

2009-11-25 Thread Nitsan Bin-Nun
Hi, I have been trying for the last couple of hours to determine the encoding of a text file (.txt in windowz). I have this code: $contents = file_get_contents($config['txt_dir'] . $file); $encoding = mb_detect_encoding($contents, "UTF-8,ISO-8859-1,WINDOWS-1252"); //,Windows-1255

Re: [PHP] php mail() function

2009-11-25 Thread James Prentice
It looks like using XAMPP wasn't strictly necessary. I tried running this example again using my previous versions of mysql and apache and it worked fine. So the key is to configure Sendmail as described at the URL I gave. On Wed, Nov 25, 2009 at 10:58 AM, James Prentice wrote: > After a long del

Re: [PHP] processing html forms and keeping the values

2009-11-25 Thread Kim Madsen
Merlin Morgenstern wrote on 2009-11-24 18:38: This is not so easy. I am doing some checking with php on the values and if one failes php returns via GET to the form with the help of header location: $parameter = "&demo=this"; HEADER("Location:/test.html?error=1".$parameter);

Re: [PHP] php mail() function

2009-11-25 Thread James Prentice
After a long delay, I've finally got mail working. I had decided to move on in the book that I'm working through (Head First PHP & MySQL) but doubled back to address the mail issue again. This is how I finally got it to work: 1. Switched to XAMPP for linux rather than using my existing versions of

Re: [PHP] Create client certificate with openssl

2009-11-25 Thread Ryan Sun
check these options *-pass arg, -passin arg* the PKCS#12 file (i.e. input file) password source. For more information about the format of *arg* see the *PASS PHRASE ARGUMENTS* section in * openssl*(1) . *-passout arg* pass phrase source to encrypt a

Re: [PHP] processing html forms and keeping the values

2009-11-25 Thread Merlin Morgenstern
Hello Raymond, thank you for your hint. I will go with sessions. Thanx for the note regarding XSS. Kind regards, merlin Raymond Irving wrote: There are a couple of ways that you can do this: 1. Store the post values in the $_SESSION variable then echo them back to the screen. Be careful wi

Re: [PHP] processing html forms and keeping the values

2009-11-25 Thread Raymond Irving
There are a couple of ways that you can do this: 1. Store the post values in the $_SESSION variable then echo them back to the screen. Be careful with this as it can lead to XSS. Strip html, etc 2. Send the post values back to the form as part of the query sting. This solution is limited to the

Re: [PHP] function not returning query

2009-11-25 Thread Ashley Sheridan
On Tue, 2009-11-24 at 23:27 -0800, Allen McCabe wrote: > If I were to loop through my inputs, I could just exclude any > problematic names, eg.: > > foreach ($_POST as $var = $val) > { >if ($var != filter.x || $var != filter.y) > { > $var = $val; > } > } > > Like that? > > > On Tue

[PHP] Re: Class not returning value

2009-11-25 Thread Pieter du Toit
Thanks for th reply Peter i call this method on success $this->sendSMS(); But i sorted the problem with this: public function getResult() { $this->processRequest(); return $this->responseArray; } "Peter Ford" wrote in message news:cf.a1.5.d5cfc...@pb1.pair.com... > P

[PHP] Re: Class not returning value

2009-11-25 Thread Pieter du Toit
Sorry i found the problem, need to do this: public function getResult() { $this->processRequest(); return $this->responseArray; } ""Pieter du Toit"" wrote in message news:57.90.5.88fec...@pb1.pair.com... > Hi > > This is my first class and it does not work, i do a retur

[PHP] Re: Class not returning value

2009-11-25 Thread Peter Ford
Pieter du Toit wrote: > Hi > > This is my first class and it does not work, i do a return > $this->responseArray; with the public function getResult() method, but get > nothing. Can someone please help me. > > Thsi is how i create the object > $number = new Smsgate($cell_numbers, $message, "278

[PHP] Class not returning value

2009-11-25 Thread Pieter du Toit
Hi This is my first class and it does not work, i do a return $this->responseArray; with the public function getResult() method, but get nothing. Can someone please help me. Thsi is how i create the object $number = new Smsgate($cell_numbers, $message, "27823361602", "27"); $result = $number->g