« first day (973 days earlier)      last day (3968 days later) » 

12:16 AM
Hey guys. got a php question for you.
Is it possible to create an IF statement or something of the sorts that can allow a user to connect to varying databases dependent on their choice?
 
@JustinHetrick yes
 
So....
if($_POST['select_db'] == "db1"){
$dbname = ****
$dbuser = ****
$dbpass = ***
}
else if($_POST['select_db'] == "db2"{
am i on the right track or do I need to use something other than if?
 
@JustinHetrick I'd use a switch statement if that's how you are doing it
 
What is that? Sorry....little bit of a novice :/
 
12:23 AM
If I forward a domain, domain.com, to another, domainnumbertwo.com, when I send an email to "foo@domain.com", will that email be forwarded to "foo@domainnumbertwo.com"?
 
@crypticツ Thanks :)
 
@Nile no, that is dependent on the MX record
 
@crypticツ I see, thanks.
 
@Nile How are you forwarding the domain? You mean inside the sendmail or sth?
 
@Jack it's domain forwarded, not email
 
12:30 AM
Ehm okay, domain forwarding can mean multiple things :)
 
via the godaddy forward manager
@Jack i'm not really sure what I'm talking about, as you can see :). It's not a big deal, the client doesn't even want emails in the first place. I was just wondering what the implications were.
 
Forwarding an email domain is separate from web forwarding.
But who knows what godaddy means by it.
Yay, my first Python answer that didn't actually involve regular expressions =p
Who knew that tkinter.text.get() would do a rectangular text selection? =/
 
/good (?:morning|afternoon|day) .*!/i
 
1:11 AM
@Jack +1 to encourage i hope you will waste more time on python now
:P:P
@uınbɐɥs morning
@DaveChen i am really too lazy in approving edit or reviewing first post and close
 
hi all!
I am new to php and have a programming issue. Its a site that I have all the files and php files, everything. I need to be able to "host" it on my windows 7 laptop so I can test it. Is there some program what will allow me to do that?
thanks
 
@JABFreeware wampserver.com/en
 
@Danack thanks
 
That will get you up quickly - though it is a better idea long term to be able to install the separate pieces yourself rather than rely on a package. As that allows you to install upgrades yourself and have an understanding of whats going on.
 
@Danack what do you mean by "packages"?
 
1:21 AM
@JABFreeware and then write your file in www folder in wamp
 
Each of the bits of software PHP = one package, Apache = another package, MySQL = another package.
"and then write your file in www folder in wamp" Sorry - don't understand what you asked.
 
@NullPoiиteя okay
 
@Danack sorry i pointed to you
 
Hmm - maybe I should go to bed. DId not notice.
 
1:24 AM
okay well thanks guys. I'm /o
 
@Danack developer do not take sleep they just take nap :P
 
I dont even nap
:D
 
I live on Mt. Dew
:D
 
@JABFreeware please be a developer and take nap :P
 
1:25 AM
This programmer loves sleep. You whippersnappers wouldn't understand.
 
psssh old people and their complaining =oP
 
I'm going to go out an buy a nice pair of comfy slippers this weekend.
 
@crypticツ may be they are jealous of younger =oP
 
Why do old people smell? I'm being serious, not a bad smell, but they have like an old odor like a damp basement. I've noticed people's houses who are older than say 60yrs tend to make their house smell like it. Is it their skin decaying or the fact they collect junk which all give of their own old smell?
Someone needs to conduct a study on this
 
1:31 AM
@crypticツ Bit of both. I think bacterial growth on their skin and all the stuff they hoard tbh. Ewww.
 
try above and scare your kids :P
medical science is quite backward
 
sad thing is that we will all become old one day, so eventually you will become 'old people' one day :p
 
@Danack So that explains why old men use Old Spice!
 
Of course there is always another way
But no one wants to die young ... unless the suicidal kind
 
@Telkitty猫咪咪 I'll make sure I smell better =oP
 
1:35 AM
:D
 
i have heard that some people find the way to increase life and young again by some Ayurvedic medicine but the formula is lost long ago ...
 
@crypticツ Nah - that's just habit. People tend to use the same deodorant / shaving stuff for decades. Do you guys get a free razer from Gillette in the post when you turn 18?
 
@crypticツ just use gallons of perfumes :P
 
Every male in the UK gets one when they turn 18 and their name +address gets put on the register of votesrs.
Crap - how can I go to sleep after just listening to:
 
user652649
ping
 
user652649
1:39 AM
morning
 
gnip
 
@Wes hola
pong
 
user652649
:P
 
user652649
ah. the totem smiles of cryptic. to me that looks like a smile with a huge wart on his nose xD
 
1:46 AM
xD
 
user652649
i had breakfast with a redbull and now i'm feeling sick
 
2:15 AM
> but we mainly just use the mac for our IDE - at the moment Netbeans and terminal for ssh
 
^ best question ever, +9999
 
2:34 AM
@crypticツ I don't know why the smell exists (apparently either does this guy) but apparently his experiment proved it is something more then basic hygiene options: healthland.time.com/2012/05/31/…
 
@RickMartin rofl I love the 2nd comment on the article
 
@RickMartin lol
:10003770      SQL Error (select)
SELECT MD5(''blabla'') as passHash
Error SQL #1064: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 1
 
how to disable input form while sending form via ajax?
 
@microsoftarmy disable ?
 
i tried beforesubmit and data not passed to server
yes, prevent user changing while submit
 
2:43 AM
@microsoftarmy document.getElementById('ID').disabled = true; ?
 
i'm using ajaxform plugin, and they say it can use any standard $.ajax method
@NullPoiиteя where to put it? i tried put it on beforesubmit
 
if you are suing jqueyr try $(myForm).attr('disabled', true);
and on success $(myForm).attr('disabled', false);
 
if i disabling on "beforeSend: function(){/* disabling */}" data are not sent
 
Hello all. I'm running into a bit of an issue with a Wordpress plugin. Honestly I'm not sure if this is a PHP question or a CSS question. If anyone has an advice it would be awesome.
-1
Q: GD Star Rating plug-in: Altering Dynamic Cascading Style Sheet

panoramicI’m in the midst of creating a page that allows users to vote for one of two competing images. I’ve used the GD Star Rating plug-in for WordPress in the past, but am struggling with altering the output in accordance to my specifications. Ideally I would like to eliminate the thumbs down option,...

 
2:48 AM
@panoramic there is dedicated site for wordpress you can ask there wordpress.stackexchange.com
 
@NullPoiиteя that's not solving my problem, i think it's good to place wrapper to prevent user action
 
@NullPoiиteя Thanks I shall try asking there.
 
@microsoftarmy it should work
 
3:01 AM
@Danack Could you ping me aqgain tomorrow if I forget to review it. I'm totally watsed right now, it's getting day again, the bird are making noise already and I really need to get some sleep :P
 
@PeeHaa埽 morning .... :)
 
@NullPoiиteя monring
 
http://stackoverflow.com/q/17119566/1723893
and also review the answe r
 
 
1 hour later…
4:08 AM
morning folks. :)
Its saturday and I have to work again :(
 
sigh
@YogeshSuthar =oP
 
where do you work ?
 
mumbai
 
0
Q: Create a link for a user as this http://mysite.com/profile.php?id=12

Ahmed Fat'hiHello everybody I created a full Login and SignUp System, And I needed to create for each user ID a link that shows his Information as this Link http://mysite.com/profile.php?id=5.

lol
 
4:15 AM
@NullPoiиteя Even he has given answer of this noob question. :P
 
@YogeshSuthar he wrote both question and answer at a same time ...lets just close
 
given close vote. :)
-1
Q: What is EOF , EOJ or that things used for in php?

Δημητρης ΘεοδωριδηςI found couple of times in php codes during my work now, something that looks like following: <? ... echo <<<EOF {\$sErrors} <br /> Please go to the <br /> <a href="http://www.website.com/help_center">Help center</a> <br /> and solve the problem. EOF; ... ?> Does anyone have a good answer???

 
@YogeshSuthar please just use
 
;) I knows @NullPoiиteя
 
ahh its upvoted
 
who upvoted ?
 
@NullPoiиteя I have this link www.mysite.com/somefile.php?somenumber=1345&someword=profile make the link do something for me
 
@NullPoiиteя don't know?
 
@NullPoiиteя i void the upvote by downvoting it
 
4:24 AM
@crypticツ =oP
 
user652649
ha! a cv-flood! :P
 
@crypticツ Deleted. :)
 
most of php question are quite amusing
http://stackoverflow.com/questions/17120212/how-to-start-php-image-gallery with fire please
 
4:50 AM
@NullPoiиteя for I second I mis-read it as amazing and was like duur seriously?? O_0
@NullPoiиteя OP used solid as in good not SOLID =oP
 
it was irony :P
 
hi to all :))
 
user652649
hello
 
4:54 AM
kola
 
user652649
ciao
 
user652649
allo
 
look like we are trolling php chat room
 
user652649
salut
 
4:55 AM
Namaskar :)
 
and on that note, good night!
 
LOL
very gnight ...
 
@ircmaxell good night
 
user652649
 
5:07 AM
@Wes lol
 
Friday.
0
Q: Should we "enrich" or "pimp" Scala libraries?

CharlesSo, apparently there's a Scala design pattern called "pimping" a library by some and "enriching" a library by others, but mainly Stack Overflow. It therefore follows that the tag chosen to represent the design pattern on Stack Overflow is enrich-my-library. The popular question "How can I chain...

 
@Charles its Saturday =oP
 
@NullPoiиteя Silence, timezone heathen!
 
your timezone is quite backwards :P
 
@NullPoiиteя I'm just a temporal hipster, that's all. Living in the past before it's cool.
 
5:14 AM
sigh
 
5:29 AM
Hi
Can anybody know how to send email bcc and cc using php email with attachment ?
 
@Harry What have you tried?
 
@Harry try phpmailer check this github.com/PHPMailer/PHPMailer
 
Swiftmailer.
I love making newbies squirm under necessary overengineering. MUAHHAHAa
 
I have already write simple php email script but when i have received email from script cc and bcc email display in from
 
@Harry also have you checked SPF record and DKIM
 
5:34 AM
@NullPoiиteя means ?
 
just google you will need them
 
See my php code codepad.org/NL2UovMX
Please tell me is there any mistake ?
 
@Harry just use php/swift mailer ... instead your custom code
@Harry try this and see what you got with mail ...(gmail)
 
Ok i have check it
 
Hi all
 
5:48 AM
hi
 
I need to put output of web-script in txt file via curl, in bat file.
I use `curl URL > result.txt`
but it's written in one line. How to insert newline symbols? I've tried `\n` or `\r\n`, but it's inserted as symbols
 
PHP_EOL
 
@Happyninja thanks! it worked!
 
@Innuendo you are welcome ;)
 
hiya @alien
 
@NullPoiиteя Ping syntax error :p
 
@NullPoiиteя I referred to your ping to me (Error) :p and do you have android? you stay online almost all day long :p
 
@Mr.Alien yupp but the main reason is that i am out of station ... and i have only one option (so) for time pass and i feel good in helping people :(
 
6:16 AM
haha these days fr tp I am playing scrabble online with frnz
 
@Mr.Alien i use comments here .... unable to find any good question to answer :(
now thinking to work on mywebsite ...
 
see my profile, am not answering these days much
which website?
 
i was completed this website before 3 month on local host but all data lost due to hard drive failure and it causes me 200k loss with rep :(
 
e commerce?
 
@Mr.Alien its for property dealing and there is also application for property management for dealers
@Mr.Alien something like that but you can not sell or buy just online
 
6:21 AM
kinda ebay
 
you know fraud in property dealing
 
yes
kinda reference, thats it
rest leave on clients
so you've programmed it or purchased a template?
 
how does it look ... doesnot it look little un-profestional
@Mr.Alien i programmed it
little twitter bootstrap and my custom css
 
O that's good, I've programmed a site similar like linkedin... and yes, it's not clean
I want to make a blog to post some real world examples for JS, HTML CSS and PHP as of now
 
@Mr.Alien lol i have programmed website like stackoverflow brightmeup.com/faq/index.php
 
6:24 AM
which are in general, like aligning images, list etc
 
just for learning purpose :P
 
hi all..
 
@vitts hiya
 
any one can tell me how i install intl ext in my wamp..
 
ya, and the second one I want is the business networking having facilities like job search, posting jobs
etc
kinda big portal
 
6:26 AM
@Mr.Alien big website takes more time ...
 
which I already told you before
it does, but it does takes out everything what it needs, like 1 big site and you'll encounter 1000 issues and thus it increases the knowledge
 
but now i think we can ....
agreed that is how i learned :)
 
@null
poin
r u a php programmer?
 
Yes, I fished for big things and that's way we learn, and trust me it's not that tough, it is easy
the only thing which I suck at is suggestion features, if one deletes the post on a profile, should be taken out from the time line too, etc
 
@vitts u can say
 
6:30 AM
kinda ajax/jQuery stuff
@vitts Google.com
 
@Mr.Alien yes , that should ... like facebook
 
yes, exactly, cuz each time the post is deleted, the post is not present in the db, but it's on front, unless the user refreshes so when he comments on a deleted post, I used to redirect/refresh but that sucked, also after commenting, the page used to refresh and used to load from top
 
now i am thinking to work on website for source review ....
 
so these were the features I lagged
at
but the concepts/logic are damn clear
lets work on some good project if you don't mind.... will be fun to work with in a team rather than working alone
 
@Mr.Alien you can do like when comment is submit check that post is exist ...i think you are doing and show error
like so
:10005435i which i could ... i wont able to give sufficient time always ... due to other studies .. you know
 
6:35 AM
@NullPoiиteя I can but it sucks, I still have that code with me, badly written as I started when I was learning, but overall it was very well
 
@Mr.Alien i am now thinking for public sector ...
 
Doesn't matter what time, just sync the codes, stay on a single concept and than make it big step by step, whether its a blog or a big website
it sux when we have to write <strong> instead of <b>
 
lol
write css
 
but than tooo I need to have a physical tag
some are over obsessed, they literally write span.bold {font-weight: bold;} <span class="bold">Hello, WTF Moment</span>
 
lol
in JavaScript, yesterday, by Octavian Damiean
@web2students.com your email address is web2students.com@gmail.com? Really?
 
6:40 AM
gosh, lets make something..
 
since when google allowed . I guess first it used to, not sure now
But please no spams. <- LOL
 
@Mr.Alien good afternoon
 
in JavaScript, 45 secs ago, by SomeKittens
This is beautiful: http://www.google.com/loon/how/
@Mr.Alien LOL
 
@YogeshSuthar GA, @NullPoiиteя Yea, even this guy can join us ...
@NullPoiиteя Ya I mean what.. he is posting his email straight away, but he hates spam, should teach him that why we get spam at first place
 
6:47 AM
@Mr.Alien No mail yet.
 
@YogeshSuthar I forgot, do 1 thing, do you download torrents?
 
user652649
good * everyone
 
@Mr.Alien yes
 
wait than, will send you some names of awesome books
 
6:49 AM
1st is HTML & CSS Complete Ref 5th ya 7th edt
CSS3 For Web Designers
Stunning CSS3
And 1 of my fav, CSS3 Anthology
 
okk thanks
 
@YogeshSuthar You welcome ;) if you didn't got a perfect copy, will mail you by eve pakka, just remind me once, yest I reached home at 10, was at the office, was damn tired and I forgot to mail you too
 
@Mr.Alien Okk. You are doing overtime?
 
@YogeshSuthar No, but client wanted it finished by yest
so sometimes it gets late
 
@Mr.Alien Clients are always in hurry. :(
 
6:57 AM
yea, and if we make things in hurry it spoils later, and when it spoils, we have to listn complaints from them as well as boss
 
true man. always give approximate estimated time to client @Mr.Alien
 

« first day (973 days earlier)      last day (3968 days later) »