Jump to content

mikesta707

Staff Alumni
  • Posts

    2,965
  • Joined

  • Last visited

Everything posted by mikesta707

  1. mkdir($_POST['email']);... have you tried that?
  2. this usually means that the allow_url_fopen option in your php.ini is set to off. This means you can't use absolute URLs in your include files. To remedy this, you can just turn it on. However, this is a security concern if you allow user's to upload stuff, and your security measures are poor. What is exact URL for the page you wish to include, and the exact url for the page you wish to include it from. Also remember that if you need to go up in a directory, for every folder you go up, you need to add a ../ for example if you wish to go two folders up you need to do ../../twoFoldersUp. if its three, do ../../../threeFoldersUp
  3. if that directory doesn't have the permission to open the file, it won't be able to open the file regardless of what type of path you use (relative or absolute) You will need to set the file permissions for that directory so that it has access to the other directory
  4. Hmm a lot of people seem to have had a problem selecting multiple files. I never personally ran into that problem. I dislike vista as a whole, but selecting multiple files was exactly the same for me in vista as XP (or at least I saw no difference) maybe its beacuse I use ctrl + click or shift + click and don't drag the mouse
  5. Why don't you just use the absolute URL as opposed to the relative one?
  6. $models = "1603, 1802, 1527, 1782, 1817, 1598, 1666, 1781, 1970, 1939, 1889, 1762, 1761, 1885, 1821, 1827, 1857, 1921, 1942, 1756, 1930, 1414, 1856, 1920"; $array = explode(", ", $models); explode()
  7. look into the mysql documentation here for there various date column types. You would update the last login when the user logs in, just like you would update anything
  8. I would suggest putting the else and the if on the same line. I suspect that php is reading the structure of your if statements incorrectly (or rather, not in the way you intended) is there any more code than this? if so please post it edit: yeah pretty much what raj wrote
  9. well how exactly is it not working. Echo the query and post what the output is
  10. It is said that using BBC might not be a good idea. While it will send to everyone in one go, and hide the other emails fromeach individual recipient, some email providers (like hotmail) consider messages spam when the recipient address is not in a visual header (ala BBC). However, BBC/CC IS faster than sending each mail individually
  11. Without seeing more code, and a better description of what your problem is, and what you expect to happen, we can't really help you. THose if statements look OK, besides the fact that they are strangely formatted, and hard to tell if they are elseifs or else statements with a nested if inside of them
  12. I would use a unix timestamp rather than a varchar field that showed the year they lost logged in. Unix time stamps are much more versatile, and can be used with mysql's, as well as phps time/date functions. I would also probably use a Cron Job rather than searching through users in a control panel.
  13. well the function time() (assuming you are using the built in function, not your own) is time() not Time(). Beyond that I don't see much of a problem. However, you should always sanitize your input variables, via mysql_real_escape_string() or whatever is appropriate for your database
  14. $query = "SELECT * FROM players WHERE level >= '".$_POST['minlevel']."' && level <= '".$_POST['maxlevel']."' && username LIKE '%$username%' && money >= '".$_POST['money']."'"; if (isset($_POST['id'] && !empty($_POST['id']){ $query .= "&& id = '".$_POST['id']."'"; } $query .= "order by level desc limit 20"; something like that should work. untested edit: as Maq said, using mysql real escape string or some other sanitizing function is highly recommended
  15. I'd have to agree. Getting all the different possible combination possible for each character is a daunting task to begin with. Recursion would probably not be any better, but it may be more readable, and easier to understand.
  16. User Access Control is the worse addition to any operating system ever. Its like javascript alerts on a web page. I hope Window's 7 scrapped the idea all together
  17. so you just want a string with each different tag? you could simply do $string = ""; foreach($tags as $tag){ $string .= " ".$tag; } echo $string; if thats not what you want than I really have no clue what you are trying to do
  18. you don't need to include anything to use preg_replace
  19. as pointed out, you can't use headers if there has been output. You need to not output anything if you wish to use a header. You could also use a javascript or html redirect if you absolute must have output. BTW. using session_register() is deprecated. You also don't have session_start() at the beginning of your page )which you need to use sessions) session_register() has been replaced by doing something like this $_SESSION['session_name'] = "session value"; that pretty much registers the session for you, and also assigns it a value. as a side note, you seem to want to use output buffering (which is another work around to the header problem) if you do you also need ob_start() at the beginning of the page
  20. if tags is a simple array, with a format like ('entry1', 'entry2', 'entry3') then you only need 1 foreach loop. I don't really understand why you are nesting foreach loops with the same array. Exactly what are you trying to accomplish?
  21. That script is probably using html entities and strip tags because if you didnt, you may get html tags in there which would make the rss feed invalid. Limit 15 will get the last 15 headlines from the sql database you are querying (as opposed to getting everything) You DON'T want to put HTML in your rss feed, because that will make the rss feed invalid. Remember, XML and HTML are both markup languages, and thus both use tags. if you start using tags that are meaningless to rss readers, things will go haywire It appears that passing the rss.php file into a feed reader will work because it sends the page as an xml file (via the header call)
  22. hmm, what is the structure of your end array? it seems to be a 4d array
  23. Oh sorry, yeah a blank, or no IP i'm not so sure about. They would send the proxy ip address rather than the local one.
  24. $lowest; while ($row = ....){ //do whatever $total = ....;//however you get total if ($total < $lowest || empty($lowest)){ $lowest = $total; } }//endwhile
  25. There is proxy software out there that can mask, or hide certain information that you send in http requests
×
×
  • 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.