[PHP] show user and home directory

2001-11-21 Thread Dave VanAuken
After doing authentication we can retrieve the username using PHP_AUTH_USER wish to determin what that user's home directory is on the server from within PHP... obviously working the 'pw usershow '.$PHP_AUTH_USER through exec results in permission problems (web uid not allowed to run PW

[PHP] sending multiple variables to external PERL script for results

2001-09-26 Thread Dave VanAuken
Problem; call external perl script with variables as arguments when variables may have spaces or other restricted characters. Details; script needs to process $name $phone $creditcard (as examples) normally this would easily be solved passing the command as $command="myscript.pl $name

[PHP] ereg expr guru

2001-09-24 Thread Dave VanAuken
text file [other stuff] #%start dynamic %# #%start site [identifier] %# [contents] #%stop site [identifier] %# #%start site [identifier] %# [contents] #%stop site [identifier] %# #%start site [identifier] %# [contents] #%stop site [identifier] %#... #%stop dynamic %# [other stuff] already have t

[PHP] security concerns using PHP in shared, name based virtual server setup

2001-08-18 Thread Dave VanAuken
currently only offer full php, postgres, mysql, et al access with virtual server accounts (chrootd hacks, or jailed environments) these are cumbersome though. Anyone have input regarding the potential security concerns with allowing users (right now only chrooted ftp users with no permissions) t

RE: [PHP] HTTP header question.

2001-07-29 Thread Dave VanAuken
what is the logic behind requiring the header? for example, to avoid using cookies and yet ensuring security, we pass a loginkey for all pages. every page has include('securitycheck.php'); which parses the loginkey, uncompresses/decode it to get the userid and timestamp, and prompts for

[PHP] exit code generation, php shell script/standalone

2001-05-10 Thread Dave VanAuken
to tie in web based scripts and database updates with some server side maintenance and authentication issues, we need to have a PHP script be called from another program. The program expects a return or exit value to be transmitted back on completion or termination of the script. 0 indicating su

[PHP] PHP as shell script - generating exit status

2001-05-10 Thread Dave VanAuken
yes I know, PHP wasn't meant for this task... the question has been asked a number of tmes since V2... we have exit() which, all though you can place a variable or string in it, only prints it to the screen prior to killing itself (not sending as an exit code)... same with die AFAIK. is there

RE: [PHP] character problem

2001-02-12 Thread Dave VanAuken
PHP is doing what it should to your form input. It automatically performs "addslashes" to all form input so that the variables are parsed correctly on the receiveing end. do a "stripslashes" to get rid of it. read the manual on these two and it will all be explained. Dave -Original Messag

RE: [PHP] Time in php problem....

2001-02-12 Thread Dave VanAuken
almost didn't respond to this given the wide dissemination and the broad nature of the question can't be done with any accuracy. you could, create a session or uservariable... have that transmitted with a screen refresh, or anytime your consultant moves within the site resetting an internal tim

[PHP] mail/sendmail lmitations?

2001-02-07 Thread Dave VanAuken
anyone have an idea what the limit either in addresses or string length that sendmail can handle in a to, cc, or bcc field? Dave -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list ad

RE: [PHP] Automating tasks in PHP?

2001-02-05 Thread Dave VanAuken
and then someone always asks why this isn't included as part of PHP and how dumping such a task out to cron is stupid and it should be incorporated into PHP... blah blah blah. to preempt that. cron does it fine, low overhead, and the function of PHP is not in the realm of cron's function. if yo

RE: [PHP] Pricing for PHP programming???

2001-02-02 Thread Dave VanAuken
1) talk to the customer, in person if at all possible - get a CLEAR picture of exactly what they want. 2) write down every aspect of what they want 3) take each element of the site and estimate how many hours it will take you to accomplish it. 4) double the amount (your customer will cause that)

RE: [PHP] contracting & consulting (was "[PHP] Pricing for PHP pr ogramming???")

2001-02-01 Thread Dave VanAuken
or cname the main PHP site that way we don't have to bog down/rely on the primary PHP servers. jobs.php.net Further to the other conversations on this topic: We always investiate any companies that are looking for CGI, Perl, and ASP solutions since many of them are just going off of what