« first day (269 days earlier)      last day (4904 days later) » 
00:00 - 17:0017:00 - 00:00

00:18
posted on July 11, 2011 by Brandon Savage

Five months ago, I had an opportunity to accept a contract to work at Mozilla as part of the webdev team. There was a match for my skills on a contract basis, and even though it meant leaving permanent employment for the uncertain world of contracting, I knew it was something I would never forgive [...]

 
1 hour later…
01:44
hoy hoy
 
2 hours later…
03:25
Hey! quick question. Any standard way to have a globally available class I can use on any page without using a standard include?
03:39
@MicronXD I would route everything through an index.php. From there you add your classes/functions and include a seperate page based on a url. Basically this reverses/avoids your issue of needing declaring a super global. Also to answer your original question, you can't declare a super global without installing a plugin.
 
2 hours later…
05:17
couldn't I just configure php to auto prepend a file to all php pages?
@Li
@Lime
I'm just concerned with constantly reading the same include file from the HD over and over and over
Tek
Tek
05:38
@MicronXD The impact of using an include is negligible. The file might be even stored in memory by PHP so you don't have to worry about it.
 
1 hour later…
06:45
hi. i have a php page and I wonder if I can integrate a forum like 'phbb' in my website? :]
well , it is possible , but i'm not sure if You can
thought i would recommend against phpbb forum, because code-wise it is horrible
is there any other option rather than to build a forum from scratch?
@Stupefy101 it will be probably easier for you to integrate "php page" in forum.
@Stupefy101 I hope you can use vbulletin free version for your forum. Better idea is to install the forum separately and then you can provide a link to the forum from your page.
sorry, i forgot... vbulletin is not free...
07:00
@dskanth yes.thank you for your advice for the link.
@Stupefy101 You can try: Phorum ( phorum.org ) or Simple Machines ( simplemachines.org )
I was wondering, is there any upper limit to the amount of arguments you can pass to a function?
I'd vote against vbulletin :-P
@ChristianSciberras I wish there was one...
@ChristianSciberras 3
07:10
@Gordon 1
Actually, you're right.
0. you should use globals for everything! ducks behind cover
PHP_INT_MAX causes it to switch to '1'. PHP_INT_MAX-2 causes it to switch to '3'. O.o
@UniqueKey 0 globals, 1 parameter tops, 0 if possible (default)
@Unique_Key not globals, but in an ideal world your methods are niladic indeed
07:13
heh, of course i'm not that much of a lunatic that i'd use globals :P
everything above three arguments should make you question the design
Ha!
> You may only pad up to 1048576 elements at a time in /code/S85WwV on line 5
@Gordon yeah, i hear that. i've developed methods with too many arguments that just wound up confusing me
(yo @KamilTomšík, @ChristianSciberras)
07:14
yo ;)
Hi there
@KamilTomšík And?
i don't get it either.
@ChristianSciberras you can pass more than 3 (sadly)
@KamilTomšík - I was just saying there is strange behavior with PHP_INT_MAX.
@ChristianSciberras ah, sorry then :)
07:17
@KamilTomšík - See here: codepad.viper-7.com/Pl3iwf
Well, there doesn't seem to be any limit other than memory and possibly (probably) application bitness.
i've never seens Fatal error: Possible integer overflow in memory allocation (2147483647 * 4 + 0)
@Gordon What happens when you skip that limit?
PHP switches from ints to floats, no?
its a fatal. so i cant skip anything
@ChristianSciberras
btw: from 5.3 you can leverage lambdas for "parameters"

$pointClass->new(function($point){
  $point->setX(0);
  $point->setY(2);
}

however in php it's more readable with builder (with fluent interface)

$pointClass->new(function($pointBuilder){
  $pointBuilder
    ->x(0)
    ->y(2);
}

the point is - it's clear what names you're passing, they all can have default values and you can call them in custom order. which means - you have much more "future-compatible" api.

shame, php syntax is so verbose and unflexible, imagine this: Point new: {x: 0, y: 1}
you can of course pass array, but this way is "compatible" with autocompletion
@KamilTomšík - I'm not sure what you're saying. I didn't pass an array as an argument, I used an array to represent all arguments.
07:27
@ChristianSciberras it's btw :)
builders are good if you expect api changes (big frameworks), and lambdas made them even more cool
07:45
hi every1
:)
again here with a same issue of magento module development :(
it may be very simple for the experts but for me its way too much difficult
any magento module development Geek ?
I'm trying to represent a multiple choice OR single choice list of options through text. How would you do it?
Multiple: [Enable,Disable,Ignore]
Single: [Enable|Disable|Ignore]
I was thinking, in order to make any of the items selected (by default), I'd prepend them with a &
Eg:
Scrolling: [Enable,Disable,&Ignore]
Colours: [&Red|Green|&Blue]
08:03
hello
how would I do what? parsing dsl? syntax for dsl?
@KamilTomšík - Kind of. What do you think of my syntax?
is there channel for frameworks also ?
what about case-sensitivity?
scrolling: [enable, disable, IGNORE]
colours: [RED | green | blue]
I'm not going to do anything in full DSL. I just need the aforementioned feature specifically.
Hmm, not a bad idea.
08:06
@jurka I doubt
@KamilTomšík What if one of the options was an acronym?
@ChristianSciberras also - making default value the first one is not bad idea...
@KamilTomšík That really depends on the application. I might favor alphabetic ordering, for example.
@ChristianSciberras so? that's behavior of that field, not data-source
any ZF users here ?
08:09
I'd go with [default, second, third, ...] for single selects - it's natural for me
@KamilTomšík In the case of multiple choice, being the first won't matter.
Yeah, but that's just optional. You can do the order in any way you like
@ChristianSciberras yeah, multiple select is tricky, however default ones should be first too.
@KamilTomšík But that's just developer preference, it won't and can't matter.
@ChristianSciberras it should :) you're writing mini-language...
@ChristianSciberras make rules, make them enough obvious and natural and nobody will complain.
mini? I'd say almost insignificant :)
But yeah, there must be something that specifies which are the default items.
The uppercase idea would be ok, but I'm concerned about acronyms.
08:13
@ChristianSciberras you know how html select does look like, don't you? I do too, and probably everyone who will be using it will know. And in html select, if you don't set "selected" attribute, the first will be selected, why not reuse this "fact"?
so for me, only question is multiple select
and it should be as much consistent with single select as possible - so I'd restrict default values as first.
I'd rather not do that because that is first and foremost incompatible.
So if the dev wants to make default items the first, he could feel free to do so, or not.
But since there is still ordering later on, this simply won't do a difference.
So the question remains, how would you mark an item as "selected"?
Moving it at the start or at the end simply won't matter.
If it weren't that & is used to mark the hotkey character, I'd be more sure of the decision. :/
posted on July 12, 2011 by Lorna Mitchell

When I wrote about launching a prototype of a new joind.in API, quite a few people started to try it out. My friend David Soria Parra emailed me to point out that many of the numbers in the API were being returned as strings. He said: It's just a standard problem of PHP REST services. When I try to access it with java I have to convert it over and over again to ints. I did have a q

well, it's your app, do whatever you want, I'd probably go this way:

scrolling: ignore | enable | disable
notifying: email & phone | icq | twitter | whatever | else

sorting is different thing and it is responsibility of that field, not its syntax
and I would maybe even "erradicate" of that multiple syntax and leave just one enough "wise" to infer proper type.
I didn't get your last line.
yeah, I've just realized, there's one flaw :-P
dunno, but I'd really enforce first ones as default
08:38
@KamilTomšík your telling him to use a BNF?
i think I know what you've been reading. the examples seems familiar, so do the arguments :)
@Gordon what? :-P
i'd say DSLs
and if you are not, you should because you might like it
DSLs is book? :-)
aaaah :-P
no I didn't but I read a lot from Fowler. (that could be that "similarity")
08:51
maybe
will think about it, however I did a lot of dsl programming in J2EE, so I'm not sure, if it can enlighten me "enough"
anyway, thx for link
ugh. i hate writing manuals.
i'd gladly pay someone to do that
how much?
my hourly salary for the time he takes to do them.
probably not worth it for them, though :P
08:57
luckily i just need to provide a few basic instructions, since the site is wordpress-based i can link there for any further details
09:12
Morning
yo @Robik
Hi @UniqueKey
Can be dv? :)
10:11
have told anyone how much i hate Yii ?!
10:51
@teresko you can never say enough bad words about yii ;)
@Gordon doing it again? answer and cv? you're baaad :-D
@KamilTomšík i removed the possible duplicate link
while the OP was wrong refuting with "i dont want to translate", the accepted answer wouldnt have solved his problem indeed. at least not easily. Im not 100% sure how to configure the NumberFormatter to parse all the formats OP is showing. Hence I removed the possible duplicate and gave an answer instead.
i would remove the entire closevote if i could but SO doesnt allow for that
@Gordon ah, ok... btw: how would you implement "counter" which cannot be "decreased" below 0, is there any DBC technique for this except exceptions and error codes? I could only think about lambda with "error" behavior, but I'm looking for something better.
morning
$db =& new DbConn() ;
$produit =& new produit($db->getInstance()) ;
$tab = $produit->lire($prod_code) ;
uuuuhh
11:00
:-D
I smell E_STRICT warnings on 5.3 :D
hum :(
8
Q: Should users be penalized for answering bad questions?

FarrayOn a recent question, a user decided it was a bad question and downvoted all answers with the comment "-1 closevote, not answer!". I realize that the community doesn't want to reward help vampires, but is this the appropriate response?

interesting
seems like there is little consensus on that
one mod told me that it isn't allowed to do that, others told me it was bad forms and others told me it was good...
Morning
lack of consensus isnt anything new on SO. Take flags for example
I was told by one mod I should flag questions as possible duplicates when there dont seem to be enough 3k+ users online to vote and its clearly a dup. While another would reject all those flags and told me I should only flag for exact dups, e.g. users asked same question twice.
11:10
@Gordon "Improved Singleton docs (patch by Gordon Oheim)" ah, I knew it was you!
@NikiC lol. I thought you figured that yesterday already
@Gordon Yeah, SO is like PHP in a way: No consensus (look into #php.doc to see that live :P)
@Gordon Well, I wasn't sure yesterday ;)
@ircmaxell does it look like singleton? does it quack like singleton? then it really is singleton :-P
No, it doesn't quack like a singleton
11:13
@ircmaxell good for you :-)
it's more of a static factory method
yeah, it's not, I see it now... but it looks like - what about changing name of that method?
Yeah, changing the name was my first impulse too
getNoSingletonInstance() :)
11:16
lol
I don't know - that comment sounds like workaround for poor naming - getNewMath?
getBestBigMathInstance()
or what about: $bigMath->createNew(function($math){...});
huh?
ok, I gotta run, but I'll pop back in on the train
later
enjoy :)
11:18
loadProperStrategyGivenTheCurrentServerConfiguration()
createFromServerConfiguration()
seriously... what about Environment::configureCrypto($cryptInstance); setting proper lib inside of that crypto
You could also conditionally define the class :P
@kamil I want to avoid multi step setup if I can...
And this is just an arbitrary precision math lib, not the crypto class
@nikic: subtraction is already at a 7 in cyclomatic complexity, I don't want any more complicated...
11:40
Are there any ABNF Parser Generators in PHP?
If not: @KamilTomšík, will you write one? That sounds like an exercise you might enjoy ;)
well, this is rich.
wordpress is showing a sidebar item even when i removed it when it's logged out
@nikic do you know when the docs will be regenerated next time?
which is the best book that i can refer for php sessions ? can anbody help me in that?
11:56
@Gordon not in early future, have a lot of other work. and most importantly - I don't have no tests already, so it would be pretty complex, imho.
@ircmaxell Didn't understand that now ... ?
@AnandJoshi whats wrong with php.net/manual/en/book.session.php
@Gordon No ^^ I don't know that. I think that docs.php.net is rebuilt quite often, but I don't know when exactly ;)
@Gordon kmyacc can generate a PHP parser from a yacc grammer. Is that enough for you?
@NikiC how close is yacc to abnf?
@Gordon I don't really know abnf but from glancing: not really close ;)
12:04
@NikiC then it probably wont do
@Gordon ^^ Should be easy to transform the grammer though. You need this for your URI Templating?
@NikiC not sure if really need it, but yes, that's why i am looking
@Gordon Well, the URL Templating syntax is easy enough to write a custom parser imho.
@NikiC yeah, just exploring options
imho too big gun... also abnf is not the most readable format, regexes are imho better in this.
simple ones, of course :)
12:16
imho pcre should give us more possibilites for collecting data in recursive patterns
then most parsers could be probably written in regex easily
@KamilTomšík the abnf for uri templates is simple enough to redefine it with one regex.. thing is, im bad at regex :D
@Gordon We can help you :P
thanks :)
but like i said. im still exploring options first
regex is so impractically cryptic.
@Unique_Key i agree for most regex, but if you use pcre_extended you can make them much more readable
12:19
@Gordon Could you give me the link the specification with the grammar again? I want to prove @UniqueKey wrong...
which one? the uri template specs?
	'(
		\{                           # match opening curly brace
		(?P<operator> [+./;?|!@]? )  # followed by an optional operator
		(?P<variableList> [^\}]* )   # and all that is not a closing curly brace
		\}?                          # until a closing curly brace is found
	)x',
but the specs are somewhat more complex than that.. still for parsing the expressions and passing them to the right expanders it works
yeah, I wouldn't bother is abnf
+I suck at bnf in general, I've never liked it enough :)
it even stays readable when (trying to) define the grammar in regex: codepad.viper-7.com/vNoGKu
not that it would work like I expected it to work.. but its readable.. mostly.. for regex...
and right now i am undecided whether i want to tokenize the string or continue messing with regex
12:25
@Gordon Well, the main problem with using a regex is that it's hard to extract the data from it (as I said above already)
It's mainly good for validating that something is using a particular scheme, but it's hard to create an AST / node tree from it ;)
@NikiC its not that difficult. basically, you define a table with all the tokens and then you match these against the pattern over and over again until the string was completely processed
its more like a lexer though
@Gordon Yeah, I was referring to the regex based approach, not the lexing based one (which will obviously be regex based itself :P)
@NikiC still waiting :P
@Gordon What I wanted to say is if you write such a regex as the one you have gisted above, you can make it match the right things but you can't tell the regex to give you the &operator or the &variableList ;) It's great for a yes/no answer but not for extracting data (imho)
regex will probably always look like obfuscated code to me.
12:32
@gordon its just a single page information i want a detailed book dedicated to sessions..!!
@UniqueKey So you think that both regexes Gordon posted above look obfuscated?
@NikiC the regex will give you both
@Gordon Yes?
to me, they do. i try understanding that stuff from time to time, but the operators stay confusing
@AnandJoshi single page? click the blue thingies. they are called links ;)
12:33
@Gordon PS: You can't write [+./;?(?&opReserve)]? ;) The (?&opReserve) will not be interpreted in there ;)
@NikiC are we talking about the large one or the small one?
if you use the small one you will get operator and varlist
@Gordon The large one ;) The small one will obviously give you the data ;)
the large one doesnt give you that. for whatever reasons.. my regex foo aint that good
@gordon , thank you , but thise links give information about how sessions are used and basic info about it , any ways thanks a lot
@Gordon Yeah, that's what I'm trying to say: That the large one probably won't work well for you, as it only validates, but doesn't give data ;)
12:36
@NikiC is there any way to make it give me the data?
@NikiC i used stackoverflow.com/questions/4231382/… as reference for how to use these define thingies but perl is just evil to me :)
@Gordon Data is captured when the group is defined ( the (?<...>) ), not when used ( the (?&...) ). That's why you get data with the small one but not with the big one. So if you want to get data you would need to take all things you want to get as data outside the (?(DEFINE)) conditional and use them directly ;) (You can still keep helper definitions in the conditional ;) )
ewww
:D
watches comfortably from safe distance, and grabs some popcorn.
on a sidenote, does anyone find strtok even remotely useful for tokenizing string?
12:43
@Gordon Nope ;)
it doesnt even tell you which token it matched
Because of the one-char restriction on tokens ^^
stands near @UniqueKey
hey @Robik, grab a beer :D
I would like to :)
12:47
he's too young :-P
you're never too young, as long as consumption is done with a responsible person around and you're at least 14 :P
:)
No, thanks. I will take some juice.
filter_var(@Robik, FILTER_VALIDATE_LEGAL_DRINKING_AGE); // FALSE
(disclaimer: not promoting booze for minors. just saying that a sip from dad's bottle doesn't make anyone a young alcoholist :P)
@Gordon I don't print warnings or errors :P
12:50
hah
@Gordon Hey, I'm a var!?
Don't unset me :(
sudo ./robik drink
:-P
with warnings suppressed, no less.
not locale aware btw :)
while(!isRobikDrunk()) drinkMore();
12:53
try
{
    $Robik->setAge(18);
    $Robik->drinkBeer(2);
}
finally
{
    $robik->drink(1);
}
@UniqueKey Too restrictive ;) while (true) drinkMore();
@Unique_Key nah that should be $robik->drinkUntilDrunk()
@NikiC you're a pro :D
@NikiC I did that last saturday... and I can tell you it was not the greatest idea :-D
if($rubik === "drunk")
12:54
I don't want to be durnk to end of the world -_-
@Gordon and that's why my code looks overly long. :D
{dont dirve }
@AnandJoshi I'm not rubik :P
@NikiC set_time_limit rescures me!
@Robik sorry not wearing my specs
$rubik = to_cube($robik);
12:56
Woah! I'm a var again :D
ob_flush_hangover();
2
@Robik just hope you're not a global, nobody would like you...
@Robik PS: PHP doesn't have finally ;)
hehe, no-global
@KamilTomšík But he probably is a singleton, isn't he? So nobody likes him either :(
12:57
public function drinkUntil(StateValidator $validator)
{
    while ($validator->validate($this->intoxication) === false) {
        $this->drinkMore();
    };
}
3
I'm adapter
Now tell me it was @KamilTomšík who starred that :)
@Gordon you're awesome for coding a structurally clean method in JEST XD
@Gordon Haha! You haven't specified what kind of drink!
wasn't me :)
12:59
So how much I drinked already? :P
@Robik not enough. MORE.
@Robik since when do teenagers care about the "what" ;)
@Gordon I don't like type hints, remember? :-P
@Gordon nicht hänseln ihn mehr, würde er weinen!
exit(pub);
12:59
@KamilTomšík :P
require 'anonymous_alcoholists.php';
@Unique_Key lambdaholics
Hah! $this->setDrinkType(Drinks::Juice). No more hangover :P
lol, foiled :D
13:03
Everything started from (evil) pop-corn
it always starts out innocently, man.
@UniqueKey Yeah.
@Robik $grapeJuice->addSugar()->wait();
hum hum hum
@Gordon I personally would approach the problem by breaking it down in multiple regexes. I.e. first the one you posted above which gets you the operator and the variables list. Then you can explode the variable list to get the variables. Then you can match the variables against some regex again, aso ;)
@NikiC yeah, the only thing i dont like about that (and which made me explore options) is that its hardcoding the spec into the parser.
13:15
@Gordon What's the problem with that? Or how can one avoid it?
uh, I just found some really evil regexes in my code:
const LIB = '(?(DEFINE)
    (?<singleQuotedString>\'[^\\\\\']*+(?:\\\\.[^\\\\\']*+)*+\')
    (?<doubleQuotedString>"[^\\\\"]*+(?:\\\\.[^\\\\"]*+)*+")
    (?<string>(?&singleQuotedString)|(?&doubleQuotedString))
    (?<comment>/\*[^*]*+(?:\*(?!/)[^*]*+)*+\*/)
    (?<code>\{[^\'"/{}]*+(?:(?:(?&string)|(?&comment)|(?&code)|/)[^\'"/{}]*+)*+})
)';

const PARAMS = '\[(?<params>[^[\]]*+(?:\[(?&params)\][^[\]]*+)*+)\]';
const ARGS   = '\((?<args>[^()]*+(?:\((?&args)\)[^()]*+)*+)\)';
Though that still aren't the most evil regex that i've written. The ones for tokenizing PHP were even worse
@NikiC its not a big problem actually. i was just wondering if one could it make more dynamic and separated
@Gordon I know only about OMeta tinlizzie.org/ometa :)
@Gordon I'm not sure what you want to separate? The grammer and the parser implementing that grammer?
@NikiC so that when a new draft comes out, its easier to redefine
@Gordon but that's tooo much hard-core, there's also JS dialect written in that. (JS implemented in OMeta)
13:21
@KamilTomšík can I call you ImpractiKamil from now on? ;) j/k
@Gordon I had to, have a look on this:
// Inspired by McCarthy's meta-circular lisp

ometa Lisp {
  ev     = string:a                                         -> self.env[a]
         | [#lambda :fs :body]                              -> [#lambda, fs, body]
         | [#quote  :ans]                                   -> ans
         | [#cond   evCond:ans]                             -> ans
         | [ev:f    ev*:xs]     app(f, xs):ans              -> ans,

  evCond = condF* condT:ans anything*                       -> x,
@NikiC given that there is an implementation for Uri Templates in PEAR (for v3 though) and another one on GitHub it's more like a challenge to make it OOPretty and extensible. I'm fully aware that it's likely going towards overengineering then
@KamilTomšík ometa sounds like omerta to me.. and that means better not talk about it ;)
anyways.. got some stuff to do.. laters and thanks for the input so far
enjoy, later
Tek
Tek
14:17
Is it proper to use exceptions for incorrect user input? Or how are user input errors handled? I'm just wondering how I can have something like:

$print_table->sometable( $request->gettabledata() );

Then put the error anywhere I want when the page loads again.
Anonymous
14:38
that makes no sense at all to me
Anonymous
something about exceptions?
@Tek right question is "do you really want to validate"? because it's like "I don't know what I want, but I do know what I don't want, so dear user please try to fill something and I'll see if it's good enough for me and if it's not, I'll show you this screen once again - just for fun"
in other words - concentrate on what do you want and express it - and then design enough powerful form layer which is able to reflect this (including html5 and/or javascript)
and in best case - avoid restrictions at all - what's reason for them anyway? it won't save your time, neither user's one
@KamilTomšík i have to disagree. you can't discount the fact that an user might try inputting malicious data, or maybe you demand it in a certain format to match datatypes on the server end
@UniqueKey so? if my parents gave me name "' OR '' = ''" you wouldn't let me in?
Anyone have an excellent question to act as a primary source for the concept of implementing a php chat?
14:49
@UniqueKey actually, is anybody restricting you from typing it right here? I think chat is db app too :)
and that's my short answer :D
@UniqueKey sanitize db input, not user inputs. that's my short answer ;)
Ah, yes Bobby Tables.
I'm seeing a lot of questions that need linking to good php chat answers, but no one great question and answer.
Knew the guy. (lol)
14:50
heh
to elaborate further: people names are one thing that shouldn't have weird characters, either, barring apostrophes
@UniqueKey What about O'Harra?
just as you'd want the user to input date values as numbers, maybe from a select
@KamilTomšík like i said, apostrophes are fine because they're used in those situations
posted on July 12, 2011 by Chris Shiflett

I'm a domain addict. For years, I've maintained a portfolio of more than one hundred domains, most of which were being reserved for later use. I'm an imaginative person, and I love the Web, so I have lots and lots of ideas that require a domain name. If you're reading this, there's a good chance you're a lot like me. Recently, I reduced the number of domains I own by about half. I let a num

@UniqueKey yeah, right, I agree with that date, but that's different kind of story - you're not saying "type something and I'll shoot you if you're wrong" - you're giving options - that's much better
@KamilTomšík that's the same with numeric fields, though
if i'm asking someone to punch in a number, WHY does he want to insert alphanumeric characters? that's when you smack them on the back of their heads, if it's not obvious at first
Tek
Tek
14:54
@KamilTomšík I see what you mean. But I want the user to know what they did wrong. In case they add an extra unintended character on a field that needs a particular format
naturally, that means taking extra care in the ergonomy and minimizing ambiguities on the required data
@UniqueKey yeah, usually it is - it's even more UX friendly to allow options - but again, options are not validations - or at least not those which I imagine when somebody says this.
Tek
Tek
@UniqueKey beat me to it
also consider this: different types of data may require different processing. if i need to insert an amount into a DB column, i can't accept characters as data, that would break everything
@Tek it's much better if they can't do anything wrong ;)
14:57
@KamilTomšík what i'm suggesting is, if the use case doesn't suggest the requirement for a strict implementation, it may be kept loose, but sometimes there's no way around that
@UniqueKey and I'm saying - avoid validations if possible - and if you really need them - don't do validations, prefer restrictions - make form with numberfield, which will itself take care of all "validations"
Tek
Tek
@KamilTomšík Restrictions in what way?
and isn't always possible. even then, like i said, that's more of an ergonomy question than a validation one: provide the right input for the data
anyway, loved to yak with you fellas
@Tek like not allowing to write invalid data, show inline warning, which will "fade out" - that numberfield has to take care of server-side validations - but this wouldn't happen so often to users (because most of them have js enabled) and you won't need to care about it, because it's implemented right in that field.
workday's over :3 later
Tek
Tek
15:02
@KamilTomšík This is a php-only page, so no javascript.
Tek
Tek
...not everyone runs html5
Tek
Tek
...I'm not writing this for you
lol
my mother does too :-P
Tek
Tek
15:03
I'm not writing this for you, or your relatives. lol
@KamilTomšík Though that's what I'd like. An inline warning, with php though.
16:04
Dam case insensitive file systems. Caused my build to fail...
Tek
Tek
16:18
lol
@ircmaxell Shouldn't case insensitive make it work regardless of key case?
yes, but I wrote on case-insensitive, and tested on case-sensitive
which causes a problem
hey all
i created it about a year ago and it works great ^_^
16:39
can sumbody help me with this
16:53
@lovesh that has nothing to do with php
i know but its been more than 1 hour and i didnt get any resonable answer so i thought to try in chat room
people familiar with php happen to know html and css too
@MicronXD I would advise downloading Kohana, Code ignitor, or even wordpress. I'm assuming you've probably used one of those systems before. Basically all 3 systems sends all requests through index.php where there it determines how to route the page you are looking for.
Once index.php determines how to route the page it includes the appropriate file. If you are worried about including to many functions/classes you can use php autoloading feature to load classes on the fly. Kohana makes extensive use of the autoloading fetaure.
00:00 - 17:0017:00 - 00:00

« first day (269 days earlier)      last day (4904 days later) »