Jump to content

oni-kun

Members
  • Posts

    1,984
  • Joined

  • Last visited

  • Days Won

    1

Everything posted by oni-kun

  1. Yeah! It is PHP, but it doesn't mean it has to be it's logo. The code symbol is a hash, hyperlink is a picture of a fricken planet.
  2. There are many proxy scripts online, such as PHProxy, Glype, CGI Proxy etc.. But remember, these things when set up usually give you a 100-900GB/month pull on bandwidth if it's used by the general public.
  3. Nope. -1 and -2 is actually their own array indexes. This can be a simple solution, which is common coding practise: $secondlast = $arr[count($arr)-1]
  4. Scripts usually always have some important info, in separate sections of the script, it seems you are only giving us bits at a time! maybe showing us the entire script would help.. and place the code between these tags: to be more readable..
  5. This code: $thetimex = date("F d, Y H:i:s", time() + (TIME_OFFSET * 3600)); Where is 'TIME_OFFSET' defined? If it isn't, then you can switch it to '5' (5*3600 = +5hrs)
  6. Ignore the inline frame, within the parent page, where does the Iframe link to? You can directly get the table from that, not the parent.
  7. Is that the actual code you're using? Or are you var_dump()ing the array? Post all the relevant code that you use, and mark the line where you get the error, and don't forget to place it in tags.
  8. Yeah, It's stupid. That is why I play domination over team deathmatch, as there are points to secure, you need planning and skill not running around the map camping and shooting random people.
  9. Well, I wouldn't recommend using foreach, Try this sample code: $src = file_get_contents('http://folding.extremeoverclocking.com/user_summary.php?s=&u=454083'); preg_match_all('~<td align\s?=\s?[\'"]right[\'"]>(.*?)</td>~is', $src, $contents); echo "<pre>"; //For formatting echo print_r($contents); That will give you a better idea of the structure of what you're retrieving, as you see, there are a lot of table lines and a lot of elements that tag will give you.
  10. Are you using session_start() at the beginning of the admin page?
  11. Screw clans, When I am against one I just shove on cold blooded and secure a location with a shotgun until I get an AC-130, then they can go fuck themselves. Even if our team doesn't win, I killed more people!
  12. You can use foreach for a simpler approach: $prices = array('Sweaters'=>100, 'Shoes'=>10, 'Watches'=>4); foreach ($prices as $key=>$value) { echo "$key: $value<br />\n"; } If you do not want to use those constructs, It's just as fast.
  13. I'm not actually cheating Sir, I just want to 'learn' and improve my weakpoint areas, ofcourse with the help of experts in here.. but speaking of cheating. some zce mentioned "cheat" on mock exam http://mcloide.wordpress.com/2008/09/18/zend-exam-tips-scoring-system/ search for the keyword "cheat" and you'll see it from the thread.. So? If you want to improve your weakpoints, learn how to answer them. what if you were wanting to store binary into a database? You'd know 'A..B...whatever..' but you wouldn't know how to do it, eh? Say it all you want, reviewing is not programmatical study.
  14. Maybe you should look at str_replace and see what you're doing wrong. Are you trying to just replace a comma? Or a ',' (quotations) as well? str_replace(',' , "" , $_SESSION['L_NAME0']); As you're using a $_SESSION variable, why are you removing commas? Are you wanting to explode ?
  15. You can access the session via the $_POST array? I'm not sure what you mean by CURL session, what is an example of what you are trying to do?
  16. No problem, We're here to help. If you have anything else to ask don't hesitate
  17. Oh man.. That was an option in a formatting CD I had , but there's also DoD 5220.22-M, only military formatting will do!
  18. Yes, MD5 hashes are useful for passwords for example, since if they were leaked they could (without rainbow tables..)cannot be 'unhashed' and in that format can be simple for comparison and validation of the user's password. Assuming you're on a secure server, your database contents should be safe, if you have employees or something with database access than you can encrypt it with one of the crypt functions, although that'd be a bit overkill.
  19. Depends on how your template was set up, but for navigation and such you can even make it as simple as "header.php?lang=fr" and then include variables as needed. Database wise you may want to create aliases of your tables, such as nav_en, nav_es etc. if you want to separate the strings from their languages, calling it like SELECT * FROM en_table WHERE id = ...
  20. Did awhile back, but with these newfangled 1TB harddrives it sure is the opposite of quick.
  21. You can always do it with this method if you want it to be easy, Create a .htaccess file in root and place this: AddType application/x-httpd-php .xml In one of the lines. This will basically, allow PHP codes within the XML file. Yet it will appear as an XML file from the browser/your swf. You can even make it so you can call it like this. file.xml?id=2 or whatnot for your database access.
  22. when I echo , it shows array My form fields are also in array (added by js when user clicks add more). How can I save those ? Help me pls... You've print_r($_POST); and it has come out correct? That is where you would access the 'array', such as $_POST['foo'][2]
  23. You can check sessions, such as so if ($_SESSION['myusername'] == false) { header('Location: Login.php'); //Redirect them if they're not logged in. } Also, What is your PHP version? session_register() is depricated and will NOT work as expected in PHP >=5.3, you must assign as $_SESSION['key'] = 'value'
  24. Yeah, Simple example being: $var = "Longgggggggggggggggg"; if (strlen($var) > 5) { $var = substr($var, 0, 4).".."; } echo $var; //Long..
×
×
  • 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.