« first day (1123 days earlier)      last day (3825 days later) » 

12:52 AM
good evening!
 
1:09 AM
Hi everyone
 
1:20 AM
I'm learning how to implement google auth for 2 factor authentication, and am having trouble understanding something: I found a number of php classes (like this one: github.com/PHPGangsta/GoogleAuthenticator) that generate a secret and a qr code that a user scans, but I don't see how they pair the user with that particular phone. How do I know that the authenticating phone is the users' phone?
 
2:12 AM
/me drops pin
 
0
Q: Symfony2: how to read parameters array in config.yml

ra_htialmy parameters.yml file has: parameters: title: subtitle: value i want to pass the value to a service in config.yml my_service: class: the_class arguments: [ %title.subtitle%] //didn't work arguments: [ %title['subtitle']%] //didn't work how can i do th...

how to read an element from a parameters.yml array in config.yml ?
 
2:45 AM
Hello everyone. Good morning
 
2:57 AM
hello any one can help me?
 
possibly
 
when i give this code for archivs serch then not work.. where i missing
?php $month_name = array('January'=> 'জানুয়ারী', 'February'=> 'ফেব্রুয়ারী', 'March'=> 'মার্চ', 'April'=> 'এপ্রিল', 'May'=> 'মে', 'June'=> 'জুন', 'July'=> 'জুলাই', 'August'=> 'আগষ্ট', 'September'=> 'সেপ্টেম্বর', 'October'=> 'অক্টোবর', 'November'=> 'নভেম্বর', 'December'=> 'ডিসেম্বর');?>
<select name="monthnum"> <?php foreach( $month_name as $month_of_year ) : ?> <option><?php echo $month_of_year; ?></option> <?php endforeach; ?> </select>
then it show well but when i want to search then it not work
i do it like day month and year.. and submit button
 
oh ... @crypticツ you awake ?
 
@JoeWatkins yes
 
but when i want to conver it in bangla language then it's not work
anyone can help me?
 
3:25 AM
Good Morning Everyone
 
Jay
hey @ShowketBhat
 
3:51 AM
how to write x[y] in yaml ?
 
hello developers
 
morning all...
 
@user2514863 Morning
@vivekmodi hi
 
hungry
time to lunch
:)
all people still sleep ya
 
4:27 AM
moin
 
Question: i am wondering is it possible to have a list of links to .mp3 files and if a user wanted that file to be emailed to him as a attachment can a script be written to do so?
i am currently parsing a dictionary of .mp3's (playlist) there playing fine (its a mobile site) but i'd like to add the feature to have the .mp3 emailed to them (like to their iPhone) - does anyone have a idea of what i should search for? - I'm new to PHP
hmm... anyone there?
 
hi
you want to send attachment?
or just a link to download
 
as a attachment, the file(s) is stored on my server already
 
can a server send a requested file to a email address? - that way if someone wanted to add it into their phone it'll go into their music app?
you can check out m.ggcc.tv - go to the menu and click on music you'll get a idea what I'm working with
 
4:34 AM
ok
 
its still a bit messy
 
Hello Guys , I have a problem related with codeigniter .
 
do you know how to send attachments via email?
that will work, just send mp3 files
 
yes?
id rather have the server do it
if possilbe
 
but you need to write a script for that
find all the mp3s in directory and send a zip file of attachment to user via email
 
4:38 AM
i know that, i was just wondering if someone can give me some pointers as to where i should start? or a good search phrase to research on
 
oh ok
search for : multiple files in directory
 
well I'm trying to target iPhone users, a iPhone won't know what to do with a .zip file so it'll have to be a .mp3 - as to which the iPhone will be able to download the .mp3 into its music ap
 
zip files in directory using php
email attachment zip file using php
but there will be too many attachments
you have to send zip file
best way is to just send a link and let user decide if he wants to download
 
well i was thinking for each song in the list there can be a button which will send that .mp3 as a attachment in a email, the user would then need to enter his email address after they click this button of course
 
I have the following code in query_v.php
http://pastebin.com/6NLDAaUe
and the following code in admin.php
But I have the following error .
A PHP Error was encountered

Severity: Notice

Message: Undefined index: optionsRadiosContest

Filename: controllers/admin.php

Line Number: 56
 
4:42 AM
so there is only one file in this case
 
yes
 
In line number 56 , I have echo $_POST['optionsRadiosContest'];
 
then send that mp3 file as attachment via email
 
yes
do you know of some type of script i can download and configure or buy or something?
 
and yes if you want you can create dynamic link
 
4:43 AM
i would have no idea how to write up something like this
 
which will expire after user is finished downloading mp3 file
 
exactly
 
hmm let me give you a link
 
Thank you so much
 
I haven't got chance either to send attachment using php mail
 
4:44 AM
@modi , please help me to solve my problem .
 
osimer : looks like that element doesn't exist in POST array
can you print_r($_POST)
that way you can get idewa
 
i looked at this: planetozh.com/blog/my-projects/… - it works perfect but not for .mp3
 
This gives me Array()
 
do you think that might be able to be modified to work with .mp3's?
and just have the form to a GET request with the mp3's address (hence the button)
 
@Michael yes, when user clicks on button you should have the file name
then you email the attachment to that user
osimer : that means array is empty, can you check the form first?
 
4:48 AM
@vivekmodi i ran that script, it works with exe, zip, images, …) or text (txt, html, uncompiled code …) - but not .mp3, when i try a .mp3 it just sends a lot of letters
 
i got that script running at ggcc.tv/filesender
@vivekmodi that large of a script is beyond my knowledge level of php to configure
i can't even make sense of it - I'm sorry
Would you be willing to help me, i'd be willing to pay
 
ok np, can you add me on skype? its wit_vivek
 
just sent the friend request
 
@modi , My problem is not yet solved .
:'(
 
4:57 AM
@osimerpothe the post array is coming empty. you have to look into the html form first where it is sending the data
check the method, name element of input types and submit button
and url also
 
I have checked the url . its correct
 
ok don't send it to second page now
can you change action to #
and in constructor of that page write : print_r($_POST);
data should come there
 
Ok . I am doing this now . Then I will let you know .
The page having the form element is a html file
I do not have any constructor in this page .
 
its a view file, there will be controller for this view file
 
Yes . I have a controller for this view .
 
5:05 AM
check if you have constructor there
 
I have written print_r($_POST);
it gives me Array();
 
somethings wrong with the form
double check all the inputs, names and submit button
 
Then just one simple question .
 
but how will I know where is the error? I told you possible location of errors from my experience
 
Morning
 
5:07 AM
Suppose I have 2 radio box in view file .
I want to check which button is pressed in my controller file .
 
then name property should be same
 
What code should I have to write ?
 
<input type="radio" name="my_radio" value="1">
<input type="radio" name="my_radio" value="2">
 
name property is same .
 
I can't help you without the code
 
5:10 AM
I can paste the code .
Can I send the code ?
 
sure
paste here
 
This is the view file .
The name of the view file is query_v.php
The controller file is : pastebin.com/BizcUTzp
The name of the controller file is admin.php
 
5:26 AM
I ran the form page
it is working fine
check with CI config
 
5:37 AM
This is my config file .
@modi .
 
6:09 AM
@cspray , Can you have a glance over my problem ?
@modi , please help me .
 
@osimerpothe can I send you a CI application where you can take a look?
give me your email
 
interested_to_programming@yahoo.com
 
give me 10 minutes
 
Hi guys
good morning
 
I have sent you an email @osimerpothe
 
It is mid-noon in Bangladesh . :D
Thank you @modi .
 
thats everything I can do
 
You are really a very good person .
 
6:29 AM
:)
 
<?php echo $this->getData(); ?>
The above method has data like this:
array(2) {
  ["description"] => string(7) "Details"
  ["additional"] => string(22) "Additional Information"
}
How to access 'additional' part?
I want "Additional Information" value
 
@Mr_Green <?php echo $this->getData()['additional']; ?> ??
 
I tried $this->getData()->getAdditional()
ooops
Ok thanks I will try
@crypticツ Parse error: syntax error, unexpected '['
I am on magento.. just saying
 
@Mr_Green what version of PHP you using?
I gave 5.5 code
 
5.2
 
6:34 AM
for 5.4 or less then do this...
<?php

$data = $this->getData();
echo $data['additional'];

?>
 
ok trying
 
@Mr_Green you should upgrade, PHP 5.3 has reached end of life and will only get security updates for less than a year more. 5.2 is way old, you should not be running it, nor coding new apps using it.
Upgrade to 5.5
 
I am afraid I can't do that because magento is running on it...
BTW, thank you very much pal it is working fine here :)
 
@Mr_Green You can at least upgrade to the latest 5.3 branch 5.3.24 as Magento supports up to that version magentocommerce.com/system-requirements
 
mornings
 
6:44 AM
morning
 
7:02 AM
crap its 7am
 
Good morning c:
 
7:17 AM
ohh I see
Actually I am not in a state to do this stunt though it is good for me because I am a junior dev
I will try
 
are all asleep ? :p
 
Not Me :v
 
just lurking...
 
where?
 
7:22 AM
in the shadows... O_o
 
but it's light everywhere
 
didnt sllep yet
 
huh?...
 
project on ...
sleep
 
deadline is coming?
 
7:23 AM
no
 
why then ?
 
just for fun/satisfy addiction ... same ...
 
Oo
 
looks nice
and I have to start developing IOS application Oo ..
 
7:29 AM
@JoeWatkins it's… finished? :-)
 
no
working pretty nice tho
 
what's missing?
 
dunno really ...
other than just improving what's there I've got no new ideas really, I tried asking in irc and nobody had anything ...
I dunno if I wanna pack it out with ideas, but it's unbelievable that it could be close to feature complete in about a day ...
 
I think because they rarely faced CLI debuggers :p
 
they have, they are pecl devs are must be used to gdb
 
7:36 AM
huh, then I don't know
 
I think just tidy up, this is all I need anyway ...
there's nothing obviously missing ...
need tutorials I guess then
maybe nobody does really know ...
this is how you debug code !!!!!!
 
@JoeWatkins hell yeah. And that will be 'written full feature in 1 day and documentation to it in 1 year' :p
 
Hi :)
 
morning, @Duikboot
 
we made some effort with the help menu, it tells you how to use it, good help menu .... but I'm thinking a few screenshots with a couple of walk-throughs, how to set breakpoints and what not ...
 
7:43 AM
hi
 
@JoeWatkins does this feature supports step into/step over ?
 
you can break and step, and step without breaking, and turn stepping off (so step out) ...
so yeah
kiss tho, next does everything, to step out step 0 and next
 
@JoeWatkins no, I mean independent of breakpoint. I.e. you see user-function call in the line and you can press F10 to go into it and then execute inside it by line, or press F11 and execute function as 1 line
I think it's standard feature
so I doubt you've not implemented that :p
 
7:46 AM
oh you mean pausing ?
 
huh, no
I've used gdb long ago - so I'm not sure now, but I think it has such feature
 
moin all
 
we discussed it, we decided this route being best, we had reasons, I forget them ...
I don't use vs but f10 appears equiv to stepping we have implemented
 
@JoeWatkins it's like:
    $a = 'foo';  //Step
    $b = bar($a);
      /          \
     /            \
[Step Into]       [Step Over]
function bar($a)      $c = $b - 1; //Step
{
   $x = 1;//Step
   $x*=2; //Step
   return $x; //Step
}

$c = $b - 1;
on line with $b = bar($a); we can choose - evaluate it as one line or go inside and do function line by line
 
yeah i read about it but I'm not much of a thinker at this point ...
I hav to be awake for another 20 minutes, school run, then sleep ... for about half a day ...
 
7:52 AM
So my point is - any debugger should have that
 
we started out with the two different things, with continue and next but, it's not that it's harder to implement but we think use ... I duno will think about it when I'm about to think straight again ...
 
It's just my opinion :p since you've asked what is possibly missing
 
sure
 
hi, @DamienOvereem
 
vs7
Hi morning
i want to fetch rss content from url
 
8:14 AM
and I want a ponie
 
:(
no
 
Morning.
 
hello, @Leri
long time :p
 
Yes, was very busy.
How are you?
 
turned 100-th day just now :p
 
8:17 AM
Oh, congrats. :Ь
 
turned 10k yesterday :p
 
send it deeeper
 
good mornings
 
morning, @iroegbu
 
8:19 AM
We should let this guy leave empty comments. Username is more than enough.
 
Chrome app that works like putty?
Can't find something that actually works.
 
huh, why not putty?
 
Don't want to install... Not my machine, and getting to internet through proxy server
 
it does not require install as I recall. Just download & launch
 
yes, just runs... But I can't get it to connect through Proxy Server
 
8:24 AM
it supports proxy-servers
 
@iroegbu If firewall blocks request, plugins won't work as well. Check if you have permissions.
 
yes, if TCP:22 is blocked - well, no way for standard ssh then
 
oh hell! I'll work when I get my machine.
 
:D
 
Are there some Drupal developers here? >> Probably not but I can try ;)
 
8:29 AM
I hate when people don't reread questions before posting. E_TOO_PEDANT
 
@Leri sometimes I also misunderstand some points in question :\ and rarely, but possible - that points are important. We all are people so we can do mistake :\ But not too often, I think
 
@AlmaDo For example, here OP has not reread, because it's impossible not to notice liek (also most common browsers have spell-checker). I feel like s/he disrespects community.
 
vs7
any one can tell me how i can fetch data from rss link
?
 
vs7
@leri i used $doc = new DOMDocument();
$doc->load('http://feeds.feedburner.com/learnhack');
 
8:59 AM
@SweetieBelle Hey Hello
 
I wonder if it's possible to get full array reference by some of it's internal reference. It's like:
$array = [
  ['foo'=>1, 'bar'=>2],
  ['feo'=>1, 'bee'=>5]
];
$x = &$array[0];

var_dump($x);//array(2) { ["foo"]=> int(1) ["bar"]=> int(2) }
var_dump(magic($x)); //original &$array
nesting is always 1 level
i.e. get full array reference by reference of it's element. My guess - there's no way
 
vs7
@crypticツ Hey , Which php framework now in demands ?
 
Morning
 
hi, @Fabien
 
@vs7 don't randomly ping people, read the link in the room description.
 
Morning Alma
 
9:32 AM
@crypticツ *random ping* >:)
 
I have a really simple issue now, but it hurts me for a second hour o_O
 
good moanings, everyone
 
hi, @salathe
 
@AlmaDo tell us about it ?
 
@salathe super ping! @salathe @salathe @salathe @salathe @salathe @salathe @salathe @salathe @salathe @salathe @salathe @salathe
 
9:33 AM
@HamZa no!! I want to resolve it by myself first
 
@crypticツ :)
 
I'll crack that stone :p
 
vs7
@crypticツ thanks to let me know
i'm newbie to this room
 
@salathe good morning, officer Crabtree.
 
@AlmaDo hehe nice spirit :)
Hey people, don't star random messages :P
 
9:35 AM
@vs7 also if you are replying to a message, you reply to that message, not a different one. It's confusing.
 
vs7
okies got it ...
 
it's a part of my issue, but now I've rejected that idea (but still it's interesting)
 
vs7
@crypticツ i always start multitasking .. but for next time i will take care of it
 
@AlmaDo E_COMPLICATED
 
9:38 AM
@HamZa The question is so awesome that it really needed double . :D
 
@Leri indeed
 
I've flagged it as very low quality post. It's also possible that it's some kind of spam.
 
@HamZa how so? Imagine you have a reference to array's element. Question: how to get reference to entire array
 
I couldnt find any amazon aws chat room so I am here
@hamza
good to see you again
 
9:40 AM
<title><form>....</form></title>cryptic ツ 1 min ago
 
:|
 
@crypticツ Huh?
 
@Leri it's a form inside the title =oP
 
Does anyone have experience with AWS EC2? I am on dire need of some help
 
@NeerajKumar This will seem weird and it's awkward but I can't remember seeing you. Can you refresh my mind ?
@crypticツ hahaha
@Leri read the title of the question :)
 
9:41 AM
@HamZa its ok. I was here couple of days back. U were online too.
 
@crypticツ :D I bet OP will copy paste that.
 
@NeerajKumar yeah I know that, but can't remember helping you :P
 
someone please help me out. AWS + EC2 + SSL?
@HamZa no problem :)
 
@NeerajKumar this is the php chatroom, read the pact in the description. Just ask your question and see if someone would respond. You maybe should also take a look at other websites like serverfault (they also do have chatroom(s))
 
@NeerajKumar Just ask your question. If anybody can/wants to help they will.
 
9:44 AM
mornig
 
morning, @PeeHaa
 
@PeeHaa morge
 
understanding bayes theorem
can any one teach me
 
vs7
@PeeHaa Morning
 
@Moniv the article is teaching you lol
 
9:46 AM
but i am not getting it
like i understand the theorem....but...how can we use for spam/non spam on php
 
@Moniv that escalated quickly ...
 
just a breif understanding
 
@Moniv Think Bayes by Allen B. Downey is nice book. Target language is python but you should be able to understand examples.
 
i just need a simple..way..how data is used in probability...
like..spam ..words...frequency..etc..
 
@Moniv I have a bad news. It's huge topic.
 
vs7
9:49 AM
Hey everyone , may i ask anyone for favor ?
 
that is what i am saying...just a brief....
 
@vs7 sure.
0
Q: MySQL : To store Integers in specific format but to be treeted as integers

Kamran AhmedI have tried but wasn't able to find the answer anywhere, and here I am finally posting the question at Stack overflow. Is it possible, I mean with the built in functionality available, to store the integers in a specific format in MySQL. For example what I want to achieve is to store the primar...

 
@Moniv Laziness is not good. :)
 
vs7
Right now im working in WordPress .. But i'm not sure its good for future or not
So any one can suggest me the trending framework of php , i want to explore php more ?
 
@vs7 FYI, people around here hate WP
 
9:51 AM
@vs7 codegniter , zend both are good
 
@KamranAhmed 01 is not an integer, integers do not have preceding zeros or a fixed character length
 
@vs7 Not good for future. As a matter of fact there really hasn't been a time that it was good
 
You need to format the numbers at the point you're converting them to strings (output)
 
@KamranAhmed Why do you want to store it like that in the db. Sounds like a presentation thing instead of a data thing
 
@KamranAhmed is irrelevant there.
 
9:53 AM
:12887810
 
@PeeHaa actually I have had to do a lot of formatting if I store them as is i.e 1 2 3 so I was wondering if there might be any way...
Can I somehow generate "autoincrement/automatic values" if I make this primary key datatype to string
 
Yes, varchar but if you treat them as integers, it would be wrong.
 
@KamranAhmed Don't mix presentation and storage logic
 
@PeeHaa got the idea
Thanks everyone, Especially Leri and PeeHa :-)
 
np
 
vs7
9:59 AM
So CI can be good for future ?
 
No. Project was abandoned, afaik. Also it's awful framework, leading to bad coding practices.
 

« first day (1123 days earlier)      last day (3825 days later) »