« first day (1076 days earlier)      last day (3871 days later) » 

9:00 PM
@NikiC yes, it is fine. Or remove $var{expr} syntax…
 
1 message moved from PHP Internals
 
It's not a problem as there shouldn't be any classes with dynamic parent names
 
@bwoebi It's not fine in principle
Conflicts should be resolved explicitly, not implicitly.
 
the shift exactly does the following:
krakjoe-php-src root# ./sapi/cli/php -r 'class thing {} new thing {};'
krakjoe-php-src root# ./sapi/cli/php -r 'class thing {} $a = "thing"; new $a {};'

Parse error: syntax error, unexpected '}' in Command line code on line 1
 
and I don't see why in this case you shouldn't resolve it explicitly. There does not seem to be a technical reason preventing it
 
9:03 PM
$('#head-nav > .navbar-inner > .container').append(
  $('<input type="checkbox">').on('change', null, {}, function(){
    var $hn = $('#head-nav');
    if ($hn[0].style.position=='absolute') $hn[0].style.position = '';
    else $hn[0].style.position = 'absolute';
  })
);
It's a start....
 
mhm yes… would it be possible… is going to try sth
 
@bwoebi You just need to split it into a class_name and a dynamic_class_name_reference rule...
 
@NikiC exactly. That's what I wanted to do.
 
@bwoebi But in general: Never increase %expect ;)
 
Actually, it would be best to added the checkbox via JS, if it relies on JS to work. That way the option wouldn't even appear with JS disabled.
 
9:05 PM
@NikiC ^^
 
Increasing expect to 3 was a mistake that was overlooked
2 is normal due to dangling elseif/else ambiguity
 
hmm ... do you guys think that doing $parameters = (array)$parameters; to ensure, that you can do foreach even if $parameters, is a string is an acceptable practice ?
@Shea please go to javascript room
 
No, I'm talking about PHP
 
@NikiC @JoeWatkins Now better: gist.github.com/bwoebi/6720403 ?
 
@tereško no, casting to (array) is never acceptable
 
9:09 PM
@Shea that's some funny looking PHP
 
@NikiC where does this one come from?
 
@bwoebi yes, better :)
 
25 mins ago, by Shea
Does anyone else find the fixed header on the new PHP beta site to be a distraction?
 
@bwoebi from (new ...)->
it will be gone again once general (...)-> is added ;)
 
@NikiC then make some rfc and push it to vote… ^.^
 
9:11 PM
@bwoebi aint nobody got time for that
 
I still think this is messy ...
 
@JoeWatkins why?
The NOPs are necessary, because pushing the SEND_VALS (from ctor_args) forward in the array would be less efficient…
 
@NikiC .. yeah, I had that nagging feeling
 
because it looks messy ...
 
and NOP's are compiled away by opcache…
@JoeWatkins don't get that? :o
 
9:14 PM
@bwoebi btw, how did you come up with 3 NOPs?
Can't it be arbitrary number of instructions?
because multiple interfaces can be implemented?
 
and where is the normal object rule gone ?
 
@NikiC oh… I thought they would be the same like traits: one opcode for them all…
but well… will change that.
@JoeWatkins well, it's merged in new_expr?
 
anyway, looks like I at last have finished that damned autoloader
now all I need to do is to add some documentation, before I forget how it works
 
new_object:
    T_NEW class_name_reference { zend_do_extended_fcall_begin(TSRMLS_C); zend_do_begin_new_object(&$1, &$2 TSRMLS_CC); } ctor_arguments { zend_do_end_new_object(&$$, &$1, &$4 TSRMLS_CC); zend_do_extended_fcall_end(TSRMLS_C);}
;
you have T_NEW dynamic_class_name_reference in new_expr
so no rule to create normal new objects
 
@JoeWatkins that one is handled by the first expression in new_expr
(look, optional_anon_class can also be empty)
 
9:23 PM
right right ...
 
@crypticツ I don't want to add/remove login, I just want to change the email associated with an existing one. Add/remove only handles associating multiple OpenIDs with your account, I need to modify one of them rather than change the list...
 
@NikiC you think this should be a voting option or just applied ??
 
That has nothing to do with php
2 messages moved to bin
 
@bwoebi thanks by the way ... I don't think it's worth it, but I'm grateful you put the effort in :)
 
2 messages moved to Trash can
 
9:39 PM
@JoeWatkins I'd really appreciate to see it this way. Your patch is just much too verbose (new class extends blah instead of new blah) and nobody finds these ctor args when reading code…
 
@ChrisJohnson Stop spamming
 
@PeeHaa i am not spamming i just asking for a help
 
@bwoebi you already call anonymous functions in the same way...
 
@ChrisJohnson The backlog disagrees. And besides I already told you that has nothing to do with PHP as well as binned your messages.
 
@PeeHaa ok im sorry for offended that i causes, but what chatroom i should go with that i can get a help with jquery?
 
9:41 PM
@JoeWatkins no? I can't do (function () {})() …???
 
@ChrisJohnson Idunno try chat.stackoverflow.com/rooms/10/loungec. They are a pretty friendly bunch
 
@JoeWatkins or @PeeHaa if you get a sec could you look at my question I posted? I would appreciate your input.
 
.. and he's gone
 
Damnit. Now the flag thing is stuck again and I need to do an entire refresh again :(
@daugaard47 Why do you have all those slashes in your code?
 
for some mad reason I thought you could ... still, I said I didn't want to do it that way to keep it simple, and now its not simple ...
 
9:46 PM
@PeeHaa it's written for SYSTEM WIDE VARIABLES
 
:|
No idea what those are
 
@JoeWatkins Yes, a simple implementation is one thing, but that language is simple is much more important I think…
 
written as mysql statments
 
lol ^:P
 
9:47 PM
it is not any more complex, it is different syntax, I don't think it's worth complicating the patch just to change the syntax ... the simplest solution is always best ...
 
@Arian It worked either way ;)
 
hmm .. damn
I think I will have to ass support for PSR-0
 
@tereško ass it
 
@JoeWatkins I think the syntax is better this way… Well. Just ask on internals what they think is better.
 
@daugaard47 No idea what SQL has to do with the code you posted
 
9:51 PM
... maybe I could add $makeItBroken flag to the current loader, which would automatically make it PSR0-compatible
 
@bwoebi yeah because there's a place full of forward thinking people that are on the ball ... I know what the community think, that doesn't mean they are right ... the simplest solution is always best should never be wrong, we all know this ... I doubt if anyone will even look at the difference ...
 
@PeeHaa haha yeah it did, thanks! What is the proper tag anyways?
 
[tag:cv-pls] :)
 
@Arian see the "Meaning/Docs" link
 
------------------------------------------------------------------------------------------------------>
;-)
 
9:52 PM
@PeeHaa I'll try and rephrase the question better.
 
yes please
 
@JoeWatkins the simplest solution is nearly always the worst :)
 
@NikiC ;-)
 
@NikiC manifest falsehood and you know it ...
 
@JoeWatkins There is no point in sacrificing language readability for a slightly simpler implementation
 
9:54 PM
it's no less readable, it really isn't ...
 
You write an implementation once, but the language is used by people for the next twenty years
@JoeWatkins Then disagree with the readability of the syntax, not with the fact that it makes the implementation harder ;)
 
@JoeWatkins basically, what Nikic is trying to say is : "no pressure"
 
not harder, more complex ...
 
@tereško What I'm really saying is: Try to decouple language design from language implementation
You should take the latter into the consideration (some things just can't be reasonably implemented), but it should not be the main factor
My opinion anyway
 
if I have to read something more than twice, then it doesn't make good sense ... niki that doesn't make good sense ...
 
9:59 PM
@JoeWatkins maybe you just didn't look exact enough ;-)
 
one is the forerunner to the other, you are suggesting decoupling hind legs from the front ... one should be informed, driven by the other ... to say you should decouple them is a cop out, probably unconsciously, but it is a cop out, a formal reason for you to break your own rules, twist your own goals ...
 
@PeeHaa The code I posted I pulling from an SQL database and the images are stored in a folder on the ftp called parts. I want to hook the thumb image up to a fancybox then resize the facybox image with timthumb as the images in the ftp folder are 2mb. My problem I'm having is getting the image to show up in fancybox. If you look at the website davesautocare.pdslo.com/autoparts.php and hover over the vehicle image you will see the path is correct, but will not show up in the fancybox.
 
@JoeWatkins I'm not saying that you can completely ignore implementation, just that you should try to find the best syntax that can still be reasonably implemented
@JoeWatkins "The simplest implementation wins" just doesn't make any sense
 
For starters you have errors on the page
> Failed to load resource: the server responded with a status of 404 (Not Found) http://davesautocare.pdslo.com/changer/js/changer.js
Failed to load resource: the server responded with a status of 404 (Not Found) http://davesautocare.pdslo.com/changer/js/colorpicker.js
Uncaught SyntaxError: Unexpected identifier autoparts.php:516
Failed to load resource: the server responded with a status of 404 (Not Found) http://davesautocare.pdslo.com/js/jquery.cycle.all.min.js
event.returnValue is deprecated. Please use the standard event.preventDefault() instead.
 
You have to optimize for two factors, namely simplicity of use and simplicity of implementation, where the first factor is the more important one.
If you optimized just for simplicity of implementation we wouldn't bother with any of this and use a stack machine...
 
10:04 PM
well then is where you draw the line at reason ... I draw it somewhere after the patch we had, but before the patch that this change creates ... there's always room for improvement ...
and also what you consider to be more complex, I don't actually consider changing the order of the things you type as having a bearing on the complexity of the activity ...
 
@PeeHaa How did you find all those errors?
 
@daugaard47 Every browser has developer tools
Just hit f12
 
@ PeeHaa right on okay thanks I'll start there.
 
where do you draw the line, you're aware of the request for the functionality of the use statement, you know what this entails ... just because people say it will make something simpler doesn't mean you should bend over backwards, breaking what should always be your own rules, just in order to satisfy their request ...
it's not a case of simplest wins ... it never is ... it's best wins, as it always is ... it's just that I think something simple is inherently better .... and you couldn't get on as a programmer if you didn't think the same .... why you should change what you think just because of the codebase you are working with is baffling ...
 
@JoeWatkins You should consider the use() thing based on its merit
If you think the use() doesn't have merit (regardless of implementation), don't do it
If you think it does have merit, then think about how hard it is to implement. If its too hard, don't do it
 
10:15 PM
well quite, I've heard nothing that gives merit to the idea that a syntax change is worth such complication of implementation ... the same for use, what actual difference is there between use() and passing your arguments to the constructor ?? use would have to accept by reference too if you wanted to use references, what actual different is there between the different syntaxes ...
I don't see differences, not actual differences, the only place I see actual difference is in the implementation of the idea ...
 
@JoeWatkins I can't comment on that, I didn't consider what use() gives us
But I do think that the Java syntax is significantly better.
 
how it's better has not been well explained to me, so I don't understand that ... I do understand the impact of making something complex where it could be simple ....
java is where the idea comes from in my head, I started out using this syntax and because of the normal method of development ^^ that you just layed out three sentences ago did deem it too complex, and adjusted the implementation for simplicity ...
 
@asm89 prrr
 
@JoeWatkins If you disagree with the Java syntax being simpler (for the user) or more pleasant to read, please say so. I'm a bit confused about what we are arguing
 
I've no objection to complex, where complexity is required, I love complex ... but it is not required here ...
I don't think one is more complex or simpler than the other, I see no actual difference, like I said the only place I see an actual difference is in the implementation ...
you could say that one is more verbose, by one single word, familiar word used in the normal way ...
 
10:24 PM
@JoeWatkins good, everything is good
you just don't see the benefit of the other syntax
I thought you avoided it only because its harder to implement
 
I could see the benefit in pleasing the crowd if it didn't complicate the implementation ... but it does have an impact, more impact here than it does for the user ...
 
@JoeWatkins we should discuss the syntax, but not today. too late for smart discussion ^^
 
ok no problem ... and we are discussing niki, not arguing ... :D
@bwoebi I do appreciate it ... please do finish up the patch so that it can be used if required ...
 
10:44 PM
@crypticツ Owww wait I just realised what you were getting at. I blame the fact that I have been responsible for a pair of toddlers this evening. That's my excuse and I'm sticking to it.
 
@DaveRandom I didn't know how to respond back, so I just kept silent =oP
 
@crypticツ Meh, hap shittens. I promise I will look at NaN tomorrow as well, have just had to get a shitload of RL out of the way
 
@DaveRandom Pesky RL. Always getting in the way.
 
@DaveRandom no rush, just want to get the last few bugs squashed so can take it out of beta and make it the official one and then point the beta to dev.cv-pls.com for the 1.2 branch.
 
inorite
 
10:53 PM
part of my array is: "Array ( [0] => Array ( [id] => 58 [value] => All elements are blue ) [1] => Array ( [id] => 65 [value] => ) [2] => Array ( [id", and if want to read some place of this array then i use $myArray[58], then i should get as output "All elements are blue" but that not works, what i do here wrong?
 
I now officially hate myself
 
@DaveRandom haha, I remember when I first joined Twitter
I actually like Twitter better than most other social media. FB tends to be friends and family while Twitter is stuff that actually interests me
 
@DaveRandom ha! twatter
 
All about who you follow and what not
 
@MirkoSimic What you have there is a multidimensional array. id is a subkey, not the index of the array. You will need to iterate the array and flatten it if you want to access it like. They look like database results, how did you populate the array?
@PeeHaa Yes. I know. It is a necessary evil though.
 
10:56 PM
@DaveRandom because you had to take a _ name? :P
 
@DaveRandom Yeah because otherwise... well.. ;)
 
@DaveRandom i get this result as json, and i use json_decode($value->extra_fields, true)
 
@cspray It does have that going for it. There's still a lot of static though (FB is just totally de-tuned)
 
you young whippersnappers and your social media. I deleted all my accounts, you'd be amazed at how much more time you have free, and how less stressful being connected is. You might even get to see sunlight again =oP
 
@NikiC Yeh don't even get me started on that
 
10:57 PM
@cspray FB tends to be everybody else's children's photo albums.
 
I've just done a huge amount of looking into that, twitter have been saying they'll sort it out "soon" for like 3 years
I mean seriously, how hard is it to delete old accounts? :-X
 
@DaveRandom as hard as changing your SE OpenID email =oP
 
@DaveRandom All hail the white egg!
 
@PeeHaa ...I will have zero chance of acquiring a hackathon entry for next Fri, instead of the slim chance I now have
 
@DaveRandom aaaaaaaah.
 
11:00 PM
@Jack true for both keys and values is... odd.
 
@MirkoSimic You'll need to loop over the result and reformat it then, do you plan to access multiple entries or are you just trying to get a specific one?
 
@DaveRandom i need alle entries, but i must get it specific, possifle with loop?
 
Was there a reason why this was never voted on or discussed much? wiki.php.net/rfc/returntypehint
 
@crypticツ It was discussed a lot.
 
@MirkoSimic What are you actually doing with the data? (big picture, not just "I want to access it like this")
 
11:04 PM
It never had enough momentum to make it to vote.
If we ever get return type hinting in PHP, syntactically I think it will look something like this:
 
@LeviMorrison So are actual bit masks if there's only going to be three options imho.
 
It's going to look horrible unless we are allowed to omit function
 
function fooFactory() Foo {

}
 
@LeviMorrison How very ECMA.
 
@DaveRandom There have been times when I just wrote public static render($bla) and it would complain =S
 
11:06 PM
Meaning, it will follow the parameters instead of preceding them.
 
@LeviMorrison you're missing a : before the Foo ;)
 
@LeviMorrison Why not function Foo FooFactory() { ... }?
 
@DanLugg In this case, I could care less. The reason is that many people are unwilling to allow it before the function name. This is been the #1 protest on every attempt.
 
@Jack I do it almost daily, I work with too many other things that work like that.
 
@NikiC That's exactly what I was thinking ;-)
 
11:07 PM
function fooFactory() : Foo {}
 
@NikiC Eh, extra character not needed :)
If you want it, fine. I am not too hung up about that one character.
 
I have to say that the : makes it more readable
 
@Jack It won't happen.
I promise you.
 
@Jack There is at least one really good reason, which I forget but am trying to find
 
function foo() returns array { return []; } lol
 
11:08 PM
The backlash on return type-hinting is always that it makes it harder to grep for function declarations.
 
Isn't there something in HHVM that works like that?
 
$fn = function () : Foo use ($bar) { } vs. $fn = function () Foo use ($bar) { }
 
There really is a language that declares things like this: function FooFactory takes nothing returns Foo
 
takes is a horrible reserved word
 
Actually, where would the return type declaration go in an anonymous function, I would assume before any use statements, but what do you think?
 
11:10 PM
@DanLugg just don't allow them there ^^
 
@NikiC !/
 
doesn't really make sense to specify a return type for a lambda
heck, not even c++ supports that
 
I think that use should die and closures should be, well, closures. I believe this is not a popular opinion though.
 
@DaveRandom It should have been done syntactically, in my opinion. Not with use.
 
actually, c++ does support it, just nobody uses it ^^
 
11:11 PM
@DaveRandom I share you opinion, however I would change it slightly. function () use implicit { }
 
@NikiC but it does make sense to have a return type at all ? in php ?
 
@NikiC I dunno, I think it would definitely have value.
 
@JoeWatkins sure. for ifaces
 
Is this a bad idea?
-9
Q: Drunk on Stack Overflow Badge?

ArianAfter asking this question: Don't include weekends for the fanatic badge consecutive days calculation The answer given, has given me another brilliant idea!!! A Drunk on Stack Exchange badge People would be allowed to flag your question (or answer) as 'You are drunk' (this could include, slu...

 
@DanLugg function () use AllTheThings {}
 
11:11 PM
@DaveRandom Pretty much.
What would be a good keyword? implicit is too, long. Maybe all? Or repurpose parent?
 
Lexical scoping is a tricky beast though, even from the users point of view, I imagine it'd pretty difficult to impl in the engine as well
 
I'm sure it's a hair short of impossible now, but it'd still be nice ;-)
 
@DaveRandom thanks, problem solved :)
 
what's this lexical scope everyone's talking about
 
@DaveRandom wat
 
11:13 PM
function () use everything { } We're talking about <-- that.
 
I, for one, like an explicit use scope.
 
Personally I'd drop use completely and go with JS style implicit lexical scoping
 
JavaScript scopes are scary sometimes.
 
I accept that
 
@Jack Only the this part of it really
Everything else is remotely sane, but this most definitely is not ^^
 
11:15 PM
Yeh well ECMA this makes no sense sometimes
 
That's why you should use that instead =D
 
function () { dump(this); } // potato
 
Mostly because of things falling back to the global object instead of the current context
@Jack I hate that. self ftw!
 
Hi. Does anyone use Sublime Text 2 for web development on Linux?
 
Haha I know you do
 
11:16 PM
moo
good night
 
Actually, .call() and .bind() ftw
 
nite @NikiC
 
@NikiC Night.
 
On Windows it has a neat autocomplete feature for HTML attributes. For example if I type "div.foo" and hit CRTL+Space it autocompletes to "<div class="foo"></div>". But it doesn't work on Linux. Is there another Key combination?
 
11:17 PM
If we had macro tech, we could do lexically copied scope; something with get_defined_vars().
 
That is a neat feature
 
Yep. It works out of the box in the windows version but in the linux version nothing happens
 
@Demnogonis Isn't that Zen HTML?
 
Wow is that really that useful?
div#page>div.logo+ul#navigation>li*5>a
dafuq :P
 
Nope. It is build in. I don't have any Zencoding plugins installed
 
11:19 PM
@PeeHaa I know, it's worse than regex.
 
@DaveRandom Don't forget .apply() :)
 
Hieroglyphic Text Markup Language
 
@PeeHaa yeh that's just taking the piss
@Jack I lump that in with .call(), it's like cuf/cufa
I probably use .apply() more often actually
 
@gordon yes. I take a picture, then tell it to share via twitter. Will demo Sunday...
@leigh: I get to Manchester Saturday afternoon. Will be in the uk since Tuesday, but in London and outside of Birmingham.
 
@ircmaxell Outside Birmingham is the place to be, relatively speaking
Also, you're missing more than 50% of the conf??
 
11:29 PM
Anyone has some experience with Android rooting?
 
Yup. No choice. A best friend is getting married Friday night...
 
Need some slightly-more-than-usual-urgent help
So I've rooted my Galaxy S3 (international) with the following: youtube.com/watch?v=vhSSmdqAXRM
(The second method)
And yet, nothing seems to be able to gain root access.
Even when I try to update the SU binaries, it would fail at "Trying to gain root access"
If anyone's familiar with the problem and can offer steps to debug/solve it I would be eternally grateful and shower him with virtual stars and unicorns for the rest of eternity.
 
@MadaraUchiha What happens when you manually start SU?
 
@PeeHaa It starts up normally
 
Does it say it has root?
 
11:36 PM
Gives off no error messages and nothing appears under "log"
Where should it?
 
If it just opens up without errors it should be rooted
tbh rooting never failed for me
 
@PeeHaa It does
 
@ircmaxell Well that's fair enough then. I suppose that's a good enough reason to go that close to Birmingham as well, although I'm not promising you won't be forced into decontamination before you are allowed to enter the northwest.
 
@MadaraUchiha you have a setuid root su binary on the device already ?
 
@JoeWatkins Who what why where?!
 
11:39 PM
oh
 
what's setuid root su binary? :P
 
Would somebody care to look at this?:
0
Q: Adding values to a multidimensional array PHP

red6I have tried this now about 20 different ways, set it down and picked it back up several times and I am at a loss for what I am doing wrong. I am trying to create an array of arrays from three separate arrays. The first array I iterate through is a list of dates. Then I iterate through a list...

 
floating about on the internet are many copies of the su binary, they are setuid root, if you copy them to a folder on the device with executable permissions you can gain root access, usually temporary, you can use this to try running your rooting app, if that fails, use it to install busybox even if temporary and then try your rooting thing again ...
you are rooted already ?
 
I am, apparently
But nothing gains root access
Not even SU
 
11:42 PM
can you remove the app ?
 
I've actually installed it via the market, yeah I can uninstall it
(The root didn't install it for me)
 
get rid of it, possibly copy /system/xbin/su to something like /data/local/tmp or whatever ...
 
is /data supposed to be empty? :X
 
prolly not ...
 
How do I mount it? :X
 
11:45 PM
just issue mount in a terminal, find out what is mounted
 
data is mounted
 
@JoelKidd: It is also in the PHP manual BTW, see file uploads common pitfalls.
 
well, bugger ...
 
reboot?
Think it might do anything?
 
@hakre Yeah apologies, I get lazy sometimes and use SO as a solution
@hakre Should really look before just slapping questions on
 
11:47 PM
yeah maybe ... maybe backup first ...
 
not hard reboot, restart the phone :X
Maybe it'll remount it
 
you have a shell ?
 
@PeeHaa sounds good, sorry for the late response
 
11:48 PM
issue whoami
 
@PeeHaa also pick a domain: phpoauthlib.[com/org/net/io/whatever]
 
whoami not found :X
 
issue busybox
 
not found
 
find / -name busybox
 
11:50 PM
find not found
wtf
 
stock rom ?
 
Hmm why is my PHP saying: Allowed memory size of 947912704 bytes exhausted (tried to allocate 262145 bytes)
When I've allocated 10gb
 
jesus fucking christ
why are you allocating 10gb ?
 
I don't have 10gb to allocate to be honest lol
I'm trying to import a CSV using phpmyadmin
 
11:51 PM
no
don't do that
 
It's 128mb, and it wont go in (cheeky laugh)
 
LOAD DATA INFILE
 
@JoelKidd You already have 1GB allowed memory, which is WAY too much anyway.
 
look it up ...
 
I only have this in CSV format
 
11:51 PM
@MadaraUchiha you're not rooted
 
Does "LOAD DATA INFILE" have anything to do with changing the format?
 
nor can you root
@JoelKidd it can yes
 
Why not? :X
 
Nite @all
 
@JoeWatkins What would you do now if you needed to import a 120 CSV into a mysql db be? Your first course of action?
120mb*
 
11:52 PM
Night @DaveRandom
 
night dave
 
@JoeWatkins Why can't I root? :(
 
This is a great morning, the first thing I attempted fixed a long standing problem I've had :)
 
@JoelKidd why would you need 10gb of memory to load a 120mb file ??
 
@JoeWatkins Good question, that's why I am here :P
 
11:54 PM
@Jack \o/
 
@JoeWatkins I don't know why im getting memory errors for a 120mb file
 
@MadaraUchiha "Damn you, Amazon documentation!" shakes fist
 
me neither, you shouldn't ... but you probably shouldn't process it at all if you can get away with it, it's much nicer for everyone to use load data infile
 
@joewatkins will that achieve the same thing?
 
load data local infile requires a special permission btw :D
 
11:55 PM
Ohhhhhhhh
Is it just like uploading the file to the server?
And then importing via SQL statement?
 
yes
 
oh easy peasy
 
It's like reading the CSV with mysql.
 
thank you so much :D
 
Or, more precisely, reading it with mysqld.
 
11:56 PM
LOAD DATA LOCAL INFILE 'example.txt' INTO TABLE example_table
Where would example.txt be?
In the phpmyadmin root?
 
@JoelKidd No, on the server where mysqld can read it.
 
in the uploads folder, check your config ...
 
Ok cheers
 
how did you upload it ??
 
I haven't yet
I'm planning on just uploading via ftp
 
11:57 PM
I assumed this is something you're in phpma doing now, not some automated process
 
I usually drop the file into /tmp, import it, and then delete.
 
yeah that'll do, put it wherever you can read it from ...
 
Ok cool cheers
 
drop it in /tmp if /tmp is a physical disk or doesn't get wiped a lot ...
I don't like /tmp .... is scary place to be, you can be killed at any time ...
 
Yeah, the key is to be fast :)
 
11:58 PM
hahaha
 
But a user's home folder is inaccessible to mysqld.
 
I suppose the key is in the name right? :p
righty ok
 
Jack I tend not to execute administrative commands with a user account ... you do ? :D
 

« first day (1076 days earlier)      last day (3871 days later) »