Jump to content

WxGuy1

Members
  • Posts

    40
  • Joined

  • Last visited

Everything posted by WxGuy1

  1. Thanks for the reply. I think I've found a little utility that will make it a bit easier. Haven't tried it yet, but is sounds like it'll work. OSSMTP, in case any others end up wondering the same.
  2. Oops -- too late to edit. I've tried a bunch of different ports (i.e. 25, 26, etc). I copy/pasted the above after experimenting a bit, but the problem does not lie in the port number (which has since been set back to 25). Thanks agains!
  3. I have an XP machine; I know PHP and some other languages, but I'm not familiar (at all) with VB... I need to monitor a folder for a new file. When a new file appears in that folder, the script will attach it to an email and send it to an address. I've Googled around and found a script that should do something like this... Well, I modified two scripts to do the two things I need it to do (watch a folder for a new file, then attach that file as an attachment and email). Part of a script is copied below - I set it up just to test the email part. > Set objMessage = CreateObject("CDO.Message") objMessage.Subject = "Example CDO Message" objMessage.From = "******@**********.com" objMessage.To = "******@**********.com" objMessage.TextBody = "This is a received fax." objMessage.AddAttachment "c:\Received Faxes\test_received_fax.txt" '==This section provides the configuration information for the remote SMTP server. objMessage.Configuration.Fields.Item _ ("http://schemas.microsoft.com/cdo/configuration/sendusing") = 2 'Name or IP of Remote SMTP Server objMessage.Configuration.Fields.Item _ ("http://schemas.microsoft.com/cdo/configuration/smtpserver") = "###.##.##.###" 'Type of authentication, NONE, Basic (Base64 encoded), NTLM objMessage.Configuration.Fields.Item _ ("http://schemas.microsoft.com/cdo/configuration/smtpauthenticate") = Basic 'Your UserID on the SMTP server objMessage.Configuration.Fields.Item _ ("http://schemas.microsoft.com/cdo/configuration/sendusername") = "******+******.com" 'Your password on the SMTP server objMessage.Configuration.Fields.Item _ ("http://schemas.microsoft.com/cdo/configuration/sendpassword") = "*****" 'Server port (typically 25) objMessage.Configuration.Fields.Item _ ("http://schemas.microsoft.com/cdo/configuration/smtpserverport") = 26 'Use SSL for the connection (False or True) objMessage.Configuration.Fields.Item _ ("http://schemas.microsoft.com/cdo/configuration/smtpusessl") = True 'Connection Timeout in seconds (the maximum time CDO will try to establish a connection to the SMTP server) objMessage.Configuration.Fields.Item _ ("http://schemas.microsoft.com/cdo/configuration/smtpconnectiontimeout") = 60 objMessage.Configuration.Fields.Update '==End remote SMTP server configuration section== objMessage.Send However, when I run that script, I receive the following error: Any help? I've tested different ports, Yes or No to SSL, etc, so I'm not sure it's a settings issue (i.e. I think it may be more of a code issue, not a settings issue). Thanks!
  4. Thanks for your help Bruce... That didn't fix the problem, though. I'll open a support ticket on your recommendation. Thanks!
  5. On a previous 32bit Vista Business edition laptop, I successfully setup the web disk... I mapped the network drive just fine, and all was well (e.g. I could access the site files via Explorer - no need to FTP or use the browser Cpanel file management utility). However, I recently changed to a laptop that came with Vista Ultimate, and I can no longer get this to work. I've downloaded the Microsoft update for web folders, but I only receive the following after I enter the address ("https://mywebsite.com:2078"): "Select the certificate you want to use". Unfortunately, there are no certificates listed, so I can only selected "Cancel", after which time I receive the following error box: "The folder you entered does not appear to be valid. Please choose another". Is there something I'm doing wrong? The secure location uses port 2078, right? If I try https://...:2077, nothing happens (I end up having to press "cancel"). I can run the *.vbs file, but I get the same "Select the certificate you want to use" box without any certificates to choose from. If I press "Cancel" at that time, Internet Explorer opens up, gives me a couple "user beware - certificate is suspect"-type of dialog boxes. Eventually, I can view the contents of my site, but that's in IE, and it's read-only. The certificate info notes "This CA Root certificate is not trusted. To enable trust, install this certificate in the Trusted Root Certification Authorities store.". I'm quite familiar with Windows and computer in general, but this certificate stuff is beyond me. Regardless, I'm not sure why I got the web disk to work just fine in Vista Business without being able to get it to work in Vista Ultimate. Any help would be greatly appreciated!
  6. I'm receiving hundreds of "Delivery Status Notification (Failure)"-type message a day ("undeliverable mail", etc). Last night, I received about 15-20 in the course of two minutes. In the headers, most say that the original mail was sent from "0stocknews@tornadocentral.com", which doesn't exist. I changed the default adddress for this domain to :fail:, though I wonder if that will only result in messages bouncing back and forth indefinately. Actually, I just looked, and I changed the default address to :blackhole:... Any ideas? Is this just something I have to deal with, or what's the deal? I don't want people sending out spam using an email address from my domain, if that's what's happening (I'm the only user of my domain).
  7. I'm writing a PHP script that will read the files in a particular folder, then make individual php files for each image file (each php file will be a page that contains an image). The master script will be located under /home/[username]/public_html/events/template/ , and the individual pages and images will be contained in /home/[username]/public_html/events/$eventname/ (where $eventname is some word to describe an event). In this case, I set $eventname to "test". >// $eventname and $folder are defined previously and $username is my Cpanel username $text = "/home/{$username}/public_html/events/{$eventname}intro.html"; $eventfile = file($text); $dir = "/home/{$username}/public_html/events/{$eventname}/"; $dh = opendir($dir); while (($file = readdir($dh)) !== false) { if ($file != "." && $file != "..") { $file = substr($file,0,strlen($file)-4); $files[] = $file; } } closedir($dh); $numfiles = count($files)-2; for ($i=0; $i < numfiles; $i++) { $file = fopen("/home/{$username}/public_html/events/{$eventname}/{${files}[$i]}.php", "x"); ///LINE 34 I receive the following error (again, I removed my Cpanel username): ><b>Warning</b>: fopen(): open_basedir restriction in effect. File(/home/[username]/public_html/events/test/img_1646-01_std.php) is not within the allowed path(s): (/home2/[username]/:/usr/local/sqmail/:/usr/lib/php:/usr/local/lib/php:/tmp) in <b>/home2/[username]/public_html/events/template/makepicpages.php</b> on line <b>34</b><br /> Any help?
  8. Thanks for the thoughts guys! It's gotta be a bug with Firefox... I don't think I've updated any of my extensions lately, so I don't know what would bring about the sudden problem... It seems as though Firefox is caching the file incorrectly; so when it's called, it places the wrong file contents in the layout.css file. Again, if I look at it in IE, or use FTP to download and view the file (layout.css), everything appear correctly... But, when I view the file directly in Firefox, it shows the wrong file contents/code... Very strange. Firefox displays the page correctly again as soon as I upload and rewrite the existing layout.css file (despite that they are the same). I'm not sure how Firefox knows that the file is "new" -- perhaps it compares the "Date Modified" or "Date Created" with the date of the cached file?
  9. OK, this has happened several times in the past few days... My main page at http://www.tornadocentral.com/index.php (or just http://www.tornadocentral.com ) includes a "layout.css" file ("@import url(layout.css);"). The file is located in that top-level folder -- http://www.tornadocentral.com/layout.css . For whatever reason, the contents of that file, when displayed in my broswer (Firefox v1.5), change after a few hours. Yes, they change. If I go to http://www.tornadocentral.com/layout.css, my browser shows the following: >// *** // Warnings Plug-In provided by SWIFT WX (www.swiftwx.com) // *** // Copyright (c) 2005 SWIFT WX, LLC. All Rights Reserved. // Visit http://www.swiftwx.com document.write('<table cellspacing=0 cellpadding=0 width=150 border=0 bgcolor="#000000">' + '<tr><td height=2></td></tr>' + '<tr><td align=center><IMG src="http://www.swiftwx.com/warnings/images/matrix-title.gif"></td></tr>' + '<tr><td align=center background="http://www.swiftwx.com/warnings/images/matrix-background.gif" style="background-repeat:no-repeat; background-position:center top">'); document.write('<table cellspacing=0 cellpadding=1 width="100%" border=0><tr><td colspan=2 height=20 style="font-family:Century Gothic,Arial;color:#00cc00;font-size:7pt"> Last updated: 10:33 AM CT</td></tr><tr><td width="13%" align=center><img src="http://www.swiftwx.com/warnings/images/SVR-matrix.gif" ></td><td width="87%"><a target=_blank href="http://www.swiftwx.com/bulletins.aspx?bulletinid=WUUS56-KOTX-131517" style="font-family:Century Gothic,Arial;color:#FFFFFF;font-size:7pt">-ID-Benewah County - 11:15 AM</a></font></td></tr><tr><td colspan=2 height=5></td></tr></table>'); document.write('<a href="http://www.swiftwx.com/home.asp?ref=PoweredBySWIFT" target=_blank><img align=right border=0 vspace=1 width=91 height=18 src="http://www.swiftwx.com/warnings/images/warnings-plugin-powered-matrix.gif"></a></td></tr>'); document.write('<tr><td align=m How did that get there? If I use an FTP program to download that exact same file (layout.css), it shows the following (I copies the layout.css file to another folder -- see http://www.tornadocentral.com/now/layout.css to see the true contents of the layout.css file): >body { background-color:#000000; color:#FFFFFF; font-size:1em; font-family:Verdana, Arial, Helvetica, sans-serif; width: 690px; scrollbar-base-color: #000000; scrollbar-arrow-color: #FFFFFF; scrollbar-darkshadow-color: #808080; scrollbar-shadow-color: #808080; } h1 { text-align:center; width: 690px; } h2 { text-align:center; width: 690px; } h3 { text-align:center; width: 690px; } {REST OF CSS FILE REMOVED FOR BREVITY} Anyone have any idea what is going on? I'm not sure I understand how this is even possible LOL. How can the contents of a file transferred via FTP be entirely different than the contents of the same file transferred to my browser? I've had to re-upload the layout.css a couple of times per day in order to fix the problem. However, after 12 or so hours, this problem emerges, and I need to re-upload the CSS file. I'm stumped! EDIT: OK, I have the following code in my index.php page: ><div style="position:absolute; top:325px; left:700px;"> <script language="javascript" src="http://www.swiftwx.com/warnings/warnings-plugin-matrix.aspx"> </script></div> The code that appears as MY layout.css is, incidentally, the same as (or similar to) that in "http://www.swiftwx.com/warnings/warnings-plugin-matrix.aspx" EDIT 2: This is very odd -- it's only a problem in Firefox! I just checked my page in IE, and everything shows as expected. If I clear my browser cache, the problem get fixed as well. Yet, though, it reappears after several hours.. Anyone heard this quirk? If this is correct, that means that people who read this thread and go to my page, will return and say "Huh? Everything looked just fine to me" since it appears as though it may be a (very wierd) browser bug.
  10. Thanks for the input guys. I've opened a ticket... Last I checked, the response was that it was being elevated to Level 2 support, but that was a couple hours ago. LOL How spoiled I am with TotalChoiceHosting support, that I usually get responses within 5 minutes so I get worried when this takes a couple of hours. :-)
  11. OK I made a test script that contains ONLY the following: ><?php header('Content-Type: text/plain; charset=utf-8'); // error_reporting(E_ALL); $test = file('http://www.google.com'); ?> The script is at http://grlevel3.tornadocentral.com/test.php . If you go to the page, you get the following error: ><br /> <b>Warning</b>: file(): php_network_getaddresses: getaddrinfo failed: Name or service not known in <b>/home2/tornado/public_html/grlevel3/test.php</b> on line <b>5</b><br /> <br /> <b>Warning</b>: file(http://www.google.com): failed to open stream: Permission denied in <b>/home2/tornado/public_html/grlevel3/test.php</b> on line <b>5</b><br /> It's really does look like something from the server-side that changed...
  12. That's what my first thought, but I checked the sites and they all work. For example, the script I copied above checks this site: http://www.srh.noaa.gov/data/WNS/SEVSPC , which works. Try this one: http://grlevel3.tornadocentral.com/metars.php?state=OK That script uses file('http://weather.cod.edu/obs/ok.metar') ... Checking that site -- http://weather.cod.edu/obs/ok.metar -- shows that there is no problem with the actually remote site. :-/ My other scripts pull sites from 3 or 4 different domains, all of which are currently working, and the scripts are still giving that same error. Did anything change on the servers? I think I'm on server 43, though I'm not entirely sure. I only ask because they've all worked just fine the past 9 months, but they all started giving that same error in the past 2 hours.
  13. I have several PHP scripts that worked an hour ago, but don't now... The error is the same for all the pages -- here's an example: Here's the code from that page (http://grlevel3.tornadocentral.com/validww.php ): ><?php header('Content-Type: text/plain; charset=utf-8'); error_reporting(E_ALL); $wwfile = file('http://www.srh.noaa.gov/data/WNS/SEVSPC'); if (!$wwfile) { echo "File could not be opened!"; } Again, I have 5-6 scripts that worked just fine an hour ago, but now they all give the error given above. Any help?
  14. Ok, I have little to no experience in PHP, but I'm hoping to learn soon! Here's the deal.. I yearn to leave static-HTML land! First, I suppose its easiest to see the issue at hand -- for example, please go to http://www.tornadocentral.com/chasing/2004/2004.shtml just to see how that page is layed out (the same as pre-2001, 2002, and 2003 as well if you so desire). Whatever the case, the layout of that page is essentially just a bunch of "logs" -- each day entry has the same format (Date -- location; total distance; target area; blah blah blah). I COULD continue to hard-type these pages using HTML, but I was wondering if there was a database method / PHP method of doing this much more easily... Are there online resources where I could find out how to do this? I'm assuming it will take me quite a bit to learn MySQL, PHP, etc ,so I'm looking for a webpage / online tutorial that is perhaps more focused on something such as what I am looking for... If you click on a particular date in that 2004 log (such as (http://www.tornadocentral.com/chasing/2004...4/052904.shtml), you'll see that that page, dedicated to a particular chase day, also has the same format as others ... In other words, I'm standardizing the clase log year pages (2004, 2003, 2002, 2001, pre2001) to have the same format, as well as making all the individual chase day logs (in 2004 at least) to have the same format... Hard-coding this in is somewhat time-consuming, since I find it easier to just use Notepad to type out the HTML rather than DreamWeaver or other wysiwyg webpage-aide... Any help? Thanks! Jeff P.S. - apologies for the semi-confusing post.. I've tried re-writing it, but I'm not doing a good job of putting into words what I am thinking... Ah well...
  15. Ahhh... I should have tried the username+domain.com for the username before! Oh well... It works! Thanks! Jeff
  16. I have several email accounts set up (namely the default -- tornado@tornadocentral.com, but also kc0hjx@..., and webmaster@...). When I go to http://tornadocentral.com/webmail, I cannot log in to either the kc0hjx or webmaster accounts. When the username/password box pops up, it does not accept the passwords for either of those. In order to view the email in those two accounts, I have to log into CPanel (as the default/main username), then go to "Manage Accounts", the click on "Read Webmail". This is a major pain in the butt, not to mention the fact that the users of those two accounts must know my own username and password to log into CPanel in order to view their webmail... What am I doing wrong? I've tried reseting the password numerous times, but it doesn't work. The only account I can log in to by going directly to tornadocentral.com/webmail is the main account (tornado). Jeff www.TornadoCentral.com
  17. Hmm... maybe I will have to throw it in an IFrame then... let me see what I come up with. Thanks guys! Jeff
  18. Alan, You can add my site if you wish! Thanks! http://www.tornadocentral.com Jeff Snyder KC0HJX
  19. Ok, so to say I am PHP ignorant may be an understatement. I actually know almost nothing about PHP. However, I did install the Advanced Guestbook (www.tornadocentral.com/guestbook) from cpanel. I was looking for some information about this, but I have seen very little (the www.proxy2.de website gives very little)... So here is my question.... I want to incorporate the guestbook into the layout of my website (www.tornadocentral.com). In other words, I want the menu on the left with the guestbook in the right portino of the page (just as the rest of the site is layed out). Now, I have read some on incorporating php code into html text, but I just don't know where the 'main' php code is for this guestbook. Well, all I know is that I can just write-up the HTML (actually , SHTML) and just use <? ... ?> to bind the php code... LOL my apologies for the basic question I am sure, but hey, gotta learn somewhere. Thanks! Jeff Snyder Tornado Central
  20. Woohoo! Works great. Thanks guys! Jeff Tornado Central
  21. Ok, I could have sworn I posted my more-length script and header on here, but I don't see that post here... so I'll add it again... Here is the beginning of my index.shtml file: And here is my whichcss.js file: Thanks guys for your help so far! Jeff
  22. Thanks for you help thus far! Unfortunately, the above code does not work. I have made 2 different CSS files for smallreso.css and highreso.css. However, they are not loading (well, importing) via the javascript code... Jeff
  23. First off,,, Thanks Scott!!! I was wondering, however, if I could just load a particular **.css file based on resolution. So instead of going to 1024.html or 1280.html, for example, have it just load smallreso.css or highreso.css ... That way I still only have one index.shtml file, but it could include hires.css or lowres.css depending upon the reso of the visitor... Thanks! Jeff Snyder
  24. Another question... I'm looking at changing how I display pictures on my site. My current setup is as follows: a frameset, with the narrow left frame and a large right frame. In the left frame is a column of thumbnails, which, when pressed, loads an html page into the right frame. The right frame, then, contains the more-'full-size' image and some other information. For example: go to www.tornadocentral.com/chasing.shtml, and click on Media>>May 8th, 2003. This whole 'frames' issue has it's problems, including the fact that 'frames' are so 20th century (LOL) and the fact that I run into problems when I do have more thumbnails (e.g. www.tornadocentral.com/chasing.shtml >> Media >> July 14th, 2003 or August 9th, 1999. Since I javascript the 'popup' windows to be a particular size, if the left-frame gets long due to many thumbnails, I end up w/ a scroll bar. Now, I could just cut that left frame in half and have a "(More)" at the bottom that, when clicked, will launch another left-frame file with the remaining pics. Since I have recoded the rest of the site to get rid of frames, I also want to de-frame my 'picture' pages. I have looked at various galleries, including Gallery and PhotoStack, but (a) I don't really have too many pictures, and ( I would like to retain all the text information that is displayed with each picture (e.g.. date, location, heading, other information). Any suggestions? Thanks! Jeff Snyder www.tornadocentral.com
  25. Ok all... I'm not very javascript-skilled. So I'm wondering if someone out here can lend me a hand... I want to load a particular css style-sheet depending upon the screen resolution of the visitor. For example, I'll have one style sheet for those w/ < 768x1024 and another stylesheet for those w/ a screen resolution greater than that. This way I can layout my pages with fixed widths, yet still allow some screen efficieny (e.g. to minimize both lots of open spaces for the larger resos and to minimize the need for scrolling for those w/ lower resos). I was using a script similar to this, except it would maximize the browser if it were smaller than a given dimension... e.g: ><script language="JavaScript"> if (screen.availHeight <= 768 || screen.availWidth <= 1024) { if (navigator.appName=="Netscape") { if (top.screenX>0 || top.screenY>0) self.moveTo(0,0); if (top.outerWidth < screen.availWidth) top.outerWidth=screen.availWidth; if (top.outerHeight < screen.availHeight) top.outerHeight=screen.availHeight; } else { self.moveTo(0,0); self.resizeTo(screen.availWidth,screen.availHeight); } alert("Your web browser has been maximized for better viewing of Tornado Central."); } </script> Can someone help me out? Thanks!!!!! Jeff Snyder www.tornadocentral.com
×
×
  • Create New...