Jump to content

MadTechie

Staff Alumni
  • Posts

    9,409
  • Joined

  • Last visited

  • Days Won

    1

Everything posted by MadTechie

  1. CSV would be easier, via MySQL it would be something like this LOAD DATA INFILE 'datafile.csv' INTO TABLE tbl_name FIELDS TERMINATED BY ',' ENCLOSED BY '"' ESCAPED BY '\\' LINES TERMINATED BY '\r\n' IGNORE 1 LINES;
  2. No offence intended BUT.. Your be better of using my first example, and a mod rewrite the mod rewrite could redirect domain.com/MadTechie to profile.php?user=MadTechie that would yield the same results.
  3. I mean it trashes the session ID, (could cause problems with other sessions etc) basically bad practice using session_unset is fine however I would recommend you us this as it also clears the cookie as sometimes the sessions don't clear from the server this will also clear the link from the client
  4. Its kinda unclear what your asking for, it sounds like you want to parse a XML, Can you provide an XML sample/link
  5. Depends on the password type, however you should be able to do it via cURL, (of course a CAPTCHA would hinder this)
  6. If you ran it twice it would..(kinda) maybe add $this->Topics = ""; before the while loop
  7. So now its down to you to write the code.. This is the "Help" section after all, if you want someone to do all the work your need to use the freelance section and pay for it. I have given you a few bug fixes for you to apply, let me what problems you get and I'll try to help.
  8. Its not the code it the logic! read it!
  9. As a side note .NET will only get the hardware details from installed drivers, if you want to peek/poke the devices your need to inject some asm
  10. Okay review this code.. Checks what ? ezip doesn't return a list of files! Re-check this logic! as a side note the steps I gave you where a better approach!
  11. See my first post! I assume you wrote the code in the first place!
  12. Exactly.. The post will be client based NOT server thus its NOT on the same server! Why not have the Flash file open the php script directly instead of having it as a parameter, you could also create a handshake and a authentication method, However as everything client side can be controlled by the client this is not secure either, but without knowing what your trying to do it will be almost impossible to resolve.
  13. Let me ask you one question.. Do you understand the code and/or the logic of the code you have ?
  14. Well I assume $extractedFilesList should contain a list of extracted Files, have you checked what it returns, also I don't see what part i haven't covered you have all the parts to complete that list in this one thread
  15. I have already stated that reason for those errors!
  16. seams to be missing alot of code, why not just use the ZipArchive example above ?
  17. Oops missed the link See MultiViews
  18. if($_SERVER['REMOTE_ADDR'] == $_SERVER['SERVER_ADDR']){ echo "I am Self!"; } But isn't flash client sided!
  19. I will move this to the correct section, Oh and yes I know, what the problem is an how to fix it!..
  20. I would probably code it like this (untested) <?php //check a decision has been posted if(!empty($_POST['decision'])){ //loop thought the decision's foreach($_POST['decision'] as $ID => $decision){ $ID = (int)$ID; //Apply decisions switch($decision){ case "delete": mysql_query("DELETE FROM comments WHERE id = '$ID'"); break; case "approve": mysql_query("UPDATE comments SET approved=2 WHERE id = '$ID'"); break; } } } $query = 'SELECT * FROM `comments` WHERE `approved` = 1'; //1 = new, 2 = approved $result=mysql_query($query) or die(mysql_error() ); ?> <form action="" method="post" name="test"> <?php while($row = mysql_fetch_array($result)){ echo $row['name']. " - ". $row['email']; $id = $row['id']; ?> <input name="decision[<?php echo $row['id']; ?>]" type="radio" value="approve" /> Approve this comment<br /> <input name="decision[<?php echo $row['id']; ?>]" type="radio" value="delete" /> Delete this comment<br /> <?php } ?> <input name="Submit" type="submit" /> <input name="Reset" type="reset" value="Reset" /> </form> Hope that helps, any questions ?
  21. Did you fix the logical errors ?
  22. Very True, its like they don't have a backup or a sandbox.. its not like we have any higher access level than the rest of the people on the net!
  23. Yep, almost 15 years ago Sun released the first public implementation as Java 1.0 and released Microsoft Windows 3.2 (followed shorty by Windows 95) Anyone remember anything else released 15 years ago ?
  24. Here are some helpful hints
  25. Well it was announced late 2005, and yet theirs no release date (that i know of) a few things to keep in-mind, when developing (don't rely on magic_quotes or register_globals and update ereg's to preg's here is a list of changes in PHP6 magic_quotes, register_globals, register_long_arrays,safe_mode are all removed YAY removed ereg (update to preg people) Improved Unicode support Namespaces (well that's now in 5.30)
×
×
  • 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.