Welcome to the IMTalk - Internet Marketing & SEO Forum.
  • Login:
+ Reply to Thread
Results 1 to 4 of 4
  1. #1
    hirephp is offline IM & SEO Quiet One hirephp is on a distinguished road
    Join Date
    Jun 2011
    Posts
    9
    Thanks Given
    0
    Thanked 8 Times in 7 Posts

    How to call Linux command within PHP?

    How to call Linux command within PHP?

  2. The Following User Says Thank You to hirephp For This Useful Post:


  3. #2
    Geeks is offline Banned Geeks is on a distinguished road
    Join Date
    May 2012
    Posts
    58
    Thanks Given
    2
    Thanked 13 Times in 11 Posts
    You can use exec OR shell exec function to call linux commands using php. php.net has detailed explanation to achieve it.

  4. The Following User Says Thank You to Geeks For This Useful Post:


  5. #3
    Nemanja's Avatar
    Nemanja is offline IMTalk.org Nemanja has a reputation beyond repute Nemanja has a reputation beyond repute Nemanja has a reputation beyond repute Nemanja has a reputation beyond repute Nemanja has a reputation beyond repute Nemanja has a reputation beyond repute Nemanja has a reputation beyond repute Nemanja has a reputation beyond repute Nemanja has a reputation beyond repute Nemanja has a reputation beyond repute Nemanja has a reputation beyond repute
    Join Date
    Jun 2010
    Location
    www
    Posts
    4,870
    Thanks Given
    703
    Thanked 3,044 Times in 1,247 Posts
    In php you can use system as well, but with some risk involved.

  6. The Following User Says Thank You to Nemanja For This Useful Post:


  7. #4
    Geeks is offline Banned Geeks is on a distinguished road
    Join Date
    May 2012
    Posts
    58
    Thanks Given
    2
    Thanked 13 Times in 11 Posts
    Quote Originally Posted by Nemanja View Post
    In php you can use system as well, but with some risk involved.
    Yes, these are vulnerable php functions which many hosting providers disable by default. An alternative is to ask your host and enable it for your account OR get a VPS/dedicated server.

  8. The Following User Says Thank You to Geeks For This Useful Post:



 

Similar Threads

  1. Expain Me What is the command to increase the execution time in PHP?
    By hirephp in forum Programming, Scripting, Database, Testing, Debugging...
    Replies: 2
    Last Post: 05-22-2012, 02:37 PM
  2. What is the command to create MySQL database using PHP and MySWQ?
    By hirephp in forum Programming, Scripting, Database, Testing, Debugging...
    Replies: 4
    Last Post: 05-14-2012, 05:33 PM
  3. New at this Forum. Your SEO to call :)
    By CaithlynFloresSEO in forum Introduce Yourself
    Replies: 2
    Last Post: 01-02-2012, 04:40 PM
  4. Anyone here know SEO tools for linux ?
    By tukanginstal in forum Coffee Break - General Talk
    Replies: 0
    Last Post: 05-04-2011, 01:16 AM
  5. phone call through gmail !
    By kir0inn0 in forum Google
    Replies: 4
    Last Post: 10-05-2010, 06:36 AM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts