« first day (1032 days earlier)      last day (3913 days later) » 

user895378
3:00 PM
@Leigh Yeah my pthreads work is all experimental. I can't offer you any advice on using it with composer.
 
user895378
/cc @Danack
 
@Leigh huh ? It's free ?
 
@Simon_eQ doctrine is a standalone project
 
@HamZa its just colocation.. (was surprised too before i realized it)
 
Anonymous
@Ocramius I know that, I just thought the fact that if it is installed as dependency for sf2, would it include additional things meant to sf2 only
 
Anonymous
3:04 PM
it means now, I can copy the folder from vendors, and use it for another projects?
 
@Gordon you mentioned, that you often have to work with forms where file fields with main base name name="file_field_name*" are in dynamic amount and you reference them like array name="file_field_name[1][1]" or name="file_field_name[1][2]", etc. Now my Q is, do you use a wrapper for those fields in your code and do you need to work with index? If so, then how do you store it per each file?
 
@Simon_eQ if you explicitly use a library in your project, you MUST require it in composer.json
 
Well as a heads up then @rdlowrey, the registered autoloaders don't get passed to the Workers/Threads. So if you try to create a new class in one of the worker threads and that class isn't already loaded, then the code will fail with a fatal error. Composer uses 'require_once' in it's files, so it can't be included from within the worker thread. I guess you're meant to pass the composer autoloader in instead - which is what I'm currently looking at doing.
 
@reikyoushin well it hosts your server for free ?
 
the fact that it's transitively included doesn't guarantee that it will be there ;)
for example if symfony wants to go propel tomorrow :P
 
3:05 PM
@HamZa i guess so.. as long as you have your own physical box i think. i don't get why they will offer it for free though
 
user895378
@Danack Yeah, you basically need to treat worker threads as their own process and plan to fully bootstrap them like you would the main script if you're going to use them that way.
 
Anonymous
@Ocramius hmm. btw: I am on the subject of data fixtures now. \o/
 
user895378
Though I'm not sure you want to do that ...
 
user895378
It makes more sense (to me) to use worker threads to perform specific tasks and not as "full duplicates" of your primary application.
 
user895378
But that's more a gut feeling than something I have evidence to support ... I'm still working out how I feel in areas of program design where threads are involved.
 
3:06 PM
what was php originally called personal home page?
why*
 
@HamZa my php script has lots of loops like while{}, for{}, foreach{} loops. Depending on the input, sometimes the loops are never ending and thus cause server error. How to find out which loop is causing he error?
 
@rdlowrey Yeah - I only found out because I was passing in a proxied version of a class, that only actually created the actual full instance of the class when it was used. Which obviously didn't work inside the worker.
 
@NokImchen Output a 1 into a file in your while, a 2 in your for and a 3 in your foreach, to a text file, using FILE_APPEND
 
Guys, those of you who install phpMyAdmin under Unix system, do you do that with package manager?
 
@Jimbo yes, i was thinking the same thing, I have kept that idea as my last resort cos there are atleast 100 loops. Is there any log file? or some other solution? btw, yes, i'm doing that FILE_APPEND idea that you have suggested
 
3:10 PM
@Eugene You can on some distros. I don't usually use it.
 
@NokImchen 100 loops!? Ouch :/
 
@SweetieBelle you don't use phpMyAdmin or you don't use PM?
 
Anonymous
I suggest HeidiSQL
 
@Jimbo yup! its a lot. Most of them are very tiny loops like less than 100. while some loops dont loop at all. It all depend on the input
 
@HamZa It's free, but you have to host it indefinitely (i.e. they will not send it back)
 
3:12 PM
@Leigh Ah I see, I expect that the hosting would be crappy ? Or is it reasonable for what a raspberry can do ?
 
@Eugene Don't use phpMyAdmin. I use Navicat.
 
I don't use it... I have a Pi at home with php/percona on it just for messing around
 
Any PHP devs free for a (hopefully) quick and easy Q/A? stackoverflow.com/q/18212283/
 
^ what i read is "Any PHP devs for free" haha
 
3:14 PM
@JoeyO'Driscoll - "Don't ask whether someone is here to help you. If someone is around and wants to help they will."
 
Jul 31 at 10:02, by HamZa
@PiyushArora We hate WP
 
Anonymous
@HamZa I had set up this WP site and gave it for free, to some charity organization. Last week, while trying to clear spam comments, I accidentally wiped out, the whole article.
 
@Simon_eQ lol
 
Anonymous
So, I just placed index page, saying the site is "under maintenance"
 
Anonymous
I don't have a clue, as to what to do/say to the people
 
3:16 PM
I'm sorry reik, I thought stackoverflow was a free community that helped one another.
 
@JoeyO'Driscoll that would only work on the immediate parent..
 
@JoeyO'Driscoll It is, but don't assume all PHP devs know WP
 
@Jimbo thank u, i think i got the function thats giving me the infinite loop :)
 
Anonymous
@HamZa come to site the site
 
Sweetie, hence the reason why I attached the WordPress tag :\
 
Nevermind, I obviously misunderstood the chat room.
 
@JoeyO'Driscoll try here next time.. :) wordpress.stackexchange.com
 
Anonymous
Yea, I know. @HamZa
 
> Discussion for all things PHP - Don't ask whether someone is here to help you. If someone is around and wants to help they will.
 
Anonymous
@HamZa what would you say, if you were in my situation?
 
3:19 PM
@HamZa i know i've seen this somewhere.. o.O
 
@reikyoushin The rooms description
@Simon_eQ well a mistake can happen :)
 
@HamZa XP
 
@Simon_eQ I once wiped a whole webshop lol
 
Anonymous
@HamZa The site had over 150K spam comments. So, I am telling me, that the DB is corrupted, and I asked them if they had a backup, they said "Oh, my God! What is a backup?"
 
@Simon_eQ checkout "akismet"
 
Anonymous
3:23 PM
@HamZa Yea, but its not free. Anyway, there are captcha -- way better option.
 
@Simon_eQ there is a free option I though ...
 
Anonymous
@HamZa I doubt that. YOu can install it, but to activate it, you need a key.
 
Anonymous
The key === money
 
 
Captchas = evil, and only a last resort IMO.... they completely destroy a user experience.
 
Anonymous
3:25 PM
if you check the site /renovation you will see, the template in the making. I am trying to integrate that template, once finished into WP using Artisteer.
 
@Wrikken i like honeypot more..
 
Anonymous
@HamZa If you are asked to do WP, site. Go to artisteer
 
@reikyoushin: yes, baiting (and pretending everything went OK / the bot was successful) is my favorite.
 
@Simon_eQ lol forget it
 
@HamZa you gonna create a WP site with lots'a regex? lol
 
Anonymous
3:28 PM
Its a life saver + quick
 
@reikyoushin heh, I build a website from scratch with regex :P
 
but i like using incapsula for anti bot spams though..
 
Anonymous
I wish regex gets deprecated. Just because, I don't have to learn it :p
 
@Simon_eQ @HamZa will be sad :P
 
@Simon_eQ lol wut
 
3:30 PM
@Simon_eQ It's worth learning, it makes your life much easier.
 
@SweetieBelle and you get lots of SO points, right?
 
Anonymous
@SweetieBelle You know what would make my life so much easier? getting a wife
 
@reikyoushin I get very few from regex
 
Anonymous
And that is a fact :)
 
@SweetieBelle it's because @HamZa already took it
 
3:31 PM
@Simon_eQ No, sir, that would make your life harder.
 
@reikyoushin: interesting. Seems to have a lot of features in common with cloudflare, which I've tested and found wanting, any comparison between the 2 / reliability metrics?
 
@Simon_eQ If you think regexs are hard to understand, try comprehending female emotions. :D
 
@SweetieBelle +1 haha
 
@reikyoushin nope, I close most of them
 
Anonymous
@SweetieBelle Not, when you start mixing cooking ingredients with PHP functions. trust me!
 
3:32 PM
@Wrikken cloudflare is better in CDN, incapsula on security
i catch lotsa bots with it..
 
Cyaa
 
@HamZa bye!
 
To any women here, that's not an insult: men are simple, we have simple emotions. But for us to try to understand yours is like someone who barely speaks 5th grade English picking up Shakespeare for the first time.
 
Anonymous
@SweetieBelle I hate cooking...
 
@Simon_eQ I like cooking. :P
 
3:34 PM
Hm, the only thing hard about regexes is to realize when not to use them ;)
 
@Wrikken check this one out.. tonyonsecurity.com/2012/11/13/…
 
Hello guys, i have two question. Is mysqli store_result() used before or after mysqli bind_param()?;

Is it safe to use dynamically built prepared statements, without applying real_escape string on the parameters?
 
@Wrikken There's a time not to use regexs?
 
Anonymous
Regex is the devil :p
 
@reikyoushin: thanks for the link, checking that PDF now (the rest of that article about XSS/RFI/SQL injection is less interesting... if I need a 3rd party to protect me from those I should just stop hosting sites ;) )
 
3:37 PM
@Simon_eQ Regex is incredibly powerful, I don't understand how anyone can not like it, other than the intimidating look of the expressions.
 
@BikerJohn store_result() is called after the execute - so way after the bind_param().
 
@Wrikken it's just another layer of security on top of yours.. though. doesn't mean you should use em.. [ plus it is a CDN so if you need it, why not? ]
 
Because power corrupts... Everything looks like a job for regexes once you know them ;)
 
Anonymous
@SweetieBelle I just never cared to learn about it. Because, they scare me to death. If you told me to save the world, with the simplest regex function, there would be a doomsday
 
@Wrikken Every function and feature can be misused.
 
Anonymous
3:39 PM
I just can't find a hello world tutorial.
 
Anonymous
maybe I need to search more
 
@Simon_eQ It's not an easy thing to do 'Hello world' with, because you're only going to use them when you need them.
 
@Eugene I just do that for more semantics, e.g. for fields like user[name], user[mail] and so on because that will then give me 'user' array in $_POST which I find convenient. its handy when you have additional related fields on that page, for instance address[street] and address[zip]. I could obviously put them all as user_name, user_email, address_street, adress_zip but then I'll have to manually map them. Not sure what you mean with "use a wrapper" and "do you need to work with index"
 
Anonymous
By, hello world, I meant the simplest example ever.
 
@Simon_eQ Typically, the important operators you need to know are: ^ - start of haystack; $ - end of haystack; / - typical delimiter
 
Anonymous
3:42 PM
So something like preg_*(/^something here$/) would make sense? @SweetieBelle
 
Anonymous
don't laugh :)
 
@Simon_eQ Need to put quotes around the regex, then define where to match
 
Anonymous
preg_*("/^something here$/") ?
 
@Danack oh sorry, i meant bind_result, not bind_param :/
 
@SweetieBelle you have a perl background. of course you dont understand how anybody cannot like them :P
 
3:44 PM
@Simon_eQ i like # as delimiters though.. so no need to escape slashes
 
Anonymous
preg_*("#^something here$#") ? @reikyoushin
 
$haystack = "MatchThis";
$regex = "/^MatchThis$/";
$replace = "New String";
echo preg_replace($regex,$replace,$haystack);
 
yep. ^_^
 
@Simon_eQ Or more commonly, say for a specific word in the sentence
$haystack = "Something here smells like shit";
$regex = "/shit/";
$replace = "poo";
echo preg_replace($regex,$replace,$haystack);
 
good lord
 
3:45 PM
Though for both of these you'd use str_replace instead.
 
@SweetieBelle: don't look for words without \b delimiters...
 
@Wrikken I'm trying to keep it simple
 
Anonymous
Yea, that is what I thought. Why use that, instead of using str_replace()
 
But yes this would match the 'shit' in 'shitaki mushrooms'
 
@SweetieBelle: simple is why you can slill find clbuttic cars.
 
3:46 PM
@SweetieBelle thats 'pooaki mushrooms' for ya ;)
 
@Wrikken When explaining, one step at a time.
 
Well, if you sure you can keep your audience until the real deal, then yes.
 
@Simon_eQ Because you use regex to match a pattern, not a word
 
If y'all need a good laugh/cry this morning, check out this Meta user's questions over the past day or so. They're freaking hilarious.
 
3:49 PM
@BikerJohn Ah - I thought you might. Basically they wouldn't be used at the same time. Bind_result is when you want to get just some columns (or your code knows the names of the columns) and can just call fetch() to get the data directly.
Store_result is used to get a mysqli::result object, which you can then call fetch_assoc() to get the data through. So you would call either one or the other, not both. (that's what I do at least, though there may be scenarios when both could be called for one query, that I'm not aware of).
 
Anonymous
pattern? how is that different... wait, what does that even mean. <starts googling>
 
@DaveRandom Ha, very nice, especially the @ symbol addition - +1 > also, can't believe you spent so much time adding to that since this morning lol!
 
@Danack Oh, now i understand. Thank you : )
 
np
 
Anonymous
@Gordon If you are told, that you are going to take a test, in place you know of, what kind of preparation would you take?
 
3:51 PM
@Simon_eQ
$haystack = "100 bottles of beer";
$regex = "/^(\d+) bottles of beer$/";
preg_match($regex, $haystack, $matches);
echo "I have $matches[1] beers.";
\d+ means any number of digits
Here, we can pull it out into a variable of its own, do math with it, use it however we want.
 
Anonymous
@SweetieBelle My intuitions are confirmed. regex indeed is scary. Thanks, for that tough. I'm still looking at it :)
 
@Simon_eQ
$haystack = "100 bottles of beer";
$regex = "/^(\d+) bottles of beer$/";
preg_match($regex, $haystack, $matches);
echo "I have $matches[1] bottles of beer, that cost me €" . $matches[1]*4.50 . ".";
If you change 100 in $haystack, the price will recalculate.
On a side note, regex is REALLY hard to teach. I've never tried before. >_<
 
Anonymous
Ok, the second example makes much more sense.
 
@Jimbo Only the last 20 mins or so, mostly because of that guy and his abominable code, I was worried I might get eaten by it.
 
@Simon_eQ I should mention I use perl regex more than PHP and there are different nuances between different language implementations. For example in some languages \d will match any numeric digit including for example hebrew digits.
The parenthesis around \d+ mean 'Capture this value'
\d means one digit, + means 'up to infinity of whatever came before it.
 
Anonymous
3:58 PM
Hm, I tried to read about regex once, and it told me that there are two type?? POSIX and I can't remember the second one. Maybe ESIX ...? not sure
 
So for example, to match the word at the start of a string, we can use "/^[A-Za-z]+/" (any number of alphabetical characters, uppercase or lowercase)
 
Anonymous
Anyway, as someone who is learning sf2, /d+ makes sense
 
@Gordon I specified, that I'm talking about a type="file" field and wrapper for uploaded file. Work with index of the file in $_FILES array.
 
Anonymous
@SweetieBelle Which site helped you, when you learned about regex for the first time ever?
 
@Simon_eQ #perl on Freenode
 
Anonymous
4:00 PM
Arghh, I was looking for php-related.
 
I was a total help vampire (well, not really, I helped other people with things OTHER than regex). There really aren't enough good regex tutorials imo.
I may have to write one at some point.
 
@Eugene if you want to use a wrapper use a wrapper
 
@Simon_eQ 90% of Perl regexes work fine in PHP.
 
@Simon_eQ umm, preferably the topics I am tested in
 
@Simon_eQ perl community has a lot of regex experts, I think regex comes from perl.
These guys use perl in their regex scripts, rather than regex in their perl scripts.
 
Anonymous
4:04 PM
hmm, I should've realized the importance of regex early on. It sucks to be a total noob right now
 
@SweetieBelle: regular-expressions.info/tutorialcnt.html sufficed for me on basic regex kickstart needs. You don't think it does the trick?
 
Anonymous
@Gordon seems legit. Just trying to see, if there is something I should look out for - additionally.
 
@Simon_eQ regex are unimportant. you'll always find a perlvert to ask and they are more than willing to share their arcane ascii art with you.
3
 
Anonymous
@Wrikken I've seen that site, in the regex room. Didn't do much for me.
 
@Wrikken Never saw it, I learned in IRC and just hacking scripts together.
 
4:07 PM
@Simon_eQ I dont know what you are tested in so I cannot tell you what to look out for
 
Ack, YMMV of course, let's just say it was (close) to enough for me, save for some regex 'design patterns' picked up later here & there.
 
Anonymous
@Gordon It'll be my first test, for my first job of having something to do with internet I am having curious george moment :p
 
@Simon_eQ well, what did they tell you it will be about? "the internet" is a rather wide topic
 
Anonymous
@Gordon That is the scary part, only detail I got it, it will be a week-long test. If I pass, I become intern if not, then nothing happens.
 
Anonymous
They are heavily commited to sf2, and I've got the basics covered, for that
 
Anonymous
4:12 PM
Plus, I studied, doctrine, less, html5, for the past 10 days.
 
@Simon_eQ Rinse on MySQL, PHP and sf2 and sf2 CODING STANDARDS.
 
@Simon_eQ ah ok, so they'll likely just trying to find out whether you're a complete dimwit or got the basics to build on.
 
New RFC: Constant Scalar Expressions Feedback?
15
 
Anonymous
@Gordon Exactly, what I was going to say!!!
 
Anonymous
@Gordon Just like you mentioned in your blog, about the importance of zend certificate: something about total idiot, or just idot
 
4:14 PM
@Gordon okey. So you don't use one.
 
@ircmaxell want!
 
@ircmaxell People might get a bit upset at doing it inside function declarations, but otherwise looks grand!
 
@ircmaxell hmm, had you ever any use for that?
 
@ircmaxell Do want, but maybe you should have given a clearer demonstration of what problem they are solving, for people who haven't seen the need before?
 
@Gordon yes
 
4:15 PM
@Gordon using other class' constants
 
@Ocramius No
constants are not resolvable in the expression
 
oww :(
 
since it's compile time, only scalars are supported
 
You know what'd be a nice Regex learning site? (Unsure if one exists) but one with an exam like sandbox.
So there's text and an input field and you have to enter the regex to select 'x' and just multiple questions like that
 
So basically, ordered enums type constants?
 
4:17 PM
well, and being able to break strings across multiple lines
as well as const SECONDS_PER_DAY = 60 * 60 * 24;
 
@ircmaxell depends on which day it is. not a constant value :)
 
Guess no one knows of any sites like that?
 
@Gordon
 
@ircmaxell: hm, the problem is, if I understand this correctly, that it would mean the parser has to run PHP (or at least a subset of it) while parsing... which is probably not sometthing that is going to happen.
 
@ircmaxell gotta love your DST. And let's not forget leap seconds!
 
4:19 PM
@Wrikken Not at all, I've already got it working with a simple (relatively) parser tweak: github.com/ircmaxell/php-src/compare/static_operation_parsing
 
Ugh, github is slow for me today...
 
@Gordon yes, I know :-P
 
So @ircmaxell would something like this be possible:
class TestClass {

    const FLAG_FOO = 1 << 1;
    const FLAG_BAR = 1 << 2;
    const FLAG_BAZ = 1 << 3;
    const FLAG_ZOT = 1 << 4;

    function foo($defaultFlags = self::FLAG_FOO | self::FLAG_BAZ) {
    }
}
 
:11225267  sapi/cli/php test.php
PHP Warning:  Cannot convert to ordinal value in /home/ircmaxell/php-src/test.php on line 10
PHP Warning:  Cannot convert to ordinal value in /home/ircmaxell/php-src/test.php on line 10
int(0)
hmmm, let me see if I can fix that
 
Extract Interface Refactoring for PHP. Already available in PhpStorm 7 EAP. http://ow.ly/nSImt
Nice.
 
4:36 PM
zzz
 
btw PHPStorm EAP = no license needed.
 
Why do people insist on using horible, hacky, obscure code as a "solution" when they have been offered good answers to their questions! Very frustrating! </rant>
 
@Danack not supported yet, as that's really complicated to do...
 
blah?
Shame - It would be nice.
 
4:51 PM
thank conditional includes
because I can't fetch a constant at compile time. That has to be runtime
 
@vascowhite Because 'derp, it works!' Same reason people use horrible, hacky, obscure code instead of looking for a clean solution.
 
which means changing the entire way static expressions are defined (making them runtime expressions)
which is nasty
this is pure compile-time
 
@vascowhite The attitude of a lot of programmers is 'It does what I want, therefore it is correct'.
 
@SweetieBelle Yeah, I know. It really was just a rant :)
 
It's a valid rant, because it's a horrible attitude.
 
@SweetieBelle Just saw your link paste2.org/694H6zVG. LOL What does that regex even do?
 
@Fabien Matches valid IPv6 addresses
 
Why use that over ipVersion()?
 
@Fabien Language agnosticism
 
Fair
 
Anonymous
5:07 PM
@Danack EAP?
 
early access program aka the beta of the next version
 
@SweetieBelle if you would at least use defined patterns
 
@Gordon I dont use that, I just think it's interesting regex.
 
$start = $end = new \DateTime('8/20/2012');
$end->modify('+2 years');

$diff = $start->diff($end);

echo $diff->format('%y'); # 0
 
@SweetieBelle it would be more interesting with defined patterns ;)
 
5:08 PM
A bit rusty here, help?
@Gordon Danke schoen
 
Evening
 
@webarto $start & $end are references to the same object.
 
clone......
 
@webarto or rather $start = $end = new \DateTime('8/20/2012'); is the problem. when you modify end you also modify start. what @vascowhite said
 
5:14 PM
This is going to be really unreadable imo @ircmaxell:
function foo($a = 1 + 1, $b = 2 << 3) {
 
@PeeHaa iz dat python perl lol ?
 
1 hour ago, by ircmaxell
New RFC: Constant Scalar Expressions Feedback?
 
@vascowhite @Gordon yes, that is true, 3v4l.org/QMdWh#v540 ... thank you guys.
I thought that modify returns new object or something.
 
@webarto you suck! ;)
 
@webarto Modify returns the same object as in return $this;.
 
5:18 PM
webarto > log out
:P
I'm not worthy.
 
Guys, why might session get stored in /var/lib/php5/sess_* and not in usual /tmp?
 
@Eugene because session.save_path in php.ini
 
@webarto: you could however $endtime = clone $starttime; to avoid the contructor interpretation overhead (micro optimalisations, but still).
@Eugene: because it would mean sessions would probably survive an unexpected reboot, and there may be more room there, and the disk may be different, etc.
 
@Wrikken Yup, I suck.
 
@Gordon not set
 
5:24 PM
Is it possible in a query to calculate the colum value - a variable value and then DESC it?
 
@Eugene Has it been changed by your script somewhere? php.net/manual/en/function.session-save-path.php
 
Yes.
 
@vascowhite no
 
@Eugene In that case it is a mystery :)
 
@webarto Yes to my question?
 
5:26 PM
An alias can be used in a query select list to give a column a different name. You can use the alias in GROUP BY, ORDER BY, or HAVING clauses to refer to the column:
@Tredged I believe, yes.
 
@Tredged select foo-123 as bar from mytable order by bar;
 
Thats not what I mean lol
 
@Tredged Don't listen to @webarto he sucks :)
 
Then explain yourself.
Apart from me sucking, explain yourself :P
 
@Eugene: normal suspects... checks which files, and how long the webserver is running & what the ini files last mod-time was....
 
5:27 PM
I have value from Wishweek from the database which is 201333 and in a php variable I calculated a value that is 201332 I want in the query WIshweek MINUS the PHP value and then desc @webarto
@vascowhite XD
 
You lost me at Wishweek.
 
yeah, I stopped reading there too :)
 
You suck :)
 
isn't that exactly what I illustrated? you might want to parameterise the literal 123 in my example
 
@PaulDixon Yes, basically.
 
5:29 PM
but the key is exactly what webarto referenced - using an alias to refer to it later
 
Why us an alias (unless you need the value)? ORDER BY col - 123 DESC....
 
also valid :)
 
Because that's what we learned in school.
:P
 
How can I check what php.ini file PHP uses? I see in command line with php -i, that session dir. is session.save_path => /var/lib/php5 => /var/lib/php5
 
echo $row['( 3959 * acos( cos( radians(37) ) * cos( radians( lat ) ) * cos( radians( lng ) - radians(-122) ) + sin( radians(37) ) * sin( radians( lat ) ) ) )'];
Totally valid.
@Eugene You can use good 'ol phpinfo if you have webserver.
Also, run php --ini
 
5:35 PM
@Eugene: php --ini
Damn, beat me to it.
 
It's OK, yours count because I suck.
 
@webarto it show, that I'm looking at loaded *.ini file, but I don't understand why there is session.save_path /var/lib/php5
It is not specified in php.ini
 
It's the default value perhaps.
Set it to /tmp.
 
    RewriteCond %{REQUEST_URI}  ^/login/instellingen/wijzig/gebruikersnaam     [NC]
    RewriteCond %{REQUEST_URI}  /[\w]+\.(php) [NC,OR]
    RewriteCond %{REQUEST_URI}  /[^.]+/?$             [NC]
    RewriteCond %{REQUEST_URI}  !instellingen\.php      [NC]
    RewriteRule .*              /login/instellingen.php?wijzig=gebruikersnaam        [L,NC]

I want login/instellingen/wijzig/gebruikersnaam/ to redirect to login/instellingen.php?wijzig=gebruikersnaam What am i doing wrong?
 
It would be the default value in Debian/Ubuntu indeed, that /var/lib/php5...\
 
5:39 PM
You are not CTRL + K'ing it, that's what's wrong. There you go.
 
@webarto where is it set? Might it be set during installation?
 
@webarto Forgot that, thanks ;)
 
@Wrikken but on other installation it worked fine.
 
43 secs ago, by Wrikken
It would be the default value in Debian/Ubuntu indeed, that /var/lib/php5...\
@Tredged RewriteRule ^login/instellingen/wijzig/gebruikersnaam http://example.com/login/instellingen.php?wijzig=gebruikersnaam [QSA,L] ?
 
@webarto Getting an internal server error
 
5:43 PM
@Eugene:
grep '/var/lib/php5' `which php`
Binary file /usr/bin/php matches
Compiled in :P
 
What?
 
@Tredged I forgot .htaccess, play with it.
 
@Eugene: that it is the compiled in default save_path.
 
@Wrikken You are assuming that he knows what compile is actually :)
 
5:45 PM
... yep. And I'll stick to my guns on that part ;P
 
:)
 
Ah been a long while since I tidied and reorganised my bookmarks.
 
@PeeHaa for that case, yes. But give me a better use-case
 
Where do you guys setup dev servers for just messing around?
learning and whatnot.
 
5:59 PM
@Fabien Local VMs.
 

« first day (1032 days earlier)      last day (3913 days later) »