Re: [PHP] Urgent CPU and|or hdd test

2002-11-11 Thread Thomas \"omega\" Henning
Thanks for the information but is there a way to get it in windows aswell?

Thanks

Thomas "omega" Henning
"Marco Tabini" <[EMAIL PROTECTED]> wrote in message
news:1037025483.12570.155.camel@;localhost.localdomain...
> If you're using linux, you can try to execute this from the command
> line:
>
> hdparm -i [device]
>
> to get, among other things, the serial number of a hard drive. You can
> then extract it with a simple regular expression.
>
>
> Marco
> --
> 
> php|architect - The magazine for PHP Professionals
> The first monthly worldwide magazine dedicated to PHP programmers
> Check us out on the web at http://www.phparch.com
>
>
> On Mon, 2002-11-11 at 09:38, John W. Holmes wrote:
> > > Is there a way i can test the cpu or the hdd for its serial number in
> > php
> > > under linux and win?
> >
> > Can you do it from the command line? Run the same command through
> > exec(). You can only get information for the server, not anything about
> > the client's computer, btw...
> >
> > ---John Holmes...
> >
> >
> >
> > --
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, visit: http://www.php.net/unsub.php
> >
>
>



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




[PHP] Urgent CPU and|or hdd test

2002-11-11 Thread Thomas \&quot;omega\&quot; Henning
Hello,

Is there a way i can test the cpu or the hdd for its serial number in php
under linux and win?

Thanks

Thomas "omega" Henning



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




[PHP] Re: Accessing Ports

2002-07-18 Thread Thomas \&quot;omega\&quot; Henning

And what kind of permissions might that be? (server side)
"Richard Lynch" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]...
> >Can i access my paralel or USB port with PHP server side?
>
> The client's (browser's) parallel or USB port?  No.  See PHP & HASP
thread.
>
> If the web-server has a parallel or USB port and you want to access that,
> probably, if you have (or can get) sufficient permissions from the OS for
> PHP to do so.
>
> --
> Like Music?  http://l-i-e.com/artists.htm
>



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




[PHP] Accessing Ports

2002-07-18 Thread Thomas \&quot;omega\&quot; Henning

Hello,

Can i access my paralel or USB port with PHP server side?

Thomas "omega" Henning



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




Re: [PHP] Timer

2002-07-16 Thread Thomas \&quot;omega\&quot; Henning

How i know when 2 mins ellapsed?
"Kevin Stone" <[EMAIL PROTECTED]> wrote in message
013f01c22cee$b3e17110$6501a8c0@kevin">news:013f01c22cee$b3e17110$6501a8c0@kevin...
> Store a timestamp in a file.  When the bot is activated retrieve the old
> timestamp and calculate the difference between then and how.  Store that
> value in another file or database.  Update the file with a fresh
timestamp.
> -Kevin
>
> ----- Original Message -
> From: "Thomas "omega" Henning" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Tuesday, July 16, 2002 11:22 AM
> Subject: [PHP] Timer
>
>
> > Is this possible:
> >
> > Im making a bot in PHP and i need a timer. Lets say noone ses anything
for
> > 2mins in the channel after that the bot ses something. And if the bot
> > recieves an msg the timer clears. Is this possible 2 be done?
> >
> > Thomas "omega" Henning
> >
> >
> >
> >
> > --
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, visit: http://www.php.net/unsub.php
> >
>



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




[PHP] Timer

2002-07-16 Thread Thomas \&quot;omega\&quot; Henning

Is this possible:

Im making a bot in PHP and i need a timer. Lets say noone ses anything for
2mins in the channel after that the bot ses something. And if the bot
recieves an msg the timer clears. Is this possible 2 be done?

Thomas "omega" Henning




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




Re: [PHP] help with mail() function!

2002-07-12 Thread Thomas \&quot;omega\&quot; Henning

No I only work on *nix platforms
"Analysis & Solutions" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> You wouldn't happen to be on a windows system?  Read the "Warning:" on the
> manual page:
> http://www.php.net/manual/en/function.mail.php
>
> --Dan
>
> --
>PHP classes that make web design easier
> SQL Solution  |   Layout Solution   |  Form Solution
> sqlsolution.info  | layoutsolution.info |  formsolution.info
>  T H E   A N A L Y S I S   A N D   S O L U T I O N S   C O M P A N Y
>  4015 7 Av #4AJ, Brooklyn NY v: 718-854-0335 f: 718-854-0409



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




[PHP] Re: help with mail() function!

2002-07-12 Thread Thomas \&quot;omega\&quot; Henning

No it didn't work. I simply don't understand why its not working. I use it
the same way in a nother php and it works perfectly.

"Kondwani Spike Mkandawire" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Try:
>
> $header = "From: Test List <[EMAIL PROTECTED]>";
>
> mail($to, $subject, $fullbody, $header."");
>
> Note the extra Null String concatinated...
>
> My php.ini is also configured to show:
>
> sendmail_from=
> In the  mail function...  This is under WinNT...
> php 4.2.1   The Null String might work under
> UNIX too...  I haven't tried it...
>
> Spike...
>
> "Thomas "Omega" Henning" <[EMAIL PROTECTED]> wrote in message
> [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> > Hello all,
> >
> > I am trying to build a php driven mailing list where i can send an email
> to
> > the whole list. Here is my code:
> >
> >  > $to  = "Henning Tamas <[EMAIL PROTECTED]>" . ",";
> > $header = "From: Test List <[EMAIL PROTECTED]>";
> >
> >  include("pop3.php");
> >
> >  $user="irc";
> >  $password="*";
> >  $apop=0;
> >  $pop3_connection=new pop3_class;
> >  $pop3_connection->hostname="localhost";
> >  if(($error=$pop3_connection->Open())=="")
> >  {
> >   echo "Connected to the POP3 server
> > $pop3_connection->hostname\n";
> >   if(($error=$pop3_connection->Login($user,$password,$apop))=="")
> >   {
> >echo "User $user logged in.\n";
> >
> > if(($error=$pop3_connection->RetrieveMessage(1,&$headers,&$body,2))=="")
> >{
> > echo "Message 1:\n---Message headers starts
> below---\n";
> >
> > for($line=0;$line >  echo "",HtmlSpecialChars($headers[$line]),"\n";
> >  $fullheader=$fullheader.$headers[$line]."\r\n";
> > }
> >
> > echo "---Message headers ends above---\n---Message body
> starts
> > below---\n";
> > for($line=0;$line >  echo "",HtmlSpecialChars($body[$line]),"\n";
$fullbody
> =
> > $fullbody . $body[$line]; }
> > echo "---Message body ends above---\n";
> >}
> >}
> >  }
> >if($error==""
> >   && ($error=$pop3_connection->Close())=="")
> >echo "Disconnected from the POP3 server
> > $pop3_connection->hostname\n";
> >
> > echo("$error");
> > $i1=strpos($fullheader,"Subject:");
> > $i2=strlen($fullheader)-$i1;
> > $subject=substr($fullheader,$i1,$i2);
> > $subject=substr($subject,9,strlen($subject));
> > $subject = "[MediaSoft] " . $subject;
> > //mail($to, $subject, $body, $headers) or die("tet");
> > mail($to, $subject, $fullbody, "From: [EMAIL PROTECTED]");
> > ?>
> > I got the pop3.php from www.weberdev.com its a class to download emails
> from
> > a POP3 server. My problem is:
> > When i send an email from a PHP emailer using mail() function to my
> mailing
> > list Message Subject is test, Message body is test. I run my script and
my
> > message source looks like this:
> > Return-Path: <[EMAIL PROTECTED]>
> > Delivered-To: [EMAIL PROTECTED]
> > Received: (qmail 30667 invoked by alias); 11 Jul 2002 13:04:08 -
> > Delivered-To: [EMAIL PROTECTED]
> > Received: (qmail 30662 invoked by uid 99); 11 Jul 2002 13:04:08 -
> > Date: 11 Jul 2002 13:04:08 -
> > Message-ID: <[EMAIL PROTECTED]>
> > To: Henning Tamas <[EMAIL PROTECTED]>, Root <[EMAIL PROTECTED]>,
> > Subject: [MediaSoft] test
> > //---Header ends here  I added this line
> >
> > From: Test List <[EMAIL PROTECTED]>
> >
> > From: [EMAIL PROTECTED]
> >
> > test
> >
> > And as you see From: [EMAIL PROTECTED] is in the header section of the
> > mail() function.
> > What can I do to fix this problem?
> >
> > Thomas Henning
> >
> > P.S. I tryed these to fix it:
> > 1)$header="From: [EMAIL PROTECTED] \r\n";
> > 2)$header="";
> > mail($to,$subject,$message,$header,[EMAIL PROTECTED]);
> >
> >
>
>



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




[PHP] help with mail() function!

2002-07-12 Thread Thomas \&quot;omega\&quot; Henning

Hello all,

I am trying to build a php driven mailing list where i can send an email to
the whole list. Here is my code:

" . ",";
$header = "From: Test List <[EMAIL PROTECTED]>";

 include("pop3.php");

 $user="irc";
 $password="*";
 $apop=0;
 $pop3_connection=new pop3_class;
 $pop3_connection->hostname="localhost";
 if(($error=$pop3_connection->Open())=="")
 {
  echo "Connected to the POP3 server
$pop3_connection->hostname\n";
  if(($error=$pop3_connection->Login($user,$password,$apop))=="")
  {
   echo "User $user logged in.\n";

if(($error=$pop3_connection->RetrieveMessage(1,&$headers,&$body,2))=="")
   {
echo "Message 1:\n---Message headers starts below---\n";

for($line=0;$line",HtmlSpecialChars($headers[$line]),"\n";
 $fullheader=$fullheader.$headers[$line]."\r\n";
}

echo "---Message headers ends above---\n---Message body starts
below---\n";
for($line=0;$line",HtmlSpecialChars($body[$line]),"\n"; $fullbody =
$fullbody . $body[$line]; }
echo "---Message body ends above---\n";
   }
   }
 }
   if($error==""
  && ($error=$pop3_connection->Close())=="")
   echo "Disconnected from the POP3 server
$pop3_connection->hostname\n";

echo("$error");
$i1=strpos($fullheader,"Subject:");
$i2=strlen($fullheader)-$i1;
$subject=substr($fullheader,$i1,$i2);
$subject=substr($subject,9,strlen($subject));
$subject = "[MediaSoft] " . $subject;
//mail($to, $subject, $body, $headers) or die("tet");
mail($to, $subject, $fullbody, "From: [EMAIL PROTECTED]");
?>
I got the pop3.php from www.weberdev.com its a class to download emails from
a POP3 server. My problem is:
When i send an email from a PHP emailer using mail() function to my mailing
list Message Subject is test, Message body is test. I run my script and my
message source looks like this:
Return-Path: <[EMAIL PROTECTED]>
Delivered-To: [EMAIL PROTECTED]
Received: (qmail 30667 invoked by alias); 11 Jul 2002 13:04:08 -
Delivered-To: [EMAIL PROTECTED]
Received: (qmail 30662 invoked by uid 99); 11 Jul 2002 13:04:08 -
Date: 11 Jul 2002 13:04:08 -
Message-ID: <[EMAIL PROTECTED]>
To: Henning Tamas <[EMAIL PROTECTED]>, Root <[EMAIL PROTECTED]>,
Subject: [MediaSoft] test
//---Header ends here  I added this line

From: Test List <[EMAIL PROTECTED]>

From: [EMAIL PROTECTED]

test

And as you see From: [EMAIL PROTECTED] is in the header section of the
mail() function.
What can I do to fix this problem?

Thomas Henning

P.S. I tryed these to fix it:
1)$header="From: [EMAIL PROTECTED] \r\n";
2)$header="";
mail($to,$subject,$message,$header,[EMAIL PROTECTED]);



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