« first day (805 days earlier)      last day (4142 days later) » 

6:02 PM
if this is indeed a main goal then it would make sense to make them more or less exact
 
could someone see this: http://pastebin.com/1PTcTeBw
is there any better way to do it?
 
@NikiC: I renamed parser to compiler, and implemented the parser better...
 
6:17 PM
@PeeHaa you there?
 
godaddy is really fu**king crap ... now unable to access directory tree ....
 
6:31 PM
@DanielMinett Kinda
 
wtf i am really going to .. switch my hosting from godaddy ...
 
OK, so I kinda been back tracking on what someone told me and I am confused. The reason I am doing all of this work is so that I can know who has clicked on a link. And to record who clicked on it. Does make sense? @PeeHaa
 
btw .. morning
@PeeHaa hiye ..
@tereško yo ....
 
yay
 
@Olli using prepared statement isnt mean you are completely safe check this stackoverflow.com/questions/134099/…
 
6:43 PM
@NullPointer oh, ok.
 
@NullPointer Morning
 
user1125394
@ircmaxell is erlang non-OO?
 
yes .. kinda
 
user1125394
it's called a pure functional language I think
 
it has no objects per se but the concept of actors work like object oriented code
 
user1125394
6:47 PM
hmm that changes a lot
 
basically , you can use OOP principles without the classical structures
@cyril , you have to understand that it is a completely different branch of programming languages
 
@DanielMinett somewhat
 
any other hosting company which will better than godaddy .. is hostgator is ok
 
user1125394
@tereško yep, I'm looking at erlang webservers for SSE and stuff like that github.com/extend/cowboy_examples/tree/master/src but I don't think it's comfortable to code a whole web framework in erlang, or is it?
 
user1125394
6:52 PM
would just use erlang as a front server, or third-party server
 
@NullPointer All are better than godaddy ;)
 
@cyril actually erlang would be better are fault-resistant distributed backend system
 
@PeeHaa ahhh .... this is same replay i got after ..i faced first problem .... and now its like recursion of problem .. lol..:P
 
:P
 
user1125394
yep, it is fault tolerant ostinelli.net/…
 
6:55 PM
@NullPointer What are you looking for? VPS?
 
@PeeHaa go sign up on packagist
so i can make you a maintainer of phpoauthlib
i just fixed it up so it no longer has an artax dependency/wrote a new http client/added a composer.json
thus touching it for the first time in many moons (:
 
yay! Touching!
 
@cyril , you have to understand that Erlang has no common ancestry with PHP. It comes from Lisp/Prolog family
 
@PeeHaa lol. lemme know when you sign up
 
Luckily I've finally setup my mail again :) 1 sec @Lusitanian
 
6:58 PM
@PeeHaa yup..exactly .and i have hosted 5 website .. vps at godaddy .. is this reason of problems ?
 
And hiya sir :) @Lusitanian
@Lusitanian username: PeeHaa
 
kk, one sec
 
Just wrote a book replying to that blog post
 
@PeeHaa added
 
now, waiting comment moderation
 
7:01 PM
@PeeHaa you're welcome to go write moar tests now (:
 
@Lusitanian Yep. I have some stuff to do for the new php site first, but after that I can throw in some nice assertions :)
 
@PeeHaa please do, i've been so lazy with it and actually have something i want to use it for :p
 
@Lusitanian I'm guilty of that too. And I also can use it about now :)
 
lol good
@igorw the lib is now added to packagist
 
7:05 PM
can someone confirm that T::a as b is supposed to add both a and b to the class?
 
@NikiC it is .... i think
well no
it's supposed to retain a and add b
 
this all sounds very traity
(as in "shitty")
 
hehe :)
 
@NikiC yup
 
@Lusitanian :thumbsup:
 
7:10 PM
Also, please upvote this for fun: stackoverflow.com/a/14085016/871050
It's a CW anyway :)
 
@igorw also i removed the artax suggest and the client implementation that utilized it since i didn't want to refamiliarize myself with @rdlowrey's api
so i just wrote a file_get_contents based client quickly
 
@MadaraUchiha CW is not meant as a way to post offtopic asnwers :)
 
need to update readme
@PeeHaa pretty sure it is ;)
 
@PeeHaa It was spiraling down and burning anyway :)
Plus, it is :D
 
@MadaraUchiha No it is not ±'
yay keyboard switch
Lol it keeps jumping between -1 and 1
 
user895378
7:13 PM
@Lusitanian Yeah, I pretty much hate all the Artax code right now. I have tons of changes and a complete philosophy change locally. I was premature in my assessment of the library's stability.
 
@Lusitanian whatever works for you. I guess the interface is still the same either way, so the impl can be replaced if needed.
 
@rdlowrey Why am I not surprised? :)
@igorw indeed, that's why i separated it from a third party library. it may change at some point though, remains to be seen
 
@rdlowrey The weather is more trustworthy than your "stable" APIs :D
7
 
i don't think anyone's using it yet so i'll wait to get feedback when people do
@PeeHaa you mean "stable"
 
already fixed it :)
 
user895378
7:14 PM
@PeeHaa This is true.
 
@Lusitanian packagist has stats. so if someone does start using it, you will know. ;-)
 
user895378
@PeeHaa Hola. Been in hardcore work mode. Amazing how much I was able to get done over the last two days by closing my chat tab.
 
@igorw yeppers
 
@PeeHaa Why does it still say cv-pls?
It took it a while to change to delv-pls
 
7:16 PM
Hello
 
@MadaraUchiha hmmm strange indeed
 
@PeeHaa My guess, it didn't check at all, and it assumed it was still opened, because last time it checked, the question was opened
Once the cv changed to delv the origin cv-pls request I gave was also stroked out
 
@rdlowrey PHP chat: "For all things PHP and other ways to get easily distracted from actually doing work"
@Chacha102 Hiya
 
@rdlowrey Sadly I don't have enough control over myself to do that. I will have to stay unproductive for the rest of my life :/
 
user1125394
just saw the most fantastic goal ever from theo walcott
 
user895378
7:19 PM
@NikiC I'm only able to do it when I have something I'm really excited about working on. That's the key.
 
user1125394
ars 7- 3 new 90'+1, just randomly watched it
 
an interesting overview of futuristic happenings in 2012 io9.com/5971328/…
 
For a very good laugh, for those of you who haven't seen it yet:
 
Refactored a bit, added php.php and added support for basic cli ability (files as well as -r ran code)... And added require/include/require_once/include_once functionality (there's no difference yet between include/require, both kill execution)
 
@tereško I think you'll love it :D
 
7:24 PM
@ircmaxell just ran into a buffer overflow, is this enough info for a bug report? gist.github.com/7885e6d360411dbd4b7b
 
Hrm, lxr.php.net/xref/PHP_TRUNK/Zend/zend_highlight.c#189 that might be enough, but can you get simple reproducable code? Or was that a one-time issue?
 
I can try to dig deeper, but it only happens in a specific constellation
 
7:40 PM
Hey guys, im using mod_rewrite to create friendly url's but i have a problem having a file with the same name as a folder
 
@TetsTets How could batman be having problems?
 
Anonymous
@MadaraUchiha aren't you a mod here
 
@TheCOMPLETEPHPNewbie I am
Not technically a mod, but yes
 
@MadaraUchiha lol... i think i have not earned my avatar pic yet!
 
@TetsTets Your friendly URLs should have nothing to do with your actual file structure
You should have all URLs point to index.php, and have that index.php decide which file to load
for instance
http://example.com/pretty/url will be rewritten to http://example.com/index.php?route=pretty/url
 
7:45 PM
@MadaraUchiha that's exactly what im doing, my index index file decides where to go, the problem i have here is that when im going to gallodesign.mx/social y get in the /social/ folder
@MadaraUchiha btw, thanks for helping
 
Anonymous
@MadaraUchiha this answer stackoverflow.com/questions/13426634/redirecting-after-logout/… was deleted due to negligence, after I had modified everything asked
 
@TetsTets You want it to go to the folder? Or don't you want to go into that folder?
 
@MadaraUchiha I don't want it to go into the folder
 
@TetsTets How does your rule look like?
 
@TetsTets Possible duplicate of every mod_rewrite question on SO :)
 
7:47 PM
@MadaraUchiha
RewriteRule ^([a-zA-Z0-9_-]+)$ index.php?cuerpo=$1 [NC,L,QSA]
 
@TheCOMPLETEPHPNewbie I've cast my undelete vote. Hope it gets undeleted for you
I'm not a diamond mod, so my vote isn't binding. You may want to ping @ThiefMaster or @TimPost on the matter
(Whoops, I already did :D)
@TetsTets Does it have RewriteConds before of it?
 
@PeeHaa hehehe, yes i know, but nothing seems to work
 
@peehaa do you know if it's possible to get the permissions granted by an oauth token from the resource owner? like, "before i submit this request, can you tell me if this token grants the appropriate permissions?"
 
@MadaraUchiha Yes, sorry:
RewriteCond %{SCRIPT_FILENAME} !-d
RewriteCond %{SCRIPT_FILENAME} !-f
RewriteRule ^([a-zA-Z0-9_-]+)$ index.php?cuerpo=$1 [NC,L,QSA]
 
7:49 PM
@TetsTets There we go
 
Anonymous
@MadaraUchiha Thank you. I guess I will wait for the two, to show up
 
RewriteCond %{SCRIPT_FILENAME} !-d
 
1
A: Url rewriting mod_rewrite

LazyOneThis one works fine for me and will rewrite request for /p/q/ to /content.php?xname=p&yname=q&zid=1. Options +FollowSymLinks -MultiViews RewriteEngine On RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^([^/]+)/([^/]+)/$ content.php?xname=$1&yname...

 
Tells the rule not to run if the directory exists
Though, you should name your directories as such so that it wouldn't get in the way of the rewrite.
 
obvs there will be some sort of exception thrown if a request is sent with an invalid token
but i was hoping to check before sending the request, so as to only handle one sort of exception
 
7:50 PM
@MadaraUchiha see what messages were moved to the recycling bin yesterday
 

recycle bin

deleted items
Or the other one?
 
@MadaraUchiha Oh, you would recommend to rename the directories?
 
@MadaraUchiha Somewhere around this time yesterday
 
@TetsTets There shouldn't be a case when a normal user tries to access an application diretory.
 
@MadaraUchiha yes, you are right.
 
7:53 PM
Hence I'm not very inclined to do anything to help @TheCOMPLETEPHPNewbie anymore :) @MadaraUchiha
 
As for you, @TheCOMPLETEPHPNewbie
 
Anonymous
i didn't ask for your help @PeeHaa
 
That attitude of yours, we won't have it in this room
Chill down, and talk nicely.
 
@TheCOMPLETEPHPNewbie Nopez you didn't. You shouted. And after that you insulted. That's indeed not really asking :)
 
Anonymous
@MadaraUchiha do you see anything in that answer, that would make you close it?
 
7:56 PM
@TheCOMPLETEPHPNewbie It's not that nobody likes you, you're deterring anyone from helping you with that attitude. So please cut it out.
@TheCOMPLETEPHPNewbie No, hence I undelete
BRB
 
nm, use the state parameter in the initial request, duh
 
@TheCOMPLETEPHPNewbie But this has nothing to do with it
We are all people here, volunteers, we do not get paid for what we do in this site, for better or worse.
 
Anonymous
i know that
 
Good, so starting to lash out at people is hardly a way to learn anything, or gain their sympathy.
 
Anonymous
but you should know, some members are abusing this sites usage by deliberately, downvoting or deleting. as with my case
 
8:05 PM
@TheCOMPLETEPHPNewbie No one here has any personal grudge against you.
We do not know you, we have no idea who you are, nor do we care, really.
But you, you have made yourself a target. You painted the bulls eye on your back.
 
Anonymous
well tell me then, why my answer was closed?
 
@TheCOMPLETEPHPNewbie Where's the answer that we're talking about?
 
By lashing out, not accepting constructive negative feedback, attacking people who try to speak to you
0
A: redirecting after logout

The COMPLETE PHP NewbieOk, OP! I have updated my answer, even though you didn't ask for it. So, check it this again put header('Location: http://site.com/index.php'); Make your code like this: case 'logout': offline($_SESSION['user_id']); session_destroy(); header('Location: http://site.com/index.php'); ...

 
@MadaraUchiha Thanks
 
Sure
@TheCOMPLETEPHPNewbie Do you understand?
 
Anonymous
8:07 PM
no, there was no lashing out during the answer
 
No, but there were prior to that
And that's the impression people get from you, and you always seem to get there somehow
So here's my advice to you
Calm down, apologize to those whom you've yelled at, that's including @PeeHaa and @tereško
Accept what they tell you as constructive, they are more experienced than you
And once again, do NOT take things personally over the internet.
 
Anonymous
thanks for the advice, my answer is back
 
Anonymous
thanks for all who voted back
 
You can thank @ircmaxell for that
 
Anonymous
@ircmaxell thank you
 
8:21 PM
@MadaraUchiha Thanks a lot man!
 
@MadaraUchiha eh, apologizing to tereško may or may not be needed. he seriously is inflammatory, let's be honest
 
@Lusitanian Can't argue with that.
But it wouldn't hurt either
 
@TheCOMPLETEPHPNewbie Bring it up on meta if you feel somebody is out of line with downvotes and deletes.
 
@MadaraUchiha true but i'd worry more about peehaa, etc
 
@TheCOMPLETEPHPNewbie In a nice and polite way.
 
8:27 PM
computers is hard, enough, you guys. just take it easy
 
@dyelawn Once learned, all solutions are easy. ~Leonardo De Vinchi
 
@DaveRandom You already sober?
 
@MadaraUchiha I'm going to call BS on that one, Leonardo.
 
@MadaraUchiha Never took calc 3 ~ Leonardo Da Vinci
 
@ircmaxell Do you really want to go with the executor globals design?
 
Would it be possible to put javascript in a php variable?
 
No, but I needed a way to get the cwd for require/include
eventually I want to refactor that away
 
@DanielMinett I'm here now.
 
@DemCodeLines $variable = 'function(a) { alert(a); }'; //javascript in a php variable ?
 
For example, $val = document.getElementById('name').value ?
 
8:31 PM
@ircmaxell I wonder how much of the existing PHP core had that said about it . . .
 
@ircmaxell good. PHP's EG stuff is really annoying to use sometimes :)
 
@peehaa i forked your oAuth lib and i'm putting a permissions setter in there.
 
and @LeviMorrison's got a point :D
 
because for some reason, $_POST['name'] is not working, so I have to use Javascript
 
@LeviMorrison Very true
 
8:31 PM
to get the value
 
@dyelawn idk what ya mean by permissions setter, but regardless make sure to write tests for your code (:
 
I do know I want to stay away from TSRMLS... as far away as possible
 
:D
you can absolutely stay away from it
no threading in PHP
 
@dyelawn actually you should fork from master, idk why @PeeHaa has a fork of lib he has write access to but it's not up to date
 
additionally, the EG aren't truely global. It's just a datastore attached to the executor... So it's not really the same thing...
@NikiC We can implement threading here though. Make the executor a coroutine, and it'll work just fine
 
8:33 PM
@Lusitanian It was yesterday :)
 
@PeeHaa not anymore!
 
@Lusitanian will do. i misspoke, i meant scope setter
 
but why'd ya ever fork it?
 
@Lusitanian I blame you for that ;)
 
8:33 PM
@Lusitanian Dunno any moar :P
 
@PeeHaa I blame you for everything wrong in the world and the mosquito biting me right now
 
lol
I hate those flying idiots
 
meh, still, i'll take the weather here (miami) even if it means those bugs
 
@Lusitanian, where would I fit document.getElementById(name').value into your solution?
 
Yes! I would trade in my rainy place for something like that any time
 
8:35 PM
@DemCodeLines not really sure what you're trying to accomplish
@PeeHaa only here a week :( then back to sub-freezing temps and lotsasnow
 
document.getElementById(name').value <--- that returns the value of a textbox
@Lusitanian ^
I need to put that value that is returned into a php variable
 
@Lusitanian So you better not get used to it :P
 
for example, $name = the value that is returned from that JS code
 
@DemCodeLines you can't do that...javascript is client side
php is server side
php is executed before your js...
@PeeHaa sadly
 
aaaaaahhhhhhhhh
but $_POST doesn't work!!!!!!!!!
and its ticking me off
 
8:41 PM
@DemCodeLines If for whatever reason $_POST isn't working for you I would look into what I would have done wrong instead of trying to come up with some ugly hack ;)
4
 
I looked back several times and I can't figure it out, and I would go crazy if it some small mistake.
But I have been checking this for at least 3 hours and I can't figure it out
 
hello
 
@IceD Hello
 
anyone here uses JavaSCript
(I was on JS channel but they are not helpng at all)
 
@DemCodeLines Can you reproduce it with a script as small as possible?
@Nile ping
 
8:45 PM
You want me to include all the PHP stuff in there
right?
 
@PeeHaa hi
 
@Jasper Hey give me a couple of mins just sorting some stuff out
 
@DemCodeLines script as small as possible :) meaning you should be able to provide a piece of code with only a couple of lines to reproduce
That or you didn't debug it ;)
 
@DanielMinett Sure thing
 
@Nile That comment on the question about the querystring being gone. Is it true?
 
8:47 PM
@PeeHaa where?
 
@PeeHaa you do JS?
 
@Jasper, do you remember where we left off yesterday? Sorry my site got hacked so I had to deal with that
 
You need to assign a name attribute — Nile 7 mins ago
How does an unnamed submit button makes the querystring be gone ?
 
@DanielMinett Yeah, a little heads-up would have been nice, but sure thing
 
@IceD Depends
 
8:49 PM
I just need a simple explanation
here it goes
 
@Jasper Sorry man I kinda just rushed off to another PC
 
I want to find a function in the page source code
 
@PeeHaa oh, hmm =/. I don't know, I just assumed. Do you know the correct answer? I can do some testing
 
which opens a pop out windows window
for image selection and loading :)
 
user1125394
NotifierHandler isn't there a y?
 
8:49 PM
I want to call that function with iMAcros addon for firefox
 
@Nile Nopez. Don't have the solution. Just thought it was strange if it would work like that :) Thought meybe Opera is screwing things up when you leave out the name or womething
 
We have the module that includes <file.php> and <file.php> has <?php var_dump($_SESSION)?> and now we need to see what that outputs
 
Just wanted to verify
 
I guess I was wrong if what @Kolink says is true
 
8:50 PM
@cyril no
 
user1125394
@PeeHaa indeed, I suck
 
I'm going to test anyways
 
@Jasper it returned this: pastebin.com/Z0R9DUVh
 
@DanielMinett Can you copy from the source instead of from the page? That way it's nicely formatted
 
@cyril Be careful or I might star that :D
 
8:51 PM
Yeah sure
I feel like a noob for not thinkign about doing thart
 
@PeeHaa Yeah I was wrong =/. I've deleted my comment
 
@Jasper Here we are pastebin.com/xaUquSaa
 
@Nile k tnx for testing. Opera is still somewhat sane :D
 
@DanielMinett I don't see what we are looking for. Are you logged in on the forum when it outputs that?
 
No, but when it is done on the forum its very similar
 
8:54 PM
@PeeHaa >
 
One second I'll get it from the forum @Jasper
 
Ok
 
@PeeHaa >
<form method="POST" action="...">
    <img name="picURL"></img>
    <input name="url" id="url" onkeyup="document.getElementsByName('picURL')[0].src=this.value" type="text">​
    <input type="hidden" id="testurl" name="testurl" value="<? echo $_POST['url']; ?>" />
</form>
 
user1125394
@DemCodeLines try @PeeHaa > 1+1;
 
user1125394
he will answer
 
8:56 PM
I am not trying to activate some bot, I am giving @PeeHaa the code he asked for
 
user1125394
but beware it's not always right answers :D
 
@DemCodeLines Do you really need that inline JS?
 
@cyril :D
 
@PeeHaa, as soon as an image url is entered in that textbox, the img tag automatically projects that image in a 30x x 30x box (I took out the css). So yes, its needed.
 
8:58 PM
@DemCodeLines But why does it have to be inline JS?
 
Cause the image needs to be shown as soon as the user puts the URL
hence onkeyup
 
@DemCodeLines That's not really a valid use case :)
Let me write you a example. 1 sec
 
Well, I can put that into the js file, but...
 
but?
:)
 

« first day (805 days earlier)      last day (4142 days later) »