« first day (723 days earlier)      last day (4218 days later) » 

user50049
12:03 AM
That's actually a much better fit on PSE.
 
user50049
Oh well, enough morning fun. Time to get stuff done.
 
12:20 AM
night all
 
user895378
'night
 
12:52 AM
Are you the original poster of this question? If so, you should create an account here, link it with your Stack Overflow account, and gain ownership of your question. You can then edit your post to include this information appropriately. — Thomas Owens 25 mins ago
He is the same person, because the Gravatar email hash is the same :P
 
When a question is migrated to a different SE site, this is common the OP doesn't have an account on the target SE site.
 
first time I see this pseudo-flag and cast such a vote :)
closed as not constructive by Quentin, lonesomeday, Mark Trapp, Andreas Bonini, Craigy 17 mins ago
@hakre to avoid making it a whole book as some comments complained, I think we should stick to the SO questions that generate the most duplicates (and thus get closed)
From now on when I cast a close vote I'll add a link to the reference (if applicable)
 
@Jocelyn sure, its about the common errors from the very beginning.
Those of which some thousand duplicates are on the site.
the problem we have is to spot the good duplicate.
 
Yes, this is what rjmunro commented about, and I replied to that in my last comment
 
1:34 AM
having such a reference question as community wiki on the site is useful for that. I can not predict the future that is why I see no reason to not do it that way and see then how well it does.
That "you can't create a book" looks like a comment to make a comment. Most of the guys who commented against the question do not regularly deal with the php tag nor these error-questions from what I know.
 
I just had a look to the profiles of the 5 people who closevoted
 
I don't want the code to my question but how would I go about creating a single PHP page that everyone would see but see it differently depending on the user credentials they logged in with?
 
@W3Geek you may store the credentials in a cookie (possibly a session)
 
I thought maybe I could set a unique ID for each user in the mySQL database and display whats on that page depending on there ID.
 
this is what I do with my users
 
1:39 AM
I don't want one user to see the other users page.
 
@hakre this is strange, I don't see the close-votes for the debugging reference when I visit their profiles...
 
read, then look at comments.
 
@Jocelyn those are not visible. only with the question edit history.
 
@Jocelyn how would cookies work with this? Okay, I'll spit out what I am developing... I'm developing a client staging area (which is for clients to download there assets and resources from) for a web design and development company. It is critical that clients won't be able to see each other's staging area... When they log in it will take them to their staging area.
Do you see what I mean? How would I possibly go about this. Any ideas?...
 
@W3Geek authentication and access control.
 
1:44 AM
All my neurones have gone to sleep...and so am I. See you later!
 
I don't want to create a page for every client... I just want to use one page... depending on what user logs onto it is what they'll see.
 
later
 
@hakre, access control?
googling
So I think you mean set the users as client with privileges? How would this change what is on the page for them though?
Every client has a unique page... but it is all coming from one page.
Gah trying to explain this is really hard. lol
I'm studying about access control right now.
Isn't authentication just making sure the user exists within the database and has a password?
 
2:10 AM
authentication is proof that user is what he/she claims
authorization is what governs the user's access
 
hello
 
2:32 AM
I have one more question...
When setting a cookie with setcookie("username", "W3G", time()+60*60*24*7); I go to destroy it with setcookie("username", "", time()-60*60*24*7); on another page but it takes two page reloads to completely clear it?
Why is this?
 
Shouldn't you just expire it?
 
Is it possible to stop PHP form midway and run javascript for form validation?
 
2:50 AM
@Nile Didn't I expire it?
The set.php will set the username cookie and view.php will destroy it with setcookie("username", "", time()-60*60*24*7); but it still echos out $_COOKIE["username"]; on the view.php unless I reload the page.
 
Yeah, I didn't see that, sorry.
 
Its okay.
set.php contains just... <?php setcookie("username", "W3G", time()+60*60*24*7); ?>
view.php contains just <?php setcookie("username", "", time()-60*60*24*7); echo $_COOKIE["username"]; ?>
view.php shows an error after reloading... Shouldn't it just show that error from the page being loaded the first time?
 
3:10 AM
1. The client sends a request to the server with a cookie.
2. The server sends headers to the client to remove the cookie.
3. The server accesses the cookie that the client just sent.
@W3Geek Does that make sense?
 
I'm trying to understand it @ShaquinTrifonoff
I know the client requests the page on the server.
PHP gets ran, sets the cookie.
But wouldn't PHP run again on view.php and set the cookie to be removed (since it expired)?
Oh wait, I think I see.
 
All that the setcookie function does is send a header.
 
So that is why it takes an additional reload to show the undefined error? The server already knows the cookie from the previous request.
 
Yes.
$_COOKIE is populated from the client's request, before the script is executed.
 
And it sends the new header that setcookie function created with a page reload?
 
3:16 AM
Correct.
 
Its kinda confusing to vision but I think I see now.
brb
I think I understand it now so when setcookie() function on set.php page sets the username cookie, its not available until next page reload (request)? Since I go onto view.php it creates a new header, the setcookie() function... From the last request, username came available to $_COOKIE? @ShaquinTrifonoff
 
@W3Geek Yes, that's right.
Does anyone know why
$str1 = 'PHP stands for PHP: Hypertext Preprocessor';
$str2 = 'this text should not match at all';
echo similar_text($str1, $str2, $percent);
echo $percent;
outputs the percentage 1026.6666666667??
 
3:37 AM
Hi All: i have a question regarding RecursiveDirectoryIterator, please look at this post , as @salathe said , RecursiveDirectoryIterator does not implements hasChildren(), getChildren() behaviour, and i want to know why RecursiveDirectoryIterator do not implements those behaviours?
 
4:24 AM
@ShaquinTrifonoff You have an echo on the similar_text() line, too. It is actually outputting "10" integer and "26.6666666667" floating.
 
@jimp Thanks, I don't know why I didn't spot that!
 
@ShaquinTrifonoff No problem! I scratched my head for a min, too.
 
user1125394
4:41 AM
anyone tried ruby sinatra?
 
user1125394
seems beautiful, but don't know how is it for a big site
 
5:10 AM
hi, please help me conceptualize and script the following. Let's say I have an array of texts $txts. The texts are normally some kind of lists, that can be separated by commas, semi-colons, or full stops. I input a word or a short phrase ($string) and I want to display all occurrences of the $string in the $txts, but - here is where I'm stuck - only display the occurrence in context of ONE item list
for example, the $txts[13] is "blah, some more blah; blah blah, who cares, blah blah; and stuff"
$string = "cares"
i want to output "who cares"
a single txts may contain several occurrences and I would like to output them all
 
5:26 AM
@UnoMeinAme Like codepad.org/2HDB5BUa?
 
5:39 AM
@ShaquinTrifonoff wow, didn't know about strtok
thank y ou
 
@UnoMeinAme You're welcome.
 
i assume that it will then also work with start and end of string, because it strtok will take care of it, right?
 
@UnoMeinAme It should.
 
this is awesome
 
5:54 AM
@all Hi
 
6:27 AM
@Kanth
config.php is where in xamp to set it?
i was familiar in wamp.
 
All Hi...
 
hello
 
@shihab_returns you are in here too. have seen just now.
@shihab_returns are you there?
 
@kanth: i saw u r here ...then ...just log in..!!!
 
6:42 AM
Okay.
Tell me what was you were asking?
why to set config.php?
 
Sem
@Kanth No, he is to lazy to search for config.php (actually php.ini) in his new preset. (XAMPP)
 
Hey power is gone here and my ups is down. Will be back when power comes. see you guys.
 
7:26 AM
hi
 
Hi all, I'm Terry, new here, just thought I'd introduce myself!
 
The debugging reference was closed and reopened
and now there are already 2 close-votes
 
@DaveRandom Omitting the quotes around keys in interpolated strings is the only situation in which it is allowed to omit them
@TimPost well, I yielded to peer pressure back then
 
7:43 AM
in magento tags with grouped product showing empty list
whats issue behind this
?
 
I don't know what magento is
 
good morning
 
Morning
@Gordon Huh. I'm sure PHP has bitched at me for doing that. Every day's a school day. I'm still not going to start doing it though, it looks wrong. Will edit the answer in a little bit, have to take the boy to nursery first
 
8:06 AM
@DaveRandom see example 8
$juices = array("apple", "orange", "koolaid1" => "purple");
…
echo "He drank some $juices[koolaid1] juice.".PHP_EOL;
 
hi guys
 
On windows, I was doing something on the lines of:
TITLE Starting
TASKKILL /F /T /FI "WINDOWTITLE eq Running" >NUL 2>&1
TASKKILL /F /T /FI "WINDOWTITLE eq Administrator:  Running" >NUL 2>&1
TITLE Running
REM long-term operation goes here
^ I know it's convoluted and all, but hey, it's Windows(tm)! :D
Anyway, I'm trying to "convert" this to make it work on linux/osx
I'm thinking about using a lockfile instead of that abomination.
If I get it working, promise I'll try porting it back to Windows. :)
 
8:24 AM
I just want to be sure that if already rewritten urls can be rewrite again in htacess...
i want to remove Id from this url
125
fanland.com/team/fantasy-football/125
any ideas....I tried many htacess tricks but failed
 
@RickyDang You can't "remove an id from the url". Once you make up the URL, you can't go back - except writing it from scratch.
 
I am using ZEND
 
I would advise that you learn what .htacess (and more to the point, url rewriting) does.
 
ZEND already doing these url rewriting
but i just want to hide 125 from that url i mentioned above...
any other ideas?
 
@RickyDang have you tried Zend?
haha
 
8:29 AM
I am working already on ZEND...
 
yeah I know I was being fecicious
 
but did not try with the code to hide that id in the route
yet
i thought there should be any htacess idea to hide that 125
 
mmm I have never seen one
 
zend already rewriting the urls in the htacess..so i was wondering if we can rewrite again the urls which are already rewritten by zend
 
you can of course
 
but if you do it wrong you'll mess with the integrity of the zend router
zend router counts on URLs being formatted a certain way
 
@RickyDang no, you are using Zend Framework. ZEND is a company. You cannot use Zend.
 
hahaha
 
he he @gordon sorry its ZF :)
 
I use Zend
 
8:32 AM
zend framework ;)
@mm
@mmmshuddup any idea to get rid of id in the url..please
 
no
unless my understanding of mod_rewrite is wrong, you can't just make elements of the URI disappear and expect the same results
 
@mmmshuddup Zend also produces Zend Server, Zend Guard, Zend Studio and other products, so saying I use Zend is rather unclear. Saying I use ZF or Zend Framework is more specific.
 
Morning
 
@Gordon lol I know I know, I was just joking around
some of those products I actually use
 
Sem
@Gordon Oh trust me, we can use companys alright.
 
8:34 AM
Zend Studio and ZSCE
I use Zend as a scapegoat
for complaints
 
I uses only ZF :)
 
my condolences
 
do you use ZF 2?
@tereško why do you say that? because it's slow?
 
because that framework is horrible
 
lol no it's not
 
8:37 AM
I am using actually Socialengine CMS which is based on ZEND Framework
 
why do you say that?
 
no @tereško its not
 
ugh social
 
ZF code is full of global state
 
8:38 AM
you do not even know what global state is
 
that's correct
so please, indulge me
 
I'm not gonna click any links that come from that site
 
Sem
@mmmshuddup Then I assume that you have seen it a couple of times. Which may mean you frequently ask questions you can just type in Google.
 
8:41 AM
@Sem pardon me if I don't immediately google everything when I'm in the middle of a conversation. I have plenty of tabs oben already and didn't feel like opening one.
I don't click links from that site becaus epeople send them to me often, it's because it's condescending
 
posted on October 08, 2012 by Stuart Herbert

Last weekend saw the PHP NorthWest user group run their fifth conference. Spread over three days, it gave over 400 folks who attended great talks on a wide variety of topics from speakers both established and new. Once again, Jeremy, Rick et al ran an excellent conference, and I’m already looking forward to next year’s event. See more of my photos from the PHPNW12 conference on Flickr.

 
You think someone is incapable of finding infomration on their own, so you post something like "here, idiot. I just did it for you and proved how simple it is and how much of a MORON you are by not knowing."
 
i love, how people, who know NOTHING about development practices, always KNOW, which is the best framework ... it's quite astonishing
 
-.-
who are you talking about @tereško?
 
@tereško Oh come on, that comment was just for the upvote, wasn't it? :D
 
8:46 AM
@Christian he he
 
not really .. there is no achievement for collecting 1000 stars .. though, i think there should be one
4
 
Sem
@mmmshuddup First of, knowledge has almost nothing to do with intellect so I wouldn't say you're a less capable person. But, why don't you prefer searching for information on Google that can be validated more easily?
 
I stand by my original argument.
 
Sem
Being lazy? Or being to chaotic to handle Google?
 
8:48 AM
@Sem , actually , you LMGTFY query was pretty bad, because global state is a language-agnostic subject
 
@Sem Plus, Google is much more reliable than @tereško. I wouldn't trust anything he says.
 
I'll give you that
 
Sem
@tereško I typed php with it..?
 
yes , you did
 
but what I really wanted when I said "?" in my message to @tereško was an explanation as to why he thinks Zend Framework is full of that.
 
8:49 AM
@mmmshuddup 'coz it is?
 
ok but here's a subsequent question then..
 
To do anything in ZF, you need to start with a class name.
 
what Framework would you use then, if any?
 
So your code is bound to hard-coded class names, for instance.
 
or do you prefer to re-invent the wheel everytime?
 
8:50 AM
@mmmshuddup MyOwnFrameworkTM, naturally.
 
I personally use ZF because I don't like Cake
 
@Sem please do not use lmgtfy. it's banned on the main site and discouraged in chat, too, for being rude and offensive. a regular link to google will suffice to get your point across.
 
and I didn't really like any other ones at the time either
 
@Gordon There goes the fad.
 
but I can't think of a single framework that doesnt' have "global slate"
 
8:51 AM
@ i thik yii will
 
@Gordon thank you for that.
 
@mmmshuddup Well, you've got a very limited list of frameworks you know about then :)
 
yes that is true
I know about yii, Kohana, cake and Zend
 
@mmmshuddup , you cannot even spell the word "state"
 
Sem
@Gordon Sigh, alright then. and this insulting comment above me isn't?
 
8:52 AM
@tereško and you don't know what a haircut is.
sorry..I thought we were hhaving a state the obvious contest
 
Guess what? I'm off till the air cools off a bit. Cya later @Gordon
 
.. ok .. here goes another kid in the ignore-list
 
wow
 
@Sem sure it is. But whenever I flag @tereško ppl counterflag for reasons beyond me, so I give up. Besides, I think he knows he's trollish at times.
 
@Gordon sorry for participating in what I didn't expect to become an insult war.
 
8:55 AM
well, get along guys ;)
 
I didn't mean to perpetuate anything here. I was trying to have a normal conversation
 
Sem
@Gordon We're teaching people here, right? And there are different ways to do so. Some require a gentle push. And some people require a kick in the but to get further.
 
@Sem I'm offended that you think I need teaching from you.
At least, teaching in that sort of way.
 
@mmmshuddup We all need teachings. Don't be arrogant enough to think that you cannot learn anything from the beginners.
 
no it wasn't like that
 
Sem
8:58 AM
@mmmshuddup Well then, lmgtfy might be a less gentle way to show someone that Google can answer your question. Even so I don't see why I need to be more gentle to people who tend to use other people their time because they are seriously to lazy to search for themselves. Google will also provide information / opinions from multiple perspectives.
 
I admit I need teaching.
 
which is why you completely ignore the lecture that was linked to you ?
 
but I would never be so bold as to say to someone else like "hey, you need teaching from me!" when i don't even know the person.
 

« first day (723 days earlier)      last day (4218 days later) »