Jump to content


  • Content Count

  • Joined

  • Last visited

Community Reputation

0 Neutral

About WxGuy1

  • Rank
    Family Friend
  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
  • Create New...