Jump to content

Horst Azeglio

Members
  • Posts

    24
  • Joined

  • Last visited

    Never

Everything posted by Horst Azeglio

  1. thanks a lot, super guru, it works perfectly, however, I don't understand the use of the backslash in that context. Can someone explain me why does it work?
  2. I think it wouldn't work because it would also replace the i letter inside words. btw I just noticed the regex forum. I should have posted that topic in it. If a mod moves it I wont be confused.
  3. I'm trying to convert ever lowercase word "i" into an uppercase word I. Here's my code. [quote] $string="This is my string. i am a regular expression illiterate"; $string=preg_replace("/[ \,\.!\?\']i[ \,\.!\?\']/","/[ \,\.!\?\']I[ \,\.!\?\']/",$string); [/quote]
  4. I'll try that. For now I temporarly fixed the problem by adding the full path to the links.
  5. Thanks but ini_set() didn't work + I have no access to PHP.INI
  6. When my cookies are empty, ?PHPSESSID=something is automatically added to some of the links of my site. How can I remove ?PHPSESSID=something from the links? I know what a session is, but I don't know why it does that. Thank you.
  7. sounds good, I'll do that right now. thanks
  8. Is it possible in PHP to create "virtual directories" (like in wikipedia)? for instance http://en.wikipedia.org/wiki/Wayne_Gretzky There's no Wayne_Gretsky directory another good example of what I'm looking for is this forum itself! each topic is a "virtual" html file. How do you do that? Thank you
  9. Do you guys know how to determine the language Google is using to probe a site, like, is it Google for Italian or German pages? Thank you.
  10. I'm trying to do a MySQL Query but it doesn't work. (version 4.0.26) When I put only one argument in MATCH, it shows no error but doesn't return anything SELECT * FROM item WHERE MATCH (nom) against ('Huile'); or SELECT * FROM item WHERE MATCH (nom_en) against ('Huile'); When I put two arguments: SELECT * FROM item WHERE MATCH (nom,nom_en) against ('Huile'); It says: "Can't find FULLTEXT index matching the column list", but both nom and nom_en are FULLTEXT indexed. Anyone can help? thank you
  11. Do you guys know how to set a realistic expiration date for cookies? like, some kind of javascript equivalent to strtodate() so I can set the expiration date in two weeks or something. Thank you edit: nervermind, I did it half in php.
  12. Maybe it's only for IE, since IE doesn't display table content before it's loaded.
  13. I'm quite sure there's a CSS property to set on to a Table, TD or TR that tells to moderatly recent browsers to display the table even if the content is not loaded yet. One of my friend is pretty good in CSS, he says he ever used that property but he forgot the name of it.
  14. Do you guys know how to display a TABLE before it's content is fully loaded? Thank you.
  15. Do you guys know how to find the cube root of an integer? Thank you edit: Ohh I'm sooo stupid, I found it. nervermind.
  16. Does anyone of you ever manage to get proper shipping costs? From what carrier did you get them? I often see eCommerce website that give very approximate shipping cost related to the costs of the items, which doesn't make sense to me.
  17. Thanks a lot, it works perfectly :)
  18. Is it possible to disable warning errors with a php function? I cannot access PHP.ini
  19. thank you guys, I'll try your ideas
  20. Do you know a way to easily backup a MySQL database and/or table in PHP? I'm looking for something simmilar to what PHPMyAdmin does when it creates .SQL files. Thank you
  21. Thanks a lot sasa, it works perfectly, thank you too SemiApocalyptic
  22. I'm sure it can be done without nested arrays, but I'm sure I will need to convert matryoshka-like arrays to strings someday.
  23. Maybe this belongs to the "PHP Newbie forum, but whatver..." Let's say I have an array which contains array which contain arrays etc... How can I convert it to a string so I can put it in a MySQL entry in order to take it back later? Maybe there's a smarter way to do what I'm trying to do. Any ideas? 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.