Re: Script execution

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Monday 09 March 2009 15:38:37 Michael A. Peters wrote:
> George Larson wrote:
> > Thanks everybody!
> >
> > I guess I was a little vague.  I'm working on an OpenSUSE setup with
> > Apache, MySQL and PHP.  I just knew that my confusion was because of my
> > Windows up-bringing.
> >
> > The writing I referred to was to a file.  One example is I had a script
> > that was pulling data from a database and using it to generate PDF files.
> >  This would work fine from the command line but not if I pointed a
> > browser at it.  It wasn't an important difference because that script is
> > a cronjob anyway.  I just wanted to understand what was going on and how
> > I could change it -- if I find later that I need to.
>
> Give the user apache runs as permission to write to the directory where
> the PDF files are generated.
>
> I don't know what use apache run as on SuSE but if it was, say, www - as
> root:
>
> chown www /path/to/directory/where/you/want/the/output
>

I only scanned the thread, So apologies if someone else already said this.
Another problem I've come across is that the path variable is not the same 
when run under the browser as on the command line, so instead of issuing  
"command"   
you need
"/path/to/command"
Ray

> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux