Re: [PHP] SESSION ARRAY
$_SESSION is a predefined variable, session_start() session_register('BILLARRAY') should work though :) Keith Vance Vance Consulting LLC www.vanceconsulting.net (206) 355-2399 Try my open source PHP authentication system, Rampart by visiting http://rampart.sourceforge.net/. Commercial support is available at, http://www.vanceconsulting.net/support/. On Fri, 30 Aug 2002, Todd Pasley wrote: > > What is the proper syntax for storing an array in a session? > > > > is it $_SESSION["BILLARRAY"]=$ARRAY? > > Yep, providing youre using session_start() and session_register("_SESSION") > you can assign any type of data, just like a regular hash. > > Todd. > > - Original Message - > From: "Randy Johnson" <[EMAIL PROTECTED]> > To: "phplist" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> > Sent: Friday, August 30, 2002 9:08 AM > Subject: [PHP] SESSION ARRAY > > > > What is the proper syntax for storing an array in a session? > > > > is it $_SESSION["BILLARRAY"]=$ARRAY? > > > > > > Randy > > > > > > > > -- > > 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 > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Running a PHP script automatically?
On the Linux box compile PHP as CGI (i.e. don't configure it as an apache mod). Then you can just run your script from the the command-line. For example: #!/usr/local/bin/php -q The -q suppresses the html crap that gets spit out. I don't know jack about Redhat (Debian rocks), you might be able to get an RPM that will install the php executable for you. To do the crontab: RUN THIS COMMAND crontab -e TYPE THIS 15,30,45,0 * * * * name_of_your_script THEN ESC :wq Keith Vance Vance Consulting LLC www.vanceconsulting.net (206) 355-2399 Try my open source PHP authentication system, Rampart by visiting http://rampart.sourceforge.net/. Commercial support is available at, http://www.vanceconsulting.net/support/. On Sat, 21 Sep 2002, Joseph Szobody wrote: > Folks, I have a PHP script that needs to be executed automatically every 15 minutes. >I have the option of doing this on a RedHat linux box, or on Windows 2000 Server. > > How would I do this (on either platform) and which would be easier? > > I believe somehow I could create a cron job on linux, but I'm a bit confused how >that would work. Would I just call the php script using Lynx? If so, does the Lynx >process die when the php script is finished? Will I have dozens of Lynx processes >still running at the end of the day? > > In Windows, I believe I could use the task scheduler, or something like that. But >again, how exactly would I call the script? I certainly don't want a new browser >window to open every 15 minutes, especially if it doesn't close again. > > Any insight? Thanks! > > Joseph > > > -- > 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
Re: Fw: Re: [PHP] Simple HTML-Form Question
I would quote get in method="get" and end the for starters. Keith Vance Vance Consulting LLC www.vanceconsulting.net (206) 355-2399 Try my open source PHP authentication system, Rampart by visiting http://rampart.sourceforge.net/. Commercial support is available at, http://www.vanceconsulting.net/support/. On Sun, 13 Oct 2002, Chip Wiegand wrote: > Yep, I've been going over this with John off-list, I learned something > new tonite. One thing about his script - it doesn't print the text > entered in the box, it only prints the work Hallo. To fix that would > require adding > . "$name"; > to the end of the echo statement. > Regards, > -- > Chip > > @ Edwin wrote this stuff back on Mon, 14 Oct 2002 11:55:28 +0900: > > > Hello, > > > > Just for the sake of the argument... > > > > On Monday, October 14, 2002 10:44 AM > > Chip Wiegand wrote: > > > > > Sascha Cunz wrote this stuff back on Mon, 14 Oct 2002 01:13:53 > > > +0200: > > > > > > > This beautifies it (even makes it a bit more secure), but one > > > > doesn't need it really; should have worked without these changes, > > > > too. (Of course, it's better to include these changes) > > > > > > > > Sascha > > > > > > No it shouldn't have worked the way you had it originally. The isset > > > statement HAS to have the same value as the submit buttom name or it > > > won't work at all. > > > > Yes it will. Try it. ;) > > > > Of course, I didn't mean to say that it will work the way you want it. > > I just wanted to say that it would still work even though the isset > > statement doen't have the same value with the submit button. Remember, > > isset() is basically a function to check if something is set or not... > > > > So, changing this > > > > > > > if (isset($_GET['submit'])) > > > > to this > > > > > > > if (isset($_GET['name'])) > > > > will have a similar result (for the short code discussed here). > > > > - E > > > > PS > > Typo: (should be $_GET['name']) > > > > > echo "Hallo ".$GET['name']; > > > > > As for the beautify part, that's just the way I write > > > my code, that doesn't matter at all to whether or not the script > > > will work. > > > > > > -- > > > Chip > > > > > > > > The value of name for the submit button is wrong - it should be > > > > > the same as the value you gave the isset statement, in this case > > > > > it should be > > > > > Better yet is to use isset($submit) and the value for the submit > > > > > statement is also name="submit" - > > > > > > > > > > of course value is optional. So you end up with this - > > > > > > > > > > > > > > if (isset($_GET['submit'])) > > > > > { > > > > > echo "Hallo ".$GET['name']; > > > > > } > > > > > else > > > > > { > > > > > echo " > > > > > > > > > > "; > > > > > } > > > > > ?> > > > > > > > > > > > > -- > > > > 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 > > > > > > > -- > > 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 > > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] why can't i do this?
Because that's not the way PHP works. You aren't comparing anything on the second half of the elseif statement. Keith Vance Vance Consulting LLC www.vanceconsulting.net (206) 355-2399 Try U.M.A. at http://uma.sourceforge.net/ On Thu, 17 Oct 2002, Peter Houchin wrote: > howdy > > can some one please tell me why i can't do this > > elseif ($_POST['cost'] <=4 && >=20001){...} > > but i can do this > > elseif ($_POST['cost'] <=4 && $_POST['cost'] >=20001){...} > > > > Cheers > > Peter > "the only dumb question is the one that wasn't asked" > > > -- > 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
Re: [PHP] explode didn't work well
echo ($pieces[2]); instead of echo ($pieces [2]); Keith Vance Vance Consulting LLC www.vanceconsulting.net (206) 355-2399 Try U.M.A. at http://uma.sourceforge.net/ On Thu, 31 Oct 2002, ppf wrote: > > Hi all: > I had tried to split the string into an array of > string using explode but the result isn't displaying > anything > I tried the example from document its its not showing > anything, pls point out where i went wrong > ** > $pizaa="piece1 piece2 piece3 piece4 piece5 piece6"; > $pieces = explode(' ', $pizza); > echo $pizaa; > echo ($pieces [2]); > > Thanks in advance > Prad > > __ > Do you Yahoo!? > HotJobs - Search new jobs daily now > http://hotjobs.yahoo.com/ > > -- > 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
Re: [PHP] explode didn't work well
And that too. Keith Vance Vance Consulting LLC www.vanceconsulting.net (206) 355-2399 Try U.M.A. at http://uma.sourceforge.net/ On Thu, 31 Oct 2002, Rasmus Lerdorf wrote: > Because you can't spell pizza, I bet. > > On Thu, 31 Oct 2002, ppf wrote: > > > > > Hi all: > > I had tried to split the string into an array of > > string using explode but the result isn't displaying > > anything > > I tried the example from document its its not showing > > anything, pls point out where i went wrong > > ** > > $pizaa="piece1 piece2 piece3 piece4 piece5 piece6"; > > $pieces = explode(' ', $pizza); > > echo $pizaa; > > echo ($pieces [2]); > > > > Thanks in advance > > Prad > > > > __ > > Do you Yahoo!? > > HotJobs - Search new jobs daily now > > http://hotjobs.yahoo.com/ > > > > -- > > 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 > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] create a directory NOT owned by the webserver user
How do I create a directory which is owned by a user other than the user which is running the webserver? The "other" user will change all the time. So I need to be able to set the ownership of a directory, on-the-fly. I have searched the Internet and I have run across things like creating c wrappers and perl scripts using suidperl. I really really want to stay in the PHP world for this, so does anyone have any suggestions of what I can do to make this happen. I don't have a problem with using other languages to accomplish this, I would just prefer to stick with PHP on this one. I am running the latest everything, PHP and Apache on Linux of course. Keith -- 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 administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] Advanced PHP
What came first the chicken or the egg? Keith On Fri, 9 Mar 2001, Kath wrote: > Yeah. I even see some PHP book authors, like Julie Meloni here on this > list. > > There is never a question, no matter how retarded, that this list or #php on > irc.openprojects.net has never been able to answer. > > - Kath > > > - Original Message - > From: "Krznaric Michael" <[EMAIL PROTECTED]> > To: "'Rick St Jean'" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> > Sent: Friday, March 09, 2001 5:11 PM > Subject: RE: [PHP] Advanced PHP > > > > If I'm not mistaken, the big boys keep an eye out over here. > > > > Mike > > > > > > -Original Message- > > From: Rick St Jean [mailto:[EMAIL PROTECTED]] > > Sent: Friday, March 09, 2001 4:54 PM > > To: [EMAIL PROTECTED] > > Subject: [PHP] Advanced PHP > > > > > > Does anyone know of any other lists that are a little more advanced, > > And has a little less traffic? I am not the end all be all by any means > of > > programming or PHP. I just want to know where the big boys hang out > > and learn some secrets that require some understanding. > > > > Rick > > ## > > # Rick St Jean, > > # [EMAIL PROTECTED] > > # President of Design Shark, > > # http://www.designshark.com/ > > # Quick Contact: http://www.designshark.com/messaging.ihtml > > # Tel: 905-684-2952 > > ## > > > > > > -- > > 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 administrators, e-mail: [EMAIL PROTECTED] > > > > -- > > 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 administrators, e-mail: [EMAIL PROTECTED] > > > > > -- > 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 administrators, e-mail: [EMAIL PROTECTED] > > -- 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 administrators, e-mail: [EMAIL PROTECTED]
RE: [PHP] Advanced PHP
Where did the chicken come from, God? Keith On Fri, 9 Mar 2001, Jerry Lake wrote: > The chicken did. > > as the Chicken is an actual chicken > and the egg is a potential chicken. > Actuality precedes potentiality > > Jerry Lake- [EMAIL PROTECTED] > Web Designer > Europa Communications - http://www.europa.com > Pacifier Online - http://www.pacifier.com > > > -----Original Message- > From: Keith Vance [mailto:[EMAIL PROTECTED]] > Sent: Friday, March 09, 2001 3:14 PM > To: Kath > Cc: Krznaric Michael; 'Rick St Jean'; [EMAIL PROTECTED] > Subject: Re: [PHP] Advanced PHP > > > What came first the chicken or the egg? > > Keith > > On Fri, 9 Mar 2001, Kath wrote: > > > Yeah. I even see some PHP book authors, like Julie Meloni here on this > > list. > > > > There is never a question, no matter how retarded, that this list or #php > on > > irc.openprojects.net has never been able to answer. > > > > - Kath > > > > > > - Original Message - > > From: "Krznaric Michael" <[EMAIL PROTECTED]> > > To: "'Rick St Jean'" <[EMAIL PROTECTED]>; > <[EMAIL PROTECTED]> > > Sent: Friday, March 09, 2001 5:11 PM > > Subject: RE: [PHP] Advanced PHP > > > > > > > If I'm not mistaken, the big boys keep an eye out over here. > > > > > > Mike > > > > > > > > > -Original Message- > > > From: Rick St Jean [mailto:[EMAIL PROTECTED]] > > > Sent: Friday, March 09, 2001 4:54 PM > > > To: [EMAIL PROTECTED] > > > Subject: [PHP] Advanced PHP > > > > > > > > > Does anyone know of any other lists that are a little more advanced, > > > And has a little less traffic? I am not the end all be all by any means > > of > > > programming or PHP. I just want to know where the big boys hang out > > > and learn some secrets that require some understanding. > > > > > > Rick > > > ## > > > # Rick St Jean, > > > # [EMAIL PROTECTED] > > > # President of Design Shark, > > > # http://www.designshark.com/ > > > # Quick Contact: http://www.designshark.com/messaging.ihtml > > > # Tel: 905-684-2952 > > > ## > > > > > > > > > -- > > > 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 administrators, e-mail: [EMAIL PROTECTED] > > > > > > -- > > > 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 administrators, e-mail: [EMAIL PROTECTED] > > > > > > > > > -- > > 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 administrators, e-mail: [EMAIL PROTECTED] > > > > > > > -- > 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 administrators, e-mail: [EMAIL PROTECTED] > > > -- 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 administrators, e-mail: [EMAIL PROTECTED]
RE: [PHP] Advanced PHP
You don't think all living creatures could evolved on this planet, simply because the Earth has water and oxygen and sunlight to support life? I beleive in God, but let's be realistic here. Do you really think God just waved his hand and there appeared a chicken? Open your mind to other possibilities. Keith On Fri, 9 Mar 2001, Rick St Jean wrote: > Of course... where did you think they came from... monkeys? > > > > At 04:01 PM 3/9/01 -0800, Keith Vance wrote: > >Where did the chicken come from, God? > > > >Keith > > > >On Fri, 9 Mar 2001, Jerry Lake wrote: > > > > > The chicken did. > > > > > > as the Chicken is an actual chicken > > > and the egg is a potential chicken. > > > Actuality precedes potentiality > > > > > > Jerry Lake- [EMAIL PROTECTED] > > > Web Designer > > > Europa Communications - http://www.europa.com > > > Pacifier Online - http://www.pacifier.com > > > > > > > > > -Original Message- > > > From: Keith Vance [mailto:[EMAIL PROTECTED]] > > > Sent: Friday, March 09, 2001 3:14 PM > > > To: Kath > > > Cc: Krznaric Michael; 'Rick St Jean'; [EMAIL PROTECTED] > > > Subject: Re: [PHP] Advanced PHP > > > > > > > > > What came first the chicken or the egg? > > > > > > Keith > > > > > > On Fri, 9 Mar 2001, Kath wrote: > > > > > > > Yeah. I even see some PHP book authors, like Julie Meloni here on this > > > > list. > > > > > > > > There is never a question, no matter how retarded, that this list or #php > > > on > > > > irc.openprojects.net has never been able to answer. > > > > > > > > - Kath > > > > > > > > > > > > - Original Message - > > > > From: "Krznaric Michael" <[EMAIL PROTECTED]> > > > > To: "'Rick St Jean'" <[EMAIL PROTECTED]>; > > > <[EMAIL PROTECTED]> > > > > Sent: Friday, March 09, 2001 5:11 PM > > > > Subject: RE: [PHP] Advanced PHP > > > > > > > > > > > > > If I'm not mistaken, the big boys keep an eye out over here. > > > > > > > > > > Mike > > > > > > > > > > > > > > > -Original Message- > > > > > From: Rick St Jean [mailto:[EMAIL PROTECTED]] > > > > > Sent: Friday, March 09, 2001 4:54 PM > > > > > To: [EMAIL PROTECTED] > > > > > Subject: [PHP] Advanced PHP > > > > > > > > > > > > > > > Does anyone know of any other lists that are a little more advanced, > > > > > And has a little less traffic? I am not the end all be all by any > > means > > > > of > > > > > programming or PHP. I just want to know where the big boys hang out > > > > > and learn some secrets that require some understanding. > > > > > > > > > > Rick > > > > > ## > > > > > # Rick St Jean, > > > > > # [EMAIL PROTECTED] > > > > > # President of Design Shark, > > > > > # http://www.designshark.com/ > > > > > # Quick Contact: http://www.designshark.com/messaging.ihtml > > > > > # Tel: 905-684-2952 > > > > > ## > > > > > > > > > > > > > > > -- > > > > > 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 administrators, e-mail: > > [EMAIL PROTECTED] > > > > > > > > > > -- > > > > > 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 administrators, e-mail: > > [EMAIL PROTECTED] > > > > > > > > > > > > > > > > > -- > > > > 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 administrators, e-mail: [EMAIL PROTECTED] > > > > > > > > > > > > > > > > > -- > > > 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 administrators, e-mail: [EMAIL PROTECTED] > > > > > > > > > > > > > > >-- > >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 administrators, e-mail: [EMAIL PROTECTED] > > ## > # Rick St Jean, > # [EMAIL PROTECTED] > # President of Design Shark, > # http://www.designshark.com/ > # Quick Contact: http://www.designshark.com/messaging.ihtml > # Tel: 905-684-2952 > ## > > > -- > 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 administrators, e-mail: [EMAIL PROTECTED] > > -- 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 administrators, e-mail: [EMAIL PROTECTED]
RE: [PHP] Advanced PHP
Just for the record, the theory evolution doesn't say that "every" living creature evolved from monkeys, just as silly humanoids. I would like to apologize to everyone on the list for creating the discussion, it's a wee bit off topic. Keith On Fri, 9 Mar 2001, Jeff Oien wrote: > LOL. > > The evolutionists will tell you they came from worms. So > according to them the worm came first and it "evolved" into > something else. Tough to know where the egg came into > the picture according to that theory. > Jeff Oien > > > Of course... where did you think they came from... monkeys? > > > > > > > > At 04:01 PM 3/9/01 -0800, Keith Vance wrote: > > >Where did the chicken come from, God? > > > > > >Keith > > > > > >On Fri, 9 Mar 2001, Jerry Lake wrote: > > > > > > > The chicken did. > > > > > > > > as the Chicken is an actual chicken > > > > and the egg is a potential chicken. > > > > Actuality precedes potentiality > > > > > > > > Jerry Lake - [EMAIL PROTECTED] > > > > Web Designer > > > > Europa Communications - http://www.europa.com > > > > Pacifier Online - http://www.pacifier.com > > > > > > > > > > > > -Original Message- > > > > From: Keith Vance [mailto:[EMAIL PROTECTED]] > > > > Sent: Friday, March 09, 2001 3:14 PM > > > > To: Kath > > > > Cc: Krznaric Michael; 'Rick St Jean'; [EMAIL PROTECTED] > > > > Subject: Re: [PHP] Advanced PHP > > > > > > > > > > > > What came first the chicken or the egg? > > > > > > > > Keith > > > > > > > > On Fri, 9 Mar 2001, Kath wrote: > > > > > > > > > Yeah. I even see some PHP book authors, like Julie Meloni here on this > > > > > list. > > > > > > > > > > There is never a question, no matter how retarded, that this list or #php > > > > on > > > > > irc.openprojects.net has never been able to answer. > > > > > > > > > > - Kath > > > > > > > > > > > > > > > - Original Message - > > > > > From: "Krznaric Michael" <[EMAIL PROTECTED]> > > > > > To: "'Rick St Jean'" <[EMAIL PROTECTED]>; > > > > <[EMAIL PROTECTED]> > > > > > Sent: Friday, March 09, 2001 5:11 PM > > > > > Subject: RE: [PHP] Advanced PHP > > > > > > > > > > > > > > > > If I'm not mistaken, the big boys keep an eye out over here. > > > > > > > > > > > > Mike > > > > > > > > > > > > > > > > > > -Original Message- > > > > > > From: Rick St Jean [mailto:[EMAIL PROTECTED]] > > > > > > Sent: Friday, March 09, 2001 4:54 PM > > > > > > To: [EMAIL PROTECTED] > > > > > > Subject: [PHP] Advanced PHP > > > > > > > > > > > > > > > > > > Does anyone know of any other lists that are a little more advanced, > > > > > > And has a little less traffic? I am not the end all be all by any > > > means > > > > > of > > > > > > programming or PHP. I just want to know where the big boys hang out > > > > > > and learn some secrets that require some understanding. > > > > > > > > > > > > Rick > > > > > > ## > > > > > > # Rick St Jean, > > > > > > # [EMAIL PROTECTED] > > > > > > # President of Design Shark, > > > > > > # http://www.designshark.com/ > > > > > > # Quick Contact: http://www.designshark.com/messaging.ihtml > > > > > > # Tel: 905-684-2952 > > > > > > ## > > > > > > > > > > > > > > > > > > -- > > > > > > 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 administrators, e-mail: > > > [EM
Re: [PHP] exist?
You must not have searched to hard on the site, http://www.php.net/file_exists Keith On Wed, 14 Mar 2001, Kenneth R Zink II wrote: > How would I go about checking to see if a file exist from php? > > I didn't find anything on php.net when I did a search for exist. > > basically, I'm trying to accomplish this. > > if $file exist { > do something; > }else{ > echo "$file doesn't exist"; > } > > thanks in advance. > > Kenneth R Zink II [EMAIL PROTECTED]ICQ# 5095094 > '87 2.8L TBI GMC S-15 Ext. Cab (Hurricane) ...524 in the works !!! >http://www.s-series.org/htm/windstorm/project-windstorm.htm > '85 3.4L Carbed Chevy S-10 Blazer (FireStorm) ...Soon to be 3.4L SFI DIS !!! >http://www.s-series.org/htm/firestorm/firestorm.htm > Racing by the Grace of God!! > -- 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 administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] How upload files to protected directories?
You should be able to do something using PHP, try looking here, http://www.php.net/manual/cs/features.file-upload.php I think there is just a communication problem between you and your hosting company. They don't allow ftp uploads, but as long as you are doing it through http, it should work fine. There is also some good stuff about this on http://www.phpbuilder.com. I do it all the time and my hosting company couldn't care less, but your's may be different and you may have to switch or should switch to someone else if you can't get the http upload to work. Keith On Wed, 14 Mar 2001, Mig wrote: > Hello > > I post my question here because I can't understand what host support is trying to >say to me: > > I use paid host with PHP and MySql facilities, all working fine for me (both PHP and >MySql). > I offer to customers ability for storing updating and retrieving MySql records using > HTML commands. My problem begins when I want customers also be >allowed to upload images (.GIF and .JPG files) linked to their records. > If possible, I would prefer store these images into BLOB MySql fields and then show >image stream using PHP GD functions, but this appears difficult because host PHP >doesn't have GD library. > > Next solution is to store GIF/JPG files into some directory and then use html >commands to show pictures. But POST commands are denied on this host (as well as ftp >commands) because they don't want somebody uploading trojan programs there. > > Support said to me: "the only way around this is to write a cgi script which >uploads/writes to a file - there are commercial products that do this safely or maybe >you can find a free script on one of the many cgi script sites - most commercial >classified ad scripts have a function such as this." > > Does somebody know what this means?. If ftp commands and all PHP filesystem commands >are disallowed, how could CGI script solve it? And also, what are 'classified ad >scripts'? > Sorry I live in Brazil and don't catch all english expressions: are these scripts to >post classified ads? > > Any other solution will be welcome. > > Thanks in advance > > Mig > > > > -- > 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 administrators, e-mail: [EMAIL PROTECTED] > > -- 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 administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] How upload files to protected directories?
Can you set, in your script, where the files are uploaded so that the files can be uploaded into a directory that allows you to do a copy. Keith On Wed, 14 Mar 2001, Mig wrote: > Keith Vance wrote: > > > You should be able to do something using PHP, try looking here, > > http://www.php.net/manual/cs/features.file-upload.php > > I think there is just a communication problem between you and your hosting > > company. They don't allow ftp uploads, but as long as you are doing it > > through http, it should work fine. There is also some good stuff about > > this on http://www.phpbuilder.com. I do it all the time and my hosting > > company couldn't care less, but your's may be different and you may have > > to switch or should switch to someone else if you can't get the http > > upload to work. > > > > Keith > > Hello Keith, thanks very much. Sorry because I forgot explain following: picture >files really are uploaded to host server, because I check temp file and they are ok >(I check $userfile_temp variable). My problem is: I can't move, copy, rename or >anything else other than 'open and read' this file. Whenever I try exec copy commands >I receive 'copy command denied for /web/.'. > You know temp files will be deleted when script terminates, so I die with my >pictures in hand. > > Thanks again > > Mig > > -- 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 administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] POST Method.
You could can "forward" posted data the same way if you wanted to. I don't know what you mean by forwarding. But if you had one script that was a form and the action was set to a script called action.php and then you wanted to pass that data to yet another script, you could pass the values in the url or a session variable or hidden fields in another form. Keith On Thu, 15 Mar 2001, Nick Davies wrote: > > How do i forward POST data from a php script. Obviously GET is simple > (just script.php?$QUERY_STRING) but how does it work with post? > > > Thanks. > > Nick. > > > -- > 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 administrators, e-mail: [EMAIL PROTECTED] > > -- 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 administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] php editors
I think this discussion just took place, try searching the mailing list archives for "good php editor" Keith On Thu, 15 Mar 2001, McShen wrote: > I am looking for good php editors. Currently, i am using PHP coder. It > highlights syntax and checks my syntax. It's also executes my PHP codes. Are > there any editors like that? I just want a editor that highlights my code > and check my syntax. > > regards > > > > -- > 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 administrators, e-mail: [EMAIL PROTECTED] > > -- 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 administrators, e-mail: [EMAIL PROTECTED]
RE: [PHP] Help! Can't redeclare already declared function in
how about if (!$included[filename]) On Thu, 15 Mar 2001, ..s.c.o.t.t.. [gts] wrote: > try using include_once() and require_once() > in place of include() and require() > > also, make sure you havent defined any functions > that match PHP internal funcs. > > > > -Original Message- > > From: Johnson, Kirk [mailto:[EMAIL PROTECTED]] > > Sent: Thursday, March 15, 2001 3:29 PM > > To: php > > Subject: RE: [PHP] Help! Can't redeclare already declared function in > > > > > > Are the functions declared in an include()'d file? Is this file being > > include()'d more than once? That's how I usually provoke this error :) > > > > Kirk > > > > > -Original Message- > > > From: Jack Sasportas [mailto:[EMAIL PROTECTED]] > > > Sent: Thursday, March 15, 2001 1:25 PM > > > To: php > > > Subject: [PHP] Help! Can't redeclare already declared function in > > > > > > > > > I just finished coding everything on a project it was working (all > > > nighter), and now something I just changed is causing this error > > > > > > "Can't redeclare already declared function in " > > > > > > -- > > 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 administrators, e-mail: [EMAIL PROTECTED] > > > > -- > 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 administrators, e-mail: [EMAIL PROTECTED] > > -- 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 administrators, e-mail: [EMAIL PROTECTED]
RE: [PHP] Re: How do you keep your scripts secure?
The Zend encoder seems cool, but for $2400? What happened to the Zend Compiler, is that what the Zend Encoder is? The Zend Encoder would definetly be worth it if you were selling your code, but I haven't tried it out. Keith On Thu, 15 Mar 2001, ..s.c.o.t.t.. [gts] wrote: > since PHP is executed before any otuput is shown to the browser, > all you have to do is keep a server between your code and > the other person. > > unless i am horribly mistaken, you can turn off options to > allow people to view PHP source code via their browser. > > > > > -Original Message- > > From: Richard Lynch [mailto:[EMAIL PROTECTED]] > > Sent: Thursday, March 15, 2001 5:02 PM > > To: Murph; [EMAIL PROTECTED] > > Subject: [PHP] Re: How do you keep your scripts secure? > > > > > > > So, I've written all this nifty code and I'd like to do what I can from > > > having it pilfered. > > > > > > What do you do to keep your stuff safe? > > > > You could buy the Zend Encoder: > > > > http://www.zend.com/store/products/zend-encoder.php > > > > Either stand-alone or as part of the Developer Suite package deal. > > > > You run your scripts through that, and replace your source files with > > Encoded files. They're essentially binary dumps of compiled PHP code. > > About as comprehensible to a human as an .exe or .so file. > > > > You can mix-and-match your encoded/source files, so configuration files can > > be left as editable by the end-user. > > > > There's a free trial that dumps out the Zend logo (this tromps on headers > > and FRAME pages) and it also intentionally makes the encoded files about > > half as fast as the real product, but you can still get a pretty good idea > > of what the product does. > > > > There are also discounts for non-profits, educational, etc. > > > > You'll still want a clear licensing agreement with any clients/customers, of > > course. > > > > -- > > Visit the Zend Store at http://www.zend.com/store/ > > Wanna help me out? Like Music? Buy a CD: http://l-i-e.com/artists.htm > > Volunteer a little time: http://chatmusic.com/volunteer.htm > > > > > > > > -- > > 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 administrators, e-mail: [EMAIL PROTECTED] > > > > -- > 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 administrators, e-mail: [EMAIL PROTECTED] > > -- 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 administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] I can't install PHP4
make a file called, test.php with these lines in it: stick it into your web server directory and point a browser at it, if it doesn't work send error messages. Keith On Thu, 15 Mar 2001, Norberto Rojas wrote: > Hi: > >I've trying to install PHP4 without good results: > The steps i follow were: > > 1: gzip -d < php-4.0.4pl1.tar.gz | tar xvf - > 2: cd php-4.0.4pl1 > 3: ./configure --with-nsapi=/usr/netscape/server4/ --enable-tracks-vars > --enable-libgcc (because i want to uset with iplanet web server) > 4: make > 5: make install > 6: add command lines into the files: obj.conf & mime.type of the iPlanet > 7: what else thats all > > I hoped to find an executable file (maybe "php") or something like that. > > I'll appreciate if somebody help me, because i need to resolve this > problems just today. > I'm really desperated, so please help me !! > > > -- > 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 administrators, e-mail: [EMAIL PROTECTED] > > -- 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 administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] How do you keep your scripts secure?
"... hate to think that someone could come along and just use it all for free" So you don't really care to contribute to the Open Source community? We would love to have your passwords. I would highly recommend setting an include path outside the web server document root and store you files with passwords in there. If you don't have access to the php.ini file, you can set the include_path in your scripts. K E I T H V A N C E Software Engineer n-Link Corporation On Thu, 15 Mar 2001, Murph wrote: > > if someone knew the name of your include file, and it was under the > > webserver root (for instance, the same folder) then yes, its like any > > other file..you can get around this by changing your php.ini > > include_path variables and putting the files there, outside the > > webserver directory > > I'd agree except that I don't leave any code lying around with anything > other than a *.php extension so, like you said, that'd be parsed by the > server before being sent to the browser, right? > > I would take this to mean that my code *should* be safe...? > > I ask because I'm such a jealous S.O.B. I've done such hard work that I'd > hate to think that someone could come along and just use it all for free. > Plus, there's that nastiness of having passwords in there and all that. > > Murph > > > -- > 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 administrators, e-mail: [EMAIL PROTECTED] > > -- 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 administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] FAQ
How many times are people going to complain about no-brainer questions being posted to the list. The fact of the matter is people are going to post things on the list without reading the manual or the FAQ. It goes with the territory. It annoys me too, but there is no good solution for the problem. There is the fact that a lot of people are new and don't really know where to go to find answers. Even if they go to the web site, they still may not know that they need to be looking for information on naming variables with variables or that fopen opens a file or whatever. K E I T H V A N C E Software Engineer n-Link Corporation On Fri, 16 Mar 2001, David Robley wrote: > On Fri, 16 Mar 2001 03:34, Rick St Jean wrote: > > It is there a list of most frequently asked questions? > > It seems that people ask the same questions, again and again, > > they do not READ THE MANUAL. Yes I have asked 2 stupid > > questions, but I really did search and I am reading my manuals, > > the PHP and the book that I bought. > > Seems to me that a significant number of questions arise from people who > don't have any idea of the concepts behind 'programming', if I may > overload that term. 'How do I make a loop work' 'How can I print the > numbers 1 to 5'. > > > Also I would like to know if there would be a demand for an > > experienced mailing list? I am just frustrated by the same 3 > > questions that pop up about once a day. The rest of the posts > > are great. > > As has been noted before, there is little purpose in splitting the list > like that. If the 'newbies' all go to the 'inexperienced' list, from > whence do they gain wisdom? And then the 'newbies' learnn about the > 'experienced' list and go there and we're back to square one. :-) > > Check the archives for _extended_ discussion on that topic. > > > -- > David Robley| WEBMASTER & Mail List Admin > RESEARCH CENTRE FOR INJURY STUDIES | http://www.nisu.flinders.edu.au/ > AusEinet| http://auseinet.flinders.edu.au/ > Flinders University, ADELAIDE, SOUTH AUSTRALIA > > -- > 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 administrators, e-mail: [EMAIL PROTECTED] > > -- 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 administrators, e-mail: [EMAIL PROTECTED]
RE: [PHP] FAQ
I agree with everything you have said. I just don't think there is a good way to get people from asking these types of questions, without someone sitting there reading every message and filtering them according to topic. We are stuck with a high-volume list where lots of newbies come to ask us questions. If PHP wasn't so damn good and so popular we wouldn't be having this conversation. K E I T H V A N C E Software Engineer n-Link Corporation On Thu, 15 Mar 2001, Jason Lotito wrote: > > How many times are people going to complain about no-brainer questions > > being posted to the list. The fact of the matter is people are going to > > post things on the list without reading the manual or the FAQ. It goes > > with the territory. It annoys me too, but there is no good solution for > > the problem. There is the fact that a lot of people are new and don't > > really know where to go to find answers. Even if they go to the web site, > > they still may not know that they need to be looking for information on > > naming variables with variables or that fopen opens a file or whatever. > > > > K E I T H V A N C E > > I think the argument has less to do with people asking questions about PHP > and how it works, and more about people asking basica programming questions > without knowing it. Fundamental programming concepts, like the scope of a > variable, passing by reference or by value, or even looping are things > newbie's simply do not understand. Why? Because they don't know they need > to learn the concepts and theories of programming before learning to > program. It sounds odd, but that is the way it is. > > People asking questions about how a loop works are not usually asking how a > PHP loop works. The same for arrays. They are really saying: "This is the > first real programming language I am out to learn, and I don't understand > the concept behind a For/Next Loop." This isn't a bad thing, heck, we were > all newbies at one point, and in a sense, we are all newbies at something. > > I think the argument is that their are many people who don't want to learn > how and why a For/Next Loop works, but instead simply want someone to fix > the problem for them. That isn't programming. Programming (and yes, I > know, PHP is technically a scripting language, but lets not jump that fence > as well) is about trial and error, logic, and creativity, but most > importantly, problem solving. Most of the newbies get into PHP expecting a > tutorial on every topic. If they can't find a tutorial on how to print out > 5 numbers, they expect someone to show them how to do it. They don't try > and solve the problem themselves, and that is a problem. I don't mind > assisting where I can, however, I don't like rewriting a script for someone > when they don't even take the time to try and learn the fundamentals. Most > newbies I have met fall into two categories. The majority start out wanting > to learn PHP because someone said it was easy to learn, which it is, from a > programmers point of view. However, when in the second week of learning > their first programming language they can't program that PHP Database > Content Management System with Instant Yahoo News Retrival complete with > User Database, Forums, and Real Time Foo, they start getting upset and say > that PHP sucks. Those same people may also complain because they can't find > a tutorial on how to create a Forum Database, and all they can find are > tutorials on the basics of Database Design. > > I think this is the real problem. Try to run before they have learned to > crawl and walk. > > Jason Lotito > www.NewbieNetwork.net > Where those who can, teach; > and those who can, learn. > > > > -- > 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 administrators, e-mail: [EMAIL PROTECTED] > > -- 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 administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] Header Problem
What happens when it doesn't work, any error messages? Try: header ("Location: http://www." . $URL . "/members/index.php"); or $loc = "Location: http://www." . $URL . "/members/index.php"; header ($loc); The first suggestion should work. K E I T H V A N C E Software Engineer n-Link Corporation On Wed, 21 Mar 2001, almir wrote: > are you using cookies together with header , i had problems with that > -almir > > <[EMAIL PROTECTED]> schrieb im Newsbeitrag > [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > > Hi, > > > > I`m having whats probably a very basic problem but just can`t get my head > > around it this late in the day, anyone have any idea why this won`t work? > > > > $URL="domain.com"; > > > > header ("Location: Http://www.$URL/members/index.php"); > > > > $URL changes so I can`t write it directly into the header line, anyone? > > > > -- > > 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 administrators, e-mail: [EMAIL PROTECTED] > > > > > > -- > 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 administrators, e-mail: [EMAIL PROTECTED] > > -- 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 administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] trim string
You might be able to use substr. http://www.php.net/substr K E I T H V A N C E Software Engineer n-Link Corporation On Wed, 21 Mar 2001, Wen Ni Leong wrote: > I need help in this basic string function. > I query from the database by using while loop and the result in in > array. I separated them by using "," . > > I want at the end of the string to be trim off. Unfortunately I tried > all the string function such as chop,trim and substr but they seem like > can't manage to trim the end of the string. Please help me. > > my coding are: > > $db = mysql_select_db("tkenet_db"); > $query = "SELECT app_name,status FROM approval_list where doc_no='6'"; > $result = mysql_query($query,$db); > while($data = mysql_fetch_row($result)){ > > $cc .= $h->get_email($data[0]).","; > >if ($data[1] != 'Y') > { $all_yes = 1;} > } > trim($cc); > -- 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 administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] Pre-Written Script ?
That's sounds like a good task for you to take on, you will learn a lot about writing PHP code. I don't really know what you are talking about, but you can look at phpMyAdmin or something. K E I T H V A N C E Software Engineer n-Link Corporation On Wed, 21 Mar 2001, Jack Sasportas wrote: > Has anyone found a good prewritten (gpl) script that helps you to create > the php code to add/edit/modify based on selecting a table that you want > to put data into ? > > I want to use this both to get some data in the computer as well as to > learn other coding techniques. > > Thanks ! > > ___ > Jack Sasportas > > > > -- > 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 administrators, e-mail: [EMAIL PROTECTED] > > -- 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 administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] Directory rights: Create and delete is possible but notccggrp, why?
I have run into a problem similar to this. Basically what I have found is that there is no way to do this sort of thing using php through apache. I fixed my problem by writting a perl script that creates the directories and sets the permissions/groups correctly. I have php write out a text file and dump it into a directory, the perl script runs from cron and checks the directory every few minutes and creates the appropriate directories based on the data in the files. It a hackish way of doing it, but it actually works quite well. If you didn't want to use cron, you could just have a process running that monitors the directory constantly. There are a number of ways to do this, including using cgi php or C or whatever. There are very good reasons why you can't do what you want to do, you just have to get creative. K E I T H V A N C E Software Engineer n-Link Corporation On Thu, 22 Mar 2001, Dominique Paquin wrote: > I posted a message last week on this subject, and I have searched for an > answer meanwhile. > > So i decided to re ask my question a little bit differently since i did not > find the answer to my problem: > > I use a web based application I am making and through this application I > create directories. I can create the directories with no problem using PHP > with full rights (777). The directories, then, needs to have their group > changed to something else and here is my problem, > > I tried a chgrp (the php function) from php to change it as well as > exec('chgrp'...) or exec('chown' ...) and then I tried a system('chgrp'...) > and system('chown'...). All this to no success. Someone told me, here on the > list, that apache was runing as nobody:nobody, so it had no rights to change > rights. We changed the user:group of apache and called it apache:apache. > then we re-tried all our experiences, to no avail. I am sure I am having all > the rights necessary because I can delete the directories I create with no > trouble. > > Note: If I connect in console mode with the user apache, i can chown the > directory as I wish. > > Any suggestion on how to change rights on directories would be appreciated. > (With PHP or any other solution) > > Thanks in advance > > Dominique Paquin > Galea secured networks > > > > > -- > 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 administrators, e-mail: [EMAIL PROTECTED] > > -- 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 administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] Help!
Windows, ha ha ha. K E I T H V A N C E Software Engineer n-Link Corporation On Thu, 22 Mar 2001, Fred wrote: > i found the problem , could you believe one of my scripts caused php to > crash,,, how frustrating, i sent al evening fiddling with the bloody > software > "Yasuo Ohgaki" <[EMAIL PROTECTED]> wrote in message > 99bkir$es0$[EMAIL PROTECTED]">news:99bkir$es0$[EMAIL PROTECTED]... > > I think this should go to BugDB. > > http://bugs.php.net > > > > Try older versions if you in hurry. > > > > Regards, > > -- > > Yasuo Ohgaki > > > > > > ""Fred"" <[EMAIL PROTECTED]> wrote in message > > 99be8l$m4u$[EMAIL PROTECTED]">news:99be8l$m4u$[EMAIL PROTECTED]... > > > I got this error when i try to ran a script of mine: > > > "PHP caused a stack fault in module MSVCRT.DLL at 0177:7800f75d. > > > Registers: > > > EAX=005421f4 CS=0177 EIP=7800f75d EFLGS=00010202 > > > EBX=00542254 SS=017f ESP=00541f94 EBP=005421dc > > > ECX=00542244 DS=017f ESI=019dab14 FS=7f67 > > > EDX=006a ES=017f EDI=0029 GS= > > > Bytes at CS:EIP: > > > 53 56 57 8b 7d 0c 33 f6 8a 1f 47 84 db 89 75 f4 > > > Stack dump: > > > > > > > " > > > > > > this is the details of the "illegal operation" box, for some reason when > i > > > try to run a script using the mysql databases the thing crashes, ive > jsut > > > installed MyODBC and im pretty sure that's what's causing hte problem, > im on > > > a win32, running the latest version of php,mysql,apache and myodbc, > > > > > > please reply asap > > > ~Fred > > > > > > > > > > > > -- > > > 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 administrators, e-mail: [EMAIL PROTECTED] > > > > > > > > > -- > > 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 administrators, e-mail: [EMAIL PROTECTED] > > > > > > -- > 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 administrators, e-mail: [EMAIL PROTECTED] > > -- 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 administrators, e-mail: [EMAIL PROTECTED]