« first day (1804 days earlier)      last day (3160 days later) » 

12:00 AM
no
 
view layer is where all of the presentation logic exists
that does include templating, but is not limited to it
for example, concept of "page size" would be part of presentation logic
@AnmolRaghuvanshi I assume you where asking about what should be in view layer and not trying to tell me that was wrong in stackoverflow.com/a/16596704/727208
 
yeah i was reading exactly that @tereško
presentation logic what that in simple words
 
@AnmolRaghuvanshi "how it looks"
 
@Danack count(new EmptyIterator()); // int(1)
:'(
 
12:08 AM
ok got it
 
@AnmolRaghuvanshi in simple terms: controllers take the input, views create the output and model is the brains
 
@tereško thnks i got it and me need more depth learning on MVC
 
@AnmolRaghuvanshi just start going through this list: stackoverflow.com/a/16356866/727208
 
yeah i read your answers every day already gone through that list
 
keep in mind that older posts might be really really wrong
a lot of them are not updated
 
12:19 AM
i can handle that
basically i want reference for learning OOP concepts coz every where autoloading, defination is same but you say it's LSP in solid so i want such reference for learning @tereško
 
regarding LSP, have you seen this image: tomdalling.com/images/posts/lsp.jpg
autoloading and LSP are not actually related
 
ohh my mistake it's overloading
 
LSP restricts what you can chould change, when extending a class
 
LSP essentially means you can only make things more strict.
 
s/strict/refined
 
12:30 AM
ahh Child classes should never break the parent class' type definitions. i am reading it...
 
that's a really confusing definition
 
what this comes down to is:
class Shark extends Fish{} //correct

class User extends Table{} //wrong .. and kinda insulting
 
@AnmolRaghuvanshi It's not just breaking types – it's any preconditions, postconditions or invariants.
Types are only one such kind.
 
Anonymous
@Patrick What was the address of the $12/year VPS?
 
12:37 AM
@AnmolRaghuvanshi the most important word in LSP is "substitution". If you have a method, which expects an instance of Parent class, it should also work if you substitute the Parent instance with Child-241 instance
 
Anonymous
The one you had hosted a site with.
 
@tereško @LeviMorrison thnks for your points
me continue to smash LSP
programming is fun if done in right way
 
12:59 AM
-1
Q: how to create multi php filtering system

jvkI am charged with rebuilding something like this: http://flowcharts.calpoly.edu/ It was created in a php tool which we do not have(and added a lot of extra code). Basically you filter the database three times to create a file name and you get a PDF to download. php is not my strength, any directi...

 
blah
 
morning ircmaxell
 
@bwoebi So do you want me to propose a different RFC or what for fn + =>? How do you want to approach this?
 
I don't like adding a redundant keyword
 
I know. I plan to make it two-votes.
One for fn and one for =>
 
1:23 AM
are you planning on => exactly how HackLang does it?
 
Hacklang doesn't have => like this.
class Foo {
    private $property;
    function getProperty() => $this->property;
}
function reduce($initial) => fn(callable $fn) => function($input) use($initial, $fn) {
    $accumulator = $initial;
    foreach ($input as $value) {
        $accumulator = $fn($accumulator, $value);
    }
    return $accumulator;
};
 
duh
/me keeps confusing that
I think I'd just rather see ==> exactly as HackLang does it.
 
the point is that if we want ==> exactly like hacklang we'll have to make some parsing hacks (no pun intended) as they did. Levim is trying to invent something better that fits our current technical situation.
so fn is just an alias for function and => functions will be available everywhere including classes + have full typehint support.
 
the example above is precisely the problem though
5 mins ago, by Levi Morrison
function reduce($initial) => fn(callable $fn) => function($input) use($initial, $fn) {
    $accumulator = $initial;
    foreach ($input as $value) {
        $accumulator = $fn($accumulator, $value);
    }
    return $accumulator;
};
 
what problem? the mix between function and fn?
 
1:37 AM
that function could be written in 32 unique permutations of function vs fn and => vs { return; }
 
If it's a two-part vote you can just vote no to fn.
 
=> vs { return blah; } I might get behind, if it does auto-binding
and even then I'm not sure
 
yeah, the overlap is not awesome :/
not to mention the possible confusion if you're declaring the function => inside an array
 
yeah, not parsing ambiguity, but visual
 
@LeviMorrison do you still have that impossible dream to deprecate "function" later?
 
1:41 AM
I do believe I said it was theoretically possible :D
 
again, the chicken operator :> is awaiting on the shelf
Why do people insist to use strtotime + weird string manipulation to mess with dates in PHP? I could get rich just fixing code like $date_server_format = current(explode("+", $str_utc_datetime)).'Z';
 
uhhhhh
 
then later they ask you "why my code doesn't work with multiple timezones and DST"
 
@marcio I don't think this should be a thing >.<
 
Anonymous
1:59 AM
Is there anyway to know that $e is an exception (logic, pdo, invalidArg ... )
 
Anonymous
function foo($e, $foo, $bar){
    if($e instanceof \Exeption){

    }
}
 
Anonymous
$e could be any type of exception, or not.
 
Anonymous
// php problems
 
Anonymous
@tereško Nope
 
2:06 AM
what "nope"
what are you asking?
 
Anonymous
If I check for \PDOException $e could be \LogicException, or just \Exception I just want to know, if $e is within the exception family.
 
Anonymous
so to speak
 
try {

} catch (\PDOException $e) {

} catch (\SomeOtherException $e) {

}
 
Anonymous
Yeah, I first thought of that, but not effective. I was hopping some guru would come out of any simpler approach.
 
Anonymous
I'm not too much familiar with Reflection.
 
2:09 AM
what the fuck are you talking about?
 
@samayo if you want to know if the exception is part of a particular hierarchy then you can always use instanceof but if the type really matters then you should have a separate handler
if ($exeception instanceof ApplicationException) ...
 
Anonymous
I will just use || and iterate through every defined exception. if($e instanceof \Exeption || $e instanceof \PDOException || $e instanceof \LogicException)
 
Anonymous
I'll be like stabbing yourself in the foot. But, it'll do for now.
 
Why does it matter?
 
Anonymous
Just for some logger file. To detect if arg is exception or costume message
 
Anonymous
2:14 AM
We should have if(gettype($e) == 'ExceptionFamily') or something similar.
 
Anonymous
^ drunk talk
 
you can do if ($e instanceof \Exception) and call it a day...
 
@samayo you are doing it wrong
do not pass the exception to the logger
 
would be much saner to just call the log function from within the catch block
 
^
 
2:16 AM
I'm having some precedence issue I think.
 
try {

} catch (\PDOException $e) {
     $logger->specialLog($e->getMessage());
} catch (\Exception $e) {
     $logger->simpleLog($e->getMessage());
}
 
catch (\Exception $e) {
    $this->logger->logException($e->getMessage());
}
 
Anonymous
Ok, I know I had a very good reason not to use it that way, but I can't remember now.
 
Anonymous
Been straight on PC for 8 hours.
 
Anonymous
Yeah, I remember. The PHP app is error prone, so I had just made set_exception_handler() to handle any unexpected errors.
 
2:24 AM
why's there a wordpress SO, but not a zend SO?
 
Anonymous
@3.14159265358... racism.
 
Anonymous
$log = new Logger\Autolog;

set_exception_handler(function($e) use ($log){
  $log->log($e, $log::ERROR, $log::EMAIL);
});

throw new \Exception(' err ');
 
@samayo how so?
 
Anonymous
@3.14159265358... You can create a stack site for any topic, all you have to do make proposal at Area 51. If it is accepted by others and they liked the idea, then it'll have it's own site like wordpress.
 
Anonymous
So, as you may have guessed. Wordpress is popular, so it got a site of it's own.
 
Anonymous
2:28 AM
But, not Zend.
 
i'll make one on zend development
 
Anonymous
Yeah, good one.
 
Anonymous
Just name it RIP Zend
 
why RIP zend?
i was told that zend is used by godaddy to host the site by default
 
@samayo Well then you know whatever enters that callback is an exception... just deal with it as such.
 
2:37 AM
i'm confused
 
Zend is allegedly better then it was in the 1.x days...
where it used singletons for literally everything.
 
Anonymous
@Orangepill Yeah, but sometimes I could also send $log->log('user purchased ....') The problem is obviously from my side. I should use monolog or something.
 
Anonymous
@3.14159265358... It is no longer a popular framework. Also, web hosting companies are offering php5.4 by default, which is already too old and no longer recommended. So, don't trust their choice of .. whatever.
 
Anonymous
use a VPS unmanged if you can.
 
2:40 AM
i thought godaddy used zend
 
Anonymous
Since when do web hosting companies provide php frameworks anyway.
 
Anonymous
@Orangepill do you know about this?
 
to pesent the pages
 
@samayo I know nothing about this.
but it's likely that there simple website creator product thingy is implemented in ZF
 
what do hosting companies use by default to hide errors?
k
 
2:42 AM
ini_set("display_errors", 0);
 
so it a php thing?
 
maybe... depends on what errors you are talking about
 
when the server gets an error it kills the page from that point on
 
yeah ... that's just having errors suppressed in whatever language they are using to render the page.. typically php
 
i thought it was something special
aww
 
2:48 AM
nope... that's just the engine dying and the unbuffered content getting flushed to the browser
 
k
if you're looking for work, is it a bad idea to build a game to show you can code?
 
any non-shitty code you can show will help
 
@Orangepill Gotta save dat memory I guess?
 
k
but people accuse me of my dev website of being a design site
 
3:12 AM
@LeviMorrison and you just have to love class names like Zend_Search_Lucene_Analysis_Analyzer_Common_Utf8Num_CaseInsensitive
 
Abe
can someone explain me the business logic of "can't sleep because i had too many coffees, so i'm getting one more coffee just to pretend to work for a couple more hours"
 
0/ same here
 
Abe
@Orangepill i like that they are left to right :P
now it would probably be Utf8NumCaseInsensitiveAnalyzer
and ARGH. dat Utf8 casing
 
So what is the reason people are down voting short closures... sperm operator?
 
hi all
somebody please help me
0
Q: Why the last element from a multi-dimensional array is not getting accessed in foreach loop and the last element gets repeated in following scenario?

user2839497I've a multi-dimensional array titled $result. The contents of array are as follows : //Output of print_r($result); Array ( [0] => Array ( [0] => Array ( [rsvp_id] => [is_liked] => [group_name] =>...

 
3:27 AM
@user2839497 that can't be your actual code
 
Abe
@Orangepill i don't know much of functional programming. but if something it's going to be implemented approximately, i prefer not having it and waiting for the times to be mature
in particular i'm talking of actual scope inheritance
actual closures
 
yeah... I thought calling it a closure was kind of a misnomer...
 
I have all of this working:
class Foo {
        private $property;
        function __construct($property) {
                $this->property = $property;
        }
        function getProperty() => $this->property;
}

var_dump((new Foo(1))->getProperty());

function getRandomNumber(): int => 4;
var_dump(getRandomNumber());

function foo() => function() => 1;
var_dump(foo()());
But not closures yet. Just anonymous functions, named functions and methods.
 
Abe
any syntax that is shorter than function()use(alltheworld) is fine for me though
 
@LeviMorrison you going after lexical scope for closures?
or with the use syntax
 
3:33 AM
Right now => expr is pretty much just { return expr; }
That does help things but it doesn't cut out use() at all.
 
Abe
also function getProperty() **: Foo** => $this->property;, right?
 
@Abe What do you mean?
 
Abe
the return type
 
What about it?
 
Abe
will it work ? :P i'd imagine yes
 
3:38 AM
Yes, parameter and return types work.
 
Abe
or perhaps i'd hope yes :D
 
@Orangepill : Sorry I didn't get your point.
 
@user2839497 the output you are seeing cannot be produced with the code you supplied... you have nested iteration happening ... a foreach in a foreach or something
 
@bwoebi What is the quick summary of why we can't directly close over variables? Why do we have to close via reference or value?
I don't understand how we do stack frames and whatnot – haven't gotten into that part of PHP before.
 
Abe
3:58 AM
@LeviMorrison in your opinion is A & B contravariant to (A & B) | C? basically is
type AandB = A & B;
type AandBorC = AandB | C; // this
a two levels hierarchy? or is it one level only
i imagine every nested set of &| introducing a type in the hierarchy
((A | B) & C) | D -> 3 types
(A | B) | C -> 1 type (or disallowed syntax)
 
@abe I think it's actually 7 types ... AC BC D ABC ACD BCD ABCD
 
Abe
i vote for just having primitives as objects and ditch union/intersection :P
 
and why would (A | B) | C be disallowed?
I like the idea of union types... especially if they can be aliased
 
Abe
disallowed just the syntax
 
Anonymous
It's a tie. 19/19 The most dividing rfc I have seen so far.
 
4:13 AM
type ArrayLike = array | (Iteratable & Countable & ArrayAccess);
^ that would be awesome
 
Anonymous
@Orangepill What would that do?
 
@samayo create a union type with the name ArrayLike
function map(ArrayLike $array)
 
Anonymous
Unions? Never heard of it. So ArrayLike would implement the interfaces?
 
Abe
@Orangepill it would be more awesome if array just was instanceof Traversable, Countable etc. and behave like an object
 
@Abe I agree that would be my second option...
 
Abe
4:17 AM
your first, man, your first :P
 
but right now every object is traversable ... just doesn't implement the interface should they match a Traversable Type hint?
5 hours ago, by Danack
$obj = new StdClass;
$obj->foo = "bar";
foreach ($obj as $omg) {
echo $omg;
}
you would also have to make string match everything that implemented the __toString method
for consistency
 
Abe
no, that would be Object, or Stringable
 
And Generators would have to implement Traversable
which tthey might alreay... i'm not sure
Generators do implement Iterator
 
Abe
the hierarchy is simple
with having primitives as objects i mean just defaulting the "constructors" to their respective wrappers though
 
They would have to be immutable
 
Abe
4:26 AM
for instance 10->add(10) // class Integer
10->toInt() // int() // actual primitive is here
@Orangepill except arrays they are all kind of immutable
just $string[20] = "x"; won't work
but you would have StringBuilder or something
 
So you want lexical scope for closures and primitives as objects... sounds like you want javascript
 
Abe
hell no
js has a very poor concept of types
 
agreed there
I think union types and some sane initial alias would solve all the issues
one of which would be to make Iterator = array | Iterator
Countable = array | Countable
 
Abe
i have the feeling that there are things that you usually would solve overloading methods, that you can only solve with union/inters in an interpreted language
 
5:15 AM
So prior to 5.6 is the only way to make a DateTimeImmutable object from a DateTime object to flush it out to a string?
 
hello everyone
i need help in pdf generation by dompdf
i have code html and css that works on browsers properly but
when i am generating pdf getting css issue.
 
what s the newest advancement in php that can be integrated in professional php development
 
Good Morning.
 
@GaurangJoshi I believe the css you need is vertical-align:middle not valign
@MelvinS huh?
 
Freaking hell, what happened to the chat room on a mobile... It looks messed up...
 
5:29 AM
mornings
 
Good morning, @hakre
Finally, the link to get on a mobile design was unclickable with my fingers, even my pinky couldn't hit it xD for sakes that was annoying :P
 
hello orangepill i have tried both
valign:"middle", vertical-align:"middle" and vertical-align: "text-middle";
but it's did not works for me. :(
@Orangepill
 
I'm not really familiar with that library so I'm not going to be able to help beyond that
 
5:45 AM
No Problem @Orangepill , anyway thanks for attention and please do flag my question to spread and get help ASAP. :)
0
Q: DOMPDF, Table cell vertical align issue

Gaurang JoshiThis code works prefect on browsers but problem is that when i fill dynamic data and generating PDF using dompdf then <td>item</td> full column goes top on cell. What is the solution ? Browsers shows like this Browsers View but Generated PDF by dom pdf shows like this Generated PDF View 1>...

 
moin
 
Morning^s
 
6:09 AM
Thanks @JoeWatkins for your help. It's 6pm in NZ, but morning to you anyway.
 
Ah shit that's awesome.
@Ocramius TIL UGT
 
Good morning
 
moin @rtheunissen, welcome
moin @Epodax, @Ocramius, ronni, +all ...
 
6:25 AM
yeah welcome @rtheunissen :)
 
Bah, wanted to see some Singapore, but the haze outside makes it horrible -.-
 
whats up homies !
in laravel
i have the following migration file declared
now when i run php artisan migrate
i get an error
because the id in categories
is int(10)
and the categories_id I.E. $table->foreign('category_id')->references('id')->on('categories');
is int(11)
how do i make both int(10) ?
 
6:40 AM
urgh, just use liquibase :P
 
??
whats that ?
 
I'm kidding. No clue how laravel's schema stuff works, but it seems so unnecessary
(looking at the code)
@bwoebi I changed my vote to "no" mainly due to the tilde. Talked with other folks around here and it is indeed a horrible character to use
 
I don't really see the point in changing votes, it's not going in the way it is anyway I don't think, but I still have support for the idea and while I don't much like the character it's not enough to block the feature ...
 
@JoeWatkins it is enough to block a feature, yes, because you simply cannot change it later on.
 
I guess ... but it's not going in anyway, nearly all votes are in already ... it looks like you're retracting support for the idea, rather than the implementation ...
 
6:49 AM
> it looks like you're retracting support for the idea, rather than the implementation ...
nah, that's why I replied on the ML
 
didn't read ml yet, fair enough ...
 
zan
hello guys
 
7:05 AM
Anyone familiar with using ldap functions in php?
 
7:26 AM
Thanks, in PSR-4 goes like this: in class, use \PDO; In effect this is a root \PDO of namespaces. — vlad 7 hours ago
O.o
Mornign all
 
mornin
even aside from psr-4, i've no idea wtf vlad is saying there
 
True :P
 
morning
 
morning
Just a short Q: Why do i recieve "INF" for $final in this code:
$res=0;
$final =0;
//$i =0;
for ($i = 0; $i <= 1000; $i ++){
$res = pow($i, $i);
echo $res;
$final = +$res;
}
echo $final;
 
@sguetsch use bcpow from the BC library if you're working with big numbers.
@sguetsch also short answer: because there's a limit on how much an int can hold.
 
7:38 AM
@HamZa Okay. Is this the only method? Because it's a task from project euler and therefore it should workt w/o ext. libaries
 
@sguetsch are you solving on PE or are you solving something from hackerrank?
because PE problems on hackerrank does allow the use of BC library
 
@HamZa PE
 
@sguetsch which one are you trying to solve?
 
@HamZa projecteuler.net/problem=48 . Started 2 days ago, soved only 7 tasks, but it's a lot of fun
 
Lawlz, someone is saying mysqlI is outdated...
 
7:41 AM
Because I recently discovered, that my math sucks and i start studying CS at 1st Oct.^^
 
I don't want to spoil the fun but sometimes you will need to work with big numbers. This means: you will need to use BCmath library in php. Python int's aren't limited like php since it depends on the memory.
Anyways, although there is certainly an algorithm to solve this special case without BCmath or big int you could always solve it like I said and then check out the forum thread for optimal solutions.
btw: I solved it with bcadd & bcpow
 
@HamZa Ah, okay. Will try it with this. Thank you :)
 
@sguetsch also if you run out of fun check out "hackerrank" :)
 
@HamZa What's the difference to PE?
 
PE is solution oriented, HR is optimisation oriented.
What I mean is: although you will need to optimise your code in PE to solve it in a reasonable time, you still can bruteforce it: you send the solution/outcome.
On HR you must submit the code, it will run on their server, therefore there's a time limit which means you will need to take optimization to the next level
*time limit for your script to run to pass the test cases.
 
7:53 AM
@HamZa Well, that sounds interesting. Otherwise, a newbee like my (PHP for 7 Weeks, no other language learned execpt Java and C# basics) will likely solve PE tasks as there only the solution counts. On the other hand HR will force me to optimize and therefore I will learn more.
 
@sguetsch Well HR has also way more diversity than PE. You have "CS like tasks" which includes graph theory, sorting, datastructures etc... but also practical stuff like SQL or mathematics
Also, morning
 
@HamZa Hm, i quess I switch to HR then, as i can also redo my PE tasks there
 
@sguetsch PE tasks are harder there. I have an account on both :_:
 
@HamZa Hm, I see.. Well, I will bookmark HR and continue there after I have more than only a littele understanding for CS, math and programming languages
But thank you for the hints, break is over, gotta go back to work
 
@sguetsch cyaa
 
8:02 AM
posted on September 24, 2015 by nlecointre

/* by ddtpoison777 */

 
Hrm, I'm a tad confused by require -/include_once, I have a file that fetches IP / country and so on, I include that file in a function, and call that function multiple times during code execution, but it is only the first time the function is called that the data from the included file is available, every other call gets a "undefined variable / data", should the variables / data not be available for the subsequent function calls since it's all ready loaded?
 
@Epodax you usually include/require everything in the beginning of your script. Random includes in functions iin the middle of a script is confusing
Also see:
106
Q: Difference between "include" and "require" in php

Dan HanlyIs there any difference between them? Is using them a matter of preference? Does using one over the other produce any advantages? Which is better for security?

 
I know the difference between include / require
 
@kelunik Thank you
 
I'm just confused that the variables from the included file is not available in the function call. In my world it loads the file and then the data is available for as long as the file is loaded.
 
8:09 AM
I would create a function/class that does the "fetch ip/country part", you may store this in a separate file
Then in the beginning, include it, in your specific function you will call this function to get IP/country
 
If anyone has experience with Plesk Panel : stackoverflow.com/questions/32756376/…
 
@HamZa That's exactly what I've done, (although I might have explained it poorly) function getInfo(){require_once('file.php'); } $data = getInfo(); $data2 = getInfo(); the $data2 gets undefined notice.
 
@gskema side note: some crawlers do not respect robot.txt. I took a more aggressive approach: block some major known IP addresses.
 
@Epodax you're using require_once() and wondering why it only gets required... once... ?
 
^^
 
8:16 AM
@HamZa I'll consider that. I've heard that they still crawl but do not include their findings in SE results. But the issue remains - need to apply some rules to all domains
 
Well, sorta yes, but in my world since it's all ready "loaded" in the same page load, so I don't understand why I get the "undefined"
 
@Epodax oh okay, so you just don't understand what include/require are actually doing?
 
No, I think I'm just poor at explaining myself.
 
hey guys would you please see whats wrong with this html, pretty basic stuff, minor html and php bugs, but would appreciate some help to fix pastebin.com/wSYHrkSr its no big deal, must have missed something
 
$data = getInfo(); -> goes to the definition of getInfo, finds require_once('file.php'); will execute it
$data2 = getInfo(); -> goes to the definition of getInfo, finds require_once('file.php'); but hey it already included it, so it won't execute the code inside it again
 
8:19 AM
> Questions seeking debugging help ("why isn't this code working?") must include the desired behavior, a specific problem or error and the shortest code necessary to reproduce it in the question itself. Questions without a clear problem statement are not useful to other readers.
@HamZa o/
 
Like I said, you should do the following:
1- create a file.php with:
function getInfo() { // no require shizzle
// get stuff from db for example
// return the results
}
and then include it in your page:
require_once('file.php');
$data = getInfo();
$data2 = getInfo();
@PeeHaa \o
 
@PeeHaa this is 'nam chat, there are no rules here man
 
my issue seems at line 121, table isnt being outputed correctly and no input fields, thats all
 
Use an IDE
read about prepared statements: http://stackoverflow.com/questions/60174/how-can-i-prevent-sql-injection-in-php
and http://wiki.hashphp.org/PDO_Tutorial_for_MySQL_Developers
 
i know about them, trying to fix a code for a fiend, not rewriting it
 
8:24 AM
@Lynob but but a beginner hacker could delete all employees :O
 
yes, not concerned about security right now
minor project otherwise woulve used laravel
who's doing the project doesnt know php, cant start by teaching him injection, let him understand basic operations first
 
I give up. I'm not in the mood to start debugging basic stuff.
 
Hi everyone
I want to ask that is there any way to edit the table later on
Let me explain more
Like I have table displaying some data which is retrieved from a database
 
@HamZa ah, so it's because that the require_once is inside a function, it loads the data fine the first time but once the function is over the data from the required file is dropped but "php" is still aware that the file has been required all ready and won't load it again despite that original call's data being lost from the first function call? - I'm sorry if i'm being dimwitted, I'm just trying to wrap my head around it.
 
@HamZa Re for a few secs; bcpow also returns INF :'D
 
8:30 AM
it's not "lost", it just stays there. So for example
function a() { $c = 20; echo $c;}
function b() { echo $c; } // $c undefined
different scope
@sguetsch send me the code
@naggarwal11 E_UNCLEAR
 
working with big numbers, so also the "add" part should be done with BC:
$final = bcadd($final, $res);
 
@HamZa Oh, yeah. Forgot this :'D Thank you (again)
 
0
Q: DOMPDF, Table cell vertical align issue

Gaurang JoshiThis code works prefect on browsers but problem is that when i fill dynamic data and generating PDF using dompdf then <td>item</td> full column goes top on cell. What is the solution ? Browsers shows like this Browsers View but Generated PDF by dom pdf shows like this Generated PDF View 1>...

 
@sguetsch It's also $a += $b; not $a =+ $b;
 
8:37 AM
@HamZa oh. but yes, makes sense
 
hello all
i need help
 
@GaurangJoshi try to remove the class="pad-left" from "Item" and see if it "fixes" the problem. If it does, then one of it properties screw things up probably
Cyaa guys
 
@HamZa Thank you for the explanation :)
 
@HamZa Cya
 
9:20 AM
o/
 
Methods with mixed return type such as ReflectionMethod::getDocComment() which can return bool or string make it really annoying to work with strict scalar typing.
 
@SebastianBergmann Yeah php has a shitty api :(
 
9:42 AM
mixed types... bool|string
 
hi all.. I want to get contain of iframe which coming from google ads
is it possible ?
 
PFFF who found out javascript? Is he dead already???...
 
give me solution
 
does anyone know the max filename of $_file["tmp_name"] when the picture is taken on ipad, so basically given a tmp name?
 
9:57 AM
can anyone help me with this question please?
 
@SamirReddy Your name reminds me of this :D
 

« first day (1804 days earlier)      last day (3160 days later) »