Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
K

keegan

@keegan
About
Posts
202
Topics
55
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • php question about headers
    K keegan

    Hi guys. I have a simple question. I'm streaming one file from one host to another, for various reasons. I have, say, a .rar file on one host, and the download link is on another. Let's call the place where the fle is host A, and where the lin kto the file is host B. Im doing this using the following code, on host A:

            $file = "http://www.myhost.com/file.rar"; 
            header("Content-disposition: attachment; filename=".basename($file)."");  
            readfile("$file");
    

    Now i'm curious as to whether or not this counts as bandwidth for host A, as well as for host B. I assume it's like adding the google logo to my website, it uses google's bandwidth, not mine. However, in the download window, it says "Downloading file from Host A." But, that could just be because it's streaming it. So... does anyone know? :) *.* cin >> knowledge;

    Web Development question php com

  • getting apache username with php/python
    K keegan

    Hi. I need to get the username of people when they log into a secure area of my website. (I want to do it in php, so i can output each login with an IP, people keep passing out the password, i want to see what logins have multiple IPs). Is there a way to do this in PHP or python? Im using apache with cPanel. Thanks. *.* cin >> knowledge;

    Web Development python php apache question

  • opening files from a program
    K keegan

    if you want an external program to open with the file (like notepad, for instance...) use the you could system() command. like:

    if(password == paswd)
    {
    system("notepad file.txt");
    }

    that comes from the command prompt commands. you can actually type "notepad file.txt" in a command prompt, and it will execute notepad, with the file. There's other ways using various window commands to open applications, but thats a pretty simple way. *.* cin >> knowledge;

    C / C++ / MFC help security question

  • Novell Netware Client for Linux?
    K keegan

    well, i noticed that, but the 249MB download size turned me off, as im on lowly dsl here at work. Plus, thats got a whole lotta extra baggage. I suppose i could let it download overnight... i think i was looking more for something on the simpler side, heh, but i suppose this will have to do. *.* cin >> knowledge;

    System Admin linux question

  • Novell Netware Client for Linux?
    K keegan

    I've been googling all day long trying to find a novell client for Redhat. I stumbled on the NovelClient, but that keeps giving me errors, and i haven't gotten a response from anyone yet on the forums. Does anyone out there know of a descent Novel Client they've used in linux? All im looking to do is copy some files over onto a mounted drive here in linux from novel. :( *.* cin >> knowledge;

    System Admin linux question

  • making nightly backups of a samba server
    K keegan

    i already did that, but my c++ knowledge of linux time isn't good enough. I'd have to make a program that checks the time every so often and runs the tar command if the time is correct. but i don't really want that, it seems it would be a resource hog. *.* cin >> knowledge;

    System Admin sysadmin linux tools question

  • making nightly backups of a samba server
    K keegan

    Does anyone here use any external utility to backup in linux? My boss wanted me to explore around with samba and linux to see how easy it would be to set up a file server with domain logons, and i've got that down pretty good. However, i've been googling, and the best i can find is to either manually do it with a tar command every time i wanna do it, or use AMANDA. I just want to backup user directories (everything in /home). Whats the best way to do this? *.* cin >> knowledge;

    System Admin sysadmin linux tools question

  • Some awesome little films
    K keegan

    for your friday enjoyment: http://www.pleix.net/films.html[^] make sure you watch e-baby, its totaly amazing. :) *.* cin >> knowledge;

    The Lounge csharp html

  • Odd apache error
    K keegan

    Well, i wrote a parser for my logs in apache, and this error has occured over 3000 times in the past 2 weeks: No directory () for Hostname www.thekeegster.com does anyone know what this means? I've been googling, but i haven't found anything. Its clogging up my errorlog, its amazing how many occurences there are of it. I'm runnin apache 1.3 on Linux *.* cin >> knowledge;

    Web Development apache com linux help question

  • Excel and c++
    K keegan

    you can make the output go into a *.csv file, a comma seperated value file, which can easily be imported into excell. *.* cin >> knowledge;

    C / C++ / MFC c++ question

  • What do the '<...>' operators do with reference to inheritance here?
    K keegan

    it's for templating. a quick look at msdn shows template< class ThreadModel> class for

    CComObjectRootEx

    . templates are extremely useful if you have a class or function that should take in more than one object type (like a string, or an int...it saves the time of having to write multiple instances of code to handle different containers.) check out templates on msdn. :) *.* cin >> knowledge;

    Managed C++/CLI c++ wpf com linux oop

  • Blocking Recursive downloads (wget)
    K keegan

    yeah, i was thinking about using mod_throttle, but unfortonately, there's a bandwidth cap on my server (i live in a dorm room, people on campus get great speeds, but anywhere off campus...slowness) so it would be hard to gague what the timeouts should be. :-/ *.* cin >> knowledge;

    Web Development apache linux agentic-ai question

  • Blocking Recursive downloads (wget)
    K keegan

    Welp, i'm relatively new to linux, and i just got apache installed and running for my website. I'm wondering if there's a way to blovk recursive downloading. I've blocked wget, but it's nto working...people are changing the user-agent variable and spoofing it as Ie 6.0 does anyone know a way to prevent recursive downloading altogether? thanks :) *.* cin >> knowledge;

    Web Development apache linux agentic-ai question

  • BestBuy Bucks auction?
    K keegan

    clickitey[^] interesting. so long as the bid stays sub $100, you could make a profit. *.* cin >> knowledge;

    The Lounge com question

  • Good Halloween Party drinks
    K keegan

    I went to a party last night, and they had rum and cider. It was the best mixed drink i've ever had. Do you guys have any favorite halloween drinks? WE're goin to some byob parties tonight, and we'd like some ideas. :) *.* cin >> knowledge;

    The Lounge question

  • Free SSH server for windows?
    K keegan

    Hmm. I've been looking for a few days now without much look for a free ssh server for windows. I found one, but it was impossible to set up. All the others i've found cost more than i make in a year. Has anyone used a descent ssh server? Im running XP pro, and i'm restricted to telnet for now. Any suggestions would be greatly appreciated. *.* cin >> knowledge;

    The Lounge sysadmin question

  • does anyone overclock?
    K keegan

    Welp, im bored, and i've been fooling around with the bios settings on my AMD 1.1, and i noticed it said i could set the clock speed up to 1.4. is this safe? and, does anyone else overclock? *.* cin >> knowledge;

    The Lounge performance question

  • should i install server 2k3?
    K keegan

    if i got server 2k3, the sole reason would be for me to get familiar with it, providing me with background knowledge of information. think that's covered? :) *.* cin >> knowledge;

    The Lounge apache com sysadmin performance help

  • should i install server 2k3?
    K keegan

    hm, thats good to know. but what about the web server protocall? Im used to apache, i've been using it for a year or so. does server 2k3 (web edition) usurp apache? and, is it difficuilt to configure? i have no trouble figuring stuff out, i love it, but im more concerned with keeping my website alive. heh. *.* cin >> knowledge;

    The Lounge apache com sysadmin performance help

  • should i install server 2k3?
    K keegan

    Ok, im a comp[uter science major at a university here in michigan, and i have acess to msdnaa.com's programs. I currently run my website off a windows XP machine, its an AMD 1.1 with 240 mb or memory. Im bored, and its sunday, so im thinking about installing server 2k3. But, alas, im scared. :( i'm unfamiliar with the 3 versions i have (professionsl, enterprize, and web editions) so i dont know what to do. does anyone use any of those versions for web server? I currently use apache, and i would like to stick with it. help. :) i need suggestions. *.* cin >> knowledge;

    The Lounge apache com sysadmin performance help
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups