Re: [PHP] Start/Stop Service from program php

2008-07-26 Thread Micah Gersten
Generally, apache runs as www-data.  What was the output of the command?

Thank you,
Micah Gersten
onShore Networks
Internal Developer
http://www.onshore.com


I need write a script execute some command, but try start or stop service
like named, network this don't work

I edit visudo and add the next lines

User_Alias MYGROUP = apache, xyz


[EMAIL PROTECTED] wrote:
> Hi
>
> I try execute unsucesfull the next code from web page
>
>  $cmd1 = shell_exec ("sudo /sbin/service named stop");
> echo "$cmd1";
> ?>
>
> I need write a script execute some command, but try start or stop service
> like named, network this don't work
>
> I edit visudo and add the next lines
>
> User_Alias MYGROUP = apache, xyz
> Cmnd_Alias MYCOMMAND = /sbin/service
> %MYGROUP ALL = MYCOMMAND
> %MYGROUP ALL=(ALL) NOPASSWD: ALL
>
> But don't work.
>
> Suggest? Thanks ...
>
>   

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



[PHP] Start/Stop Service from program php

2008-07-26 Thread opc
Hi

I try execute unsucesfull the next code from web page



I need write a script execute some command, but try start or stop service
like named, network this don't work

I edit visudo and add the next lines

User_Alias MYGROUP = apache, xyz
Cmnd_Alias MYCOMMAND = /sbin/service
%MYGROUP ALL = MYCOMMAND
%MYGROUP ALL=(ALL) NOPASSWD: ALL

But don't work.

Suggest? Thanks ...

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



Re: [PHP] It may be OT. phpmyadmin not opening.

2008-07-26 Thread Micah Gersten
I thought wampp was deprecated.  Try xampp:
http://www.apachefriends.org/en/index.html

Thank you,
Micah Gersten
onShore Networks
Internal Developer
http://www.onshore.com



mukesh yadav wrote:
> hi ,
>   sorry for posting here.I really dont know where to post I asked in the
> mysql IRC they said it doesn't belongs to them.
>
> here is my question. I have installed Wampp and i'm not able to open
> phpmyadmin from networked pc.
> Though i can open the pages. but not phpmyadmin.
>
>
> thank you sorry again.
>
>   

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



Re: [PHP] Regular Expression help need

2008-07-26 Thread Micah Gersten
Are you talking about looking at blogs in a mobile phone browser or
actually downloading the blog into another format?

 
Thank you,
Micah Gersten
onShore Networks
Internal Developer
http://www.onshore.com



Shelley wrote:
> Ok, let me tell you what i want to achieve.
> I want to transfer users' blog onto mobile phone, so I should convert
> characters such as >, <, & (but not &, or >, or <, etc) into
> xml compatible ones, >, < &.
>
> Maybe there is some problem in my expression?
>
> Waiting for your response...
>
> On Sat, Jul 26, 2008 at 3:30 AM, Micah Gersten <[EMAIL PROTECTED]
> > wrote:
>
> Are you trying to make it xml compatible or XHTML compatible?  '&' is
> not valid HTML or XHTML as it has special meaning. If you want it to
> adhere to the standard and display correctly, you must use '&'
>
> Thank you,
> Micah Gersten
> onShore Networks
> Internal Developer
> http://www.onshore.com
>
>
>
> Shelley wrote:
> > Hi Richard,
> >
> > Not exactly actually.
> >
> > What I mean is:
> > Before: hi Richard>, & good morning<
> > After:   hi Richard>, & good
> morning<
> >
> > I hope it's clear now.
> >
> > On Fri, Jul 25, 2008 at 7:53 PM, Richard Heyes
> <[EMAIL PROTECTED] >
> > wrote:
> >
> >
> >>> How can I make a string with & (NOT &, >, < or
> "), <, >
> >>>
> >> xml
> >>
> >>> compatible?
> >>> What is the expression to use?
> >>>
> >> Not entirely sure what you're after (try posting some before
> and after
> >> snippets), but by the sounds of it you don't need a regular
> expression
> >> - strtr() will work for you. Or str_replace().
> >>
> >> --
> >> Richard Heyes
> >> http://www.phpguru.org
> >>
> >>
> >
> >
> >
> >
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
>
>
> -- 
> With best regards,
> Shelley Shyan
> http://phparch.cn

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



[PHP] get current php locale

2008-07-26 Thread Ben Sagal
is there a way to get the current locale being used by php and the encoding
it uses?

Ben

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



Re: [PHP] PHP Threads (Language) extension?

2008-07-26 Thread Eric Butera
On Sat, Jul 26, 2008 at 6:04 PM, Jason Knight <[EMAIL PROTECTED]> wrote:
> I can't find an extension that would allow you to use the PSOIX thread
> functions in PHP.  I know of the pcntl_ functions but fork() just won't do
> it for me, I need access to real threads.
>
> I started writing an extension to supply an API to POSIX threads but then
> decided to ask here first to see if there are any current projects for this.
>
>
> Thanks,
>
> Jason
>

Maybe this will help:

http://pecl.php.net/package/threads

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



[PHP] PHP Threads (Language) extension?

2008-07-26 Thread Jason Knight
I can't find an extension that would allow you to use the PSOIX thread
functions in PHP.  I know of the pcntl_ functions but fork() just won't do
it for me, I need access to real threads.

I started writing an extension to supply an API to POSIX threads but then
decided to ask here first to see if there are any current projects for this.


Thanks,

Jason


Re: [PHP] It may be OT. phpmyadmin not opening.

2008-07-26 Thread Bastien Koert
On Sat, Jul 26, 2008 at 2:01 PM, mukesh yadav <[EMAIL PROTECTED]> wrote:

> hi ,
>  sorry for posting here.I really dont know where to post I asked in the
> mysql IRC they said it doesn't belongs to them.
>
> here is my question. I have installed Wampp and i'm not able to open
> phpmyadmin from networked pc.
> Though i can open the pages. but not phpmyadmin.
>
>
> thank you sorry again.
>

I believe that wampp's apache config only listens to the local machine. You
will need to edit that setting in the http.conf file in the apache folder
and then restart the service

-- 

Bastien

Cat, the other other white meat


[PHP] It may be OT. phpmyadmin not opening.

2008-07-26 Thread mukesh yadav
hi ,
  sorry for posting here.I really dont know where to post I asked in the
mysql IRC they said it doesn't belongs to them.

here is my question. I have installed Wampp and i'm not able to open
phpmyadmin from networked pc.
Though i can open the pages. but not phpmyadmin.


thank you sorry again.


Re: [PHP] Code beautifier

2008-07-26 Thread tedd

At 10:53 PM -0400 7/25/08, Daniel Brown wrote:

On Fri, Jul 25, 2008 at 10:02 PM, tedd <[EMAIL PROTECTED]> wrote:



[snip="1920's_anecdote"]


LOL


 >

 So in the end, these were the things I remember being taught by "English"
 teachers. They taught me well -- but, nothing about writing.  :-)


That's one thing about being a teacher in an official capacity:
your students are likely to learn from you, even if it's not what
you're trying to teach them.

In any case, it sounds like you've met people who prove the rather
offensive adage: "those who can, do; those who can't, teach."


Yes, but this also tells me something about myself. In my younger 
years, my level of offensiveness provoked such non-professional 
conduct from others. Now I get it without having to do anything. :-)


Cheers,

tedd

--
---
http://sperling.com  http://ancientstones.com  http://earthstones.com

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



RE: [PHP] Test

2008-07-26 Thread Jay Blanchard


-Original Message-
From: Daniel Lambert [mailto:[EMAIL PROTECTED] 
Sent: Saturday, July 26, 2008 2:48 AM
To: php-general@lists.php.net
Subject: [PHP] Test

Just testing to see if this is correct address to email to.

It depends on what you are asking

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



[PHP] Test

2008-07-26 Thread Daniel Lambert
Just testing to see if this is correct address to email to.

Re: [PHP] Since APC is no longer supported on Windows, can anyone else make php_apc.dll for the newest 5.2.6 non-thread-safe?

2008-07-26 Thread T Lensselink
steve wrote:
> Since APC is no longer supported on Windows, I can't download it from
> php.net. Can anyone else make php_apc.dll for the newest 5.2.6
> non-thread-safe windows version?
>
> Many thanks in advance...
>
>   
I never heard anything about dropping support for windows.
And on pecl4win there is still a apc dll for the 5_2 branch..

http://pecl4win.php.net/ext.php/php_apc.dll

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