php-general Digest 15 Aug 2004 14:53:56 -0000 Issue 2938

2004-08-15 Thread php-general-digest-help
php-general Digest 15 Aug 2004 14:53:56 - Issue 2938 Topics (messages 193865 through 193882): Re: PHP not working with apache2 193865 by: Jason Wong 193873 by: Burhan Khalid Re: What happend to _SERVER? 193866 by: Allen Wayne Best Re: PHP Security Workbook

Re: [PHP] PHP Security Workbook

2004-08-15 Thread Burhan Khalid
Chris Shiflett wrote: This news is a bit old, but I have made the workbook for my OSCON tutorial freely available from this URL: http://shiflett.org/php-security.pdf It's a 55 page PDF that has a lot of information (more than the slides) about some of the more important security topics. Nice

[PHP] Re: How to determine if date/time is with DST or not ?

2004-08-15 Thread Torsten Roehr
-{ Rene Brehmer }- [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] hi gang I'm trying to find a simple way to determine if a given date/time is with DST for a given locale at any point in time ... the point is basically to convert date strings into accurate GMT timestamps for

Re: [PHP] Kerberos authentication

2004-08-15 Thread Burhan Khalid
Matthew Runo wrote: I am working on a project that requires Kerberos authentication, however - we are unable to use the apache module that one would normally use [sys admin.. *grumble*]. I searched the archives to find a script that would authenticate a user against a Kerberos server, and

Re: [PHP] A function in PHP that changes html in a string from p align=center to p align=center ?

2004-08-15 Thread Burhan Khalid
Jay Blanchard wrote: [snip] Is there any function in PHP that changes html in a string from p align=center to p align=center ? (e.g. adding the double quotes) [/snip] Nah, but you could write a function to add quotes to attributes of any tag that you would like. Tidy [ http://tidy.sf.net ] can do

Re: [PHP] How to determine if date/time is with DST or not ?

2004-08-15 Thread Burhan Khalid
-{ Rene Brehmer }- wrote: hi gang I'm trying to find a simple way to determine if a given date/time is with DST for a given locale at any point in time ... the point is basically to convert date strings into accurate GMT timestamps for storage in the database... http://www.php.net/date I (capital

Re: [PHP] Anyone know of a PHP Dictionary Password Generator

2004-08-15 Thread Burhan Khalid
John Holmes wrote: Anyone know of a PHP english word password generator? Something that'll produce easy to read and remember codes like buffalo_candy or shipment+plant, etc? I had a look on phpclasses.org, but didn't find anything like this. Or, as an alternative, I'll code it myself if anyone

Re: [PHP] PHP not working with apache2

2004-08-15 Thread Burhan Khalid
Grant wrote: I'm running Gentoo Linux, and emerged (installed) squirrelmail which automatically installed all of its dependencies including PHP and (I think) mod_php. PHP doesn't seem to be working though, as I always end up looking at the raw PHP code in a browser. I do have apache and apache2

Re: [PHP] Re: [PHP-General List] - Cron or script like Cron -

2004-08-15 Thread francesco[AT]automationsoft[DOT]biz
I'm sorry Hannes, I have seen now that I email only to you and not to the PHP list. Sorry. Thanks. - Original Message - From: Hannes Magnusson [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Saturday, August 14, 2004 7:26 PM Subject: [PHP] Re: [PHP-General List] - Cron or script like Cron -

Re: [PHP] Anyone know of a PHP Dictionary Password Generator

2004-08-15 Thread Chris Shiflett
--- John Holmes [EMAIL PROTECTED] wrote: Anyone know of a PHP english word password generator? Something that'll produce easy to read and remember codes like buffalo_candy or shipment+plant, etc? I had a look on phpclasses.org, but didn't find anything like this. Or, as an alternative,

Re: [PHP] PHP Security Workbook

2004-08-15 Thread Chris Shiflett
--- Burhan Khalid [EMAIL PROTECTED] wrote: Most of the stuff was common sense to me (and I was glad I was doing those things unconsciously). That's good to hear. :-) Most of the people that have heard me give this talk (which is a few hundred now) have realized several vulnerabilities in their

Re: [PHP] PHP Security Workbook

2004-08-15 Thread Octavian Rasnita
I have also read that pdf document and I have found another interesting advice. The author says that a good way of hiding the username/password is to put a file that exports 2 environment variables in a directory that can be read only by the root, then include a call to that file in httpd.conf in

Re: [PHP] PHP Security Workbook

2004-08-15 Thread Chris Shiflett
--- Octavian Rasnita [EMAIL PROTECTED] wrote: I have also read that pdf document and I have found another interesting advice. The author says that a good way of hiding the username/password is to put a file that exports 2 environment variables in a directory that can be read only by the

Re: [PHP] PHP Security Workbook

2004-08-15 Thread Octavian Rasnita
Oh thank you for this information. This is very important for me to know. Yes, this is another thing that I mention in the talk but failed to include in the workbook. When this approach is being applied to a shared hosting environment, you want to put the Include directive within a

[PHP] Need help with some logic and how to do it in PHP

2004-08-15 Thread Brent Clements
I have the following problem. I have 7 string values, if any number of them are the same, I need to ouput that value, if they are all different, I need to output a blank string . How would I do this in php outside of writing a huge if/then statement? This is a variation of my String compare of

[PHP] Re: Help with Regular Expressions

2004-08-15 Thread killu0007-widget
Hi all, I am working on a small php script which should do the following. I want all the links in the page to be preceded by first character and first two characters of the link.Please look into the example below for more clarification. eg. a href=/code.htmllink here/a to be replaced as a

Re: [PHP] Need help with some logic and how to do it in PHP

2004-08-15 Thread Jason Wong
On Sunday 15 August 2004 22:44, Brent Clements wrote: I have 7 string values, if any number of them are the same, I need to ouput that value, if they are all different, I need to output a blank string . How would I do this in php outside of writing a huge if/then statement? This is a

Re: [PHP] Need help with some logic and how to do it in PHP

2004-08-15 Thread Brent Clements
Sweet, that solves my problem. Thanks for the help. -Brent - Original Message - From: Jason Wong [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Sunday, August 15, 2004 9:53 AM Subject: Re: [PHP] Need help with some logic and how to do it in PHP On Sunday 15 August 2004 22:44, Brent

[PHP] Upload problems

2004-08-15 Thread Rosen
Hi, I try to upload a .zip file via PHP. I change directive upload_max_filesize = 500M. The first file is about 5 MB and no problems with upload. The second file is about 17 MB and script doesn't do nothing - no upload :( Can someone help with this ? Thanks in advance! -- PHP General Mailing

Re: [PHP] Upload problems

2004-08-15 Thread raditha dissanayake
Rosen wrote: Hi, I try to upload a .zip file via PHP. I change directive upload_max_filesize = 500M. The first file is about 5 MB and no problems with upload. The second file is about 17 MB and script doesn't do nothing - no upload :( Can someone help with this ? upload_max_filesize setting

Re: [PHP] Upload problems

2004-08-15 Thread Jason Wong
On Sunday 15 August 2004 23:14, Rosen wrote: I try to upload a .zip file via PHP. I change directive upload_max_filesize = 500M. The first file is about 5 MB and no problems with upload. The second file is about 17 MB and script doesn't do nothing - no upload :( Have you read the chapter

Re: [PHP] Re: Help with Regular Expressions

2004-08-15 Thread Octavian Rasnita
From: [EMAIL PROTECTED] Hi all, I am working on a small php script which should do the following. I want all the links in the page to be preceded by first character and first two characters of the link.Please look into the example below for more clarification. eg. a href=/code.htmllink

[PHP] Re: Upload problems

2004-08-15 Thread Rosen
Thanks, I change the post_max_size variable in php.ini and it worked ! Rosen [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hi, I try to upload a .zip file via PHP. I change directive upload_max_filesize = 500M. The first file is about 5 MB and no problems with upload. The second

Re: [PHP] Anyone know of a PHP Dictionary [Code] Generator

2004-08-15 Thread John Holmes
Chris Shiflett wrote: If you do write this, please don't call it a password generator, else people might use these things for passwords. :-) Excellent point. This is for creating one-time invitation codes for users to participate in surveys and not for actual passwords. Thanks to a link posted

[PHP] newbie again, submit buttons don't work

2004-08-15 Thread yawstick
sorry if this gets posted twice, previous attempt had an invalid email address I have several scripts that worked on early version of php4 mysql. They are all similar in that I use a switch($cmd) command to perform save, edit, delete, and update based on the value of $cmd in the submit buttons.

RE: [PHP] newbie again, submit buttons don't work

2004-08-15 Thread Ed Lazor
Assuming you're using post, add $cmd = $_POST[cmd]; Before you use $cmd and see if that makes a difference. If it does, register globals is likely disabled which is good. -Original Message- From: yawstick [mailto:[EMAIL PROTECTED] Sent: Sunday, August 15, 2004 7:58 AM To: [EMAIL

Re: [PHP] How to determine if date/time is with DST or not ?

2004-08-15 Thread -{ Rene Brehmer }-
which tells you if the locale where the server is was in DST or not on that date - atleast if I understand the PHP documentation right... since the timestamps don't contain locale info ... I wanna know if a specific locale was in DST on that given date I hate having to work with dates ... I

Re: [PHP] code

2004-08-15 Thread Justin Patrin
On 14 Aug 2004 14:42:19 -, PHPDiscuss - PHP Newsgroups and mailing lists [EMAIL PROTECTED] wrote: Codes attached. In this page i used filetype instead of is_dir. ?php $dir = jdkcoders/; function getfiles($dir) { if (is_dir($dir)) { if ($dh = opendir($dir)) { while

Re: [PHP] looking for a good FormMail PHP script

2004-08-15 Thread Juan Nin
Hannes Magnusson wrote: Are we just suppost to know Matt Wright's FormMail.pl ? Matt Wright's FormMail.pl script is a very well known script, that's been used by thousands of people for several years. So it was very likely that many of the people who read the e-mail knew what I was talking

Re: [PHP] newbie again, submit buttons don't work

2004-08-15 Thread yawstick
That cured my problem also had to add similar command for all post variables I also have some links to directly remove a record a href = '$php_self/edit/edevents.php?cmd=Remove+Entryformid=$formid' $linkname/a is there a similar command for allowing this to work -- PHP General Mailing List

[PHP] Re: Upload problems

2004-08-15 Thread Kim Steinhaug
Just a quick question, Did you alter the upload_max_filesize to 500MB and the post_max_size to say 510MB and you succesfully upload 500MB files from one machine to the server? I never testes with filesizes that large, but It would be nice to hear if it accually works without tweaking to much. I

Re: [PHP] Re: Upload problems

2004-08-15 Thread Robby Russell
On Sun, 2004-08-15 at 13:01, Kim Steinhaug wrote: Just a quick question, Did you alter the upload_max_filesize to 500MB and the post_max_size to say 510MB and you succesfully upload 500MB files from one machine to the server? I never testes with filesizes that large, but It would be nice

Re: [PHP] Re: Upload problems

2004-08-15 Thread Curt Zirzow
* Thus wrote Kim Steinhaug: Just a quick question, Did you alter the upload_max_filesize to 500MB and the post_max_size to say 510MB and you succesfully upload 500MB files from one machine to the server? I never testes with filesizes that large, but It would be nice to hear if it

Re: [PHP] looking for a good FormMail PHP script

2004-08-15 Thread Hannes Magnusson
On Sun, 15 Aug 2004 16:36:42 -0300 [EMAIL PROTECTED] (Juan Nin) wrote: Hannes Magnusson wrote: Are we just suppost to know Matt Wright's FormMail.pl ? Matt Wright's FormMail.pl script is a very well known script, that's been used by thousands of people for several years. So it was very

[PHP] Compile

2004-08-15 Thread Watty
Is it possible to compile a PHP script? And if so, how? Watty

[PHP] How to get mime type from file name

2004-08-15 Thread C.F. Scheidecker Antunes
Hello, Is there any function where I can pass a file name like file.png and get return the string of its type 'image/png' ? Basically it is a funcion that takes a file name and returns a string of its mime type. I have used mime_mail to send attachments but the I need when I am attaching the

Re: [PHP] looking for a good FormMail PHP script

2004-08-15 Thread raditha dissanayake
This mail probably shows how little you know about matt wright's FormMail more than anything else - just to give you an idea it's banned on all shared servers of our ISP. Juan Nin wrote: Hannes Magnusson wrote: Are we just suppost to know Matt Wright's FormMail.pl ? Matt Wright's FormMail.pl

Re: [PHP] Compile

2004-08-15 Thread raditha dissanayake
Watty wrote: Is it possible to compile a PHP script? And if so, how? i think you are looking for something like turck mmcache. Watty -- Raditha Dissanayake. http://www.radinks.com/sftp/ |

Re: [PHP] How to get mime type from file name

2004-08-15 Thread raditha dissanayake
C.F. Scheidecker Antunes wrote: Hello, Is there any function where I can pass a file name like file.png and get return the string of its type 'image/png' ? Basically it is a funcion that takes a file name and returns a string of its mime type. I have used mime_mail to send attachments but the

[PHP] Re: Compile

2004-08-15 Thread Hannes Magnusson
http://www.zend.com/store/products/zend-encoder.php On Mon, 16 Aug 2004 01:12:14 +0100 [EMAIL PROTECTED] (Watty) wrote: Is it possible to compile a PHP script? And if so, how? Watty -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: How to get mime type from file name

2004-08-15 Thread Hannes Magnusson
What happend to RTFM ? Is that not cool anymore? http://www.php.net/manual/en/ref.mime-magic.php now, R-T-F-M ! - Hannes On Sun, 15 Aug 2004 18:18:29 -0600 [EMAIL PROTECTED] (C.F. Scheidecker Antunes) wrote: Hello, Is there any function where I can pass a file name like file.png and get

Re: [PHP] PHP bug tracker, it is freely available

2004-08-15 Thread Jean-Christian Imbeault
Christian Stocker wrote: http://cvs.php.net/php-bugs-web/ Thanks! Now, is there any installation documentation? ;) Can't seem to find any under php-bugs-web. Jc -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: Compile

2004-08-15 Thread Louie Miranda
no free tools? On Mon, 16 Aug 2004 02:37:48 +0200, Hannes Magnusson [EMAIL PROTECTED] wrote: http://www.zend.com/store/products/zend-encoder.php On Mon, 16 Aug 2004 01:12:14 +0100 [EMAIL PROTECTED] (Watty) wrote: Is it possible to compile a PHP script? And if so, how? Watty

Re: [PHP] PHP templates

2004-08-15 Thread Justin French
On 15/08/2004, at 7:02 AM, Octavian Rasnita wrote: Hi all, I have seen that there are many templating systems for PHP. Which is the most used and the best you have found? Can you recommend me a free and good templating system? Ultimately it depends on who is going to be building those templates.

Re: [PHP] Re: Compile

2004-08-15 Thread Hannes Magnusson
On Mon, 16 Aug 2004 09:01:54 +0800 [EMAIL PROTECTED] (Louie Miranda) wrote: no free tools? I belive there are some, don't know there name thou. Ask google, should take more then 2min to find out there names. On Mon, 16 Aug 2004 02:37:48 +0200, Hannes Magnusson [EMAIL PROTECTED] wrote:

[PHP] Re: How to get mime type from file name

2004-08-15 Thread Hannes Magnusson
First of, do not mail me directly, post to the news group! 2nd: http://www.php.net/manual/en/function.mime-content-type.php [snip] mime_content_type (PHP 4 = 4.3.0, PHP 5) [/snip] Which mean: You need *at least* PHP4.3.0 for this extension. 3rd: http://www.php.net/manual/en/ref.mime-magic.php

[PHP] Re: Compile

2004-08-15 Thread Hannes Magnusson
Why did you reply me directly? Anyway. I suppose you can find similar programs for free, just google'em From: Watty [EMAIL PROTECTED] To: 'Hannes Magnusson' [EMAIL PROTECTED] Subject: RE: [PHP] Re: Compile Date: Mon, 16 Aug 2004 01:58:37 +0100 X-Mailer: Microsoft Outlook, Build 10.0.2616 Haha at

Re: [PHP] Re: Compile

2004-08-15 Thread Louie Miranda
try this: http://turck-mmcache.sourceforge.net/ -- Louie Miranda http://www.axishift.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] newbie again, submit buttons don't work

2004-08-15 Thread Ligaya Turmelle
$cmd = $_GET['cmd']; Reference: http://www.php.net/variables.predefined Respectfully, Ligaya Turmelle yawstick wrote: That cured my problem also had to add similar command for all post variables I also have some links to directly remove a record a href =

Re: [PHP] Re: Compile

2004-08-15 Thread raditha dissanayake
Louie Miranda wrote: no free tools? did you type in turck mmcahce into google before sending this? -- Raditha Dissanayake. http://www.radinks.com/sftp/ | http://www.raditha.com/megaupload Lean and mean Secure FTP

Re: [PHP] Re: How to get mime type from file name

2004-08-15 Thread raditha dissanayake
Hannes Magnusson wrote: First of, do not mail me directly, post to the news group! Hannes, when someone mails you direct to request additional help the only acceptable response IMHO is the cold shoulder. -- Raditha Dissanayake.