Ask a Question related to PHP Development, Design and Development.
-
Dennis Dujan - Partycult.De #1
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
-
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... -
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.... -
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... -
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... -
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... -
Curt Zirzow #2
Re: [PHP] php NEWBIE Question
* Thus wrote Dennis Dujan - Partycult.de (d.dujan@partycult.de):
Ok, i suppose I should reply to this before you ask the same> Hi,
> can you tell me how is it possible to connect to a linux shell via PHP?
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
-
Dennis Dujan - Partycult.De #3
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):Ok, i suppose I should reply to this before you ask the same> Hi,
> can you tell me how is it possible to connect to a linux shell via PHP?
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
-
Bruce W...1 #4
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
-
Andy Hassall #5
Re: PHP newbie question
On Fri, 12 Sep 2003 13:15:00 -0400, "Bruce W...1" <bruce@noDirectEmail.com>
wrote:
[url]http://uk2.php.net/manual/en/install.iis.php[/url]>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.
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
-
Bruce W...1 #6
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
-
Surfie #7
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



Reply With Quote

