Jump to content

Gath

Members
  • Posts

    39
  • Joined

  • Last visited

Profile Information

  • Gender
    Not Telling

Gath's Achievements

Member

Member (2/5)

0

Reputation

  1. Hi. I'm looking at this site i'm building for so long, i'm kind of blocked... Having a menu list, with several links (Link1, Link2, Link3), and then when certain conditions are met (server wise) Link 4 is visible, then eventually Link 5, and so on. I would prefer not to have the links already in the page (invisible), for security reasons, and make them "visible" only when the user achieved certain steps (server side). I would also like this to be "server resources friendly" as possible. This point is very important. What i got so far is updating the full menu list everytime the user does something, and check the conditions to see certain links. But this isnt cutting it. Any ideas? Not sure if this should be a JavaScript / jQuery question. Only started in jQuery a few days back, i'm still very green in it. Thanks.
  2. Ok, thanks for answers, figured out the DB is broken, corrupted, or has some malfunction... after cleaning it all started to work just fine. Thanks again.
  3. So, alghouth i know there are results in the db, i keep getting 0 as mysql_num_rows. $check = mysql_query("SELECT login FROM db_login WHERE login=\"$email\""); $check_rows = mysql_num_rows($check); if ($check_rows > 0) blablabla The result from $check_rows is always 0. I'm lost. Any help? Using 5.3.9 php.
  4. Hi. Dunno if this is the correct section, but if it isnt, wich one is? Anyway, the question is: how can you know what kind of hosting will you need, so the follwing doenst happen: - your site uses too mutch resources on shared hosting, and hte company cancels your account, - your site uses 1% of resources on dedicated server, so you waste a pile of $$, I understand bandwith, amount of users, what i dont know is how mutch resources (RAM/CPU) does a site uses. I have a project that is in final stages, when it goes online it might, with some luck, and if the publicity works as intended, draw a big amount of users. I have no idea what kind of hosting i should get, sicne all projects i been in so far were somewhat small, shared host was fine. Now, knowing i can have a numbers, that goes from 1 000 up to 20 000 visitors by day, gets me completly lost on how mutch resources it takes... True, with those numbers my best bet would be dedicated host, but... money is a problem at the moment :-X cant 'afford to waste', or else the project wont ever see the light of day :s So, any guides on how mutch 'power' one needs on hosting?
  5. Like above, i think that in that specific situation, it doenst really matter. Make it bigger, just so you dont have to think about it later. Having perfect sizes for column types, comes handy in big projects/db. But, dont exagerate, like i seen, to give bigint(30) to something that wont ever pass, ever, 6 digits!
  6. There's a simpler sulotion, altought the answer might never arrive: Ask the owner! Ask the company making frets, if you are allowed to do that, or not.
  7. Altought i had some interest on Guitar Hero, i never actually played it, or even saw it. That said, this isnt the place to know if something is legal or not. Altought i'm starting to hate this sentence, but, 'google is your friend'. Also, after that said. Even if it's illegal... that doenst make it less profitable. Also, after saying this... if you actually make something 'illegal' you will be hated by a million people, and you better make sure your site is secure... to the extreme.
  8. Hey, how is this for reviving the dead...? Anyway, i'm drunk, but i think that you might want to have a look at: http://www.openads.org/ I just found it when searching for some info on Ads. Yes, you typed you didnt wanted a pre-packed .. pack. Still. Worth taking a look. I guess. (or... just ignore me)
  9. Store values in _session. Create a refresh after something significant happens (check-out, for example). <html><head><meta http-equiv="refresh" content="0; url=index.php"></head></html> Dont know how a "no-cache" system would work, but tehre's something like that. Since never worked on a shopping cart system, cant really say mutch.
  10. Hi. So, was thinking about stuff, and so on, when i tryed to understand how the backend of something like the hi5 profile voting would work. Basically, we have a member, wich profile other members can vote on, once. How to keep track of that? I found someplace saying that the amount of members is 50 millions. So, i assume that having a 'pre-made' DB with yes/no for votes for each of the other members, is... not quite possible But, making a record for each vote, also gets some quite large numbers. Assuming only 10% of the members vote, and they vote for 5 people, that's still 25 million records. Ok... some of you might not consider it that big, i do. Biggest DB i worked with had about 60k records only But, is that the way it works, or there might be other methods? Curiosity...
  11. Hi. I placed a simple counter in some of my pages. It works like it should... except, every now and then it... resets. And i cant figure out why. I dont know to what exact number it resets, sicne i dont know when it actually happens. First time i noticed it the counter should be at around 5000, but was at around 300. Second time, was over 1000, but it became at 200. And those are the ones i noticed, maybe some pages 'resetted' more often. Dunno. Code is placed in the very end of hte file, none variable is used before. <?php $fp = fopen("counter.txt", "r"); $count = fread($fp, 8000); fclose($fp); $count = $count + 1; $fp = fopen("counter.txt", "w"); fwrite($fp, $count); fclose($fp); ?> Any ideas?
  12. Look for open source php forum distributions. Probably the best place to look for them is on an open source repository such as SourceForge - http://www.sourceforge.net Aye, i had forgotten about sourceforge (actually, no... i just didnt had mutch results with it lately, so i hadnt used it...), but after i had post, i gone look in it, and i found exactaly (almost, very close) what i was looking for. Not wanting to make publicity, since i'm not using it fully, yet, but: http://www.usebb.net/ Looks very good.
  13. Hi. Any place i can get a listing of the Forums created with PHP? I got a list from wikipedia (comparison of internet forum software (php)), but i dotn find what i want :-\ Anyother place i can get a list like that? Yes, i tryed google, doenst get me there... Thanks.
  14. Hi... I want to get a 'security' trigger on a loop based on the time it has run. What would be the best way to do this? With 'break'? The loop is opening a file, but the file is on a diferent network, what is the way i take to place the break? Check time before open, and check time 'after'? I dont understand if the second check would happen even if the loop would... halt or something. Hmm, i guess i'm confused... Thanks for any info.
  15. That's the problem, i dont have access to the receiving server. I can do any code/change on the server that is 'sending' the file, but nothing on the other. Any 'trick' i could use? The page from where the form will leave is of restricted access, i dont need to worry about any security, it would just make sooooo mutch if people could send the file by the server, instead of using an upload.
×
×
  • 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.