Search results

  1. L

    PHP, \n, and file formats

    Is there a way to get PHP to deal with an input file independently of OS encoding? I'm trying to filter based on \n but get crap when stuff like \r comes into the picure. I'd prefer to stick to explode() rather than regular expressions, though I can convert over.
  2. L

    Chaining PHP include paths

    I'm attempting to integrate an existing software package with a custom deal of my own. Each has a series of include directives, and they're currently incompatible. The base package needs to include /inc1, /inc2, and /addon/includes The addon package needs to include its own ./inc3 and...
  3. L

    Regular expression help

    Hey, I'm trying to get some regex magic to work I've got data heirarchically composed by <tabs>["section"] = { ... ... ... <matching tabs>} where <tabs> and <matching tabs> are an indeterminate, but matching, number of tab characters. Due to heirarchy, it's possible to have subsections...
  4. L

    BIND help -- host a home domain

    I'm trying to rig up BIND to be the primary DNS for my home domain, but I'm not grasping what needs to be done. Main config: zone "lomn.com" IN { type master; file "lomn.com.db"; allow-update { none; }; }; lomn.com.db: $ORIGIN lomn.com $TTL 86400 @ IN SOA...
  5. L

    The "What WoW Realm do you play?" Thread (World of Warcraft)

    Since there are several threads on "I want a group... but you're not on my realm," let's consolidate who plays where on World of Warcraft. I've loaded the thread title with keywords for easy search location. Please list realm / faction / name at a minimum. Level shifts, so that may be too...
  6. L

    Enabling Remote Desktop (Inbound)

    I think this is a "lomn is stupid and forgot a setting" problem, but I can't figure out what that setting might be. At home, I've got a couple of WinXP Pro systems I'd like to be able to access remotely. I can VPN to the LAN and then run RDC from there. However, RDC will only successfully...
  7. L

    Help with map representation

    I'm trying to whip up a system to help me run Diplomacy games over email by having a system for users to submit their moves via web form. Ideally, this should examine the current state of the game and only allow legal moves. For those who aren't familiar with Dip, here's the quick summary...
  8. L

    Halo 2 + Widescreen?

    Can't figure this one out... I'm hooked into an HDTV 16:9 monitor. Xbox settings appear correct (widescreen, 480p = yes), but Halo 2 isn't scaling appropriately. All other widescreen 480p games are fine. Any thoughts on where to look to fix this?
  9. L

    Forum heirarchy links at the bottom?

    Before the last big overhaul, the heirarchy links now at the top (hardforum > hardforum info > forum help & feedback, etc) were also at the bottom of threads, convenient for clicking after finishing a read. Any chance they can be put back there?
  10. L

    Setting PHP parameters in .htaccess

    I'd like to set PHP's include path via .htaccess. Fairly simple overall php_value include_path .:/my/new/dir The problem: I'd like to do it so that it appends the existing path, resulting in .:/my/new/dir:.:/usr/php/include:.... Any ideas?
  11. L

    CSS Demo feedback

    I'm generally unsatisfied with documentation for what makes the various CSS selectors tick. There are a couple good references out there for what a given selector does (http://css.maxdesign.com.au/selectutorial/ is one such reference) but they tend to lack a page of "Here's where this rule does...
  12. L

    PHP Class Constructor -- Alternative Return

    One major question, one semi-related minor question: I've got a class whose constructor takes some arguments and uses those to pull data from a database. However, it's entirely possible that the arguments won't find squat in the database. Can (and how can) I cause the constructor to just...
  13. L

    logo request -- football theme, $25 paypal

    <Insert usual "No PS skills, want a logo" intro> So I'd like a logo for a software project I'm working on, a fantasy football league manager deal. I don't have much particularly in mind, but prefer simple / clean instead of loud / noisy. Project name is "Online Fantasy Football League" or...
  14. L

    LCD: Prioritize response or DVI?

    So I'm shopping around for a ~19" LCD that'll be used for all sorts of stuff (coding through gaming). Poking around NewEgg under those constraints, I'm noticing that LCDs with 16ms response times (like this Acer AL1912m) lack DVI while the DVI LCDs (like this Spectre X9s) are all 25ms response...
  15. L

    Trying to understand MySQL MAX_QUERIES_PER_HOUR

    Let's say I've got a web host that sets my MySQL account to have a MAX_QUERIES_PER_HOUR of 1000. Does that mean I can issue 1000 SELECT statements in the time frame, or issue SELECT statements totalling 1000 rows returned in the time frame? I can't figure out if this setting treats all...
  16. L

    CVS help (version numbers)

    I'm working specifically with WinCVS, but I figure even pointers for command-line CVS will push me in the right direction. I can't figure out how to specify the level of version update... That is, I created a module and it gave everything a version of 1.1.1.1. However, any time I commit...
  17. L

    Looking for site / UI feedback

    You know the drill -- thoughts, comments, "WTF you thinking moron?!?"s, errors, and so on. http://www.lomn.net/offl/ Notes: login/pass is hard/forum Please don't go changing the password. Validation isn't done yet (go ahead and point out egregious errors if you see them, though) Forum is...
  18. L

    Eat that cookie!

    I'm working with a script that includes a remember-login cookie. However, I'm having trouble killing the cookie. Under normal conditions the cookie contains a hash plus expiry of two weeks later: setcookie(COOKIE_NAME, md5($login_string), time() + 3600*24*14); Here's the relevant logout...
  19. L

    Darn you SQL, what is it this time?!?

    Getting an error in SQL syntax and can't figure out why: (PHP + MySQL, using mysql_error()) table structure (table called 'players'): Field Type Attributes Null Default player_id smallint(5) UNSIGNED No auto_increment lname varchar(50) Yes NULL fname...
  20. L

    PHP -- get current file name

    OK, here's the goal: I want to prevent direct access to some include files with some config variables. I can't guarantee the files will sit outside of the webserver's document root. What I'm thinking is to compare the $_SERVER["SCRIPT_NAME"] (that is, the URI) against the filename of the...
  21. L

    Can't see some posts

    I've noticed on occasion that some thread replies, which appear on a forum thread list, aren't visible to me in the thread itself. For example, some thread a subforum shows 1 reply on the forum page, but when I view the thread, I only see the original post. I've checked and my ignore list...
  22. L

    Transitioning to PHP 5

    I figure this'll come up a lot over the next few weeks, so I'll note what I've found so far: Change #1: MySQL support is no longer enabled by default. Reasons: License conflicts between PHP's BSD-style license and MySQL's GPL, plus possible inconsistencies due to asymmetric updates. What...
  23. L

    phpDocumentor -- minor syntax question (HTML escaped characters)

    If anybody plays with phpDocumentor, I've got a minor question. The manual clearly shows and says that I should be able to use the various &amp;-escaped characters, as in @copyright Copyright &copy; 2002, Gregory Beaver The problem I've got is that when I try something like that, I get...
  24. L

    security risks from <img src=?

    For a project I'm working on, I've got an option akin to forum avatars. I'd like to be able to support uploading images as well as linking remote images. Anyway, I can do security checking on file types being uploaded without an issue, but I don't know that I can do much screening beyond...
  25. L

    CSS class inheritance

    I'm trying to figure out a better way to define a color scheme for a web site. What I'd like to do is completely separate color / background-color from the rest of the style info. That is, if my color base changes from blue to red, I don't want to dig through all my style sheets changing...
  26. L

    (Football) Scheduling Algorithm

    I'm playing around with a fantasy football system I came across on SourceForge trying to add a bunch of capabilities it lacks. Anyway, one of the nuisances is that the schedule has to be created in completely manual fashion. I figure there's got to be some way to automate this, but I'm having...
  27. L

    Javascript and <select multiple>

    OK, I've got a form that I dynamically change the contents of via javascript with commands like document.forms.formname.selectfieldname.options.length = 0That's all good for regular select fields. The problem is, I want to do this for a field of the type <select multiple...
  28. L

    Periodic function for web app

    I've got a web site I'm working on (mostly PHP) and I need to run a function periodically; for instance, every day at 2AM or the like. Any recommendations on how to set this up (for example, is there a way to run a PHP file as a cron job, and if so, how) ? As a follow-on, is there a way to...
Back
Top