-
Posts
24 -
Joined
-
Last visited
Never
Posts posted by Horst Azeglio
-
-
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?
-
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. -
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] -
I'll try that.
For now I temporarly fixed the problem by adding the full path to the links. -
Thanks but ini_set() didn't work + I have no access to PHP.INI
-
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. -
sounds good, I'll do that right now. thanks
-
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 -
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.
-
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 -
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. -
Maybe it's only for IE, since IE doesn't display table content before it's loaded.
-
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.
-
Do you guys know how to display a TABLE before it's content is fully loaded?
Thank you. -
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. -
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.
-
Thanks a lot, it works perfectly :)
-
Is it possible to disable warning errors with a php function? I cannot access PHP.ini
-
thank you guys, I'll try your ideas
-
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
-
Thanks a lot sasa, it works perfectly, thank you too SemiApocalyptic
-
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.
-
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.
[SOLVED] preg_replace: newbie question abour regular expressions
in Regex Help
Posted