Jump to content

DarqFlare

Members
  • Posts

    2,215
  • Joined

  • Last visited

Everything posted by DarqFlare

  1. Whoops. Never mind, I found it. Apparently IE doesn't like <script ... /> instead of <script ...></script>
  2. For some insanely strange reason, I cannot get my site to load in IE if I have Javascript files included... robertzone.com Try it in FF and IE... When it loads in IE nothing shows but the background (And IE has image problems too, it seems.. Time to retry some colors). Any ideas why IE won't load it if JS is present?
  3. I'm using the exact script I offered above and it gives me all of the graphics correctly... Not sure where the problem may lie.
  4. Didn't neccessarily have what I was looking for... :-/
  5. So I'm about to venture into the streaming audio and video realm. I've been trying to research it as best I can, but I just haven't been able to find a definitive-enough source out there... At the rate I'm going, I may need to find a published book on the subject from B&N or Borders, but I'm trying to avoid that. Thus, I am turning to my family here at TCH. - So here's the gist of it: I want to offer streaming a/v on my dedicated server. I'm pretty aware I need to have server-side support for this, so I need to know what that entails. - I'm a little bit lacking on the HTML code neccessary to get streaming a/v working on the browser side, although I think I found most of it (Apple's website was a bit... well, useless to me, to get it working). - I want to offer more than just Windows Media-based file formats to offer my users some flexibility. I was planning on using Windows, Real and Quicktime. Should I add to this list or drop one of them? - I'm also lacking on what specific file formats will work for streaming a/v. I know you can stream using these three programs, but I don't know what formats (And for that matter, file extensions) they support. - I'm unfamiliar in how to format the files to make them stream-ready. I believe Quicktime files require an actual modification to the file itself to enable it for streaming, but I think Real files don't need to be modified... - I also need to know how to remaster the files so I can provide low-, medium- amd high-bandwidth solutions. If there's a way to do this in the streaming itself, that would be great. - Last, but not least, I need to know what kind of performance I can expect to see on my server by offering this... If it will interfere with other functions, and how many concurrent users I could expect to support... Well, and knowing if a dedicated server at TCH can handle this as well. Thanks for the help everyone. I know this is quite a bit and I hope I covered most of my bases. I am not concerned about bandwidth here, just on how to get it started. If we end up coming short on bandwidth, we'll work something out, but getting started in the first place would be nice.
  6. Whoops, just noticed an error on it. Change the following: $Config = "?config=" . $VARS["Stats_Website"]; to $Config = "?config=$site";
  7. Alright kids! Here's a new improved v2.5 v3.0 script. Want to know what's new? 1) Cleaner & smarter code. 2) Form changed to explicit GET. 3) Removal of for-loop for POST. 4) Script auto-detects name, thus removing the hardcoded "awstats.php" and allows renaming. 5) Better and more robust cURL error reporting. 6) Image handling! It will now use cURL to load the images directly from CPanel, thus removing the requirement of installing the images locally. 7) Switched to explicit usage of $_SERVER. 8) Enjoy! ><? /************************************************************************/ /* AWStats Access 3.0: Provides access to AWStats outside of cPanel */ /* ============================================ */ /* Created for and by members of TotalChoiceHosting.com */ /* Copyright © 2006 by TotalChoiceHosting.com */ /* */ /* This file is part of AWStats Access. */ /* AWStats Access is free software; you can redistribute it and/or */ /* modify it under the terms of the GNU General Public License as */ /* published by the Free Software Foundation; either version 2 of */ /* the License, or (at your option) any later version. */ /* */ /* AWStats Access is distributed in the hope that it will be useful, */ /* but WITHOUT ANY WARRANTY; without even the implied warranty of */ /* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the */ /* GNU General Public License for more details. */ /* */ /* You should have received a copy of the GNU General Public License */ /* along with Foobar; if not, write to */ /* Free Software Foundation, Inc. */ /* 59 Temple Place, Suite 330 */ /* Boston, MA 02111-1307 USA */ /************************************************************************/ require("config.php"); if(!isset($_SERVER["PHP_AUTH_USER"])) { header("WWW-Authenticate: Basic realm=\"Site Statistics\""); header("HTTP/1.0 401 Unauthorized"); echo "Authorization Required."; exit; } else if(isset($_SERVER["PHP_AUTH_USER"])) { if(($_SERVER["PHP_AUTH_USER"] != $username) || ($_SERVER["PHP_AUTH_PW"] != $password)) { header("WWW-Authenticate: Basic realm=\"Site Statistics\""); header("HTTP/1.0 401 Unauthorized"); echo "Authorization Required."; exit; } else { if(isset($Image)) { $Curl = curl_init(); curl_setopt($Curl, CURLOPT_SSL_VERIFYPEER, 0); curl_setopt($Curl, CURLOPT_SSL_VERIFYHOST, 0); curl_setopt($Curl, CURLOPT_RETURNTRANSFER, 1); curl_setopt($Curl, CURLOPT_URL, "https://$site:2083/" . $Image); curl_setopt($Curl, CURLOPT_USERPWD, $cpnlusername . ":" . $cpnlpassword); curl_setopt($Curl, CURLOPT_RETURNTRANSFER, 1); $Output = curl_exec($Curl); if(curl_errno($Curl) > 0) { curl_close($Curl); exit; } curl_close($Curl); } else { if(empty($framename)) { $Config = "?config=$site"; } else { $Config = "?" . $_SERVER["QUERY_STRING"]; } $Curl = curl_init(); curl_setopt($Curl, CURLOPT_SSL_VERIFYPEER, 0); curl_setopt($Curl, CURLOPT_SSL_VERIFYHOST, 0); curl_setopt($Curl, CURLOPT_RETURNTRANSFER, 1); curl_setopt($Curl, CURLOPT_URL, "https://$site:2083/awstats.pl" . $Config); curl_setopt($Curl, CURLOPT_USERPWD, $cpnlusername . ":" . $cpnlpassword); curl_setopt($Curl, CURLOPT_RETURNTRANSFER, 1); $Output = curl_exec($Curl); if(curl_errno($Curl) > 0) { echo curl_error($Curl); curl_close($Curl); exit; } curl_close($Curl); if(empty($framename) || ($framename == "index")) { $Output = str_replace("src=\"", "src=\"" . $_SERVER["PHP_SELF"] . "?", $Output); } else { $Output = str_replace("src=\"/", "src=\"" . $_SERVER["PHP_SELF"] . "?Image=", $Output); } $Output = str_replace("<form", "<form method=\"get\"", $Output); $Output = str_replace("action=\"", "action=\"" . $_SERVER["PHP_SELF"] . "?", $Output); $Output = str_replace("href=\"", "href=\"" . $_SERVER["PHP_SELF"] . "?", $Output); $Output = str_replace("href=\"" . $_SERVER["PHP_SELF"] . "?http://", "href=\"http://", $Output); $Output = str_replace("awstats.pl?", "", $Output); } echo $Output; } } ?>
  8. And she became known as "Dances With Seals"...
  9. Yeah, I hope I have a bit more free time so I can actually pop in once in awhile.
  10. Good lord! I'm back! Well, at least for a little while. Life seems to have taken all my time. Augh. I began back in June 2003 on $10/month. And that was a lot back them for me, let me tell ya. And for $10/mo, I was mighty happy. Rock solid service, much better than my old host. I gradually upgraded plans as time went on and purchased additional plans for my websites. I combined them all into a reseller at some point, and grew pretty large... Then came the big jump. Dedicated server. I've been here at TCH for a long time now. This summer will mark completing my third year here, having moved up from one of the lowest possible plans to a fully managed and dedicated server for all my happy sites. I'm extremely happy here. TCH has been very good to me and very reliable. There have been hiccups along the way, as must be expected, but the way they were dealt with was impressive. Servers were fixed quickly, servers were switched if they needed to be... All of my support issues have been dealt with and fixed in a timely manner. So yeah. Just surfing through TCH again and felt a nice retrospective on my almost 3 years here would be nice.
  11. It's been awhile since I was in here... Just wanted to give a big shout-out for Andy. My site was having access problems for about 10 hours, and I couldn't figure out why. Basically, I was shooting in the dark in regards to trying to figure out what the problem was. Andy found that a certain included PHP script was timing out on my site. I went in and found three specific lines that were causing the holdup. It didn't make sense, because they were three eregi_replace() lines consecutively that had worked for the last, oh, three years. Thus, he suggested that the problem may lie in it those functions were being passed a gigantic string. Well, it just so happens that those three lines targetted \r\n, \r and \n in order. And there was a new post on the blog on my site that had a massive number of newlines. Kudos to the man, Andy. The other side of the pond knows how to think outside the box. I'll go crawl back into my hole now.
  12. Whenever I have a result set in phpMyAdmin to display in the right pane, it just reloads the frame that was there previously... Is the result set is 0 rows, it returns "MySQL returned an empty set" and whatnot... Any ideas? It's some configuration error in the software...
  13. Didn't work. It still broke through the bottom of the div...
  14. I've got a table that floats right inside of a div. If the table is too long, then it extends outside of the div at the bottom. I need the div to simply wrap at the bottom of the table, rather than the table overlap the div. I figured since the table is inside the div there would be no problem, but I was wrong: http://www.unlvrebelyell.com/section.php?ID=3 Any ideas? I couldn't find any CSS that would help.
  15. Wow nice stuff. If I ever get a dedicated server, though, it'll be your standard stuff.
  16. Google's been rock-solid on my dynamic URL website, omgn.com, so it just takes time.
  17. We've already got our cart to calculate the most possible shipping for distance, UPS' Zone 8, so we are covered if it actually costs the extreme amount. Since installing what I just mentioned, the totals seem to be coming out realistic. I guess we'll see.
  18. Well, we're going with UPS, and this is what I have so far... UPS goes by either actual weight or dimensional weight. You calculate dimensional weight by multiplying the three dimensions then dividing by 194... Whichever is higher, actual or dimensional, is the weight used. I may just have it go through all of the products, one by one, and add in to a running total the "used weight" of the item... Then use that final total for the UPS shipping table.
  19. But the problem is doing it effectively. Sure, I can calculate volumes, but my cart has to be able to rotate things to fit into boxes, etc. That's not even remotely easy. I checked about this online to find that this particular problem is tackled by people attempting their masters in Computer Science...
  20. We won't ship outside the 48 states, and our cart is custom-built... by me. We won't factor the shipping into each item because then it will raise our item prices higher than our competitors, despite "free shipping." On the by and large, people compare vendors by the prices of items rather than the shipping amounts, so we'd get the short end of the stick by people just cruising by looking for the best deal...
  21. Ahh yes, a Vegas Decade... Things have changed quite a bit in my 7 years here... Good stuff, Google Satellite Maps! These maps are still a bit old. The satellite imagery of UNLV in Vegas is old, at least by 3 years.
×
×
  • Create New...