Jump to content

taith

Members
  • Posts

    1,514
  • Joined

  • Last visited

Everything posted by taith

  1. ahhhhhhh the wonderful world of emails(how i hate them)... http://php.net/strip_slashes that'd clear up your excess \es mail($a, $subject,strip_slashes($yep),"To:\nFrom: $from\nMIME-Version: 1.0\nContent-type: text/html; charset=iso-8859-1");
  2. srand() is a function that seeds the rand() function's generator... giving it a more... randomeyness().... tho as of php 4.2.0, this function is depreciated(not necessary) seeing as rand() does it on its own naturally now as far as that code... basically... its taking the microtime(a timestamp, with miliseconds), and multiplying it by 10 million, and using that as a seed... seeing as every time the page loads, the microtime changes, it'll consistantly be giving the srand() a new number to seed (more randomeyness)
  3. you have to create an image specific file... that contains the header defining it as an image... 100% seperate from your normal html file... hence you'd draw to it as <img src="image.php"> in which image.php is where you draw your php image, and set that header.
  4. firstly... theres no : at the end of message.php:... and secondly, is it outputing the script? if so, is there a js error? if not, your not passing $_GET[update] to the page thats calling for the popup
  5. as far as when you click on a link, the "problem" with sending referrer information would be coming from the browser, not the server... but if you are to use cURL to pull web information cross-server, you are then able to modify, most of the referrer information that is sent to the remote server...
  6. hey everyone i'm using the following mod rewrite, and it doesnt seem to be working 100% RewriteEngine on RewriteRule ^images/.*$ - [PT] RewriteRule ^jscripts/.*$ - [PT] RewriteRule ^(.*/.*)$ index.html?s=$1 [L] it works as long as the url is "http://url/whatever/" but if you leave out the first / on the first bit after the server... it treats it like a folder/file, and skips that rule... anyone know how to fix it?
  7. <?php $f = fopen("/home/alport/public_html/".$_SESSION['s_username']."/text/profile.txt", 'w'); fwrite($f, stripslashes($_POST['save'])); fclose($f); header('Location: home.php?action=change'); ?>
  8. what are you talking about? .htaccess is allowed... else i wouldnt be troubling with this... globals are for php, not apache's rewrite engines... and why would i need to use another method? this way works perfectly, save for those 2 folders i want it to ignore...
  9. i tried that... only gave an internal server error... i also tried turning the rewrite engine off, which worked when accessing them folders by url, but was still blocking the urls from html(images/, jscript/)
  10. hello again i'm trying to use this mod-rewrite to change my url.com/test/script to url.com/index.html?s=test/script RewriteEngine on RewriteRule ^(.*/.*)$ index.html?s=$1 [L] which works all well and good... but its mucking up with an images/js files in folders also... anyone know how to set that conditional to ignore "images/" and "jscripts/" folders?
  11. aaah... fresh set of eyes... tyvm for the idea!
  12. does anyone know how to do any dynamic based mod rewrites? for example: url.com/admin/usermanager/edit/5 to url.com/index.html?page=admin&op=usermanager&div=edit&id=5 as well as url.com/photogallery/4 to url.com/index.html?page=photogallery&id=4 the url can use upto 3 string, and 2 integers... and every combination/order thereof... like... url.com/4/photogallery to url.com/index.html?id=4&page=photogallery anyone know if this is even possible without writing out each possibility?
  13. potentially is right... i didnt even know they existed THANKS! if you wanted to know... it returned to a chance of 1 in 8136650354870977395640529009731138548080998984460572146819020807071579461326726155773809710493360659521610710335558227950040215687925049116669115162904185194522776904863440174089821348578323751250169567284370740210436552533589035648782408122229136327260717040309270543913129533866009036478940137705645645817253059961713589113147849546433474284955339391514746837563446514417664000000000000000000000000000000000000000000000000000000000000000000000000000000000000
  14. hey... i was just calculating some "simple" probability on my math based security... and... aparently its not so simple... short form 62*30!*62*31!*62*32!*62*33!*62*34!*62*35!*62*36!*62*37!*62*38!*62*39!*62*40! calculated out... thats 50586747561369659529427898714959185444864000000000*1264668689034241488235697467873979636121600000000*32427402282929268929120447894204606054400000000*853352691656033392871590734058015948800000000*23063586260973875483015965785351782400000000*640655173915940985639332382926438400000000*18304433540455456732552353797898240000000*538365692366336962722128052879360000000*16314111889888998870367516753920000000*509815996559031214698984898560000000*3795156301928272069719490560000000 from there, php calculates it to infinite... and ubuntu's calculator goes to 813665035487097739564052900973113854808099898446057214681902080707157946132672615577380971049336065952161071033555822795004021568792504911666911516290418519452277690486344017408982134857832375125016 which is obviously wrong (not divisible by 10, unlike the prior values)... anyone have a calculator that can calculate such absurdly high numbers?
  15. under first guess... i'd look at this if ($tp - $this->page_nlim > $p) echo ".. "; for ($j = max($p, $tp - $this->page_nlim) + 1; $j <= $tp; $j++) i would think that should be if ($tp - $page_nlim > $p) echo ".. "; for ($j = max($p, $tp - $page_nlim) + 1; $j <= $tp; $j++)
  16. also can consider tinyurl.com... its not secure... but it does mask where its coming... the average user wont understand...
  17. $t=strtotime("NOW - 1 week"); mysql_query("SELECT * FROM `` WHERE `date_added`>'$t'");
  18. remove the colon after your variables! <?php mysql_connect("localhost", "wowdream_domaine", "PASS") or die(mysql_error()); mysql_select_db("maintenance") or die(mysql_error()); $result = mysql_query("SELECT * FROM check") or die(mysql_error()); while($row = mysql_fetch_assoc($result)) { if($row['check'] == yes) { header('location:maintenance.php') }else{ header('location:KICK USER SOMEWHERE ELSE'); } } ?>
  19. the only thing that sessions store on the computer, is a cookie, with the session_id()... that cookie is read by the parsing generator, and looks in the protected file on the server to grab the information... while the user can access the sessid... then have NO ACCESS to the session data, outside of when php's being parsed(your controls)...
  20. comon kids... be nice... and yes it is javascript :-) <scr ipt> function playSound(id){ if(document.embeds) document.embeds["sound"+id].play(); } </scr ipt> <embed SRC="beep.wav" HIDDEN="TRUE" AUTOSTART="false" name="sound1" loop="false"></embed> <a onclick="javascript:playSound('1');">play</a>
  21. easiest way, would prolly to do 2 mysql querys... #query for stickys ouput #query for rest, order by `id` DESC output
  22. yes... there is a from address being specified in the headers
  23. ? just write in the content into the data segment... it can handle any code... as long as it can be read when you save the file... you should be fine file_put_contents('yourphpfile.php','<?echo 'hello world';?>');
  24. hello! having some problems with my server... whenever i try send an email by php's mail() function, its not showing any errors, but its also not arriving to anybody... i checked all the firewalls/logs, and its not showing any email going through... anyone know what might be going on here?
×
×
  • 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.