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
> 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
> 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 =
> > 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
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"
> 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
> > 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
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
> 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