l i n u x - u s e r s - g r o u p - o f - d a v i s
L U G O D
 
Next Meeting:
December 2: Social Gathering
Next Installfest:
TBA
Latest News:
Nov. 18: Officers elected
Page last updated:
2003 Sep 02 00:36
Events
 Meetings
 Installfests
 Demos
 Photos
Services
 Library
 LERT
 Jobs
 Documents
Interact
 Mailing Lists
 - Search
 - Archives
 Chat (IRC)
 Social Networks
About Us
 Members
 Projects
 Testimonials
 Call for Speakers
 Why Not MS?
 Finances
 Sponsors

^Home
?Search
?News & RSS
?Calendar
@Contact Us
$Buy Stuff
=Printable


The following is an archive of a post made to our 'vox-tech mailing list' by one of its subscribers.

Report this post as spam:

(Enter your email address)
Re: [vox-tech] PHP MySQL Shell Script
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [vox-tech] PHP MySQL Shell Script



A couple questions: (1) Any reason you don't want to run your script
through Apache?  (2) Why do you need a GUI if it's just a shell script
that won't be using GUI in its final form?

Having said that... I downloaded PHP 4.3.3 and built it on my system.  It
generated an Apache module (or rather, it's supposed to), a CGI version of
the program, and the CLI version (among others).  So disregard what I said
about environment variables for now.  Anyway, I'm not sure which PHP
versions you're running when you're accessing your script via Apache and
your script from the shell.  Apache may be running the Apache module or
the CGI version.  When you execute it from the shell then it may be
running the CGI version or the CLI version.  Since you want to run your
script from the shell, use the CLI version if you aren't already.

Anyway, neither my CGI nor my CLI versions work without problems for
simple PHP scripts I tested.  (1) It's probably a problem with your code.
In this case, why don't you try tracking it down?  Or (2) it could be a
bug in your version of PHP4 -- upgrade to 4.3.3.

-Mark


On Mon, 1 Sep 2003, Charles McLaughlin wrote:

>
> Well.... This project really is a shell script and won't ever go through
> Apache.  I'm using PHP because I can quickly build a GUI using PHP-GTK.
> This is just quicker for me than using C/C++.  I thought about using
> Python, but I'm more familiar with PHP.  ;-)
>
> What environment vars should I look at?
>
> Thanks for the help!
>
> Charles
>
>
> > Possibly environment variables.  PHP might be using it or using it to
> > modify its execution behavior.
> >
> > I recommend running your script under Apache.  Having a development
> > environment that resembles the real environment as closely as possible
> > is a good idea.  If you don't want to do this for some reason, let us
> > know why and maybe we can help you setup your system so it does resemble
> > a real environment but still meet your other needs.
> >
> > -Mark
>
> _______________________________________________
> vox-tech mailing list
> vox-tech@lists.lugod.org
> http://lists.lugod.org/mailman/listinfo/vox-tech
>

-- 
Mark K. Kim
http://www.cbreak.org/
PGP key available on the website
PGP key fingerprint: 7324 BACA 53AD E504 A76E  5167 6822 94F0 F298 5DCE

_______________________________________________
vox-tech mailing list
vox-tech@lists.lugod.org
http://lists.lugod.org/mailman/listinfo/vox-tech



LinkedIn
LUGOD Group on LinkedIn
facebook
LUGOD Group on Facebook

Hosting provided by:
Sunset Systems
Sunset Systems offers preconfigured Linux systems, remote system administration and custom software development.

LUGOD: Linux Users' Group of Davis
1105 Kennedy Place, Suite 1, Davis, CA 95616
Contact Us

LUGOD is a 501(c)7 non-profit organization
based in Davis, California
and serving the Sacramento area.
"Linux" is a trademark of Linus Torvalds.

Sponsored in part by:
PC Memory Store
PC Memory Store donated give-aways to LUGOD in early 2008.