Jump to content

premiso

Members
  • Posts

    6,951
  • Joined

  • Last visited

  • Days Won

    2

Everything posted by premiso

  1. Add another re-write rule to catch to extra variables. You can have multiple re-write rules just add [L] at the end of them (that means "leave" the script if that rewrite rule processes.
  2. Feel free to download SMF and make the module and submit it to the admins. I am sure if you make it and test it, they wouldn't have a problem implementing it.
  3. There are plenty written tutorials out there. Here is one: http://corz.org/serv/tricks/htaccess2.php Please, do not ask people to write stuff for you. If you are willing to pay, post in the freelance. If you need help with a current script ask. But if you are not willing to google / read why should anyone else be willing to do that for you without payment?
  4. Oh...I see.
  5. After 10 posts it should go away.
  6. SSH will just give you access to shell commands. You can read up on BASH SHELL programming, for writing scripts. But if you ever worked with the linux command prompt it is simply a cd /path/to/php.ini then using VIM / VI / NANO you do nano php.ini to edit it and modify it to your likings.
  7. You may be interested in http://www.sphinxsearch.com/ But the full-text search only returns rows if the search terms return less than 50% of the rows in the table (if I am not mistaken). So for not very large tables the full text isn't the best tool to use.
  8. For something this simple, explode would be a better choice. $exploded = explode(" ", $input); $action = $exploded[1]; Should get you what you need.
  9. var_dump will tell you what is the variable, the length and what the type of the variable is.
  10. You just skimmed over it. Read it a bit more in detail, such as how I exploded the items at the space and the made it search for the different terms combing them with an OR so it pulls items that have either DELETE or Account in them.
  11. You can try one other option in the mail deal: mail($to, $subject, $message, $headers, "-fnoreply@darkedenoblivion.com"); You can check if your IP has an MX record associated with it. If it does not, this is often a first check point for the free mail providers to test if it is spam. Something to look into, given that the above does not decrease the amount of messages sent to the junk mailbox. Another option is to ask your host about it.
  12. http://www.phpfreaks.com/tutorial/simple-sql-search That might help you understand and work with the problem.
  13. IMO, I would find a different day job. Helping people online = under appreciation all over the place. I mean, how many times have people actually thanked you and baked you some cookies for fixing their problem? Maybe 1/8th of the people you actually helped? If it is more than that, that should be appreciation enough!
  14. You may find this link about laziness and greediness of help. http://www.phpfreaks.com/forums/index.php/topic,211115.msg963061.html#msg963061 You want to expressions to be greedy.
  15. Using a deal called mod_rewrite.
  16. Yea, that would only require one rewrite and if all files are under a certain folder, or they are the only ".html's" on the site, that would be easier: RewriteRule ^path/(.*)\.html$ path/to/file.php?old_file=$1 [L] Should do what you wanted.
  17. http://www.php.net/superglobals Look under the $_SERVER variable. Should have what you are looking for.
  18. Whats wrong with parsing just the word? RewriteRule ^path/([a-z])-([a-z])-([a-z])\.html$ path/to/file.php?var1=$1&var2=$2&var3=$3 [L] Something along those lines. So using that you do not need to change anything really. You just have to test out the right combination and it may take multiple rewrites depending on what pages etc are setup right.
  19. If you were trying to bump, after only 30 minutes, best you Read the Rules Also quoting your entire post...doesn't help matters either.
  20. Why are you using ereg_replace? It is depreciated. You should just use preg_replace instead. $final_string = 'href="Something" href="Something1" href="Something2" href="Something3" href="Something4" href="Something5"'; $link = 'http://www.example.com/'; $final_string = preg_replace('#(?<=href=")([^.]+)#U', $link . '$1', $final_string); echo $final_string; Should do what you want. OUTPUT: href="http://www.example.com/Something" href="http://www.example.com/Something1" href="http://www.example.com/Something2" href="http://www.example.com/Something3" href="http://www.example.com/Something4" href="http://www.example.com/Something5"
  21. create a cached folder. After the page is fetched, gzip it (optional) and store it in the cached folder with a unique name. If a page with that unique name is in that folder on the next page load, just load that page instead of pulling from the database. If it is not there then continue generating from the database. Viola you have a cache system.
  22. $result = mysql_fetch_assoc($result); Change the fetch_row to fetch_assoc. Row returns an index based array, assoc fetches an associative array.
  23. Why did you create a duplicate new topic? FYI for anyone else: Respond to the original thread here: http://www.phpfreaks.com/forums/index.php/topic,302793.0.html
  24. What issue are you having? We are not psychic, is there an error, or what is not happening / should be happening?
  25. Being in an object context? Example: class test { public $item; public function echoItem() { echo $this->item; } } $cl = new test(); $cl->item = "blah"; $cl->echoItem();
×
×
  • 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.