Jump to content

taith

Members
  • Posts

    1,514
  • Joined

  • Last visited

Everything posted by taith

  1. hello, i have the following rewrite rules, which work wonderfully, however it is overpowering any subdomains i create... does anyone know the rewritecond so that it will not continue with the rule if there is a subdomain(excluding www)? RewriteEngine on RewriteBase / RewriteCond %{REQUEST_URI} !staging/$ RewriteCond %{REQUEST_FILENAME} !-f RewriteRule ^(.*)$ site.php?s=$1 [L] basically url.com and www.url.com <-- rewrote, and no others...
  2. and for the record, yes, i do mean "{behavior:url();}"
  3. hello, im just wondering if theres a behavior attribute that firefox/chrome/safari/etc support? it seems to be ie only :S
  4. taith

    Th/td Issues

    yes, im aware of using classes, i was hoping that it would be doable without...
  5. taith

    Th/td Issues

    i dont want it to select the th tho... i want it to select the tds, but ONLY IF there is a th in the table... something tells me css cannot do this
  6. taith

    Th/td Issues

    that would select all tables, or if with a class/id modifier... im looking for a way of css automatically detecting if theres a th child... essentially id expect it to look like this... table<th td{}
  7. taith

    Th/td Issues

    i need one that goes the other way, that matches any E element that has an F child
  8. taith

    Th/td Issues

    im pretty sure i have it backwards somewhere... i need to select the tables with the th children, not selecting the th itself
  9. taith

    Th/td Issues

    hello, im looking to add some automation to my css... what im looking for, eventually, is for it to automatically detect when theres a th tag, and select the tds thereafter... however, for some reason, its not even detecting the tables with th's... what am i doing wrong? <!DOCTYPE html> <html> <head> <style type="text/css"> table~th{ background:red; } </style> </head> <body> <table> <tr> <th>test</th> </tr> <tr> <td>test2</td> <tr> </table> </body> </html>
  10. aha! mybad! was aparently missing a file... strange error to get tho... thank you VERY kindly for your help!
  11. sorry, that was my tinkering to try get it working again... and no, it is still failing... RewriteEngine on RewriteBase / RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^(.*)$ site.php?s=$1 [L]
  12. RewriteEngine on RewriteBase / RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^*$ site.php?s=$1 [L] is still ISE'ing... when i remove the rule, everything works happily... :S
  13. hello, ive lately been having a mod rewrite error, and i was hoping someone could help... RewriteRule ^(.*)$ site.php?s=$1 [L] it should be turning "url.com/pagenames/id" into "site.php?s=pagenames/id" but its just giving me a 500 internal server error. help?
  14. Hello, I'm looking for a better serialize() function. the php one has a fault of counting the slashes, before stripping them out, making the deserialize() fail, because the actual string count, is different from the string count as referenced... does anyone have one already?
  15. aaaah before session start silly me... tyvm
  16. i just tried this, and it doesnt seem to effect session cookies... $currentCookieParams = session_get_cookie_params(); session_set_cookie_params($currentCookieParams["lifetime"],$currentCookieParams["path"],'.website.com',$currentCookieParams["secure"],$currentCookieParams["httponly"]); with the real website of course. and using the root domain, or any subs, it starts a different session for each
  17. hello, im looking for a way of maintaining a single session across sub-domains... for example. domain.com shop.domain.com each starts its own session, i need a way of preserving that session across both. any thoughts?
  18. first tip: start do logon, then character selection screen and build from there on out... php games generally require a considerable amount of math and ALOT of time to build(and rebuild)
  19. i agree... assume that 100% of your players are exploiting bugs, and 110% of your players are hacking... that way, all your surprises are pleasant.
  20. spaces are only for user viewing... processer doesnt care
  21. thank ya kindly for those that have need of it... <? function exc($string){ $out=array(); for($i=0; $i<strlen($string); $i++) $out[]=$string{$i}; return $out; } function stb($s){ $s=exc($s); foreach($s as $k=>$v) $s[$k]=str_pad(decbin(ord($v)), 8, "0", STR_PAD_LEFT); return implode('',$s); } print_r(stb('test')); ?>
  22. no, its a string... like "test" becoming "01110100011001010111001101110100" and decbin(ord('a')) works, but it seems to remove preceding 0s but allinall, it'll do
  23. does anyone know if there is a builtin ascii to binary converter? i know i can just $a=array('a'=>b'01100001','b'=>b'01100010'); but is there a more resource efficient way of doing this?
  24. just wondering why this function never works? when it clearly is part of php http://ca3.php.net/rename_function
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.