Loading ...
Sorry, an error occurred while loading the content.

RE: [php-objects] PHP Script + Linux User

Expand Messages
  • Abdul Shahid Khattak
    Hi Mehmet, Actually it does not create linux user and if i echo the what output returned by shell commad it shows nothing. should be it is becuase that php
    Message 1 of 10 , May 3 11:12 PM
    • 0 Attachment
      Hi Mehmet,
      Actually it does not create linux user and if i echo the what output returned by shell commad it shows nothing.

      should be it is becuase that php script has no permission to create the user ??

      if it is then what should i do?

      Thank you very much,
      Shahid
      Mehmet Buyukozer <mbuyukozer3@...> wrote: Hi Shahid,

      It is because the code does just what you do in shell. exec() runs the given
      argument ($cmd) and returns the last line from shell. Since as you said,
      there was nothing returned in shell when you type that command and another
      reason that you're not showing output of exec() in php (echo exec($cmd);)
      it's normal you didn't see anything on browser. Indeed, it was just a
      snipped code to give you an idea. You should add something to it to make it
      suit for your needs.

      Hope this helps.

      Mehmet
      http://www.sonofnights.com


      ________________________________________
      From: php-objects@yahoogroups.com [mailto:php-objects@yahoogroups.com] On
      Behalf Of Abdul Shahid Khattak
      Sent: Wednesday, May 03, 2006 10:47 PM
      To: php-objects@yahoogroups.com
      Subject: RE: [php-objects] PHP Script + Linux User

      Hi Mehmet,
      Thank you, i tried the code that display nothing in browser. However when i
      execute the command� "useradd foo -p foo" in linux it gets executed and the
      user with the name foo is created.

      i dont understand why it is so,


      thank you,
      Shahid




      Mehmet Buyukozer <mbuyukozer3@...> wrote:��� Hi Shahid,

      <?
      if(isset($_POST['usrname'])&&isset($_POST['pswd']))
      {
      ������ $cmd = "useradd ".$_POST['usrname']." -p ".$_POST['pswd'];� //
      useradd foo -p foo
      ������ exec($cmd);
      }
      ?>

      I hope this helps.

      Mehmet
      http://www.sonofnights.com

      ________________________________________
      From: php-objects@yahoogroups.com [mailto:php-objects@yahoogroups.com] On
      Behalf Of Abdul shahid khattak
      Sent: Wednesday, May 03, 2006 5:20 AM
      To: php-objects@yahoogroups.com
      Subject: [php-objects] PHP Script + Linux User

      Hi All,

      i need a php script that can create linux user.� can any body help me?

      Thank� you,
      Shahid.









      ����� �����
      ---------------------------------
      How low will we go? Check out Yahoo! Messenger�s low� PC-to-Phone call
      rates.

      [Non-text portions of this message have been removed]



      PHP Data object relational mapping generator
      http://www.metastorage.net/


      ________________________________________
      YAHOO! GROUPS LINKS

      � �Visit your group "php-objects" on the web.
      �
      � �To unsubscribe from this group, send an email to:
      �php-objects-unsubscribe@yahoogroups.com
      �
      � �Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.

      ________________________________________

      --
      ----------------------------------------
      I am using the free version of SPAMfighter for private users.
      It has removed 578 spam emails to date.
      Paying users do not have this message in their emails.
      Try www.SPAMfighter.com for free now!

      ����

      � PHP Data object relational mapping generator
      http://www.metastorage.net/

      �������������

      ������� SPONSORED LINKS��
      ��������������������������������������������������� Programming
      languages�������������������������������������� Object oriented
      programming�������������������������������������� Php
      developer�������������������������������������������������������������������
      � Computer security�������������������������������������� C programming
      language�������������������������������������� Computer programming
      languages����������������������������������������������������������������
      �����
      ---------------------------------
      �� YAHOO! GROUPS LINKS

      ���
      ��� Visit your group "php-objects" on the web.
      ���
      ��� To unsubscribe from this group, send an email to:
      php-objects-unsubscribe@yahoogroups.com
      ���
      ��� Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.

      ���
      ---------------------------------


      ����









      ����� ����� �����
      ---------------------------------
      Yahoo! Mail goes everywhere you do.� Get it on your phone.

      [Non-text portions of this message have been removed]



      PHP Data object relational mapping generator
      http://www.metastorage.net/


      SPONSORED LINKS
      Programming languages
      Object oriented programming
      Php developer
      Computer security
      C programming language
      Computer programming languages

      ________________________________________
      YAHOO! GROUPS LINKS

      � �Visit your group "php-objects" on the web.
      �
      � �To unsubscribe from this group, send an email to:
      �php-objects-unsubscribe@yahoogroups.com
      �
      � �Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.

      ________________________________________

      --
      ----------------------------------------
      I am using the free version of SPAMfighter for private users.
      It has removed 578 spam emails to date.
      Paying users do not have this message in their emails.
      Try www.SPAMfighter.com for free now!



      PHP Data object relational mapping generator
      http://www.metastorage.net/



      SPONSORED LINKS
      Programming languages Object oriented programming Php developer Computer security C programming language Computer programming languages

      ---------------------------------
      YAHOO! GROUPS LINKS


      Visit your group "php-objects" on the web.

      To unsubscribe from this group, send an email to:
      php-objects-unsubscribe@yahoogroups.com

      Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.


      ---------------------------------













      ---------------------------------
      Love cheap thrills? Enjoy PC-to-Phone calls to 30+ countries for just 2¢/min with Yahoo! Messenger with Voice.

      [Non-text portions of this message have been removed]
    • Mehmet Buyukozer
      Hi Shahid, It is because the code does just what you do in shell. exec() runs the given argument ($cmd) and returns the last line from shell. Since as you
      Message 2 of 10 , May 4 1:13 AM
      • 0 Attachment
        Hi Shahid,

        It is because the code does just what you do in shell. exec() runs the given
        argument ($cmd) and returns the last line from shell. Since as you said,
        there was nothing returned in shell when you type that command and another
        reason that you're not showing output of exec() in php (echo exec($cmd);)
        it's normal you didn't see anything on browser. Indeed, it was just a
        snipped code to give you an idea. You should add something to it to make it
        suit for your needs.

        Hope this helps.

        Mehmet
        http://www.sonofnights.com


        ________________________________________
        From: php-objects@yahoogroups.com [mailto:php-objects@yahoogroups.com] On
        Behalf Of Abdul Shahid Khattak
        Sent: Wednesday, May 03, 2006 10:47 PM
        To: php-objects@yahoogroups.com
        Subject: RE: [php-objects] PHP Script + Linux User

        Hi Mehmet,
        Thank you, i tried the code that display nothing in browser. However when i
        execute the command  "useradd foo -p foo" in linux it gets executed and the
        user with the name foo is created.

        i dont understand why it is so,


        thank you,
        Shahid




        Mehmet Buyukozer <mbuyukozer3@...> wrote:    Hi Shahid,

        <?
        if(isset($_POST['usrname'])&&isset($_POST['pswd']))
        {
               $cmd = "useradd ".$_POST['usrname']." -p ".$_POST['pswd'];  //
        useradd foo -p foo
               exec($cmd);
        }
        ?>

        I hope this helps.

        Mehmet
        http://www.sonofnights.com

        ________________________________________
        From: php-objects@yahoogroups.com [mailto:php-objects@yahoogroups.com] On
        Behalf Of Abdul shahid khattak
        Sent: Wednesday, May 03, 2006 5:20 AM
        To: php-objects@yahoogroups.com
        Subject: [php-objects] PHP Script + Linux User

        Hi All,

        i need a php script that can create linux user.� can any body help me?

        Thank� you,
        Shahid.









        ����� �����
        ---------------------------------
        How low will we go? Check out Yahoo! Messenger�s low� PC-to-Phone call
        rates.

        [Non-text portions of this message have been removed]



        PHP Data object relational mapping generator
        http://www.metastorage.net/


        ________________________________________
        YAHOO! GROUPS LINKS

        � �Visit your group "php-objects" on the web.
        �
        � �To unsubscribe from this group, send an email to:
        �php-objects-unsubscribe@yahoogroups.com
        �
        � �Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.

        ________________________________________

        --
        ----------------------------------------
        I am using the free version of SPAMfighter for private users.
        It has removed 578 spam emails to date.
        Paying users do not have this message in their emails.
        Try www.SPAMfighter.com for free now!

            

          PHP Data object relational mapping generator
        http://www.metastorage.net/

                     

                SPONSORED LINKS  
                                                            Programming
        languages                                       Object oriented
        programming                                       Php
        developer                                                                   
          Computer security                                       C programming
        language                                       Computer programming
        languages                                                                
             
        ---------------------------------
           YAHOO! GROUPS LINKS

           
            Visit your group "php-objects" on the web.
           
            To unsubscribe from this group, send an email to:
        php-objects-unsubscribe@yahoogroups.com
           
            Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.

           
        ---------------------------------


            









                         
        ---------------------------------
        Yahoo! Mail goes everywhere you do.  Get it on your phone.

        [Non-text portions of this message have been removed]



        PHP Data object relational mapping generator
        http://www.metastorage.net/


        SPONSORED LINKS
        Programming languages
        Object oriented programming
        Php developer
        Computer security
        C programming language
        Computer programming languages

        ________________________________________
        YAHOO! GROUPS LINKS

        •  Visit your group "php-objects" on the web.
         
        •  To unsubscribe from this group, send an email to:
         php-objects-unsubscribe@yahoogroups.com
         
        •  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.

        ________________________________________

        --
        ----------------------------------------
        I am using the free version of SPAMfighter for private users.
        It has removed 578 spam emails to date.
        Paying users do not have this message in their emails.
        Try www.SPAMfighter.com for free now!
      • Urb LeJeune
        ... Do you want to add virtual host information to the Apache configuration and do you have root access? Urb
        Message 3 of 10 , May 4 5:44 AM
        • 0 Attachment
          >i need a php script that can create linux user. can any body help me?

          Do you want to add virtual host information to the Apache
          configuration
          and do you have root access?

          Urb
        • Mehmet Buyukozer
          Hi Shahid, I gave foo username just for convention, you may try with another user and password. It worked for me in redhat though. If your dist. is
          Message 4 of 10 , May 4 3:18 PM
          • 0 Attachment
            Hi Shahid,

            I gave "foo" username just for convention, you may try with another user and
            password. It worked for me in redhat though. If your dist. is different, you
            may check adduser manual first if the syntax is correct for adduser command.

            For php script permission question, assuming you're executing php through
            apache, I suppose you should run apache with root user or with user that has
            enough credentials to add a user to the system.
            Please let us know if you find out anything useful.

            Mehmet
            http://www.sonofnights.com

            ________________________________________
            From: php-objects@yahoogroups.com [mailto:php-objects@yahoogroups.com] On
            Behalf Of Abdul Shahid Khattak
            Sent: Wednesday, May 03, 2006 11:13 PM
            To: php-objects@yahoogroups.com
            Subject: RE: [php-objects] PHP Script + Linux User

            Hi Mehmet,
            Actually it does not create linux user and if i echo the what output
            returned by shell commad it shows nothing.

            should be it is becuase that php script has no permission to create the user
            ??

            if it is then what should i do?

            Thank you very much,
            Shahid
            Mehmet Buyukozer <mbuyukozer3@...> wrote:    Hi Shahid,

            It is because the code does just what you do in shell. exec() runs the given
            argument ($cmd) and returns the last line from shell. Since as you said,
            there was nothing returned in shell when you type that command and another
            reason that you're not showing output of exec() in php (echo exec($cmd);)
            it's normal you didn't see anything on browser.  Indeed, it was just a
            snipped code to give you an idea. You should add something to it to make it
            suit for your needs.

            Hope this helps.

            Mehmet
            http://www.sonofnights.com


            ________________________________________
            From: php-objects@yahoogroups.com [mailto:php-objects@yahoogroups.com] On
            Behalf Of Abdul Shahid Khattak
            Sent: Wednesday, May 03, 2006 10:47 PM
            To: php-objects@yahoogroups.com
            Subject: RE: [php-objects] PHP Script + Linux User

            Hi Mehmet,
            Thank you, i tried the code that display nothing in browser. However when i
            execute the command� "useradd foo -p foo" in linux it gets executed and
            the
            user with the name foo is created.

            i dont understand why it is so,


            thank you,
            Shahid




            Mehmet Buyukozer <mbuyukozer3@...> wrote:��� Hi Shahid,

            <?
            if(isset($_POST['usrname'])&&isset($_POST['pswd']))
            {
            ������ $cmd = "useradd ".$_POST['usrname']." -p
            ".$_POST['pswd'];� //
            useradd foo -p foo
            ������ exec($cmd);
            }
            ?>

            I hope this helps.

            Mehmet
            http://www.sonofnights.com

            ________________________________________
            From: php-objects@yahoogroups.com [mailto:php-objects@yahoogroups.com] On
            Behalf Of Abdul shahid khattak
            Sent: Wednesday, May 03, 2006 5:20 AM
            To: php-objects@yahoogroups.com
            Subject: [php-objects] PHP Script + Linux User

            Hi All,

            i need a php script that can create linux user.� can any body help me?

            Thank� you,
            Shahid.









            ����� �����
            ---------------------------------
            How low will we go? Check out Yahoo! Messenger�s low� PC-to-Phone call
            rates.

            [Non-text portions of this message have been removed]



            PHP Data object relational mapping generator
            http://www.metastorage.net/


            ________________________________________
            YAHOO! GROUPS LINKS

            � �Visit your group "php-objects" on the web.
            �
            � �To unsubscribe from this group, send an email to:
            �php-objects-unsubscribe@yahoogroups.com
            �
            � �Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.

            ________________________________________

            --
            ----------------------------------------
            I am using the free version of SPAMfighter for private users.
            It has removed 578 spam emails to date.
            Paying users do not have this message in their emails.
            Try www.SPAMfighter.com for free now!

            ����

            � PHP Data object relational mapping generator
            http://www.metastorage.net/

            �������������

            ������� SPONSORED LINKS��
            �������������������������ï
            ¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿
            ½ Programming
            languages����������������������ï
            ¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ Object oriented
            programming���������������������ï¿
            ½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ Php
            developer����������������������ï
            ¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿
            ½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½
            � Computer
            security����������������������ï¿
            ½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ C programming
            language����������������������ï¿
            ½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ Computer programming
            languages����������������������ï
            ¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿
            ½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½
            �����
            ---------------------------------
            �� YAHOO! GROUPS LINKS

            ���
            ��� Visit your group "php-objects" on the web.
            ���
            ��� To unsubscribe from this group, send an email to:
            php-objects-unsubscribe@yahoogroups.com
            ���
            ��� Your use of Yahoo! Groups is subject to the Yahoo! Terms of
            Service.

            ���
            ---------------------------------


            ����









            ����� ����� �����
            ---------------------------------
            Yahoo! Mail goes everywhere you do.� Get it on your phone.

            [Non-text portions of this message have been removed]



            PHP Data object relational mapping generator
            http://www.metastorage.net/


            SPONSORED LINKS
            Programming languages
            Object oriented programming
            Php developer
            Computer security
            C programming language
            Computer programming languages

            ________________________________________
            YAHOO! GROUPS LINKS

            � �Visit your group "php-objects" on the web.
            �
            � �To unsubscribe from this group, send an email to:
            �php-objects-unsubscribe@yahoogroups.com
            �
            � �Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.

            ________________________________________

            --
            ----------------------------------------
            I am using the free version of SPAMfighter for private users.
            It has removed 578 spam emails to date.
            Paying users do not have this message in their emails.
            Try www.SPAMfighter.com for free now!

                

              PHP Data object relational mapping generator
            http://www.metastorage.net/

                         

                    SPONSORED LINKS  
                                                                Programming
            languages                                       Object oriented
            programming                                       Php
            developer                                                                   
              Computer security                                       C programming
            language                                       Computer programming
            languages                                                                
                 
            ---------------------------------
               YAHOO! GROUPS LINKS

               
                Visit your group "php-objects" on the web.
               
                To unsubscribe from this group, send an email to:
            php-objects-unsubscribe@yahoogroups.com
               
                Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.

               
            ---------------------------------


                









                       
            ---------------------------------
            Love cheap thrills? Enjoy PC-to-Phone  calls to 30+ countries for just
            2¢/min with Yahoo! Messenger with Voice.

            [Non-text portions of this message have been removed]



            PHP Data object relational mapping generator
            http://www.metastorage.net/


            SPONSORED LINKS
            Programming languages
            Object oriented programming
            Php developer
            Computer security
            C programming language
            Computer programming languages

            ________________________________________
            YAHOO! GROUPS LINKS

            •  Visit your group "php-objects" on the web.
             
            •  To unsubscribe from this group, send an email to:
             php-objects-unsubscribe@yahoogroups.com
             
            •  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.

            ________________________________________

            --
            ----------------------------------------
            I am using the free version of SPAMfighter for private users.
            It has removed 578 spam emails to date.
            Paying users do not have this message in their emails.
            Try www.SPAMfighter.com for free now!
          • Abdul Shahid Khattak
            Hi, i need to create a linux user as we create through , following command adduser test -p 1234. The second thing, i am not expert of linux. i am sorry if it
            Message 5 of 10 , May 4 9:46 PM
            • 0 Attachment
              Hi,
              i need to create a linux user as we create through , following command

              adduser test -p 1234.

              The second thing, i am not expert of linux. i am sorry if it is too basic that how can i know that my php is running through root access or root user.

              Thanks to you all,
              Shahid



              Urb LeJeune <urb@...> wrote:
              >i need a php script that can create linux user. can any body help me?

              Do you want to add virtual host information to the Apache
              configuration
              and do you have root access?

              Urb




              PHP Data object relational mapping generator
              http://www.metastorage.net/



              SPONSORED LINKS
              Programming languages Object oriented programming Php developer Computer security C programming language Computer programming languages

              ---------------------------------
              YAHOO! GROUPS LINKS


              Visit your group "php-objects" on the web.

              To unsubscribe from this group, send an email to:
              php-objects-unsubscribe@yahoogroups.com

              Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.


              ---------------------------------













              ---------------------------------
              Blab-away for as little as 1¢/min. Make PC-to-Phone Calls using Yahoo! Messenger with Voice.

              [Non-text portions of this message have been removed]
            • Abdul Shahid Khattak
              Thank you Mehmet and you all, Mehmet i found a solution to my problem. This is the use of sudo. Then main site for sudo is http://www.courtesan.com/sudo/ For
              Message 6 of 10 , May 14 10:03 PM
              • 0 Attachment
                Thank you Mehmet and you all,

                Mehmet i found a solution to my problem. This is the use of sudo. Then main site for sudo is http://www.courtesan.com/sudo/

                For quick use you can use the following steps for sudo in action

                ### FoR Apache and for using Sudo:

                1 -
                we need to add the following two lines to our httd.conf file
                located in /usr/local/apache2/conf
                User daemon
                Group daemon

                This is basically the apache user; in your case you would add your own
                e.g if apache is the user and group name is apache then you would add
                User apache
                Group apache


                2-
                we need to edit eh sudoers file, we need to make the following changes

                2-1 Defining the commands for user
                # Cmnd alias specification
                Cmnd_Alias USERADD=/usr/sbin/useradd
                Cmnd_Alias USERDEL=/usr/sbin/userdel
                Cmnd_Alias FILEMOVE=/bin/mv
                2-2 Definign the user; and NOPASSWD option for the above three
                commands
                daemon ALL=(ALL)
                NOPASSWD:USERADD,NOPASSWD:USERDEL,NOPASSWD:FILEMOVE

                Now in your php script you can use these shell commands only.

                I think this will be usefull

                Thank you,
                A. Shahid.


                Mehmet Buyukozer <mbuyukozer3@...> wrote: Hi Shahid,

                I gave "foo" username just for convention, you may try with another user and
                password. It worked for me in redhat though. If your dist. is different, you
                may check adduser manual first if the syntax is correct for adduser command.

                For php script permission question, assuming you're executing php through
                apache, I suppose you should run apache with root user or with user that has
                enough credentials to add a user to the system.
                Please let us know if you find out anything useful.

                Mehmet
                http://www.sonofnights.com

                ________________________________________
                From: php-objects@yahoogroups.com [mailto:php-objects@yahoogroups.com] On
                Behalf Of Abdul Shahid Khattak
                Sent: Wednesday, May 03, 2006 11:13 PM
                To: php-objects@yahoogroups.com
                Subject: RE: [php-objects] PHP Script + Linux User

                Hi Mehmet,
                Actually it does not create linux user and if i echo the what output
                returned by shell commad it shows nothing.

                should be it is becuase that php script has no permission to create the user
                ??

                if it is then what should i do?

                Thank you very much,
                Shahid
                Mehmet Buyukozer <mbuyukozer3@...> wrote:��� Hi Shahid,

                It is because the code does just what you do in shell. exec() runs the given
                argument ($cmd) and returns the last line from shell. Since as you said,
                there was nothing returned in shell when you type that command and another
                reason that you're not showing output of exec() in php (echo exec($cmd);)
                it's normal you didn't see anything on browser.� Indeed, it was just a
                snipped code to give you an idea. You should add something to it to make it
                suit for your needs.

                Hope this helps.

                Mehmet
                http://www.sonofnights.com


                ________________________________________
                From: php-objects@yahoogroups.com [mailto:php-objects@yahoogroups.com] On
                Behalf Of Abdul Shahid Khattak
                Sent: Wednesday, May 03, 2006 10:47 PM
                To: php-objects@yahoogroups.com
                Subject: RE: [php-objects] PHP Script + Linux User

                Hi Mehmet,
                Thank you, i tried the code that display nothing in browser. However when i
                execute the command� "useradd foo -p foo" in linux it gets executed and
                the
                user with the name foo is created.

                i dont understand why it is so,


                thank you,
                Shahid




                Mehmet Buyukozer <mbuyukozer3@...> wrote:��� Hi Shahid,

                <?
                if(isset($_POST['usrname'])&&isset($_POST['pswd']))
                {
                ������ $cmd = "useradd ".$_POST['usrname']." -p
                ".$_POST['pswd'];� //
                useradd foo -p foo
                ������ exec($cmd);
                }
                ?>

                I hope this helps.

                Mehmet
                http://www.sonofnights.com

                ________________________________________
                From: php-objects@yahoogroups.com [mailto:php-objects@yahoogroups.com] On
                Behalf Of Abdul shahid khattak
                Sent: Wednesday, May 03, 2006 5:20 AM
                To: php-objects@yahoogroups.com
                Subject: [php-objects] PHP Script + Linux User

                Hi All,

                i need a php script that can create linux user.� can any body help me?

                Thank� you,
                Shahid.









                ����� �����
                ---------------------------------
                How low will we go? Check out Yahoo! Messenger�s low� PC-to-Phone call
                rates.

                [Non-text portions of this message have been removed]



                PHP Data object relational mapping generator
                http://www.metastorage.net/


                ________________________________________
                YAHOO! GROUPS LINKS

                � �Visit your group "php-objects" on the web.
                �
                � �To unsubscribe from this group, send an email to:
                �php-objects-unsubscribe@yahoogroups.com
                �
                � �Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.

                ________________________________________

                --
                ----------------------------------------
                I am using the free version of SPAMfighter for private users.
                It has removed 578 spam emails to date.
                Paying users do not have this message in their emails.
                Try www.SPAMfighter.com for free now!

                ����

                � PHP Data object relational mapping generator
                http://www.metastorage.net/

                �������������

                ������� SPONSORED LINKS��
                ��������������������������
                ���������������������������
                � Programming
                languages�����������������������
                ����������������� Object oriented
                programming����������������������
                ����������������� Php
                developer�����������������������
                ���������������������������
                ��������������������
                � Computer
                security�����������������������
                ���������������� C programming
                language�����������������������
                ���������������� Computer programming
                languages�����������������������
                ���������������������������
                �����������������
                �����
                ---------------------------------
                �� YAHOO! GROUPS LINKS

                ���
                ��� Visit your group "php-objects" on the web.
                ���
                ��� To unsubscribe from this group, send an email to:
                php-objects-unsubscribe@yahoogroups.com
                ���
                ��� Your use of Yahoo! Groups is subject to the Yahoo! Terms of
                Service.

                ���
                ---------------------------------


                ����









                ����� ����� �����
                ---------------------------------
                Yahoo! Mail goes everywhere you do.� Get it on your phone.

                [Non-text portions of this message have been removed]



                PHP Data object relational mapping generator
                http://www.metastorage.net/


                SPONSORED LINKS
                Programming languages
                Object oriented programming
                Php developer
                Computer security
                C programming language
                Computer programming languages

                ________________________________________
                YAHOO! GROUPS LINKS

                � �Visit your group "php-objects" on the web.
                �
                � �To unsubscribe from this group, send an email to:
                �php-objects-unsubscribe@yahoogroups.com
                �
                � �Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.

                ________________________________________

                --
                ----------------------------------------
                I am using the free version of SPAMfighter for private users.
                It has removed 578 spam emails to date.
                Paying users do not have this message in their emails.
                Try www.SPAMfighter.com for free now!

                ����

                � PHP Data object relational mapping generator
                http://www.metastorage.net/

                �������������

                ������� SPONSORED LINKS��
                ��������������������������������������������������� Programming
                languages�������������������������������������� Object oriented
                programming�������������������������������������� Php
                developer�������������������������������������������������������������������
                � Computer security�������������������������������������� C programming
                language�������������������������������������� Computer programming
                languages����������������������������������������������������������������
                �����
                ---------------------------------
                �� YAHOO! GROUPS LINKS

                ���
                ��� Visit your group "php-objects" on the web.
                ���
                ��� To unsubscribe from this group, send an email to:
                php-objects-unsubscribe@yahoogroups.com
                ���
                ��� Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.

                ���
                ---------------------------------


                ����









                ����� �����
                ---------------------------------
                Love cheap thrills? Enjoy PC-to-Phone� calls to 30+ countries for just
                2�/min with Yahoo! Messenger with Voice.

                [Non-text portions of this message have been removed]



                PHP Data object relational mapping generator
                http://www.metastorage.net/


                SPONSORED LINKS
                Programming languages
                Object oriented programming
                Php developer
                Computer security
                C programming language
                Computer programming languages

                ________________________________________
                YAHOO! GROUPS LINKS

                � �Visit your group "php-objects" on the web.
                �
                � �To unsubscribe from this group, send an email to:
                �php-objects-unsubscribe@yahoogroups.com
                �
                � �Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.

                ________________________________________

                --
                ----------------------------------------
                I am using the free version of SPAMfighter for private users.
                It has removed 578 spam emails to date.
                Paying users do not have this message in their emails.
                Try www.SPAMfighter.com for free now!


                PHP Data object relational mapping generator
                http://www.metastorage.net/



                SPONSORED LINKS
                Programming languages Object oriented programming Php developer Computer security C programming language Computer programming languages

                ---------------------------------
                YAHOO! GROUPS LINKS


                Visit your group "php-objects" on the web.

                To unsubscribe from this group, send an email to:
                php-objects-unsubscribe@yahoogroups.com

                Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.


                ---------------------------------













                ---------------------------------
                Yahoo! Messenger with Voice. PC-to-Phone calls for ridiculously low rates.

                [Non-text portions of this message have been removed]
              • Urb LeJeune
                Hello, I upgraded to PHP5 and the upgrade went smoothly. There is a major difference with array_merge() with PHP5 if one of the arrays is null. $Array1 =
                Message 7 of 10 , May 15 6:10 AM
                • 0 Attachment
                  Hello,

                  I upgraded to PHP5 and the upgrade went smoothly. There is a
                  major difference with array_merge() with PHP5 if one of the arrays is null.
                  $Array1 = array_merge($Array2,$Array3);
                  If either $Array2 or Array3 is null $Array1 will be null even though the other
                  array is loaded.

                  Is anyone aware of a listing of function containing potential upgrade
                  problems when upgrading to PHP5.

                  I also had a problem with session_register() which I solved by
                  simply assigning variables to the super global $_SESSION

                  Urb
                Your message has been successfully submitted and would be delivered to recipients shortly.