php-windows Digest 15 Mar 2006 03:52:20 -0000 Issue 2910

Topics (messages 26751 through 26753):

Re: include txt in html
        26751 by: El Bekko
        26753 by: Armando

SNMP Windows - control TCP protocol
        26752 by: wood-gd

Administrivia:

To subscribe to the digest, e-mail:
        [EMAIL PROTECTED]

To unsubscribe from the digest, e-mail:
        [EMAIL PROTECTED]

To post to the list, e-mail:
        php-windows@lists.php.net


----------------------------------------------------------------------
--- Begin Message ---
Alf Stockton wrote:
From what I have read on the web I am given to understand that I can include text files in a html document by issuing the following in the html file
<!--#include file="Registration.txt"-->
This however does not work for me.
My 1st thought was that I had not allowed for SSIs in my httpd.conf but my httpd.conf Options is as follows
Options Indexes Includes FollowSymLinks MultiViews ExecCGI
So if someone can share with me how I got this wrong I would be grateful.

As this is a PHP list, I'll give you the PHP solution :P
<?php
include "Registration.txt";
?>

--- End Message ---
--- Begin Message ---
<?php include("Registration.txt") ?>

If you're loading PHP as a module under Apache and you have PHP in your include file which you want to be processed, you also need to make sure it's added to your list of file types that the engine processes PHP code in. In your httpd.conf file you'd specify something like:

AddType application/x-httpd-php .php .txt

This would process PHP code in files with both .php and .txt extensions. Cheers.

Armando

Alf Stockton wrote:
From what I have read on the web I am given to understand that I can include text files in a html document by issuing the following in the html file
<!--#include file="Registration.txt"-->
This however does not work for me.
My 1st thought was that I had not allowed for SSIs in my httpd.conf but my httpd.conf Options is as follows
Options Indexes Includes FollowSymLinks MultiViews ExecCGI
So if someone can share with me how I got this wrong I would be grateful.


--- End Message ---
--- Begin Message ---
Hello
//---- I sorry my english
//----my script is control TCP protocol --------

$ip=83.190.177.45;  // IP hosta
$community=public; //community (password)
echo $stan = '12'; // deletetcb - del connect

 $LocalAddress =
snmpwalk("$ip","$community","tcp.tcpConnTable.tcpConnEntry.tcpConnLocalAddre
ss");
 $LocalPort =
snmpwalk("$ip","$community","tcp.tcpConnTable.tcpConnEntry.tcpConnLocalPort"
);
 $RemAddress =
snmpwalk("$ip","$community","tcp.tcpConnTable.tcpConnEntry.tcpConnRemAddress
");
 $RemPort =
snmpwalk("$ip","$community","tcp.tcpConnTable.tcpConnEntry.tcpConnRemPort");

 echo $wynik='1.3.6.1.2.1.6.13.1.'.zamiana($LocalAddress[$id],"IpAddress:
").'.'.$LocalPort[$id].'.'.zamiana($RemAddress[$id], "IpAddress:
").'.'.$RemPort[$id];

 snmpset($ip, $community, $wynik, i, $stan);

//-- zamiana($LocalAddress[$id],"IpAddress: ") this is function
//-- Is error

12
1.3.6.1.2.1.6.13.1.0.0.0.0.135.0.0.0.0.0
Warning: snmpset(): Could not add variable:
system.sysUpTime.6.1.2.1.6.13.1.0.0.0.0.135.0.0.0.0.0 i 12 in e:\program
files\apache group\apache\users\snmp\pliki\porty_set.php on line 70

//-- hellp Me. My e-mail [EMAIL PROTECTED]

--- End Message ---

Reply via email to