« first day (1350 days earlier)      last day (3592 days later) » 

1:11 AM
Yo
 
Howdy
 
 
3 hours later…
4:36 AM
hi all
anybody can give me a direction, just created question here: programmers.stackexchange.com/questions/246209/… thanks
 
5:17 AM
good friday morning
 
5:32 AM
@tereško hey good morning
hey everyone I am a android developer
I am trying to write a webservice in php
I used this code to select * from table
can anyone tell what may i improve in this
 
@SergeyTelshevsky thanks for your answer but as I am not from php background I didn't understand it fully
excepting that whe shouldn't use mysql_*
 
@DevilAbhi exactly, you asked for ways of improving - throw out all mysql_ functions and use either mysqli_ or PDO
 
@SergeyTelshevsky oks
so will I get the desired result
that is will I all rows data?
 
@DevilAbhi I don't know what you desire
 
just i want to get the whole data save in table
 
5:57 AM
@DevilAbhi use var_dump() instead of echo, you should use that for debugging
read any tutorial on mysqli_ or PDO
 
@DaveRandom and.. what?
good morning room
 
6:12 AM
I can't post question anymore! plz someone look my ac
it says "Sorry, we are no longer accepting questions from this account. See the Help Center to learn more."
 
@AlmaDo thanks, solved
 
6:42 AM
hey i used this code pastie.org/9329413
Its inserting data into table
but the problem is its giving some error on line 23 and 24
can anyone tell whats that
 
@DevilAbhi That means you did not supply "uname" or "email" in a post request
Nvm, just read it's type POST
And you should check on that page if those are set, so you will not get that error if you have not submitted the form
 
the values are getting inserted
 
If you go to that page but have not submitted the form, youwill get this error
Because you do not check to see if either value is sent in the request
@DevilAbhi You have to check if $_POST['uname'] and $_POST['email'] are not empty, so you will not get those messages
 
yr actually i am android developer just i am trying to make webservice
idk anything regarding php
can you pls tell how will i do this
i take this code from w3schools and made changes in that
@Magikaas could i make this form file seprately?
 
I'd suggest following a tutorial or trying things for yourself beforehand, have you debugged, to check what's in the $_POST array
 
6:55 AM
no
 
@DevilAbhi this
(only because it's Friday and you're not using mysql_* )
 
You can of course make the form separately and submit to name.php
 
oks magikaas i try doing this
 
Hi guys. can HTTP_USER_AGENT determines what kind of email provider is he using. like if he's using gmail or yahoo?
 
And only put form submission handling in name.php, using Alma Do's suggestion as linked above
 
6:56 AM
<form action="name.php" method="post">
Name: <input type="text" name="uname">
<br />
Email: <input type="text" name="email">
<br />
<input type="submit" name='req' value='Send'>
</form>
 
Good friday morning people
 
@zynder How would you go about that? Do users connect to your website through gmail or yahoo instead of a webbrowser?
@PeeHaa Good friday :D
 
@zynder user agent is about application, which was used to send HTTP request
 
@PeeHaa good morning, how are you feeling?
 
@DevilAbhi That's your form.html or whatever you want to call it
 
6:57 AM
Pretty good considering the circumstances :P
 
Great :D (sort of?)
 
@Magikaas so do i save it with name name.html
 
that's wh I'm asking)
 
@PeeHaa morning, you slacker :p
 
and when i call on localhost
 
6:58 AM
:D
 
name.php
 
Let me make some coffee first. brb
 
will this html form will also be called?
 
@DevilAbhi Name does not matter, as long as you save the php file (with the form submission handling code in it) as *.php it's fine
@DevilAbhi You have to go to host/formfilename.html (formfilename is whatever you want to name the file that contains your form's html) and when you submit that form it should redirect to name.php that has the form submission handling code
 
oks lemme try first if i get any problem than i'll ask
 
6:59 AM
@Magikaas, my client wants me to check if we put an http user agent in the email we send, it will send back to our websites its value and from that we can see the user's email provider? is this possible? because i think user agent outputs the browser or app used by the users
 
@DevilAbhi But I would suggest keeping the form and php in one file, otherwise you have to redirect after form submission
 
that is a new thing i will learn so only i am trying that
so in localhost i must call name.html file
 
@zynder To do that you would have to add something like an image on your server to that mail in an image tag (if that's possible) and track through that image's url and let it serve the image back to the user on request, but I don't have experience with that, so I don't know if it is/was possible
 
@Magikaas am i right?
 
@DevilAbhi I'd suggest keeping it at one file, so you won't have to redirect, makes things more manageable since you are not including that html file into your php file
 
7:01 AM
@Magikaas that would be fake in most cases..
 
@AlmaDo What do you mean?
 
@Magikaas i see i think using images will not be efficient enough other emails do not render images by default. hmm
 
@DevilAbhi I'd suggest just staying with one file, to keep it simpler and build upon what you had in your pastie a while back
 
@Magikaas I mean what I've said. It's unreliable way to retrieve "user agent" for mail client.
 
oks @Magikaas thanks
 
7:02 AM
@AlmaDo Aha okay, I see, I did not know that, as I said, I'm not sure if that's even possible :P
@DevilAbhi Good luck :) if you have any further problems, I'd suggest debugging what you have or googling it, chances are your (probably more basic) problems have been solved a million times over or can be solved with a quick php.net or tutorial google
 
mail client may know nothing about http. It may be not a web-based client and it may not send any of http fields. In fact, built-in image (so, in mail body) will be shown as.. well. <img> tag and not as picture (mail client may even just don't know how to do http request)
 
@Magikaas i tried in two diff files also its working fine
now i put them again in 1 file
 
@DevilAbhi One file is better since you would otherwise have to redirect the user back to your main page, since you are still practicing, I'd stay to one file until you know what you're doing and have a multi-page practice app working
 
oks magikass
i got this
 
in this case one file means mixing presentation & logic. However.. It's too long trip for novice
 
7:05 AM
Cool, good luck ;)
 
now i want to make webservice
that i want to connect with android
@Magikaas can you give any idea regarding this
 
Haha, good luck with that :P Though if you are using it only as an API it shouldn't be too tricky, if you have programming experience (logic and possibly syntax wise)
@DevilAbhi Since I have no idea what you want to do with this webservice or the 'android' you are connecting to it from, I don't even know where to start
@DevilAbhi Is it an app that wants a php back-end to store and retrieve data from a database? A game that just loads levels on request from a webservice, or something else?
 
i want to make webservice for android
in this webservice it will go and save data/retrieve data
 
@DevilAbhi You are being waay too general about this, what does it need to do, what information does it need to serve to the user (your app)
Have you thought out what sort of data you are saving/retrieving?
 
this is first basic step that i am practising
 
7:09 AM
I see
 
actually i am learning webservices
 
First step, form submission, next step, android back-end webservice
 
otherwise i was using local db of phone
 
What are 'webservices' to you?
 
actually now this time i want to save data on server
the services that we get from internet
simply we will say this
 
7:14 AM
So you want to make a POST request from your app and use php to save the data from that POST request into a database
 
yes magikaas
absolutely right
 
HI, anyone there that know about paypal DirectPayment method??
 
@DevilAbhi What have you tried before asking me for help?
@Raheel Have you googled it?
 
ooo yes, i already googled and still trying since last 2 days
 
yr i made this code as you may see n i am not getting what must be next step
so thats why i asked if you know
 
7:21 AM
@Raheel I'm sure there are that people know about in general, but try to be more specific about your question if you want help
 
becos webservices are made on php
just we have to hit that url
and send data on url
 
after that its work of webservices
 
@DevilAbhi Well, if you want to save data through php you won't need a form, but you can use the $_POST array to fetch the data you send from your android app. After that you can save it the say you have saved the input from your form, Are you missing something in functionality?
 
Are you missing something in functionality?
 
7:23 AM
@AlmaDo Hahahaha
 
i've get success with DoDirectPayment method and now i want to create profile and subscription for against this card.
 
did n't get
 
@DevilAbhi Do you want to do something with php that you do not know how to do? You want to save data from a POST request in a database, you have done that in your form example thing, what more do you need to do, apart from saving data? You can do the same for retrieving data but instead using a SELECT query, there's plenty of information available on the internet about that
@DevilAbhi You come here asking people to explain to you how to set up a webservice for saving and retrieving data, but you have not really done any research apparently into how you can do that, google is your friend in this sort of thing
 
oks magikaas lemme get more clear regarding steps than i ping yu
 
@TheLittleNaruto Sorry, had to work from home yesterday and I have not set up my login to SO from my home computer yet since reinstall xD
 
7:45 AM
Hi I have one string from which I am trying to extract only number
"-&nbsp; 703" ==> 703`
Any method in php to do this ^
 
@Mr_Green $string=preg_replace('/[^0-9]/', '', $string);
 
@AlmaDo thanks.. I thought there might be some built in method. :)
 
I'm 26 tomorrow. Fml.
 
fml?
 
7:49 AM
@Mr_Green PHP can't know your needs
 
yeah true
 
ye
 
Morning
 
morning
 
7:57 AM
so.. I'm waiting. Who will post that nasty video this Friday ?
 
I did a reasearch on if regular expression validation can be used to prevent SQL injectiona and the results were negative. Why so? Escaping characters or not allowing such characters, both should prevent it.
 
Morning.
 
Morning Leri
 
@HamZa never mind. I remember we were talking about descent e-commerce solution. I think, nopcommerce is pretty good. It's not as pita as others.
 
Murrnin everyone just arriving here =)
 
8:01 AM
You should not be minding C#, .NET and Microsoft, though.
 
I can understand about .NET, but what's wrong with C# ?
 
@AlmaDo For me nothing:
16 hours ago, by Leri
I might be killed because of this here but... C# is the only language that does not even try to fight with you. :)
 
I have no idea :p
 
urgent.
 
@RahulKhosla Sir, dear sir.
 
8:08 AM
he-he
 
@Leri ?
 
@RahulKhosla Never mind, it's some ancient joke. :)
 
I said that word to make people go crazy,
 
Urgent >_< Such an overused and inappropriately used word...
 
Guys, this is urgent
<goes afk for 2h>
 
8:13 AM
Hahahaha, yes indeed ^
 
if(preg_match('/(please help|urgent|not working)/i', $message, $reasons)
{
   throw new TrollException('You failed in '.$reasons[1]);
}
 
You react almost immediately to whatever urgent request/mail comes in and get a response 1-2 hours later...
 
returns and repeats about something being still urgent
 
._. It's good to know my pain is shared, if only to slightly relieve it
 
@Magikaas almost all urgent tasks from management after you finish them going overtime never get reviewed asap
 
8:15 AM
you should ask three times before start doing urgent task
 
'urgent' is most times confused with 'important', something can be urgent and unimportant.
 
26 Jun 2014 PHP 5.4.30 Released
Good morning.
 
@SergeyTelshevsky Management doesn't need overtime, they get their work done in time and anything they don't finish is not important/urgent enough to wait for until tomorrow, unless if it's not their work
 
moin
 
@PeeHaa How's your head?
Morning Joe
 
8:16 AM
what's urgent ?
 
@JoeWatkins we found a bug in pthreads and so discussing it. We think it's urgent, but may be not important
 
oh that guy ... he done that the other day, we can ignore it ...
 
@Fabien Was he drunk?
 
lol. Yeah a little. :X
 
how much did he drink?
 
8:18 AM
11 hours ago, by PeeHaa
@Fabien Between one and many
 
@Magikaas not always the case, but yes
 
1 hour ago, by PeeHaa
Pretty good considering the circumstances :P
 
@Fabien weeeak. Here we always drink between "many" and "I don't remember how many"
 
:D
 
heh.
 
8:20 AM
@AlmaDo Well.. Soviet Russia..
 
@Leri that's for sure
 
@AlmaDo btw, I read api it is quite clean and I think there's everything I need.
How do you imagine gui app for that? I.e. web or desktop app.
 
@Leri oh, good. I was wondering about necessary part: API for creating tests. It's missing (I think) for now since you should do manual inserts every time
 
Gotta install an SSL cert through WHM :(
 
If so, I can add some test storage managing functionality
 
8:22 AM
 
I was planning to create that layer on gui side. However, it really would be great to have api for that.
 
@Leri E_NO_IDEA. really, I'm not good with GUI since each thing which I'm working on - usually is done with that black window which is called "console"
 
@Fabien where did you get that photo of my co-workers?
 
For instance, I've tried gui for git - and throw it away as a nightmare. Same for mysql. Same for file manager e t.c.
I'm not friendly with GUI :p
 
@AlmaDo I call it terminal. :Ь Well, I want to do it with QT so I can learn it (with gaining some C++ skills). However, I will be learning, so probably code quality will be below/near average...
 
8:24 AM
@Leri if so - let me know which functionality you'd like to see "built-in"
 
@SergeyTelshevsky lol
 
@Leri mysql-unit uses MySQL SQL Exception handling functionality. Never before I was using it, but as you can see - I've completed it. So will you. First time != bad code if you're aware of what programming is (not programming in some language )
@SergeyTelshevsky lucky you. Normally, it's about the boss and management
if they're just co-workers, your company isn't so bad
 
@AlmaDo aren't they co-workers as well? :)
I'm j/k
 
@SergeyTelshevsky well, they're not part of the crew :p
However, I'm a boss for myself, thus, for now I'm free from such "teammates"
 
@AlmaDo well, that's not always true, and it's bad it is that way
 
8:29 AM
@AlmaDo For inserting test expressions, more likely.. Not sure for now. I will tell you exactly once I play around with it.
 
that's the first time I ever heard anyone say they are going to use qt for something ...
 
@Leri yeah. Probably some bugs would be found :D
 
since symbian 60 was the latest and greatest at least ...
 
@JoeWatkins is it just bad or what?
 
dunno really ... old it is ...
 
8:31 AM
I've never used it, so..
 
@Magikaas Heya! Alright! :) How is it going anyway ?
 
@SergeyTelshevsky I'm the only one in that "team"
 
I used the symbian sdk, but remember notihng other than large and complex ...
 
@TheLittleNaruto Pretty good, you? :P
 
8:32 AM
> Qt is a cross-platform application and UI framework for developers using C++ or QML, a CSS & JavaScript like language.
 
@Magikaas same here! hihihihi :D
 
@JoeWatkins Well, it's cross-platform and does not need any kind of VM that attracts me pretty much.
 
wtaf
 
@TheLittleNaruto Good to hear ;)
@TheLittleNaruto 8 days, 8 days, 8 days! :P
 
@Leri yeah might be alright ... I don't really think multi-platform is important, if it were, we would be writing these messages in a java based browser ...
 
8:35 AM
@Magikaas lol! I wanted to learn few words in Japanese if you have time you can teach me! ^_^
 
what's the thing that you're writing anyway ?
 
@JoeWatkins GUI for @AlmaDo's mysql unit-testing lib.
 
@TheLittleNaruto My knowledge of the japanese language is not as big as you may think it is, I've learned most of it from anime and some from a 10 week course and some self practice. I can try, but don't expect too much from it :P
 
hm.. gc time!
 
@Magikaas Ouu! ( _ . _ )
 
@Leri so you're choosing qt over java just because of the vm thing ?
 
Happy Rebeccaday!
 
what about the fact that everyone has java by default, hardly anyone will have qt ...
 
If you have UPDATE foo SET 2 = baz WHERE bar = 1 it will throw an error. If you have UPDATE foo SET baz = 2 WHERE bar = 1 it will run the update and break the database if you meant to say ...SET bar = 1 WHERE baz = 2 (or ...WHERE 2 = baz) instead. — Juhana 3 mins ago
 
@JoeWatkins qt = quicktime?
 
^ gc_collect_cycles()
 
trolltech's qt
 
@TheLittleNaruto Gomen ._.
 
8:38 AM
@JoeWatkins qt is going to be the new java
 
I'm trying to install an SSL cert but its saying the IP address for the sites ends in .88 but the server its on ends in .86 so it wont let me do it.
 
@JoeWatkins There is a company called trolltech? Surely that's pretty telling in itself...
 
Am I being a noob here?
 
@Fabien what "its" saying it?
 
@Fabien You issued the cert to the IP address?
 
8:39 AM
I issued it to the domain
 
@PeeHaa I missed the memo saying we needed a new java ...
 
Then the address should have no bearing whatsoever
 
There was no such memo :)
 
What are you trying to do to "install" it and what's giving you the error message?
 
@TheLittleNaruto But you can try, I may know :P
 
8:40 AM
> already has a website on the IP address “.88”, but you requested to add an SSL website for that domain onto the IP address “.86”. A single domain may not have websites on more than one IP address.
 
@JoeWatkins Microsoft issued it implicitly a few years ago. They called it "C#".
 
@Magikaas Alright! :D
 
@DaveRandom using WHM so it has a process.
 
@Fabien That's because microsoft
 
@JoeWatkins The main reason of choice is that I want to challenge myself and java is not the one, tbh. :) Also, GUI will be for developers, so I expect QT will on there machines.
 
8:41 AM
@TheLittleNaruto If anything it's good practice for me :P
 
I run multiple certificates on the same ip just fine (besides ms clients)
 
That's crappy. Still, can't you just set it up on 86?
 
@Magikaas hehe! I'll start with basic things people used to say in their daily life
How do we say "Good Morning" in Japanese ?
 
I'm a developer and don't have qt, not even an old one, I checked ...
 
It throws the error. Assuming it's not installed because of that.
 
8:42 AM
@TheLittleNaruto "ohaio"
 
...
 
I thought everyone know :p
 
@AlmaDo did you check out euclidthegame.org? Seems like your kind of thing
 
@AlmaDo the only word contains both (Good And Morning!), Great!
@Magikaas ohaio! :P
 
@DaveRandom first time I see it. Lets see..
 
8:44 AM
@Fabien I guess I meant "set it up on 88" then
 
@TheLittleNaruto Ah, Ohayou (gozaimasu, formal) I'd say, but pronunciation wise it could be ohaio xD
 
@JoeWatkins Yeah, but I can build QT as static library, can't I?
 
@TheLittleNaruto Sorry, was a bit busy :P
 
@DaveRandom We don't have a server on .88 as far as I can see
 
8:45 AM
@Magikaas Is there different word when a gal like you says the same thing ? I mean Is there female and male version for the same word ?
 
@Fabien What's the domain?
 
And when I add .88 to the install details it errors so
 
(fqdn of the site, incl any subdomains)
 
@TheLittleNaruto For Ohayou there is no different word, but gozaimasu is added in a formal setting, like when talking to an older or higher ranking person
 
@Leri no idea, probably ... it actually looks pretty interesting nowadays ... if you're into gui design ... which I suck at ...
 
8:47 AM
@DaveRandom oh, got it. Fine, interesting. Easy first level
 
mornings
 
@Magikaas got it! Ohayou! and gozaimasu! Alright! I guess for today it's enough. As pronouncing it is really tough as my mother tongue is different. :(
 
wait, cross platform but yet you have to compile it for every platform you deploy too?
 
@JoeWatkins Honestly, I do the same.. Trying to fix that. :)
@JoeWatkins Yes.
 
that's not really cross platform ...
 
8:49 AM
@TheLittleNaruto Ohayou OR Ohayou Gozaimasu, gozaimasu is added to verbs to add formality to them, it also works with arigatou gozaimasu and others
 
Depends what you mean... If I don't have to write code twice, then it's
 
by that standard nearly all C/C++ is cross platform ...
 
@DaveRandom hm.. midpoint working with bugs (:
 
@Magikaas arigatou is for saying "Thank you". I'll understand "Gozaimasu" in this way, it's for giving respect while talking to any older person :)
 
8:51 AM
@TheLittleNaruto Mine is as well :P Though seeing as they pronounce the vowels the same as I do in my main language
 
@Leri I see...
 
@Magikaas what is your language anyway ?
 
@TheLittleNaruto Yes, or any other person you need to talk to formally, including superiors or in formal setting like business
 
@TheLittleNaruto Dutch :)
 
8:52 AM
Hi, i use from wordpress the_content(), and get content with html tags, for example: <p>lorem ipsum dolor...</p>, with which function can i skip html tags, they don't should be vissible. i tried with strip_tags() and preg replace (/<[^>]*>/') but this don't work
 
dutchies everywhere...
 
@Magikaas Wow! A dutch gal! I'll learn dutch too. hihihihihi :D
 
@m_73 strip_tags() should work. Try var_dump to see if the html tags are encoded
 
wordpress_sucks_comma_so_freakin_hard()
 
@TheLittleNaruto I'm sorry to disappoint you, but I am not a gal, but a guy ;) Sorry if the picture misled you :P
@TheLittleNaruto Also, Dutch is a pretty hard language to learn, so I'd stick to one language at a time if you want to learn it xD
 
8:54 AM
@Magikaas My God! you're not a gal! Yes the picture misled me xD
 
@Magikaas I'm disappointed, apparently episode 12 was the last one for season 1 of No Game No Life. Now I might need to wait another year for season 2...
 
@HamZa Hahaha, yeah I had the same... T__T
@TheLittleNaruto Sorry <3
 
@HamZa with var_dump i get the same content with NULL at the end,
 
@HamZa Either way, 8 days! 8 days! 8 days! xD
 
@Magikaas 8days?
 
8:55 AM
@HamZa Sword Art Online 2
<---
 
@Magikaas It's okay. I am a baby :D
 
@TheLittleNaruto Hahaha
 
@Magikaas Sword Art Online? I dropped that from the beginning
 
@HamZa Aha okay :P Not your type of anime?
 
@m_73 There's something else going on because wordpress . Try to stay away from it
@Magikaas meh, just didn't like it...
I'm now watching baby steps
 
8:57 AM
@HamZa Okay, tastes differ =)
 
@Magikaas Time to work! I'll get back to you soon. and Thank you for teaching me ohayou and Gozaimasu :)
 
@HamZa Tennis anime :P What's it like? I've not bothered with it as I have enough to watch and sports anime didn't really sound that fun
 
@HamZa i know, it's my every last wp project...
@HamZa but many thanks :)
 
@Magikaas You're a nice gal boy ;)
 
@TheLittleNaruto Anytime, was fun talking to ya =) Good luck with your babywork! :P
 
8:58 AM
there's no such thing as girls on the internet ...
 
@Magikaas Well I watched it because I read the manga a bit!
 
Guy
In
Real
Life
@HamZa I see
 
@Magikaas hahaha ^_^ Thank you :)
 

« first day (1350 days earlier)      last day (3592 days later) »