Jump to content

premiso

Members
  • Posts

    6,951
  • Joined

  • Last visited

  • Days Won

    2

Everything posted by premiso

  1. Give the fact that what you want to do could easily effect the user's machine, no. The user has to explicitly allow you access to their machine, which is done by allowing the ActiveX Object. This is done as a security measure. You can keep looking, but chances are you will not find anything more than the ActiveX object that can do this.
  2. Not for the past couple weeks. Crazy ass thyroid is acting up and is messing with my brain. It is freaking ridiculous. That and I never really used printf or sprint, good to know
  3. Another issue, you are never returning the $Authors array after the function call. } return $Authors; } $Authors = display($Authors); Man, my brain is starting to go bad, I keep missing the simple stuff =\
  4. You need to surround $street in quotes. <td colspan="2"><input name="street" type="text" id="street" <?php if (!empty($street)) echo "value=\"$street\""; ?>> Should fix your issue.
  5. $string = "1"; if (strlen($string) < 2) { $string = "0" . $string; } As far as a faster way or function to do this, I am not sure. You could easily make the above into a function, however.
  6. Good catch. Also $Authors[$i]= "$row->created_by"; He was setting the key to "i" not "$i"
  7. Just so we are clear, when you are re-opening the browser. You are not going to http://www.yoursite.com/script.php?set=yes You are just trying to goto http://www.yoursite.com/script.php and it is still redirecting you?
  8. display($Authors); You were never passing $Authors to the function as a parameter, like you have the function defined with.
  9. You would have to use your server as a medium. Copy the file from Server 2 to your server then copy to Server 1 from your server. Doubles the bandwidth. I do know that this is called FXP in the Internet world and that there used to be (may still be I think it was FlashFXP) an FTP program to do this. I am not sure if you are looking for this to be done in PHP, but if you are on a windows machine you could download that program then run a exec command to do the transfer. The other way is you could have to have 2 open FTP connections (not sure if the ports/sockets would allow that) since they are probably both on port 21. Hope that at least gave you some ideas.
  10. How are you using this function on the index page? Because you do have to call it and set a value to return the contents. Example: index.php include('utils.php'); $content = GetHTMLContent('mypage.php'); echo $content; Should work just fine.
  11. Create your own ActiveX object. Why do you care to let them browse their own machine? I know I would not like that at all.
  12. PHPFreaks mod_rewrite You may want to post it in the right section. Just something to look at, the index.html replacement has a / in it. Thus you must have it. If you make that optional, it "should" work.
  13. print "<a href='$page_name?start=$next&column_name=$column_name&searchterm=$searchtm'><font face='Verdana' size='2'>NEXT</font></a>"; You forgot to put the search term back in the url.
  14. Not sure. I know it has mixed results. I guess some policies have the dns flush settings in them. At work I have to do that to see the changes to the host file. But yes a more accurate one is the ipconfig flushdns way.
  15. foreach You need to loop through the results.
  16. Chances are there was a reason. Try rebooting and seeing if that works. Sounds sort of like you have Spyware a virus or a trojan on your system. I would do a check and see if you do.
  17. <?php //This will get an array of all the .gif images in a folder $img_array = glob("/path/to/images/*.gif"); //Pick a random image from the array $img = array_rand($img_array); //Display the image on the page echo '<img alt="'.$img_array[$img].'" src="'.$img_array[$img].'" />'; $img_array = glob("/path/to/images/*.jpg"); //Pick a random image from the array $img = array_rand($img_array); //Display the image on the page echo '<img alt="'.$img_array[$img].'" src="'.$img_array[$img].'" />'; ?> One way to do it.
  18. It should be 127.0.0.1 localhost You need to add that to the hosts file save it then goto Start > Run type "gpupdate /force" (without quotes) Then try to goto localhost via IE. Alternatively you can use 127.0.0.1 instead of localhost to access your server.
  19. ob_start ob_get_contents ob_end_clean
  20. usort Would be one way. Other than that it would have to be a custom function.
  21. echo number_format($statgain, 2, ".", ","); number_format
  22. Nothing....just another way to do it A varchar of 40 should be fine for SHA1
  23. Use an md5 or sha1 hash for that. Makes it secure and is easy to generate. IE Use their username with a random number: $verify = sha1($username . rand(11111111,99999999); Add that to the db then send it to them in an email.
  24. Yep, a lot better than my way. My mind has just been shot the past few days. Thanks for pointing that out.
  25. <?php $path = "/home/folder01/*"; $files = glob($path); sort($files); $badNames = array(".", "..", "index.php", "error_log", ".htaccess", "getfile.php"); foreach ($files as $filename) { $filename = explode("/", $filename); $filename = end($filename); if (!in_array($filename, $badNames)) { echo '<a href="' . $filename . '">' . $filename . '</a><br />'; } } ?> Should fix that.
×
×
  • 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.