Jump to content

Azu

Members
  • Posts

    1,047
  • Joined

  • Last visited

    Never

Everything posted by Azu

  1. That's usually what I do. When possible, however, I like to find ways to do things without javascript and flash and that kind of stuff. Basically there is a good reason to have something disabled (or it is disabled to begin with) then I prefer not to make my site depend on it. And javascript is often used for very annoying things such as spawning advertisements, useless pop-ups/pop-unders and resizing windows and making text move back and forth and that kind of thing. I consider this a good reason to have it disabled and so do lots of other people. Maybe 1 out of 10 people not being able to access your site sits well with you, but it doesn't sit well with me. No offense intended. I think I'm going to compromise; cool features from javascript, but still functional without it.  :)
  2. [quote author=tarun link=topic=119513.msg521232#msg521232 date=1170598623] Try This [code]<meta http-equiv=refresh content="3; url=http://www.msn.co.uk">[/code] [/quote]Thanks! That does it perfectly! Now please excuse me while I bang go bang my head on the wall repeatedly..
  3. Thank you! That is exactly what I was looking for =D
  4. [quote author=ted_chou12 link=topic=115877.msg521198#msg521198 date=1170595874] I see, btw, the way you use "brute force" makes it sounds a bit violent to me, i dont know why, but it creates a sense of violence... Ted [/quote]It is a bit violent to the server being brute forced. Can be quite demanding on the CPU/Bandwidth if it's not protected against. It's very easy to just automatically ban anyone who tries it though. Anyways if you want someone's password, ask them what their password is, and if they don't tell you then you aren't getting their password and are gonna just have to accept that.
  5. Okay thanks, I'll go take a look at that
  6. Okay thanks. I'm not sure I understand how putting it into a frame would help though. If it was in a frame then when I clicked on it wouldn't it just goto that page in the frame? Oh and I'd really like to avoid using javascript And here is the format my menu is in right now. How can I make it more optimized?[code]<div id="a"><ul id="b"><li class="c"><a href=/Map>Click here if the menu doesn't work</a><ul><li><a href=/1>1</a></li><li><a href=/2>2</a></li><li><a href=/3>3</a></li><li><a href=/etc>etc</a></li></ul></li></ul></div>[/code]
  7. I would like to make it so that people on my site can make their own pages and other people can view them. 1 question though Please tell me how can I make it so that all of the people's pages cannot use more then 50% all together, and if they do, then it will limit whoever is using the most cpu? I can limit the bandwidth easily but I don't know how to measure the cpu they are using :-\ This should apply to everything their page does(php/cgi/asp etc) If you could just tell me a way that I can measure cpu usage and a way to throttle cpu usage then I could do the rest myself
  8. I used to have dates stored as chars E.G. "07-12-30 10:50:50" for human readability but I switched it to integers so that I can sort by date and so that it runs faster, E.G. 071230105050 The problem is, it keeps cutting off the 0 in front of the 7 for some reason. So I have to store the whole year E.G. 20071230105050 and then it works. I'd like to be able to just use 07 though. Any ideas why the 0 is getting cut off and how I can fix this? Oh and I am storing the integers in bigint(99) so I'm sure it's not that the integer doesn't fit. And also since it works with the full year (2007 instead of 07) so I am sure it's not that the integer is just to big and is getting cut off.. Also is there a function to change the integer into human readable format? I have found many functions that do the EXACT OPPISITE of this (changing human readable format into integer) but nothing to change integer into human readable, so I'm making my own functions to convert it, but it would really be nice if there is already a function in PHP that does this that I just haven't been able to find yet, and if there is can you please tell me what it is? Oh and in case you are wandering the reason I'm storing it in integer format instead of datetime format is that I need to have two of these values and MySQL throws an error when I try to have more then 1 datetime field.
  9. Thanks I already know that though and it isn't what I'm looking for. Let me give you an example A huge fat CSS menu that links to every single page on the site.. around 100kb.. on every single page. I need to make it so that it only needs downloaded once, rather then being downloaded every time the page loads. You know how you can tell the browser to use an external .css or .js file in every single page and it will only have to download it once instead of having to download it on every single page? That is what I need to do, except with PHP generated html instead of with css or js. It's updated every few days so it will need to be re-downloaded once in a while, but not on every single page load.
  10. Bump I wish there was a way to bump without making a new post..
  11. [quote author=obsidian link=topic=119513.msg489568#msg489568 date=1166707282]There have been discussions on this forum before about the percentages of javascript usage, and I believe at the most, you're talking somewhere around 5% or so.[/quote] Okay.. thanks.. Well if only around 5% of people use javascript then I'm definitely gonna have to find a way to do this without javascript =\ I think if I put every sentence in it's own iframe (without borders) and have a meta refresh on it to refresh it every say 20 seconds that should work.. that sentence would still get un-selected though if someone was selecting that particular sentence when it got refreshes.. Any ideas on how I could fix that? Preferably without javascript since only 5% of people have it enabled..
  12. Azu

    [SOLVED] Echo

    Omg I had totally forgot about that function lol! Thanks!
  13. Azu

    [SOLVED] Echo

    I'm looking for the client-side version of include if that makes any sense
  14. Put ob_start(); at the very beginning of the file before any non-php code is ran and before any kind of echo or print is used, and after all possible uses of header put ob_end_flush(); This ensures that headers are never used after data has been sent to the client and fixes the problem.
  15. Azu

    [SOLVED] Echo

    How do I just tell the client to use a URL so that the client downloads it instead of having the PHP script download it and then upload all it's contents which takes longer?
  16. Bump... >_> It would be really sweat if someone could tell me how to use this cause I wanna have a bunch of data on every single page without the user having to download it more then once that way the pages load faster and less bandwidth is used Please tell me how  ;D
  17. Thank you! With your help, I got it working  :)
  18. How do I use PHP to echo a specific URL so that the user can download the url directly instead of PHP having to download it first? Or is it a different command not echo that I must use? Please help
  19. This is the exact file I tested just now, it works fine;[code]<?php $tmonmon=rand(1,12); switch($tmonmon){case 1: echo"Jan"; break; case 2: echo"Feb"; break; case 3: echo"Mar"; break; case 4: echo"Apr"; break; case 5: echo"May"; break; case 6: echo"Jun"; break; case 7: echo"Jul"; break; case 8: echo"Aug"; break; case 9: echo"Sep"; break; case 10: echo"Oct"; break; case 11: echo"Nov"; break; case 12: echo"Dec"; break;} ?>[/code]
  20. The best way to do what you are trying to accomplish is to store the current amount of registered players in a sql table so if you have 123 people then it will be 123. Then when someone signs up, fetch that number, and add 1 to it, and set there rank to that. And also set the stored number to that, so that it will always be up to date. Another way is to run a query to check how many rows there are in a table (1 for each player) and add 1 to that and use that for their rank. Then you won't have to have the number written down anywhere, but this way is much slower, it will take a lot longer, and could bring your server to it's knees if there ends up being a lot of members.
  21. [quote author=mkosmosports link=topic=121410.msg499160#msg499160 date=1168205715] Hey, What Im trying to do is take a number, make it a month (the numbers are from 1-12), and display it in the short text form of a month. Variable $tmonmon is that number. So now how to transform it into a month and display it differently.. Any help appreciated. Thanks [/quote]$3LetterMonthName=switch($tmonmon){case 1: return"Jan"; break; case 2: return"Feb"; break; case 3: return"Mar"; break; case 4: return"Apr"; break; case 5: return"May"; break; case 6: return"Jun"; break; case 7: return"Jul"; break; case 8: return"Aug"; break; case 9: return"Sep"; break; case 10: return"Oct"; break; case 11: return"Nov"; break; case 12: return"Dec"; break;}
  22. [quote author=devnerds link=topic=121404.msg499182#msg499182 date=1168206521] Ironically thank you magic2goodil As for HoTDaWg you still didnt read my question. I have no use for the common error list in helping ME with a script. I am an experienced coder, wondering if there is any list currently out there. Thanks [/quote]Why don't you just look back on your experience and make a list out of errors you've made? And put that list on your site? Including the solutions, of course.
×
×
  • 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.