Jump to content

pshankland

New Members
  • Posts

    5
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

pshankland's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. Brilliant, thanks for the help [code]<html> <head> <title>Remote SNMP Test</title> </head> <body> <?php $UnitName = snmpget("192.168.1.1", "public", ".1.3.6.1.4.1.16174.1.1.1.1.1.0"); $UnitModel = snmpget("192.168.1.1", "public", ".1.3.6.1.4.1.16174.1.1.1.1.2.0"); print "Unit Name: $UnitName"; ?>                           <br> <?php    print "\nUnit Model: $UnitModel"; ?> </body> </html>[/code]
  2. First bit of PHP so please be careful with me :) I have the following code: [code]<html> <head> <title>Remote SNMP Test</title> </head> <body> <?php $UnitName = snmpget("192.168.1.1", "public", ".1.3.6.1.4.1.16174.1.1.1.1.1.0"); $UnitModel = snmpget("192.168.1.1", "public", ".1.3.6.1.4.1.16174.1.1.1.1.2.0"); print "Unit Name: $UnitName"; print "\nUnit Model: $UnitModel"; ?> </body> </html>[/code] The bit I am having problems with is the \n bit for a new line - it continues the text all on the same line. What am I doing wrong? Thanks.
  3. Thanks for the help both,will try out now :)
  4. I have got the following VERY basic script: [code]<?php $to = 'somone@somewhere.com'; $subject = 'Some Subject'; $message = 'Some Message'; mail($to, $subject, $message, '', '-fsomeoneelse@domain.com'); ?>[/code] This works but I need to be able to send a *.sql file as an attachment and although there is lots of help on the net I am a bit stuck. Anyone give me a simple addon to this script for me to mail the attachment? I have looked and can't use the phpmailer class as don't have the ability edit the php.ini file on my hosted server. Also, I would like to have the current date within the subject, how can I do this? Thanks.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.