Re: [PHP] reading/writing files outside of web root

2005-02-08 Thread Jason Wong
On Wednesday 09 February 2005 02:31, Richard Lynch wrote: > Phil Ewington - 43 Plc wrote: > > For some reason user_prefs will not open > > for read/write even when I tested it under apache.apache and chmod'd > > to 755, > > perhaps because /home is owned by root? > > Something went wrong with this

Re: [PHP] FTP script and project

2005-02-08 Thread Jason Wong
On Wednesday 09 February 2005 12:58, D.Walsh wrote: > I'm in need of some fully functional stand-alone php FTP scripts, I've > searched the web, have downloaded a couple but they don't work. > > While this looks valid and appears to be uploading the file, no file is > ever saved other than a tempor

[PHP] FTP script and project

2005-02-08 Thread D . Walsh
I'm in need of some fully functional stand-alone php FTP scripts, I've searched the web, have downloaded a couple but they don't work. While this looks valid and appears to be uploading the file, no file is ever saved other than a temporary file that vanishes as soon as the file has completed u

Re: [PHP] Secure system calls -- how

2005-02-08 Thread Niels
Jennifer Goodie wrote: > Should web applications have access to areas on the file system that the > apache user doesn't? I personally only allow my web applications access > to certain areas on purpose and set my permissions to accomplish this. If > I need to be a user other than nobody to do so

RE: [PHP] Cerauno Technologies announces the release of DocGuru Professional 1.0

2005-02-08 Thread Akhil Dhanuka
Hello, We have not seen the product that you have listed so we cannot really compare our product with them. I believe phpDocumentor is a web-based project so it will never be as responsive as a client server application. DocGuru is developed in C/C++ therefore its speed is uncomparable. We have

RE: [PHP] Apache 2.0.52, PHP 5.03, FreeBSD 4.10 memory problems

2005-02-08 Thread Sander Holthaus - Orange XL
> Sander Holthaus - Orange XL wrote: > >>Sander Holthaus - Orange XL wrote: > >> > ... > >> > >>Fix or disable that script. > > > > > > I wish I could, but I'm not a PHP-programmer (can read it > and can do > > some basic programming, but I lack in-depth knowledge of PHP). > > > > well disab

Re: [PHP] Secure system calls -- how

2005-02-08 Thread Jennifer Goodie
-- Original message -- From: Niels <[EMAIL PROTECTED]> > Jennifer Goodie wrote: > > > I wouldn't use system calls to move files around. PHP has built in file > > system functions. Why shell out to do something that is built in? > > Well, the apache user really s

Re: [PHP] ability to use extract to $this vars in a class

2005-02-08 Thread Guillermo Rauch
If i understand you correctly, you want to extract all the keys and generate class members with them.. // Define class test class test { // We pass an array to the constructor function __construct( $arr ) { foreach($arr as $key => $val ) { $this-

RE: [PHP] Apache 2.0.52, PHP 5.03, FreeBSD 4.10 memory problems

2005-02-08 Thread Sander Holthaus - Orange XL
> > :-( The downside would be, IMHO, that I would need to pro-actively > > check everything that is going on concerning PHP, in order > to prevent > > any major problems. (one and a halve month ago, some clients on an > > other installation who hadn't mainted phpBB also caused me the > > nece

AW: [PHP] phpBB alternatives?

2005-02-08 Thread Mirco Blitz
Hi, This one is really nice. I Use it myself on a coulpe of sites. http://phorum.org/ Greetings Lindworm -Ursprüngliche Nachricht- Von: Tony Di Croce [mailto:[EMAIL PROTECTED] Gesendet: Mittwoch, 9. Februar 2005 02:16 An: php-general@lists.php.net Betreff: [PHP] phpBB alternatives?

[PHP] ability to use extract to $this vars in a class

2005-02-08 Thread daniel
is there any way to use extract , to extract the keys from an array to $this vars for within a class ? Let me know. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Secure system calls -- how

2005-02-08 Thread Niels
Guillermo Rauch wrote: > This article may help: > http://www.onlamp.com/pub/a/php/2003/08/28/php_foundations.html Thanks you, I've read that, it deals with avoiding malicious code in file uploads. I think I've got that part under control. You're right, such methods are obvious entry points to a s

Re: [PHP] Secure system calls -- how

2005-02-08 Thread Niels
Jennifer Goodie wrote: > I wouldn't use system calls to move files around. PHP has built in file > system functions. Why shell out to do something that is built in? Well, the apache user really shouldn't have access to the entire file system -- that's the problem. Thanks, Niels -- PHP Gener

RE: [PHP] ncurses woes...

2005-02-08 Thread Grimes, Dean
Well I think I've got my handling of cursor movement keys working pretty good. But I still have a couple of bugs with some of the video attribute settings. The BLINK attribute works, but even after turning it off, it leaves the area that you set to blink in an active blink mode. The blinking thing

Re: [PHP] phpBB alternatives?

2005-02-08 Thread Chris Shiflett
--- Tony Di Croce <[EMAIL PROTECTED]> wrote: > Due to the recent vulnerabilities discovered in phpBB and the > content of this page: > http://www.phpbb.com/ > I have decided to consider other options for my forum needs... Does > anyone have any reccomendations for a PHP based forum software? FUDfo

Re: [PHP] phpBB alternatives?

2005-02-08 Thread Robby Russell
On Tue, 2005-02-08 at 17:16 -0800, Tony Di Croce wrote: > Due to the recent vulnerabilities discovered in phpBB and the content > of this page: > http://www.phpbb.com/ > I have decided to consider other options for my forum needs... Does > anyone have any reccomendations for a PHP based forum softw

Re: [PHP] phpBB alternatives?

2005-02-08 Thread Dan Trainor
Tony Di Croce wrote: Due to the recent vulnerabilities discovered in phpBB and the content of this page: http://www.phpbb.com/ I have decided to consider other options for my forum needs... Does anyone have any reccomendations for a PHP based forum software? I'm not an advocate for phpBB by any mea

[PHP] phpBB alternatives?

2005-02-08 Thread Tony Di Croce
Due to the recent vulnerabilities discovered in phpBB and the content of this page: http://www.phpbb.com/ I have decided to consider other options for my forum needs... Does anyone have any reccomendations for a PHP based forum software? -- Send REAL USPS letters from the Web! http://www.quickymai

Re: [PHP] Re: Changing PHP properties (Previously: Cannot upload a file greater

2005-02-08 Thread Dan Trainor
Todd Cary wrote: Dan - Keep in mind that the change I made was within Apache on my server - not in the php.ini file. The changes to the php.ini file are well documented and have been covered within messages on this NewNet. However, s I stated, I am not sure why that change needs to be made...m

[PHP] Re: Changing PHP properties (Previously: Cannot upload a file greater

2005-02-08 Thread Todd Cary
Dan - Keep in mind that the change I made was within Apache on my server - not in the php.ini file. The changes to the php.ini file are well documented and have been covered within messages on this NewNet. However, s I stated, I am not sure why that change needs to be made...more reading for m

[PHP] Changing PHP properties (Previously: Cannot upload a file greater than 500 KB)

2005-02-08 Thread Dan Trainor
Todd Cary wrote: Richard - It turned out that the following was missing from Apache's httpd.conf file: SetOutputFilter PHP SetInputFilter PHP LimitRequestBody 500 Not sure what that does or where I should have read about it, but I did find that in an email I got with Google. Todd Richard Ly

Re: [PHP] Cannot upload a file greater than 500 KB

2005-02-08 Thread Todd Cary
Richard - It turned out that the following was missing from Apache's httpd.conf file: SetOutputFilter PHP SetInputFilter PHP LimitRequestBody 500 Not sure what that does or where I should have read about it, but I did find that in an email I got with Google. Todd Richard Lynch wrote: Todd

Re: [PHP] stream_set_timeout() stream_get_meta_data() etc...

2005-02-08 Thread Al
Richard Lynch wrote: Al wrote: How can I detect that a remote server is hung up on transmitting a http page and gracefully handle it? The connect is made OK, all I want to do is to make certain that I receive the data stream in a given amount of time. For example, if the remote server is incredibl

[PHP] Re: stream_set_timeout() stream_get_meta_data() etc...

2005-02-08 Thread Al
Darn, I left out an important function, the fread(). Code snip should be: $fp= fopen("http://www.anything.com/foo.html, 'rb'); if(!fp) {do something different} stream_set_timeout($fp, 2); $contents= fread($fp, 20); $status= stream_get_meta_data($fp); if($status[timed_out] {do something};

Re: [PHP] is_dir & is_file bugs?

2005-02-08 Thread Afan Pasalic
Yup! That's the one! I was missing PATH... :) Thank you very much for such a nice explanation! -afan M. Sokolewicz wrote: Matt M. wrote: $path = 'product_images'; $handle = opendir($path); while (false !== ($file = readdir($handle))) { if ($file != "." && $file != "..") {

Re: [PHP] is_dir & is_file bugs?

2005-02-08 Thread Afan Pasalic
Nope! It doesnt work either... :( Matt M. wrote: $path = 'product_images'; $handle = opendir($path); while (false !== ($file = readdir($handle))) { if ($file != "." && $file != "..") { echo $file; if (is_dir($file)) { echo ' <-- folde

Re: [PHP] is_dir & is_file bugs?

2005-02-08 Thread M. Sokolewicz
Matt M. wrote: $path = 'product_images'; $handle = opendir($path); while (false !== ($file = readdir($handle))) { if ($file != "." && $file != "..") { echo $file; if (is_dir($file)) { echo ' <-- folder'; $folders[] = $fi

Re: [PHP] is_dir & is_file bugs?

2005-02-08 Thread Matt M.
> $path = 'product_images'; > $handle = opendir($path); > while (false !== ($file = readdir($handle))) > { > if ($file != "." && $file != "..") > { > echo $file; > if (is_dir($file)) > { > echo ' <-- folder'; >

Re: [PHP] Highlighting a stored value as 'selected'

2005-02-08 Thread Alp
Hi Jarratt, Thank you for your advice. I will try that and come back with the result. Alp "RaTT" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hello Alp > > Try something like, > > > //DB fields as an array > > $db_fields = array('left' => 'left', >'center' => 'center', >

[PHP] is_dir & is_file bugs?

2005-02-08 Thread Afan Pasalic
I have script that create directories after item's name and each directory has 2 images: big image and it's thumbnail (both jpgs) But, when I run this code: $path = 'product_images'; $handle = opendir($path); while (false !== ($file = readdir($handle))) { if ($file != "." && $

Re: [PHP] stream_set_timeout() stream_get_meta_data() etc...

2005-02-08 Thread Richard Lynch
Al wrote: > How can I detect that a remote server is hung up on transmitting a http > page and > gracefully handle it? > > The connect is made OK, all I want to do is to make certain that I receive > the > data stream in a given amount of time. For example, if the remote server > is > incredibly s

[PHP] stream_set_timeout() stream_get_meta_data() etc...

2005-02-08 Thread Al
How can I detect that a remote server is hung up on transmitting a http page and gracefully handle it? The connect is made OK, all I want to do is to make certain that I receive the data stream in a given amount of time. For example, if the remote server is incredibly slow or hangs in the midd

Re: [PHP] Secure system calls -- how

2005-02-08 Thread Guillermo Rauch
This article may help: http://www.onlamp.com/pub/a/php/2003/08/28/php_foundations.html On Tue, 08 Feb 2005 20:38:48 +, Jennifer Goodie <[EMAIL PROTECTED]> wrote: > -- Original message -- > From: Niels <[EMAIL PROTECTED]> > > Hi list, > > > > I'm doing an intr

Re: [PHP] Secure system calls -- how

2005-02-08 Thread Jennifer Goodie
-- Original message -- From: Niels <[EMAIL PROTECTED]> > Hi list, > > I'm doing an intranet website for managing users. I need to be able to > change passwords, move files and folders around and that kind of thing. > What is the best way? > I wouldn't use system

Re: [PHP] Cannot upload a file greater than 500 KB

2005-02-08 Thread Richard Lynch
Todd Cary wrote: > I am using php 4 and Apache 1.3 on a RH 9 box. > > upload_max_filesize is set to 5M > > post_max_size is set to 8M > > MAX_FILE_SIZE in the HTML upload page is set to 500 > > I get the error "The document contains no data" with any file over 500 KB. > > What is creating t

Re: [PHP] Apache 2.0.52, PHP 5.03, FreeBSD 4.10 memory problems

2005-02-08 Thread Richard Lynch
[EMAIL PROTECTED] wrote: >>That's definitely not good. >> >>But there is only so much you, and PHP, can do to stop a bad programmer >>from chewing up resources. >> > I'm pretty sure that you can prevent this somehow! > There is no way any OS with respect for themself, will > allow any user installe

Re: [PHP] Connecting To Multiple MySQL Databases

2005-02-08 Thread Richard Lynch
Silvio Porcellana wrote: > Richard Lynch wrote: > > >> > > >> Actually, you want a few SPARE MySQL connections, so you can use the >> mysql >> command line monitor to do things -- Particularly in case of a run-away >> PHP/MySQL script which slams the server into over-drive... If you don't >> ha

Re: [PHP] Storing CCN's Again...

2005-02-08 Thread Richard Lynch
Tony Di Croce wrote: > First I should say that I have NO plans to store CCN's on my site, but > I do have a related question: > > Right now I accept CC info from a posted form and then from a PHP > script submit that to authorize.net... Is their any way to get PHP to > clean up any remnants of any

Re: [PHP] updating php

2005-02-08 Thread Richard Lynch
blackwater dev wrote: > I have installed php5 fine on my Fedora 3 box. I know need to > recompile to add in a feature and did the same steps as the install > ./configure, make, make install which went fine but when restart > apache and go to the php.ini, my new configuration is not shown and Go t

Re: [PHP] PHP/5.0.3 & MySQL 5.0.2 Stored procedure (OUT)

2005-02-08 Thread Ian Porter
Curt Zirzow wrote: > * Thus wrote Ian Porter: >> Hi, >> >> I am just wondering how to obtain the result from a mysql procedure OUT >> parameter within PHP e.g. >> >> MYSQL >> create procedure test_out(OUT testvar int) >> BEGIN >> select max_connections into testvar from mysql.user limit 1; >> E

RE: [PHP] Apache 2.0.52, PHP 5.03, FreeBSD 4.10 memory problems

2005-02-08 Thread Richard Lynch
> :-( The downside would be, IMHO, that I would need to pro-actively check > everything that is going on concerning PHP, in order to prevent any major > problems. (one and a halve month ago, some clients on an other > installation > who hadn't mainted phpBB also caused me the necessary problems). A

Re: [PHP] Retrieving an URL paramter via fsockopen

2005-02-08 Thread Richard Lynch
> I have to get an URL parameter via fsockopen connection. > I shall connect with fsockopen to a given link and get back this link > with an URL parameter cnr=xx > Who can I do this? > And who can I "read" this URL parameter? What's "cnr" ??? If you can get the fsockopen to work, and it doesn

Re: [PHP] Strange key behaviour

2005-02-08 Thread Richard Lynch
Johannes Reichardt wrote: > Hey there! > > i have a routine like this: > > $myarray['1'] = 'aösldfjkasöldkjf'; > > foreach($myarray as $key => $value) { > echo $key{0}; // outputs nothing > echo substr($key,0); // outputs 1 like intended > } > > Any ideas why this is like that? I am using

Re: [PHP] Cerauno Technologies announces the release of DocGuru Professional 1.0

2005-02-08 Thread Greg Donald
On Tue, 8 Feb 2005 23:22:05 -0800, Akhil Dhanuka <[EMAIL PROTECTED]> wrote: > > Cerauno Technologies proudly announces the release of DocGuru Professional > 1.0. Did you happen to have a comparison doc comparing this with the free, open source PHPDocumentor: http://www.phpdoc.org/ ? Thanks, --

[PHP] Re: [PHP-DB] mysqli connection problem

2005-02-08 Thread Martin Norland
My intention of setting the reply-to was not to offend, or claim you were wrong - merely to move the discussion to the list I felt (and still feel - as I've done it again) is most appropriate for the question. anyway, back to the task at hand ( first: I'm assuming you restarted apache after chan

[PHP] Cannot upload a file greater than 500 KB

2005-02-08 Thread Todd Cary
I am using php 4 and Apache 1.3 on a RH 9 box. upload_max_filesize is set to 5M post_max_size is set to 8M MAX_FILE_SIZE in the HTML upload page is set to 500 I get the error "The document contains no data" with any file over 500 KB. What is creating the error? Many thanks. Todd -- PHP Gene

Re: [PHP] ncurses woes...

2005-02-08 Thread Richard Lynch
Grimes, Dean wrote: > Anybody out there doing any work with ncurses? I've been playing around > with > ncurses trying to figure it all out. I have had pretty good luck but I am > finding a few issues and would like to know if other users are having the > same problems. One of the problems I'm havin

Re: [PHP] Secure system calls -- how

2005-02-08 Thread Niels
Greg Donald wrote: > sudo can assist you with this task. Thank you for your answer. Can you be more specific? Is sudo the best way to go? What are the pros and cons? Should I wrap my system calls in a C program or a bash script? Do you know of any websites with articles or tutorials about this?

[PHP] RE: [PHP-DB] mysqli connection problem

2005-02-08 Thread Denis Gerasimov
> > Hello, > > > > This question was asked many times, but I can't find a good answer. > > I am getting this error message while trying to connect to MySQL server > (PHP > > + PEAR::DB_DataObject): > > > > "Can't connect to local MySQL server through socket '' (111)" > > > > (notice '' - is that

Re: [PHP] Storing CCN's Again...

2005-02-08 Thread Greg Donald
On Tue, 8 Feb 2005 09:23:46 -0800 (PST), Richard Lynch <[EMAIL PROTECTED]> wrote: > There's no guarantee that will re-use the same bytes for the new string in > the low-level C malloc/alloc/???alloc calls, I don't think... Your right. In fact this script proves just how wrong I was: #!/usr/bin/

[PHP] Cerauno Technologies announces the release of DocGuru Professional 1.0

2005-02-08 Thread Akhil Dhanuka
Cerauno Technologies proudly announces the release of DocGuru Professional 1.0. DocGuru is our brand new source code documentation system. It helps you to generate documentation right from your source code, understanding naturally formed in-source comments, thereby making the entire documentation

Re: [PHP] Storing CCN's Again...

2005-02-08 Thread Richard Lynch
[EMAIL PROTECTED] wrote: > No the most secure way, but I had a client who was determined not to use > paypal and store cc'sand do them offline. I am using SSL + Mysql encode to > do this. Ie > encode(cc_number,md5('secret')) This is rife with potential problems... Stored *where* off-line? Who can

Re: [PHP] excel -> ( csv -> ) mysql ?!?

2005-02-08 Thread Richard Lynch
Afan Pasalic wrote: > #names of columns in products table > $column_names = array('ITEM NUMBER', 'ITEM NAME', 'DESCRIPTION', > 'COLORS', 'INCLUDES', 'QTY', 'PRICE', 'IMAGE', 'THUMB', 'CATALOG', > 'STATUS', 'SUPPLIER', 'EXP_DATE'); > > if(isset($_POST['SubmitExcelFile'])) > { > #VALIDATING

Re: [PHP] timestamp problem?

2005-02-08 Thread Richard Lynch
Balu Stefan wrote: > First of all, hello everybody, > I am having some problems generating timestamps. > I have a simple application, the user selects a month, a day and a year > and submits > it's data. > Now, I want that date to be stransformed into a unixtimestamp. To do > that > I use strtotime

RE: [PHP] Problem using return from a class.

2005-02-08 Thread Ben Edwards (lists)
On Tue, 2005-02-08 at 16:47 +, Chris Ramsay wrote: > [snip] > I am having a really odd problem. I have a class and if I do a return > nothing is returned. If I do an echo of the variable that is being > returned I can see it so there is something to return. Is there some > strange bug in PHP

Re: [PHP] reading/writing files outside of web root

2005-02-08 Thread Richard Lynch
Phil Ewington - 43 Plc wrote: > For some reason user_prefs will not open > for read/write even when I tested it under apache.apache and chmod'd to > 755, > perhaps because /home is owned by root? Something went wrong with this test. You SHOULD have been able to read/write that file in PHP, assumi

Re: [PHP] Storing CCN's Again...

2005-02-08 Thread trlists
On 8 Feb 2005 Greg Donald wrote: > It's pretty simple to scrub the data away. > > $cc = '1234123412341234'; > > // do processing > > $cc = md5( time() ); This only works if PHP uses the same storage for both strings. If it reallocates the storage, for example because the md5 result is longer

Re: [PHP] Using

2005-02-08 Thread Richard Lynch
Jochem Maas wrote: > Dan Trainor wrote: >> Hello, all - >> >> Being still fairly new to PHP, I thought I'd ask a few more questions >> and get on to the right track here, developing correct coding habits >> before I start to teah myself incorrect habits. >> >> One of my biggest questions is how to

Re: [PHP] Storing CCN's Again...

2005-02-08 Thread Richard Lynch
Greg Donald wrote: > On Tue, 8 Feb 2005 08:37:32 -0800, Tony Di Croce <[EMAIL PROTECTED]> > wrote: >> So, it doesn't seem like anyone is aware of a way to make PHP paranoid >> about such things... Perhaps their is a lower level way to get linux >> to scrub an address space when a process exits? I w

Re: [PHP] Storing CCN's Again...

2005-02-08 Thread Greg Donald
On Tue, 8 Feb 2005 08:37:32 -0800, Tony Di Croce <[EMAIL PROTECTED]> wrote: > So, it doesn't seem like anyone is aware of a way to make PHP paranoid > about such things... Perhaps their is a lower level way to get linux > to scrub an address space when a process exits? I will google It's prett

RE: [PHP] Problem using return from a class.

2005-02-08 Thread Chris Ramsay
[snip] I am having a really odd problem. I have a class and if I do a return nothing is returned. If I do an echo of the variable that is being returned I can see it so there is something to return. Is there some strange bug in PHP? [/snip] What is it you are doing - are you echoing the call i.e

[PHP] excel -> ( csv -> ) mysql ?!?

2005-02-08 Thread Afan Pasalic
Hi to all! Have to create a script to select excel file and store info from the file in existing table (mysql). After some research found the best way will be save excel (xls) file as csv comma delimited file and then store info in table. For first step I just used in Excel app File > Save As..

Re: [PHP] Storing CCN's Again...

2005-02-08 Thread Tony Di Croce
I AM going to accept CC's on my site. I am NOT going to store them anywhere... and I DO think the original question is valid. If a hacker is able to gain root access they may be able to obtain a CCN from memory on my server... Perhaps a hacker breaks into a number of sites and harvests 1 or 2 numbe

[PHP] Problem using return from a class.

2005-02-08 Thread Ben Edwards (lists)
I am having a really odd problem. I have a class and if I do a return nothing is returned. If I do an echo of the variable that is being returned I can see it so there is something to return. Is there some strange bug in PHP? Ben -- Ben Edwards - Poole, UK, England If you have a problem sendin

Re: [PHP] Storing CCN's Again...

2005-02-08 Thread trlists
On 8 Feb 2005 Jochem Maas wrote: > don't agree - I'd rather be cautious on a hunch, especially given that I > have no means to personally verify the risk other than in terms of total > financial ruin if a real problem occurs even once. besides its a moot point > there is no need to handle creditca

Re: [PHP] timestamp problem?

2005-02-08 Thread Jason Wong
On Tuesday 08 February 2005 19:30, Balu Stefan wrote: > Also mktime generates the second timestamp ...damn, I really don't know > why there are two different > timestamps for the same date. A few of PHP's date/time functions take into account the local time zone of the server. So: > I use strt

RE: [PHP] Using

2005-02-08 Thread Jay Blanchard
[snip] >Is it small enough to be justified? I don't know, I just always thought of it as "clean" to write an application inside of a single file itself. While I'm still fairly new to procedural programming, this may not be the proper way to do things. [/snip] A. It's not a dumb topic, just ve

Re: [PHP] Using

2005-02-08 Thread Jochem Maas
Dan Trainor wrote: Hello, all - Being still fairly new to PHP, I thought I'd ask a few more questions and get on to the right track here, developing correct coding habits before I start to teah myself incorrect habits. One of my biggest questions is how to go about writing an application that u

Re: [PHP] Using

2005-02-08 Thread Dan Trainor
Jay Blanchard wrote: [snip] ...stuff... [/snip] This is really a broad request, and you'll get as many opinions as there are posters. Instead of IFs you may want to use a SWITCH (http://www.php.net/switch). Why do you want to do the application all in one file? Is it small enough to be justified? P

Re: [PHP] Re: [users@httpd] Favorite Linux Distribution

2005-02-08 Thread Greg Donald
On Tue, 8 Feb 2005 14:19:38 +, Rory Browne <[EMAIL PROTECTED]> wrote: > This question is as much about politics, and religion, as it is technical. In all my years of attending Church I never once heard anyone discussing Linux. Must be a denominational thing. -- Greg Donald Zend Certified E

RE: [PHP] Favorite Linux Distribution

2005-02-08 Thread Jesse Castro
> -Original Message- > From: The Disguised Jedi [mailto:[EMAIL PROTECTED] > Sent: Monday, February 07, 2005 5:25 PM > To: PHP General List; users@httpd.apache.org > Subject: [PHP] Favorite Linux Distribution > > > Hello all - > > I've been a list member for a while, helped out some peop

Re: [PHP] Storing CCN's Again...

2005-02-08 Thread Jochem Maas
[EMAIL PROTECTED] wrote: On 8 Feb 2005 Jochem Maas wrote: This was aimed at me. I personally wouldn't touch a CCN with a barge pole, I did say it was 'best' not to accept them at all, although accepting them and immediately passing them on via an SSL link (e.g. with cURL) is probably 'good enough'

RE: [PHP] Using

2005-02-08 Thread Jay Blanchard
[snip] ...stuff... [/snip] This is really a broad request, and you'll get as many opinions as there are posters. Instead of IFs you may want to use a SWITCH (http://www.php.net/switch). Why do you want to do the application all in one file? Is it small enough to be justified? Place common function

[PHP] Using

2005-02-08 Thread Dan Trainor
Hello, all - Being still fairly new to PHP, I thought I'd ask a few more questions and get on to the right track here, developing correct coding habits before I start to teah myself incorrect habits. One of my biggest questions is how to go about writing an application that uses a single file,

Re: [PHP] Storing CCN's Again...

2005-02-08 Thread trlists
On 8 Feb 2005 Jochem Maas wrote: > This was aimed at me. I personally wouldn't touch a CCN with a barge pole, > I did say it was 'best' not to accept them at all, although accepting them and > immediately passing them on via an SSL link (e.g. with cURL) is probably > 'good enough' - at least, appa

Re: [PHP] Re: [users@httpd] Favorite Linux Distribution

2005-02-08 Thread Rory Browne
This question is as much about politics, and religion, as it is technical. I like mandrake, but I haven't used a distro yet, in which everything 'just worked'. Each distro I tried had some bug in it. Can't remember what they were, and they were easly circumvented, but if you don't know much about

Re: [PHP] Secure system calls -- how

2005-02-08 Thread Greg Donald
On Tue, 08 Feb 2005 03:14:43 +0100, Niels <[EMAIL PROTECTED]> wrote: > I'm doing an intranet website for managing users. I need to be able to > change passwords, move files and folders around and that kind of thing. > What is the best way? sudo can assist you with this task. -- Greg Donald Zend

Re: [PHP] reading/writing files outside of web root

2005-02-08 Thread Greg Donald
On Tue, 8 Feb 2005 12:50:59 -, Phil Ewington - 43 Plc <[EMAIL PROTECTED]> wrote: > So my question is can I easily/safely edit files outside of the web root > using PHP or is there a 3rd party command line tool to do this? sudo can assist you with this task. -- Greg Donald Zend Certified Eng

Re: [PHP] reading/writing files outside of web root

2005-02-08 Thread Jochem Maas
Phil Ewington - 43 Plc wrote: Hi All, I am revisiting a previous question posted here as after lots of investigation and code testing I cannot get what I want. I want to use PHP to read/write files that are outside of the web root and not owned by apache. To be specific... $HOME/.procmailrc $HOME/.

Re: [PHP] reading/writing files outside of web root

2005-02-08 Thread Jason Wong
On Tuesday 08 February 2005 20:50, Phil Ewington - 43 Plc wrote: > So my question is can I easily/safely edit files outside of the web > root using PHP or is there a 3rd party command line tool to do this? Your real question is: "can I easily/safely edit files that [the user running] PHP has no

[PHP] reading/writing files outside of web root

2005-02-08 Thread Phil Ewington - 43 Plc
Hi All, I am revisiting a previous question posted here as after lots of investigation and code testing I cannot get what I want. I want to use PHP to read/write files that are outside of the web root and not owned by apache. To be specific... $HOME/.procmailrc $HOME/.spamassassin/user_prefs .p

[PHP] timestamp problem?

2005-02-08 Thread Balu Stefan
First of all, hello everybody, I am having some problems generating timestamps. I have a simple application, the user selects a month, a day and a year and submits it's data. Now, I want that date to be stransformed into a unixtimestamp. To do that I use strtotime('m/d/y') for 01 January 2011 it w

Re: [PHP] Highlighting a stored value as 'selected'

2005-02-08 Thread RaTT
Hello Alp Try something like, 'left', 'center' => 'center', 'right' => 'right'); function drop($array,$sel_name='',$sel_field='',$css=''){ $dropdown = "\n"; foreach($arr as $key => $val){ $sel = ($s

Re: [PHP] Storing CCN's Again...

2005-02-08 Thread Jochem Maas
Marek Kilimajer wrote: Greg Donald wrote: On Mon, 07 Feb 2005 22:25:46 -0500, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: I think this is an extraordinary (and unjustified) level of paranoia. This was aimed at me. I personally wouldn't touch a CCN with a barge pole, I did say it was 'best' not to

Re: [PHP] Storing CCN's Again...

2005-02-08 Thread Marek Kilimajer
Greg Donald wrote: On Mon, 07 Feb 2005 22:25:46 -0500, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: I think this is an extraordinary (and unjustified) level of paranoia. cat /dev/mem | strings | egrep "^[0-9]+$" cat: /dev/mem: Permission denied :) You need root access. If anyone gains root on you

[PHP] Highlighting a stored value as 'selected'

2005-02-08 Thread Alp
Is there an easier way to display/highlight the value stored in the database for a select option? Such as: Stored value is 'center'. The statement is: print ''; print 'Left'; print 'Center'; print 'Right'; print ''; I can have 3 sets of the above tied to 'if's but would rather ask for an easier or

Re: [PHP] Re: [users@httpd] Favorite Linux Distribution

2005-02-08 Thread Gareth Williams
I would agree with the Mandrake recommendation. I first installed it a few years back, to help me get started in the Linux/Unix world, and had very little trouble with it. It's hardware recognition has always been very impressive. Since first installing Mandrake, I have often thought I should