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

12:00 AM
Does somebody use Poedit or something to compile PHP into .po files?
 
@NokImchen excel is a spreadsheet application .. dont know why tereško is rising suspicions
Foxpro is a programming language
 
4 mins ago, by Lucio
Have somebody used Poedit or something to compile PHP to .po files?
 
@Lucio: I wouldn't compile PHP with it... (and I've seldom see good use of gettext in PHP applications)
 
@Wrikken And how can I accomplish that?
Do you know what command could I use?
 
@l0oky yes, i understand, i use excel daily. And as u said, fxpro is a database stuff which i never learned....
 
12:06 AM
@Lucio What are you trying to do: just to create .po files?
 
I want to know how to write PHP code that could be easily translated later
So I'm reading about Gettext and then Poedit
@Wrikken But basically, yes.
 
@NokImchen Not only a database but data-centric object-oriented procedural programming language
:D
data-centric programming is whats making foxpro awesome
 
@l0oky ok ok :P I've learned enough tonight, sounds like u r foxpro brand ambassador :P
 
@NokImchen No actually my dad is :)
@NokImchen He learned me some wise things about programming
 
@l0oky oh, now i see y u r so good at forpro. lucky u. may be i need to google about foxpro soon...
 
12:12 AM
@NokImchen Dont bother if youre not in database stuff
 
Gosh it's been so long since I've had to work with the old mysql stuff. I believe I'm inserting variables into the quotes wrong.
$sql = "UPDATE users SET $product='1' WHERE username='$accountname'";
 
@Lucio: the basic idea is al your language strings ar in _('some string') or gettext("something else"); functions, and save it somewhere where that editor will search for those strings in your source. However, I've never got poedit to properly work.
 
exactly
and me neither
 
@Alec You're not using PDO
 
I use PDO in all of my projects usually, but I'm using someones Paypal IPN script that uses old mysql functions and I'm a bit too lazy to convert it.
 
12:15 AM
@Jeremy So, did you ever compiled PHP code into PO?
 
@Lucio huh?
 
@Lucio Nope, never have. What are you trying to do?
 
10 mins ago, by Lucio
I want to know how to write PHP code that could be easily translated later
 
Morning
 
@Alec What does the error say ? Also it may become handy to just echo $sql :)
 
12:17 AM
@NullPoiиteя good bye
 
@HamZa [12-Aug-2013 20:08:41 America/New_York] Unknown column 'ateetest' in 'field list'
Ateetest is the value of $accountname
 
@Alec well do you have that column in the DB ?
 
I know I'm messing up somewhere in my SQL syntax but I don't know where
Sec
Yes I do
 
@Alec: $product... you sure that' s right?
Does not sound like a column name..
 
@Alec impossibru
 
12:19 AM
@Lucio huh
 
I wish to know what does huh means :)
 
I have been pointed to UD several times :/
@cspray huh
@NullPoiиteя huh to you
 
Oh gosh this is going to make me commit sepaku screw it I'm using PDO
 
lol
 
12:23 AM
@Alec well there is nothing wrong with the extension, the problem lies in it's usage
 
@Lucio thak you .... lol:P
 
@HamZa What extension are we talking about?
 
@cspray mysql
 
@HamZa ...no
Just, no
Don't tell new people to use this extension or that there is nothing wrong with it
Even if you don't buy into the security and outdatedness
It is deprecated
 
@cspray true
 
12:24 AM
> I have experience translating free-software (English <-> Spanish
I understand
 
Thanks. Gracias.
@NullPoiиteя I appreciate that. No te creo :P
 
@cspray my point was that you can write secure mysql code, but in most cases, developers fails at it.
 
@HamZa I understand what you're saying but new people probably don't.
 
@cspray ok, fair enough.
 
@HamZa you mean newbie developers :P
 
12:28 AM
@NullPoiиteя Eh, I'd say screwing up mysql_* is so easy that he's probably right with just "developers"
 
@NullPoiиteя even old ones
Personally I would also screw it up if I want to make it dynamic
 
@NullPoiиteя I have to change that line. It sounds awful..
Bye!!
 
bye
@hamza then they are newbie with decades of experience ●
:D
 
@l0oky i was SO MUCH into database. I'll be using it soon...
 
@NokImchen Okay .. :); You can use it with any new extension like oracle, mysql,mssql
 
12:33 AM
btw bye gona sleep again ...
 
@NullPoiиteя lol take care
 
@NokImchen It's main extension is dbs
 
thank you HamZa
 
@NokImchen a veryy simple kind of extension that is fast and does what you want for medium to medium large application
 
@l0oky i think i'll stick to mysql. its free and very popular and found in every free/shared host and may tutorial + guide available too :)
 
12:36 AM
@NokImchen Well its almost all the same with syntax on every extension.. i mean every one of those extension has select
:D
 
@l0oky just "SELECT" wont do the job, the main things are different like in mysql there is no array variable, but in mssql there is. not sure :|
 
@NokImchen I would suggest you use .dbs if you want to get into foxpro. Then its easy to 'convert' dbs to mysql
 
@l0oky i'll see to it. Actually, I cant use foxpro cos godaddy/hostgator shared hosting account supports only mysql :|
 
@NokImchen You can use mysql lol
 
@l0oky ya, thats what i've been trying to say :P
 
12:43 AM
Glorious, got it working now.
 
@Alec PDO ?
 
Nah, as said I'm a lazy person. Was debating it but then I was like "nah too lazy to convert" and just eventually figured it out, was formatting SQL query wrong
 
@Alec ok
 
@NokImchen Also if you're used to C style language and don't want to change that style foxpro is going to be a little strange but its easy to understand synntax
 
@l0oky i'll start using it asap..
 
12:52 AM
@NokImchen Take it easy.. bit by bit if you hurry it up you may not gonna like it :D
Do you have paid hosting? If so you could connect directly to mysql server from foxpro desktop application
 
OT: When I do "git push" to remote repo, it asks for my username and password. But I did create an SSH key (it's both in my ~/.ssh folder and on GitHub). How can I make "git push" use that key and not ask for credentials?
 
yup! of course! no one gives anything good for free :(
aww! that sounds great!
 
But still if youre going to release that desktop app to public I wouldnt suggest you to do that
foxpro app is easily hackable
 
@l0oky ehhhh! no foxpro! :D
 
if you do want to release the app you could use webservice
like SOAP for example
its the easiest webservice when you implement it with PHP nuSOAP library :D
@NokImchen It's a long topic to have about foxpro you can make it 'unhackable' its also easy.. but stay with what you have for now..
 
1:01 AM
@l0oky ya, really long stuffs.. i'll code my algo 1st b4 getting into foxpro.. :)
 
@NokImchen You can do your algorithms easy in foxpro
btw
 
huh! sounds interesting!!! :|
now foxpro is my next project :P
 
Syntax is much better in foxpro. Without any symbols like in c++
everything should be natural for you once you code in foxpro
 
Is there really a need for asynchronous functions in PHP?
 
@TheGuyWhoCouldn'tTalkToTheGirl Sometimes.. in some special cases yes..
 
1:10 AM
For basic mysql pdo querying and stuff.
 
@TheGuyWhoCouldn'tTalkToTheGirl Maybe you want parallel querying, or something like that
Wouldn't suggest using async functions for UI in php though...
 
user895378
@igorw yeesh ... that sounds terrible. I have the HTTP end of things extremely solid at this stage with tons of features like name-based virtual hosts, full TLS encryption support, automatic header assignment/normalization, automatic streaming of response bodies (Iterators/stream resources) regardless of protocol, etc.
 
user895378
I don't really feel like providing async capabilities is in the purview of the server. By allowing Iterator instances as the response body you're able to use generators, of course. I'm also focusing on creating external tools like Amp to simplify multiprocessing via threads, process pools and job servers.
 
user895378
Also, every request is passed to application handlers with an additional unique request ID, so you don't have to fulfill it at the time when the application handler is originally invoked.
 
user895378
Instead you can simply keep a reference to the unique ID and whenever your async processing completes you call a method on the server like Server::setResponse($requestId, $response); All HTTP/1.1 considerations like pipelining are handled automatically for you so the application can naively assign responses in any order as soon as they're generated.
 
Hey guys, I have a quick question that's not specific to PHP but related to web services in general.

We're working on putting some healthcare services (upload data, get analysis back) online, and are debating between running it in the cloud and keeping it on a local server. Let's assume we are able to place it up in the cloud while keeping it HIPPA-compliant.

I haven't dealt with cloud stuff for a while and don't remember how much of a hassle it is to manage. Cost is also a big factor, and for now we don't have that much data coming in. If you guys were in this position, how would you mak
Thanks in advance for helping out a cloud infrastructure noob!
 
@MaximZaslavsky "cloud" is just a name for shared hosting IMO. If you do care about privacy and security, I would go for dedicated hosting. But, now comes the question: are you able to secure such a server ?
 
@HamZa We think we can cover privacy for both having a server in-house and having a VM running on AWS
 
@MaximZaslavsky ok, then don't mind my answer
You're here at the wrong time, everyone is sleeping lol
 
@HamZa Awkward! But hey, have you ever played with AWS? How time consuming is a migration?
 
1:28 AM
@MaximZaslavsky nope, I'm just a guy who hates the "cloud" after reading some stuff about it
 
@HamZa hahaha
 
@HamZa What specifically do you dislike about it?
 
(I second that question!)
 
the fact that everything is centralised (several data's of different owners on the same server) leads to interest into bypassing the security imposed separating them. As far as I've read it was possible in some cases
Also the concept of dumping everything online is just not to my likings
 
Anonymous
2:27 AM
Ohh, finally! no one is here. Now, I can go to sleep ;}
 
user652649
2:40 AM
morning
 
Should I waste my time developing for multiple browsers?
Like having to develop for any IE browser other than 9, 10 and 11?
 
@TheGuyWhoCouldn'tTalkToTheGirl That depends entirely on your target audience
At work I have to support IE7+
At home I say if you're using IE7 you deserve a shitty web experience
 
user652649
i can't believe people still use msie7... i mean it's impossible to navigate... even scrolling the most lightweight nowadays page is a total pain
 
@cspray Its supposed to be a wide-audience website, so I guess I have to support it. Its so stupid, I have three times the work load.
Actually 4.
Latest Chrome, IE11 and other new-gen browsers.
 
user652649
@TheGuyWhoCouldn'tTalkToTheGirl condolences high five bro... i know how you feel
 
2:51 AM
IE7 (or maybe IE6, too) - IE8
 
@TheGuyWhoCouldn'tTalkToTheGirl Well, if you're doing the work for a client you could always charge them extra for IE7 support
 
IE9
and then IE10
@cspray I am making it myself.
 
user652649
they should be casual users...
 
@TheGuyWhoCouldn'tTalkToTheGirl What is your site about?
 
user652649
because it can't be that someone regularly uses msie7 for browsing these days
 
2:53 AM
@cspray stuff :D Its a community that you could call a social network type of community, even though that isn't exactly what it is.
 
According to symfony.com/doc/current/bundles/SensioFrameworkExtraBundle/… I can specify multiple routes for a controller method. And I have done so like so:
/**
 * @Route("/", name="_posts")
 * @Route("/recent", name="_posts_recent")
 * @Method({"GET"})
 */
 
@TheGuyWhoCouldn'tTalkToTheGirl What kind of community are you trying to target or just "all the peoples"?
 
however, the name cannot be the same. =o( I need them to be the same so I can access the route used via a single name.
 
@cspray Everyone who decides to use it. It will preferably be young guys (which means they will probably Chrome or something) but I know older people will show up and you have to prepare for them too.
Even many young guys don't know how to upgrade their browser.
 
user652649
@TheGuyWhoCouldn'tTalkToTheGirl i don't think who uses msie7 will ever register to any social network
 
user652649
2:56 AM
for various reasons... the first is that facebook, twitter, youtube etc... don't support older browsers
 
user652649
so if they don't use facebook.... do you think that they will register to your social network? i don't think it will happen
 
user652649
yes, actually i don't remember which, but they started to remove support also for msie8
 
http://www.zdnet.com/blog/facebook/facebook-phasing-out-support-for-internet-explorer-7/6729

Looks like they started phasing it out in 2011
Which means, you could probably drop support for it too and be fine :P
 
That is what I would like, but I just don't want to compromise on potential traffic and users just because I didn't support a few extra browsers.
 
3:00 AM
Well, to be honest. I don't want to support IE7. The more people support it the more it will continue to perpetuate. It just shouldn't be used at this point and I won't support it at home.
I don't think you'll see any statistically significant traffic from IE7
I imagine the only reason people support it now is for legacy enterprise applications
 
user652649
 
user652649
800x600 ! welcome in 1998's internet!
 
user652649
i love my users
 
user652649
22% msie7
 
@Wes What kind of site/app are you running?
 
user652649
3:07 AM
it's a site that i maintain and i find it's useful to check its stats because audience is variegated
 
user652649
basically it's recipes search engine... so, old people, young people, casual users
 
user652649
probably nearly all women, (and singles)
 
user652649
xD
 
user652649
what it shows is terrifying... 800x600 i mean... italy is not in europe, it's a province of africa
 
user652649
other sites i maintain are better, but audience is young
 
user652649
3:13 AM
anyway there's the 32% piece that may change things... do you use g analytics?
 
Oh god.
As if the browsers issue wasn't enough.
I have been pondering over screen resolutions for a long time.
I can't develop for 800x600 without ruining any and all beauty of the web site.
:(
 
user652649
well, you should have developed it responsive
 
It is, but I didn't want to mess with the layout just so it works with 800x600.
 
user652649
@TheGuyWhoCouldn'tTalkToTheGirl this is a site i'm creating i.imgur.com/v3DlxdN.png -> i.imgur.com/W5xcCEU.png -> i.imgur.com/NGLvAWF.png -> i.imgur.com/Y8KN7me.png
 
user652649
@TheGuyWhoCouldn'tTalkToTheGirl are you that guy who couldn't talk with the girl ?
 
3:24 AM
@Wes What do you think?
 
user652649
idk... did you change your nick?
 
No, I didn't
Also, what about the images that you linked to above? What are you trying to show?
 
user652649
just saying that not necessarily it has to be a mess, if you make it responsive
 
I can say for sure the "cleanliness" of the website will be gone when viewing in 800x600.
 
user652649
again, not necessarily
 
3:33 AM
The amount of text will make it show up as messy.
And just so it looks good, I don't want to make it look ugly.
 
user652649
so, why are you worring about? you picked a decision already
 
user652649
what about mobile users?
 
I haven't developed a mobile version yet.
I have picked 1366x768 as the ideal resolution. Looking at the stats, it seems to be heavily used these days, so it shouldn't be a problem.
 
user652649
1366x768? LOL
 
user652649
3:45 AM
you're doing wrong.
 
user652649
1366 is too big
 
user652649
global stats = useless
 
DON'T YOU DARE LINK THAT WEBSITE
3
BAD
BAD
 
user652649
3:48 AM
also, you are interpreting stats wrong... if you support 1024 as min resolution, you will support also 1366
 
user652649
because it's larger
 
user652649
@CCInc lol
 
1366 is usually used in HDTV's and Laptops...
 
Laptops and HDTV's
 
3:50 AM
In U.S. between July and August of this year.
 
user652649
@TheGuyWhoCouldn'tTalkToTheGirl seriously, you are doing it wrong
 
What's he trying to do in the first place?
 
user652649
if you don't want to make a site responsive, the resolution to support should be 1024
 
user652649
in the specific 980px wide container
 
Wait.. you are tethering your optimal website layout to a certain resolution???
 
user652649
3:52 AM
@CCInc something like a social network i think
 
user652649
@CCInc and a huge one too
 
@Wes I changed my laptop's screen resolution to 800x600 and the div responded (since the site is responsive) but it took almost all the space and the sidebar is gone.
 
nonononono
it's all wrong
If you are THAT worried
you should tether it to percentages
 
user652649
yeah, that ^, at least
 
It already is.
I think I have done a pretty poor job explaining.
 
3:57 AM
Yes, you have
 
I wish everyone had the same res :D
 
Basically, do I need to take into account 800x600 for everything?
 
Um, you wouldn't need to take into acct at all if it were purely percentages, no?
 
On one page, there is so much content that while it resizes properly, it starts to look ugly.
 
posted on August 13, 2013

Yes, we all know andYes, we all know and love the Agile principle of responding to change over following a plan, but have some Agile adopters taken this notion too far? It could be that the promotion of the flexibility cause both teams, stakeholders and customers to expect and demand too much fle...

 
user652649
4:01 AM
@TheGuyWhoCouldn'tTalkToTheGirl you need to create different layouts for smaller resolutions
 
@TheGuyWhoCouldn'tTalkToTheGirl lettttttttttt meeeeeeeeeeeeee seeeeeeeeeeeeee
Hey-a shyman!
Yo @duikboot you there?
 
@Wes so double the work load again?
 
user652649
not really, because with responsive design most of the work is reusable
 
user652649
you start to develop the smaller device
 
user652649
then you add features and then more with higher resolution devices, gradually
 
user652649
4:11 AM
basically you will have a file with 90% of css, and some other little css files that just reorder columns, make font bigger etc
 
The main content div is extremely big in in 800x600 but still fine. The problem comes with the sidebar.
 
I wanna picture.
 
user652649
it's better to start over again in your case trust me
 
user652649
i wanna picture too
 
user652649
 
4:13 AM
Starting over is not an option anymore :( I have been working on this for a long time.
 
I've been demanding a picture for.. forever
 
user652649
@TheGuyWhoCouldn'tTalkToTheGirl i was in the same condition... took me 3 months to make an existing layout responsive... but it was really complex
 
user652649
100kb of css minified
 
I never realized making a website was so complex.
 
user652649
so, for you, not a big deal i suppose... start a side project and one day you will finish it
 
user652649
4:20 AM
@CCInc me neither, otherwise i would have picked a different job... i could have been a porn star, for example
 
As I said, everything is responsive. It shouldn't be a problem.
 
@Wes lol
@TheGuyWhoCouldn'tTalkToTheGirl PICTUER PLZ
 
It isn't even close to being done.
 
user652649
Y U NO JOIN MY ROOM
 
user652649

HTML / CSS / WebDesign

This room is now defunct. RIP.
 
4:23 AM
0
Q: PHP Fatal error: Class 'Crypt_RSA' not found

ఠ_ఠI'm using php phpseclib.And i get following error when execute the script PHP Fatal error: Class 'Crypt_RSA' not found in /home/esoftcar/public_html/index.php on line 5 PHP SCRIPT <?php include('library/php/Net/SSH2.php'); $key = new Crypt_RSA(); $key->setPassword('891600909v'); $key->lo...

 
mornin
 
Morning.See my question please
 
4:50 AM
morning
 
5:13 AM
I don't remember deciding to turn PHP into Java ... I mentioned a similarity in a manual page ...
why is it that the people who blog about stuff have absolutely no fucking clue what they are talking about ... that would be like me having a blog about heart or brain surgery ... why bother ...
 
user895378
Ugh ... I'm so tired of this stupid argument:
 
user895378
> For gods sake, if you need multi-threading, why not switch to another language?
 
user895378
@JoeWatkins ^ People are idiotic.
 
user895378
If everyone took that attitude nothing would ever improve. WTF do these morons think would happen if everyone thought like that?
 
@rdlowrey it's pretty damn annoying, it's born of ignorance of the facts .... 13 years is long enough to say that PHP can support multiple threads and do it well, further more on windows it is the default build configuration anyway and has been for a long long time, even with the overhead of TSRM windows handles multiple PHP threads way way better than it does processes ... I didn't write for windows but still, default deployment configuration smacks of stable to me ...
it is a matter of fact that CPU clock speeds cannot get faster with the current technology, the physics of the universe prohibit it, the only way to actually move forward is utilizing concurrency ... in 20-30 years when we are sitting at machines with quantum cpu's the very meaning of the word concurrency will have completely lost its meaning and anything not able to do two things at once will start to look like the tapes we loaded our games from as kids ...
PHP probably won't be around, but if you're not comfortable with concurrency then you should pack up and leave town, there's no future for you in programming ...
 
5:27 AM
@JoeWatkins welcome to the internet
 
"why not switch to another language" is repeated like some sort of mantra ... it's doesn't make sense to me; if you did need real multi threading before pthreads you had no fucking option but to switch language ... the only reason you done so is because of the very fact php could not multi thread in userland ... "why not stfu" ....
 
now we are rude if we comment that "question is seriously bad"
 
user652649
completely agree with you guys,,, it's time to (at least start) to think of a multi threaded php
 
user652649
related: firefox nightlies finally support for multi process architecture... took something like 10 years to mozilla to do it... so better to start asap with php
 
5:43 AM
Can anyone suggest an HTML syntax highlighting solution for PHP (not javascript)?
All I have found is called "GeSHi - Generic Syntax Highlighter"
...and the docs are down for that one.
 
@Wes PHP has been multi-threaded since the year 2000 ... and I've been working on user land threading for about a year now ...
 
user652649
yes i was talking about userland code... we all believe in you! :P anyway i don't know at all php's internals and neither i know C++... so i'm asking for pure curiosity... which is the difficulty of implementing that?
 
user652649
i mean why not everyone agrees about implementing multi threading?
 
because it was really hard and whenever you mention an idea to the php community in general they react as if you have asked them to implement your idea ...
 
user652649
lol
 
user652649
5:57 AM
even if it's the idea of thousands of people?
 
user652649
so what about a preview of what you're working on? which are the specs? how scope will work?
 
nevermind preview ... php.net/Thread
 
@WesleyMurch try this
 
ideas always fall to one or two people to implement, so even if a million people have the same idea one or two will have the task of implementation ... there's millions of people using PHP, theres a handful of people developing it and for it ...
it's an OO API, scope will work as you expect it to, as it does for any other object in PHP ...
whether it is technically correct depends on perspective and how creative you are ... on the face of it a shared nothing architecture is not the best place to multi-thread ... but in reality, a shared nothing architecture also presents one of the safest places to multi-thread ... PHP was never meant to write the sort of software that should require multi-threading, but the fact is that's exactly what it's being used for in the real world ...
so when people say it's not a good idea to multi-thread in PHP, or why don't you switch to another language, what they are really saying is "I read its a bad idea to try and multi-thread in PHP" - they are saying this because it was; because there was no real way to do it and all the workarounds are horrible ...
resources are so cheap now that we can afford the overhead of ram required to maintain the architecture of Zend, and cpu's tick so quickly, and you can utilize so many cores, that in the real world shared nothing equates to safe, fast and predictable ...
 
user652649
i'm not very confident with the argument... the alternative of shared nothing is?
 
user652649
6:10 AM
ok, wikipedia helped me out
 
morning
 
user652649
anyway especially threads are a difficult thing to implement, so i can understand that's not a ordinary task
 
user652649
morning @NullPoiиteя
 
morning @NullPoiиteя
 
peeps, anyone knows any good open source contact page which I can 'reuse'?
 
6:14 AM
@Telkitty猫咪咪 you can create one its not a hard nut
 
user652649
anyway good luck and thank you for your work @JoeWatkins php, my fav language, has a future because of people like you :P
 
@NullPoiиteя create a simple one isn't ... but validating all the imputs are ...
rule #1 for lazy people: never re-inventing an existing, working wheel
 
maybe they waste more time in inventing existing :P
 
#rule 0 don't spend time trying to jam someone else's software into a gap if you can solve the problem for yourself in half the time it takes you to research and implement someone else's solution ...
2
 
user652649
@Telkitty猫咪咪 until you realize that the existing wheel is in the reality a square
 
6:22 AM
0
Q: Jquery tab and dynatree is not working. js is conflict

darshanI have jquery tab http://jqueryui.com/tabs/ and dynatree in one view page my code is, <script type="text/javascript" src="<?php echo base_url();?>asset/js/jquery.js"></script> <link href="<?php echo base_url();?>asset/css/jquery-ui.css" rel="stylesheet" type="text/css"> ...

 
I am sure there are at least a couple millions contact pages out there ... I don't need a fancy wheel, I need a simple, working one.
I believe in simplicity
The best rule in GUI design is to assume all your users are idiots. They are not of course.
 
@Telkitty猫咪咪 it is as difficult as you make it ... the PHP to validate a form need not be complex and doesn't require much thought ...
after about 90 seconds ...
<?php
function validateForm($validation, $required = array()) {
foreach ($validation as $key => $config) {
if ($_REQUEST[$key]) {
if (!preg_match($_REQUEST[$key], $config["pattern"])) {
return $config["error"];
}
} else if ($required[$key]) {
return $config["error"];
}
}
return true;
}

if (validateForm(array(
"email" => array(
"pattern" => "~([a-zA-Z0-9\-]+)@(.*?)~",
"error" => "The email you have provided is shit, go away"
),
"first" => array(
"pattern" => "~([A-Za-z]+)~",
"error" => "The first name provided is clearly made up, get a life"
 
lemme copy & paste first ... >_<
 
@JoeWatkins FILTER_VALIDATE_EMAIL ?
 
pastebin.com/kDTxtJQ9 stupid formatting ...
 
6:28 AM
@JoeWatkins ctrl+k after selecting code block
 
@NullPoiиteя or any of 30 other ways, I'm just trying to make the point that you'll get further in completing a task like this if you think about it for a couple of minutes than you will if you try and search for something suitable ...
 
@JoeWatkins agreed
 
@NullPoiиteя its my chrome, nothing in it works but can't be fucked to do anything about it ...
 
Hello
I've got a small question a bit off-topic, I have got an iPhone5 with a Nano sim but I would like to use an other phone for a festival, can I use a nano-sim 'adapter' to put it in a normal phone?
 
@Duikboot maybe you can use since here we just cut the normal sim and make is smaller(called nano)
@Duikboot btw what you tried to find out weather its working or not ... ? :P
 
6:34 AM
Indeed but is an 'adapter' not thicker?
I just have to go to a shop but I can't do it right now because I'm at work so my parents have to go for it... And I don't want them to buy the wrong thing.
 
6:53 AM
Morning
 
hi
 
how to create image from html using php
i have searched a lot in google and stackoverflow
but nothing sufficient
 
@upcomingdeveloper GD or ImageMagick
 
gd lib has not supported html for cretaing images
@Leri i think its done by any third party help
 
@upcomingdeveloper Fast google search shows this: stackoverflow.com/a/9918758/1283847
Anyway, there's not one to one conversion so libs like gd or ImageMagick should not be handling that scenario. It's developers job.
 
7:06 AM
@Leri i have already used this answer. but its also not worked.
 
E_NOT_WORKED_IS_NOT_AN_ERROR
3
 
7:20 AM
hello all
 
I am going to ask awful question (again about MVC). Templates can't/shouldn't be handling presentation logic (but in most popular frameworks they do). If you take away that responsibility from templates and create some class that handles it, you end up with class oriented programming really quickly. So my question is how layer which takes care of presentation should be implemented (traits? but I guess they will lead to wordpress)?
 
@HamZa I'll reread them once more. Probably, I am still missing the point. I simply can't find solid way to implement presentation logic and templating separation with php.
 
@Leri well I don't have an idea at all ^^'
 
what do you mean by "templating separation"?
 
7:29 AM
@iroegbu E_OUT_OF_CONTEXT I said presentation logic and templating separation. Template (at least, from my understanding) is raw formatting that is presented to end user and is not able to handle any logic itself (html/css/javascript) in web-development.
 
yes, it shouldn't handle any logic
 
For example, template should not be deciding how pager should be rendered.
 
ok, now I'm confused. Take @HamZa's advice, ask @tereško.
 
Mornings
 
7:39 AM
Morning
 
morningz @DaveRandom
 
@JoeWatkins The very man. I'd like to pick your brains about a couple of questions I have about PHP internals if you have a minute?
1) In zend_parse_parameters(), why would I use h and why would I use a (HT vs zval) when accepting array arguments? I have an inkling that most of the time I actually just want the HT since I just want the data in the array and I don't want the meta-data in the zval, but I can't see a real pattern from looking at existing extensions - most seem to use a when all they do is use the underlying HT
2) I created a ZEND_BEGIN_ARG_INFO_EX entry for a function, and subsequently forgot to pass the identifier for the arginfo to the PHP_FE() entry and it still seemed to work (I only spotted that I forgot to pass it accidentally) - so why does it need to be done at all? What does passing it to the second arg actually do? I couldn't work out how it had been associated with the function despite not passing it...
 
7:54 AM
Good morningsu!
 
morning
 

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