[PHP-DB] security in PHP under Apache

2001-05-23 Thread Simon R Jones
hi there does anyone know how to make PHP run as a different user than the default one ("nobody" i believe). I have many users with websites and would like them to be able to run PHP under their usernames so as to ensure security. Though I'm not sure this is possible unless I install PHP as a CGI

[PHP-DB] RE: MySQL: CRITICAL problem

2001-05-11 Thread Simon R Jones
> The connection has already been established, and some data read from > database without problem. The connection was not closed, rather > left alive. > Now... > Why this happens when I try to execute additional query? Help, anyone! the connection variable is not global, so the function your MySQ

[PHP-DB] RE: nobody header

2001-04-30 Thread Simon R Jones
> the script below gives me a from header = "Nobody"; and the > $from which is supposed to be the header has been included in the > body of the email. How can i make the $from to be placed in the header? hi Jennifer, you have to specify the From email address in the following way: $from =

RE: [PHP-DB] Can't connect to local MySQL server through socket '/tmp/mysql.sock'

2001-04-26 Thread Simon R Jones
> > I have this error > > Can't connect to local MySQL server through socket '/tmp/mysql.sock' > > (111) sounds like MySQL is not running on your server.. ensure it's installed properly and has actually started, i think typing mysqladmin -p version at the command line will tell you if it's ru

[PHP-DB] get_browser()

2001-03-27 Thread Simon R Jones
hi all how does everyone feel about the get_browser function?? Is the general impression it's overkill, and also flawed since it depends on the browser.ini file being up to date, or it is widely used? I'm about to need to use browser detection & I'm wondering if a simple get_env("HTTP_USER_AGENT"

RE: [PHP-DB] running PHP from the cron

2001-02-19 Thread Simon R Jones
> I run my PHP crons like this: > > 0 6 * * * /usr/local/bin/lynx -source "http://www.domain.com/file.php" > > This is not the most secure of course, as the file is below the root > and could be hit by any user. But works for my particular case ... > > Anyone know of a method to make this more se

RE: [PHP-DB] running PHP from the cron

2001-02-19 Thread Simon R Jones
> > I have PHP installed as an Apache module and I can't have it as > CGI.. now > > I'm looking into ways to run PHP scripts off the cron, and I saw > > Rebuilt php again and don't specify the apache configuration option. This > will build php as a CGI program which you can then use in cron. > > D

[PHP-DB] running PHP from the cron

2001-02-19 Thread Simon R Jones
hi there, I have PHP installed as an Apache module and I can't have it as CGI.. now I'm looking into ways to run PHP scripts off the cron, and I saw that PHPAds does a fetch command to parse the script on a regular basis. I'm just wondering if anyone else out there has had to do this, and what is

[PHP-DB] RE: problems with require...

2001-02-14 Thread Simon R Jones
> I have only started to program in php over the past month or so. > but I'm some problems with this bit of code below. > > Problem area > require('$includefile.inc'); hi Dave, the require($includefile); bit should work fine. but before that try replacing this line $includefile = $row["inc