« first day (634 days earlier)      last day (4299 days later) » 

10:00 AM
morning
 
@MadhulikaMukherjee whoever can cast close votes.
 
@vascowhite im sorry i didnt understand you?
 
@NikiC morning
 
@MadhulikaMukherjee Read this gist.github.com/1689430
 
Oh alright. but i cant downvote that question. i dont have enough reputation yet
 
10:09 AM
it wasn't for you personally otherwise I would have pinged you @MadhulikaMukherjee, it is for the room in general.
Scroll up in history, you'll see quite a few of them here.
 
Oh alright! Im in a bit of a mess here sorry :D
 
@MadhulikaMukherjee forget about the conversation with vascowhite, it wasn't about your question
 
Ye okay
But please can someone help me?
 
the thing with your question is... it's not simple at all because it includes a lot of potentially wrong basic understandings of how things work... so it's actually a huge question with a lot of hidden questions inside
 
how to send app request to multiple users with default selection
using request dialogue facebook
 
10:13 AM
@MadhulikaMukherjee it seems that you're trying to do too much at once for the fact that you're new to php, you should start with the basics
 
morning
 
Look, its not that complex. Its true that i am new to php but so far i have understood quite a lot on my own. My php file works fine. I just dont understand how to tell the ajax call in my html file WHERE to send the json string to. Thats the only confusion. I could email you my html and php file. i'd be really thankful if you can help me @markustharkun
 
@hakre morning
 
@MadhulikaMukherjee Have you posted a question on SO?
 
how to send app request to multiple users with default selection
using request dialogue in facebook without authorizing facebook app
 
10:18 AM
I have posted similar questions, not this exact one, but with not much help
 
@MadhulikaMukherjee no emailing... just post your code to something like pastebin
I'm not sure you understand the nature of ajax, if you want to send a json array from one php file to another...
 
@MadhulikaMukherjee You will send your json string to the php file using post or get, then your php file can receive it and do whatever it needs to do.
 
@hakre morning
 
@MadhulikaMukherjee There are loads of books and tutorials on this. Don't bother with w3schools though.
 
what i dont understand is how will my php file know that its going to get data from an html?
here's my html file: pastebin.com/iDTybXM4
and here's my php file: pastebin.com/KGDmCX7w
 
10:26 AM
 
im not sure if i have used the file_get_content function correctly
@vascowhite Please tell me how exactly will my php file 'receive' the json string. Please see the file on pastebin and let me know if i have done it correctly
 
@MadhulikaMukherjee where do you want to get the changes
in same html file?
 
No, I don't have time, sorry.
There is a lot to teach you there.
 
@DanishIqbal i just want to know how does my php file receive the json string
@vascowhite thanks, i appreciate it. :)
 
i have basic knowledge but i try to help ok ?
 
10:30 AM
CSS: the * (asterisk) selector in css means all elements? right??.
 
@MadhulikaMukherjee a) don't use the mysql_* functions anymore, b) where is your input sanitation? c) you need to POST the information from the form to a certain URL (not specifically a file)
 
@MadhulikaMukherjee did you try to get from url
 
I advise to try without ajax, just with a normal old fashioned POST first
 
gotta love PHP tutorials...
 
i think you have to simply set action="file.php" in form
than use this to receive your values in php files
$var1 = $_REQUEST['field1'];
 
10:32 AM
@markustharkun Actually im making an application using phonegap so i HAVE to use json and ajax
@DanishIqbal okay let me try
 
@DanishIqbal i sort of must use ajax specifically
so i have to decode json in my php
cant use REQUEST
 
Nobody should use $_REQUEST, ever
 
@DanishIqbal my php file is located on my localhost. how to tell html where to send the json string?
 
10:34 AM
sorry i dont have much knowledge about json and ajax
 
html is also in localhost ?
 
@DanishIqbal can you help me out with the php file, then? How to tell php that data will be sent to it in the variable 'topost'?
No html is not on localhost server
Basically im having trouble with communicating the html and php amongst one another
 
use the above code you will get the data in php
i love PHP its not too easy but you can do many thing with this
 
Okay will try
 
10:37 AM
Ok :)
 
@DanishIqbal thank you so much for your patience with my stupid questions :)
 
look some genius thinks they always be a genius they forget they stupid a time ago and shows attitude
oh please dont say your questions stupid we just have not much knowledge
 
@DanishIqbal, i'm stupid now :D
 
@ircmaxell Btw, I'd get rid of the make_salt function. Instead rather create a (separate) function for getting random strings.
 
10:40 AM
@DanishIqbal Haha! Yes. And considering i knew NO php just a few days ago, i feel i have come a long way. My questions may be stupid now, and i might not be a genius, but someday i will have gained enough knowledge too.
 
Hello
I am new to PHP and using the concrete5 can anyone help me

I want the page description below the every link of navigation

I have use the code below

$c = Page::getCurrentPage();
$strDesc = $c->getCollectionDescription();

and declare the variable in link as

<a class="nav-selected nav-path-selected" ' . $target . ' href="' . $pageLink . '">' . $ni->getName() . '<span>'. $strDesc .'</span></a>

but there is problem it brings the only current page description to all links.

can anyone help me
 
@MadhulikaMukherjee you cannot send ajax request from one domain to another in that manner, it is called en.wikipedia.org/wiki/Same_origin_policy ... take a look at JSONP...
 
@webarto Oh alright. i'll check that just now
thanks :)
 
@MadhulikaMukherjee i also have basic knowledge
 
10:42 AM
@DanishIqbal yes i know :)
 
:)
@MadhulikaMukherjee when you free try to make facebook applications its easy and profitable
i love that :)
 
10:55 AM
This code $handler = $this->_connections[$con]; is causing an UnexpectedValueException with message "Object not found"
I'm struggling to understand why since I can't visibly see any exception-throwing code.
Nor are there any calls to other parts of the code.
also, _connections property is a regular array.
$con, on the other hand, is an object. I don't usually use objects as array indices, so maybe this is the reason to the problem.
My bad. _connections is an object (SplObjectStorage). It was defined as an array in the property decleration.
Problem solved.
 
@DanishIqbal Yeah i sort of did start with it, @DanishIqbal will continue after a few days :)
 
hello friends
i need some help in zen cart any one help me please
 
Discussion for all things PHP - Don't ask whether someone is here or can help. Just tell us your problem. If anybody can and wants to help, they will. :D
 
ok @tomexs
 
@JalpeshPatel, no probs works everytime :)
 
i have a problem in the zen cart ceon URI mapping is that my product page working properly after adding the ceon URI mapping but when i click on the other page like "about us,Shipping & Returns etc" at that it will gives me 404 error so if anyone have solution then please help me
 
hey guys
 
11:26 AM
@NikiC reply on list to that effect
 
11:45 AM
hey ircmaxell
are you there
 
@MadhulikaMukherjee good :)
 
what's up?
 
odemi gave me the link to you pho password lib and cryptlib(), but the examle you provided was in oop style php. how do i write it in normal style
2
the procedural style
 
huh?
 
$lib = new PasswordLib\PasswordLib;
$password = "foo";
$hash = $lib->createPasswordHash($password);
if ($lib->verifyPasswordHash($password, $hash)) {
// Password Is Valid
} else {
// Incorrect Password
}
the equivalent of the code in procedural style willl be?
 
11:49 AM
the exact same
 
@blackbee I just have to star this
 
whaat!! donot do anything i don't know what u wanna do, but i mus tell u i can no longer ask questions
it has been only 7 days i joined
 
lol :D
 
What is your concern?
 
11:52 AM
this is the oop style php:
 
please move to bin, we might end up as being joke chat room of the stackoverflow...
 
<?php
$mysqli = new mysqli("localhost", "my_user", "my_password", "world");

/* check connection */
if (mysqli_connect_errno()) {
printf("Connect failed: %s\n", mysqli_connect_error());
exit();
}

$city = "Amersfoort";

/* create a prepared statement */
if ($stmt = $mysqli->prepare("SELECT District FROM City WHERE Name=?")) {

/* bind parameters for markers */
$stmt->bind_param("s", $city);

/* execute query */
$stmt->execute();

/* bind result variables */
$stmt->bind_result($district);

/* fetch value */
and this is procedural style
<?php
$link = mysqli_connect("localhost", "my_user", "my_password", "world");

/* check connection */
if (mysqli_connect_errno()) {
printf("Connect failed: %s\n", mysqli_connect_error());
exit();
}

$city = "Amersfoort";

/* create a prepared statement */
if ($stmt = mysqli_prepare($link, "SELECT District FROM City WHERE Name=?")) {

/* bind parameters for markers */
mysqli_stmt_bind_param($stmt, "s", $city);

/* execute query */
mysqli_stmt_execute($stmt);

/* bind result variables */
mysqli_stmt_bind_result($stmt, $district);
 
No, both are procedural
one is using an object, and another functions, but both are procedural
 
x_x
 
11:54 AM
They are both procedural
 
Jun 24 at 19:12, by GordonM
Look, I'm using stdClass so I must be OOP! It's just like using arrays except I can't get useful results from count() or empty() and I can't use integer indexes and I can't have any key that couldn't be used as a PHP variable name and I can't use any of PHP's array functions with it, plus it's only got about 6 times the overhead associated with it as an array does, plus I don't have any behaviour or semantics so being a stdClass doesn't tell me anything about the data. I'm so cool!
 
procedural is not about using functions vs using objects. It's about how code is structured
 
ok
 
Good Morning all
 
both of them are procedural
 
11:55 AM
@FabioCosta morning
 
so the example in that blog was using as object, how do i write it with functions
 
@_@
 
my brain, it hurts
 
by replacing-> with _
?
 
@webarto . . . seriously
:D
 
11:57 AM
?
 
@blackbee , the code is already procedural :D
 
@webarto: brains always hurt
 
@blackbee What is your problem with the objects?
 
@blackbee Don't bother. Just use the object...
 
@_@ @_@ @_@, i'm leaving the night with a smile on my face bye guys
 
11:58 AM
i don't know them....
 
ircmaxell nice lib
 
10 hours ago, by ircmaxell
http://www.kickstarter.com/projects/ouya/ouya-a-new-kind-of-video-game-console $1.7 million raised in 48 hours... Holy cr@p
OMG :o
 
@tomexsans later
 
They've reached 2.2 2.5 btw
 
@Truth Wow
 
11:59 AM
@blackbee just use the example how it's written, and you'll be fine
 
i am trying to make a networking website, it has been a month, most of them ae written using functions how can i change so suddenly to oject... its not i am already a pro... i am learning php using functions
 
@blackbee Take a few minutes to learn AT LEAST how to use the library that you are wanting, it will be just like usign functions
 
ok
 
cant i do that with include and require_onc
e
 
12:01 PM
@blackbee You can use objects at ANY point in ANY php code , it's not just because you are using functions that your program will stop working if he sees the "new" keyword
@blackbee Man, go take a look at the manual or something
 
@ircmaxell I want to incorporate and distribute the passswordlib with my blogging system. Is there a way in git to add the project inside my own repo and still be able to do pull requests later?
 
can pdo only be used in object mode?
 
composer
 
@Truth was actually $2m in the first day
according to them
 
@blackbee What do the docs say?
 
12:03 PM
i saw pdo written only with oop
at php.net
 
@blackbee you know the final later? the O? it means OBJECT
*letter
 
@ircmaxell k tnx
 
ya i know that, i learnt it in java whn i was in class 10
 
@blackbee you can use PDO in your code just like you would use mysqli_connect
 
@blackbee PDO -> PHP Data Object
So, yeah, it's an object
 
12:05 PM
yes, i saw the similarity
 
@blackbee Also, why would you want to use it any other way?
I seriously don't get the people who use functions like mysqli_connect and date_create
 
@PeeHaa that or a submodule
 
I mean, it's great for people who did not yet learn OOP
 
ok, bcoz we are from stoneage
 
Object != oop
 
12:07 PM
But to use it in live code like that, that's wrong.
 
@blackbee Please type in English
 
object oriented pogramming
 
What i must do get it to work ? — user1366028 17 secs ago
 
time for a blog post on that subject
 
12:07 PM
@blackbee If you are using object that doesn't mean it is OOP
 
i didnot know that
 
@blackbee You are just using an object
 
so i suppose you guys are involved with php for more than 4 years or something, when you started, did you learn with functions or objects?
 
@ircmaxell Interesting!
@blackbee sigh
 
i am just asking to ask
 
i am involved with less than a 1.5 months
 
why do you downvote posts? u see i was shut down in 3 days.. this is the 7 day, i have become a living fossil at so
 
@blackbee Why do we downvote posts? because they're terrible posts, because the information they provide is inaccurate, misleading, terrible practice, or not relevant
 
@blackbee to improve the quality of the answers and sometimes they are just confusing or "make this for me please"
 
@ircmaxell What's wrong with this question?
 
@ircmaxell +1
 
permissions problems? and it reaks of "fix this for me"
 
i have a question, when i test my signup form...in my localserver with xampp, as soon as i start typing in the input text fields, then all the words,starting with the typd first, that i have typed before, are shown,just like autosuggestion..... how to stop it
 
4
Q: Preventing Browser Text Input Suggestions

David Haddad Possible Duplicate: How do you disable browser Autocomplete on web form field / input tag? I am building my own local search UI element that gives local search suggestions as you type. The problem I am having is that when I focus on the html text input element my browser (Safari, but c...

 
12:26 PM
> <freenode'TechieShane> Ae there any secure, non mvc frameworks that all you have to do is include a class/function file and it works?
 
@ircmaxell "all you have to do" .. well I guess aside from wiring up the crystal ball
 
theanks
fab
 
> <ircmaxell> It's called the magic framework. All you do is install it, and think about what you want it to do. It does it all for you automatically...
 
ircmaxell. can u discover something as, width:autofit;
 
@ircmaxell Classic :)
 
12:29 PM
at times i feel so hopeless in adjusting the webpage
 
http://stackoverflow.com/questions/11432597/can-somebody-explain-how-to-create-a-treeview-and-under-each-part-there-is-anoth
 
does anyone own a networking site here?
what is meant by autocomplete="off" invalidates html
 
@ircmaxell: Is hash_pbkdf2 targetting 5.3 too?
 
@blackbee It is not a standard, it works on most browsers but is not W3C compplaint
 
12:41 PM
No
 
@ircmaxell 5.4.5+? or 5.5+?
 
5.5+
 
5.5+??
 
thanks (just discussing changing pw hash schemes for a product here :))
 
@Leigh y no blowfish?
 
12:46 PM
how to switch my learning from function style php to object oriented php? :0)
 
@blackbee You are obviously a little lost, try to buy a good amazon rated book that teaches php oo
 
i am the poorest man, i have to buy it from a shop.
poor man doesnot have a debit card, o sorry, i am not even a man, a boy
 
@blackbee have you read the manual php.net/manual/en/language.oop5.php ?
 
i am reading now
 
@FabioCosta of course not. It's so much easier to just ask other people
 
12:51 PM
but it feels great when i can do things by myself...
 
@blackbee Everybody here likes to help, but most of us are at work and doing other things too, so I'm afraid we don't have time to teach.
 
@PeeHaa why not bcrypt? I only mentioned pbkdf2, I also mentioned password_hash. Its an in-development product, and 5.5 will probably be out by the time it is released, so I'm recommending we use the bcrypt scheme and we'll be able to use the library function when it is implemented
 
i can teach myself, i have been teaching myself. but u see i got so mindset with functions that i am finding it difficult to accept
:)
 
@Leigh You may be able to use my compat library
 
@ircmaxell I know, you already warned me it may be changed. I've already recommended it.
in-dev product, if its changed, it's fine
 
12:58 PM
@blackbee I said that because the questions you are asking show that your level of knowledge is very basic and to answer them would involve in depth tuition which this type of chat room is not suited to. Good luck with learning, when you have specific questions on actual code, you know where to come.
 
Well, it may be changed, but once the RFC goes to vote (or is accepted), it won't change from there on
 
btw github.com/ircmaxell/password_compat/blob/master/lib/… mt_rand calls are expensive, this can be sped up (albeit marginally)
my salt generation has lovely bitshifting
 
what?
 
yeps
i want to be a ircmaxell
4
 
ask him, he might let you :)
 
1:00 PM
I taught myself...
 
@ircmaxell I only use ceil(len/4) mt_rand calls
 
for how long are you involved with php
 
@Leigh huh?
 
@Leigh why? It's better to make it more expensive with more calls
 
for SALT generation?
getting a random string
 
1:01 PM
omeid said, mt_rand id bad for password encyption
i wrote this:
$hash="";
function mypass($paswd,$salted,$sessionid)
{

$hash=sha1($salted.$sessionid);
return crypt($hash,'$6$30$'.$paswd);
}
function usalt()
{

return substr((sha1(sha1(mt_rand()*md5(time())))),0,22);
}
$tsalt=usalt();
$cryptpass=mypass("secret",$tsalt,$sessionid);
 
@Leigh yes, because more work has to be done, and it makes it harder to predict or guess the sequence
@blackbee good god, you can't read instructions, can you?
 
@ircmaxell 32 bit random = 4 bytes of salt, i dont see how calling it 4x as many times makes it harder
 
sorry
it was before i joined the room at so
 
@Leigh because it's using 4 iterations of the twister algorithm instead of just one.
You know, I've seen people f%@k up crypt() before. I've seen bad salts, invalid iteration counts (which this has), etc. But I've never seen someone screw up the salt and the password before.
 
i understand crytology, but how do you write algorithms? i know how blowfish and des works, but how do you do your own?
 
1:05 PM
ummm. You understand cryptography???
 
@blackbee if you understand, you wouldn't want to write your own ;)
 
yes, i studied most of the algorithms when i was 19
xor ing and or-ing bits of data and bla bla
 
ummm...
What's an S-Box?
 
@blackbee don't wanna be a jerk, ubt xor'ing and or'in isn't an algorithm but just a simple logical operation. :)
 
I'm out
it's been... well... something
 
1:09 PM
lolz.
 
seriously?
then s-box means substitution box for symetric kindof algorithms, relating to relationship cypher and the key
 
@ircmaxell Why do you think that the upper 24 bits of a 32bit output are any less random than the first 8 bits of two consecutive calls? The whole number is random right, no matter how you slice it.
 
morning
 
night
 
evening
hi omeid
 
1:14 PM
@CarrieKendall morning
 
@PeeHaa Hola
Coma esta? Muy Bien? Ok
 
sup
 
@Event_Horizon Muy bien. E tu?
 
is there any algorithm called snefru?
 
Enchilada
 
1:18 PM
@blackbee you mean snafu?
 
i am not quite sure...
what is snafu?
 
situation normal; all fucked up
good name for a hash imo
 
o
i
 
@blackbee Situation Normal; All F**ked UP! SNAFU
 
but its kind of contradictory, if all are f up then how is it normal?
 
1:21 PM
Anyone else here received an invite to stack overflow careers?
 
c
 
@GordonM I'm already on careers. Just need to finish my profile :P
 
@GordonM Yes a few months back
 
Yeah, having a bit of trouble with that, half the things you're meant to do don't seem to work. Like linking to your stack exchange profiles or adding technologies you like.
 
@GordonM I got my current post from a company listed on SO
 
1:22 PM
Guess it's an actual beta and not a web 2.0 beta.
 
@GordonM what is web 2.0 ?
 
Gordon of batman?
 
Hey all
 
@Neal Hi Neal
 
I haven't done anything on it as I have a job (for now)
 
1:24 PM
@OmeidHerat In web 2.0 Beta means "We've finished all the interesting bits and can't quite bring ourselves to fix the stuff that doesn't quite work right".
 
Checking Stack Overflow...
Wonderful! Because of your activity on Stack Overflow, you qualify for a profile on Stack Overflow Careers.
no invite needed
 
@GordonM huh ? but that doesn't means what is web 2.0
 
1:36 PM
silverlight blows
 
@CarrieKendall in a really bad way right?
 
Micro$hit.
 
netflix's value is lowered by its use
 
Someone people I see must be mentally retarded to invest on a proprietary, none-standard, technology for distributed application, where there is more adopted and fairly better alternatives are available.
 
haha got this in the JS room. (probably old but made me lul)
 
1:49 PM
i really need to get my head around in-memory caching solutions
and use cases scenarios for redis and memcached.
 
@CarrieKendall My understanding is even Microsoft won't really have much to do with it anymore.
 
@rlemon lol
 
@GordonM i think M$ just released SilverLight to gain the "cool factor"
 
i scroll down 3 pages till i get it
2
 
@rlemon It needs an appendix. Appendix 1: It may be shit but it's still more popular than anything else
 
1:51 PM
they knew it sucked, and once people realized it sucks they are going to abandon it.
 
@Mike Didn't work.
 
@Leigh because 1 call to mt_rand() may be compromised. But multiple are a lot harder to compromise
 
just like windows Me
 
@GordonM that's how proprietary applications work, didn't you know? Why update software when you can just create new software?! Unrelated: OMGZ CS6 IS OUT!11!
 
god why does amazon make their aws shit so expensive. I just want to setup a full env with cache, cdn, db inst, and an ec2 but i dontw ant to pay $400 >_>
god i wish i could +1 rep ya @CarrieKendall thats the troof. i will say, cs6 photoshop's blackness is oh so beautiful and easier on the eyes.
 
1:54 PM
@Mike thank goodness that they created a new suite though, i mean what if they updated cs[number] ?! i would have to learn how to use 3 new controls
 
lol, it is true. i mean release cs5.0.1..2....3... and release new features.
They wont though because if they bundle the patches, and features they can release major versions and make more monies
 
@Mike God how I miss photoshop. Gimp is nice... but doesn't quite cut the mustard.
 
i dont even use pshop anymore now that css3 is so widely supported.
 
ohh not for web :P for photo manipulation and shiz
 
its installed, i use it the occasional for doing some logo work or wireframing.
 

« first day (634 days earlier)      last day (4299 days later) »