php-general Digest 26 Dec 2004 04:22:27 -0000 Issue 3191

Topics (messages 205164 through 205173):

Re: Exec() denied read on Apache (fedora core 3)
        205164 by: Zia Syed

Re: Mandrake 10.1
        205165 by: GH

help in reversing an array
        205166 by: mail.pmpa
        205167 by: Mike
        205171 by: M. Sokolewicz

PHP Wiki recomendations
        205168 by: Greg Donald
        205169 by: Matthew Fonda
        205170 by: Matthew Weier O'Phinney

getting home directory path
        205172 by: Sebastian

Help with code
        205173 by: karl james

Administrivia:

To subscribe to the digest, e-mail:
        [EMAIL PROTECTED]

To unsubscribe from the digest, e-mail:
        [EMAIL PROTECTED]

To post to the list, e-mail:
        [email protected]


----------------------------------------------------------------------
--- Begin Message ---
I just found out that I was having SELinux enabled, which was causing
the trouble. Once disabled, I can run PHP in safemode and use exec. I
know its not the safest thing to do, but until I learn a bit more
about SELinux, this is the way to go :)

Z.
On Fri, 24 Dec 2004 14:48:20 +0000, Zia Syed <[EMAIL PROTECTED]> wrote:
> Thanks for ur reply. I'm running httpd with php on my linux box. I
> dont know how to enable the exec in php.ini. Tried safe mode but no
> use.  I get the following output from the command
> 
> [EMAIL PROTECTED] html]# php -r 'system("whoami");'
> Error in argument 1, char 2: option not found r
> 
> however, with who.php, it works
> 
> [EMAIL PROTECTED] html]# php who.php
> Content-type: text/html
> X-Powered-By: PHP/4.3.9
> 
> root
> 
> :( I'm still stuck with it.
> 
> Z.
> On Fri, 24 Dec 2004 08:13:37 -0600, Greg Donald <[EMAIL PROTECTED]> wrote:
> > On Fri, 24 Dec 2004 12:09:51 +0000, Zia Syed <[EMAIL PROTECTED]> wrote:
> > > I've been trying to execute some system commands and print back the
> > > output on the webpage. I found the following code to do so, however,
> > > it is not working.
> > > <?php
> > > echo exec('whoami');
> > > ?>
> > >
> > > However, i tried to switch on the Safe_Mode but that wasn't any good 
> > > either.
> > > Any idea how can i get it work?
> >
> > I assume you're hosting with someone and they have dsiabled that
> > function via the php.ini, I dunno..  Anyway, you might get lucky and
> > they are using a different php.ini for the php binary.  Try this from
> > command line:
> >
> > php -r 'system( "whoami" );'
> >
> > --
> > Greg Donald
> > Zend Certified Engineer
> > http://gdconsultants.com/
> > http://destiney.com/
> >
> > --
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, visit: http://www.php.net/unsub.php
> >
> >
>

--- End Message ---
--- Begin Message ---
I want to know before I upgrade to it... i am running 10.0 communty right now


On Sat, 25 Dec 2004 13:48:43 +0530, Zareef Ahmed <[EMAIL PROTECTED]> wrote:
> its so simple run phpinfo() in a simple script, you will get the version of 
> both
> 
> zareef ahmed
> 
> 
> On Sat, 25 Dec 2004 00:27:54 -0500, GH <[EMAIL PROTECTED]> wrote:
> > This may be off topic.. but does anyone know what versions of PHP and
> > MySql Mandrake is shipping with 10.1 Offical?
> >
> > Thanks
> > 
> > --
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, visit: http://www.php.net/unsub.php
> >
> >
>

--- End Message ---
--- Begin Message ---
Hi all and Merry Christmas!!

 

I am having some trouble reversing the order of an array.

 

I have this array:

$array[0]='Socket A';

$array[1]='Single processor';

$array[2]='Motherboards';

$array[3]='Hardware';

 

and I want to do a "simple" reverse of the content like this:

$array[0]='Hardware';

$array[1]='Motherboards';

$array[2]='Single processor';

$array[3]='Socket A';

 

Which function amongst the available should I use?

 

Thank you.

 

Pedro Almeida.

 

 


--- End Message ---
--- Begin Message ---
> I am having some trouble reversing the order of an array.
> 
[snip]
> 
> Which function amongst the available should I use?
> 

rsort() is what you're looking for. 

http://us2.php.net/manual/en/function.rsort.php

-M

--- End Message ---
--- Begin Message --- Mike wrote:
I am having some trouble reversing the order of an array.


[snip]

Which function amongst the available should I use?



rsort() is what you're looking for.

http://us2.php.net/manual/en/function.rsort.php

-M
what's wrong with array_reverse()?
http://www.php.net/manual/en/function.array-reverse.php

--- End Message ---
--- Begin Message ---
Could anyone recommend a good PHP-based Wiki script, for PHP 4.x? 
I've been testing a bunch of them and almost all seem to be crap so
far.

Thanks..


-- 
Greg Donald
Zend Certified Engineer
http://gdconsultants.com/
http://destiney.com/

--- End Message ---
--- Begin Message ---
Yawiki is nice
http://yawiki.com/

On Sat, 2004-12-25 at 09:13, Greg Donald wrote:
> Could anyone recommend a good PHP-based Wiki script, for PHP 4.x? 
> I've been testing a bunch of them and almost all seem to be crap so
> far.
> 
> Thanks..
> 
> 
> -- 
> Greg Donald
> Zend Certified Engineer
> http://gdconsultants.com/
> http://destiney.com/
-- 
Regards,
Matthew Fonda

--- End Message ---
--- Begin Message ---
* Greg Donald <[EMAIL PROTECTED]>:
> Could anyone recommend a good PHP-based Wiki script, for PHP 4.x? 
> I've been testing a bunch of them and almost all seem to be crap so
> far.

Crap in what way(s)? Could you elaborate on those you have tested and
what deficiencies you found -- in part so that any developers of the
wikis in question who might be monitoring this list might fix them, in
part so those on the list wishing to respond will have a better idea of
what you're looking for, and in part so those on the list don't get
flamed down by you when they recommend something you've already
discounted...

-- 
Matthew Weier O'Phinney           | mailto:[EMAIL PROTECTED]
Webmaster and IT Specialist       | http://www.garden.org
National Gardening Association    | http://www.kidsgardening.com
802-863-5251 x156                 | http://nationalgardenmonth.org

--- End Message ---
--- Begin Message ---
how do i get the path to my home directory..

eg, /usr/home/

$_SERVER['DOCUMENT_ROOT'] returns /usr/home/public_html
i remember doing this once with basename() though i can't remember how i did
it.

thanks.

--- End Message ---
--- Begin Message ---
Team,

Can you tell me why this code is not working?
I get a query is empty at the moment.

http://www.theufl.com/php/wrox_php/movie_details.phps

Karl James
(TheSaint)
[EMAIL PROTECTED]
http://theufl.com/
 

--- End Message ---

Reply via email to