Jump to content

adrianTNT

Members
  • Posts

    146
  • Joined

  • Last visited

Everything posted by adrianTNT

  1. Hello. When mysql starts on my server (cent OS with plesk) it shows in mysql logs that max_join_size had a bad value and it set it to correct one, this is the bug info: http://bugs.mysql.com/bug.php?id=35346 It says to set the max_join_size value to "4M" but I have no idea what "config file" to edit. I tried both these in /etc/my.cnf and rebooted the server: But the error is still there in logs, (still tries to start with that bad value): Am I editing the wrong file or entering the wrong command?
  2. Thanks, so I tried this, and it seems to do the trick, (if anyone sees a problem please let me know): $string = preg_replace("/[^A-Za-z0-9_]/", " ",$string);
  3. Can someone tell me how to convert this ereg_replace to preg_replace ? $string = ereg_replace("[^A-Za-z0-9_]", " ", $string); It is supposed to only allow letters and numbers. Then I also need to replace multiple spaces that was like this: $string = ereg_replace("( )+", "_", $string);
  4. I am not sure if there is a better solution but on my server I write another rule with the slash at the end, it works to add it in same rule by writing (/)? at the end, I think it is like this for your rule: RewriteRule ^.*(/)?$ list.php Unless others have better ideas
  5. Hello. I want to have a photo album URL that looks like this: /pictures/christmas-pictures-1020/christmas-lights-234.html That is album title - album id / photo title - photo id ^. My current rule: RewriteRule ^pictures/(.*)-([0-9]+)/(.*)-([0-9]+).html$ ... I want to allow special characters in these titles, characters like ţîş that is why the (.*) but I assume this is not right because any_character can also be a slash. I tried to replace (.*) with [a-zA-Z] but that one does't include special characters ?! What would be the solution? Maybe I can just add a condition where title can be any char but not "/", if this is a good solution then how do I write this "not slash" condition ? Thank you.
×
×
  • 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.