Ask a Question related to PHP Development, Design and Development.

  1. #1

    Default php NEWBIE Question

    Hi,
    can you tell me how is it possible to connect to a linux shell via PHP?

    Greetz
    Dennis

    Dennis Dujan - Partycult.De Guest

  2. Similar Questions and Discussions

    1. A newbie with a newbie question
      Good afternoon everyone, My Name is Dusty I am new to this forum and pretty new to Acrobat. I have Acrobat 9 running on an IMAC running 10.5.2 I...
    2. newbie question,,,
      I converted an AVI to FLV in the encoder. The resulsting file only opens a blank flash 8 player. I can't even get it to play within the flash app....
    3. Newbie Question: Biz Card Template Question
      Hi, I got the Pagemaker PlugIn - I am using one of the templates for Business Cards - the elements appear to be grouped (bound box all around when I...
    4. Pen Tool Use Question. (Embarrassingly Newbie Question)
      I'm currently using Flash MX and whenever I choose the Pen Tool instead of the pen nib with the small "x" beside it that supposed to show up on...
    5. Newbie OO question
      In article <EbkRa.331382$fC.2436421@news.easynews.com>, "Ed W" <dodgynewsgroups@ewildgoose.demon.co.uk> wrote: perldoc perltoot it's all you...
  3. #2

    Default Re: [PHP] php NEWBIE Question

    * Thus wrote Dennis Dujan - Partycult.de (d.dujan@partycult.de):
    > Hi,
    > can you tell me how is it possible to connect to a linux shell via PHP?
    Ok, i suppose I should reply to this before you ask the same
    question with less details, again.

    Please be a little more specific in your question, like what you
    are trying to achieve. Otherwise we will be just trying to guess
    at what you want to do, and most likley guess wrong.

    Curt
    --
    "I used to think I was indecisive, but now I'm not so sure."
    Curt Zirzow Guest

  4. #3

    Default AW: [PHP] php NEWBIE Question

    Iam currently writing some Scripts in PHP for a Webappliance.
    And now I have the problem that I have to connect with
    a PHP Script to a Shell that is located on another Server.
    But I don't know how to do this... :-/
    Perhaps you can help me with an example or a Page with a Tutorial.

    Greetz
    Dennis

    -----Ursprungliche Nachricht-----
    Von: Curt Zirzow [mailto:php-general@zirzow.dyndns.org]
    Gesendet: Montag, 25. August 2003 01:22
    An: [email]php-general@lists.php.net[/email]
    Betreff: Re: [PHP] php NEWBIE Question

    * Thus wrote Dennis Dujan - Partycult.de (d.dujan@partycult.de):
    > Hi,
    > can you tell me how is it possible to connect to a linux shell via PHP?
    Ok, i suppose I should reply to this before you ask the same
    question with less details, again.

    Please be a little more specific in your question, like what you
    are trying to achieve. Otherwise we will be just trying to guess
    at what you want to do, and most likley guess wrong.

    Curt
    --
    "I used to think I was indecisive, but now I'm not so sure."

    --
    PHP General Mailing List (http://www.php.net/)
    To unsubscribe, visit: http://www.php.net/unsub.php
    Dennis Dujan - Partycult.De Guest

  5. #4

    Default PHP newbie question

    I've been developing with ASP.NET for over a year now but I also want to try
    PHP. How does PHP work with IIS? Or how do I enable my PC to run PHP? Is this
    just another runtime like the JVM or VBrun?

    My PC is running Windows 2000 Server.

    Thanks for your help.
    Bruce W...1 Guest

  6. #5

    Default Re: PHP newbie question

    On Fri, 12 Sep 2003 13:15:00 -0400, "Bruce W...1" <bruce@noDirectEmail.com>
    wrote:
    >I've been developing with ASP.NET for over a year now but I also want to try
    >PHP. How does PHP work with IIS? Or how do I enable my PC to run PHP? Is this
    >just another runtime like the JVM or VBrun?
    >
    >My PC is running Windows 2000 Server.
    [url]http://uk2.php.net/manual/en/install.iis.php[/url]

    Either as a CGI executable or an ISAPI DLL.

    --
    Andy Hassall (andy@andyh.co.uk) icq(5747695) ([url]http://www.andyh.co.uk[/url])
    Space: disk usage analysis tool ([url]http://www.andyhsoftware.co.uk/space[/url])
    Andy Hassall Guest

  7. #6

    Default Re: PHP newbie question

    Andy Hassall wrote:
    >
    > On Fri, 12 Sep 2003 13:15:00 -0400, "Bruce W...1" <bruce@noDirectEmail.com>
    > wrote:
    >
    > >I've been developing with ASP.NET for over a year now but I also want to try
    > >PHP. How does PHP work with IIS? Or how do I enable my PC to run PHP? Is this
    > >just another runtime like the JVM or VBrun?
    > >
    > >My PC is running Windows 2000 Server.
    >
    > [url]http://uk2.php.net/manual/en/install.iis.php[/url]
    >
    > Either as a CGI executable or an ISAPI DLL.
    >
    > --
    > Andy Hassall (andy@andyh.co.uk) icq(5747695) ([url]http://www.andyh.co.uk[/url])
    > Space: disk usage analysis tool ([url]http://www.andyhsoftware.co.uk/space[/url])
    ================================================== =

    Thanks
    Bruce W...1 Guest

  8. #7

    Default php Newbie Question

    Hi All.

    I have gotten the following php script as part of an sourceforge project.
    Unfortunately, for some reason I am currently getting a warning message on
    line 80. (As can be seen at: [url]http://surfie.webfeet.com.au[/url])

    I suspect that the error is due to the following line, but i'm not certain,
    and even if it is, i'm not sure of how to fix it.

    output("`@Next new game day in: `$".date("G\\h, i\\m, s\\s \\(\\r\\e\\a\\l\\
    \\t\\i\\m\\e\\)",strtotime("1970-01-01 00:00:00 + $realsecstotomorrow
    seconds"))."`0`n`n");

    Any help would be appreciated...

    The script is as follows:

    <?
    require_once "common.php";
    //echo(strpos($_SERVER['SERVER_NAME'],"logd.mightye.org"));
    $old = getsetting("expireoldacct",45);
    $new = getsetting("expirenewacct",10);
    $trash = getsetting("expiretrashacct",1);
    $sql = "DELETE FROM accounts WHERE superuser<=1 AND (1=0\n"
    ..($old>0?"OR (laston < \"".date("Y-m-d H:i:s",strtotime("-$old
    days"))."\")\n":"")
    ..($new>0?"OR (laston < \"".date("Y-m-d H:i:s",strtotime("-$new days"))."\"
    AND level=1 AND dragonkills=0)\n":"")
    ..($trash>0?"OR (laston < \"".date("Y-m-d H:i:s",strtotime("-".($trash+1)."
    days"))."\" AND level=1 AND experience < 10 AND dragonkills=0)\n":"")
    ..")";
    //echo "<pre>".HTMLEntities($sql)."</pre>";
    db_query($sql) or die(db_error(LINK));

    $old-=5;
    $sql = "SELECT acctid,emailaddress FROM accounts WHERE 1=0 "
    ..($old>0?"OR (laston < \"".date("Y-m-d H:i:s",strtotime("-$old
    days"))."\")\n":"")
    .." AND emailaddress!='' AND sentnotice=0";
    $result = db_query($sql);
    for ($i=0;$i<db_num_rows($result);$i++){
    $row = db_fetch_assoc($result);
    mail($row[emailaddress],"LoGD Character Expiration",
    "
    One or more of your characters in Legend of the Green Dragon at
    ".$_SERVER['SERVER_NAME'].$_SERVER['SCRIPT_NAME']."
    is about to expire. If you wish to keep this character, you should
    log on to him or her soon!",
    "From: ".getsetting("gameadminemail","postmaster@localhos t.com")
    );
    $sql = "UPDATE accounts SET sentnotice=1 WHERE acctid='$row[acctid]'";
    db_query($sql);
    }


    //echo "<pre>".HTMLEntities($sql)."</pre>";

    if ($session[loggedin]){
    redirect("badnav.php");
    }
    page_header();
    output("`cWelcome to Legend of the Green Dragon, a shameless knockoff of
    Seth Able's Legend of the Red Dragon.`n");
    output("`@The current time in the village is `%".getgametime()."`@.`0`n");

    //Next New Day in ... is by JT from logd.dragoncat.net
    $time = gametime();
    $tomorrow = strtotime(date("Y-m-d H:i:s",$time)." + 1 day");
    $tomorrow = strtotime(date("Y-m-d 00:00:00",$tomorrow));
    $secstotomorrow = $tomorrow-$time;
    $realsecstotomorrow = $secstotomorrow / getsetting("daysperday",4);
    output("`@Next new game day in: `$".date("G\\h, i\\m, s\\s \\(\\r\\e\\a\\l\\
    \\t\\i\\m\\e\\)",strtotime("1970-01-01 00:00:00 + $realsecstotomorrow
    seconds"))."`0`n`n");
    output("Enter your name and password to enter the realm.`n");
    if ($_GET['op']=="timeout"){
    $session['message'].=" Your session has timed out, you must log in
    again.`n";
    if (!isset($_COOKIE['PHPSESSID'])){
    $session['message'].=" Also, it appears that you may be blocking cookies
    from this site. At least session cookies must be enabled in order to use
    this site.`n";
    }
    }
    if ($session[message]>"") output("`b`\$$session[message]`b`n");
    output("<form action='login.php' method='POST'>"
    ..templatereplace("login",array("username"=>transl ate("<u>U</u>sername"),"pas
    sword"=>translate("<u>P</u>assword"),"button"=>translate("Log in")))
    .."</form>`c",true);
    // Without this, I had one user constantly get 'badnav.php' :/ Everyone
    else worked, but he didn't
    addnav("","login.php");
    //output("`n`b`&**BETA**`0 This is a BETA of this website, things are likely
    to change now and again, as it is under active development (when I have time
    ;-)) `&**BETA**`0`n");
    output("`n`b`&".getsetting("loginbanner","*BETA* This is a BETA of this
    website, things are likely to change now and again, as it is under active
    development *BETA*")."`0`b`n");
    $session[message]="";
    output("`c`2Game server running version: `@{$logd_version}`0`c");

    clearnav();
    addnav("New to LoGD?");
    addnav("Create a character","create.php");
    addnav("Other");
    addnav("About LoGD","about.php");
    addnav("List Warriors","list.php");
    addnav("Daily News", "news.php");
    addnav("Game Setup Info", "about.php?op=setup");
    addnav("LoGD Net","logdnet.php?op=list");
    addnav("Forgotten Password","create.php?op=forgot");

    page_footer();
    ?>

    Thanks Guys!

    Surfie


    Surfie Guest

Posting Permissions

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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139