« first day (593 days earlier)      last day (4369 days later) » 

7:00 PM
i just want it to return aaa<p>blabla</p> not <p>blabla</p>aaa<p>blabla</p>
can i?
is there a way to do this ?
can someone help me ?
its just the last thing i had to do to complete my work
 
Why not just echo "aaa"."<p>blabla</p>; why do you have to use output buffer? Do you even know what its for because you seem to be using it incorrectly.
 
@Event_Horizon it's an exemple
 
user895378
@MikeBoutin The relevant php manual entry will help you. What you're doing isn't complicated, and if your problem solving method is to ask other people to write the bits you don't understand, you won't get very far.
 
@rdlowrey /agreed
 
@rdlowrey i don't want anyone to write it for me, i just want advices and tips
 
7:04 PM
ok, here's a tip, don't use output buffer if you can't understand it from the manual
 
user895378
May 11 at 19:39, by gosto
i thought i can find answer here quickly , but its the opposite , only advices
 
user895378
^ that one's a classic :)
 
all you seem to be using it for is variable holding
in your example
 
hi friends i have some doubt in php
 
@rdlowrey yeah, its still my favorite
 
7:05 PM
Is there some internal function that returns by reference?
 
Wow. Forgot I was even here
 
my doubt is how to add array values into database?
 
@Event_Horizon i want something to retrieve all my code between ?> and <?php to make some changes
 
@rdlowrey hi
 
so ob_start() can retireve it and set a function to transform it
that's waht i want
 
user895378
7:06 PM
@srini This is too broad a question. You'll be better served to google "PHP write to database"
 
user895378
chat isn't a personal tutorial generator ... well, it is, but not for such a broad question.
 
@srini and use json to encode your array
 
@MikeBoutin
 
user895378
@srini and you generally shouldn't store JSON in your database, despite what @MikeBoutin said.
 
thanks for your guide ya
 
7:08 PM
@rdlowrey why ?
 
Does anyone know if there's a matrix of HTML5 tags/attributes that shows what's a valid attribute for each tag? I've been looking and found plenty of lists but they're kinda cumbersome to work with.
 
but i'm using php with mysql only @MikeBoutin
 
It'd be easier to look up a tag in a row, an attribute in a column and look for a little tick or cross or whatever
 
user895378
@MikeBoutin Too much to explain. Just read SQL Antipatterns
 
@rdlowrey Cool ty, ill buy it soon and ill remember it
 
7:09 PM
@GordonM something like caniuse.com ?
 
@MikeBoutin
 
@MikeBoutin Are you generating whats between your php tags with PHP or Javascript?
 
@rdlowrey i just want tips and advice here, i can do my work myself dude, i am a junior and i want to learn, remember this
 
That is advice, its called telling you to read a book if you want to learn, its good advice.
 
user895378
@MikeBoutin Which is why I suggested the ob_start manual entry. It, along with the other relevant output buffering manual entries, will tell you everything you need to know to accomplish your goal.
 
7:11 PM
@hakre Looks like that's more to do with browser compatibility. Or did I miss something?
 
@GordonM that's browser compat, yes. so not what you're looking for.
 
Really looking for something more along the lines of what's valid for a given tag. But that looks like a handy site anyway, will have to remember it
 
what's with the mozilla develper center?
 
PHP should stand for Pretty Huge Penis? amirite??
 
Oh, @rdlowrey, in response to your offer, that'd be really neat, thanks :)
 
7:12 PM
@NewWorldOrderly No, you are wrong. Very wrong.
 
@hakre hi friend i have some doubt how to add array values into database using php with mysql
 
ah nm, I see what you were asking for
 
7:13 PM
@Event_Horizon i don't understand your question... It's a kind of framework but my head tag is generated by the script and the content, i want to get all of the "body content" with a function content_start(); and pass it to my function page_create(); to create the hole page
 
i am fresher so any one help me?
 
@hakre no, it is all on imgur. for the next version I will (hopefully) be able to keep them to a private api and in a library on imgur so I can relist them back.
 
user895378
@GordonM where can I find your email address?
 
but can i have some html code to be not processed before my whole php ?
 
@karthys Hi krthys: I have a problem right now to convince my room mate to cook up something.
@karthys But maybe friend you can suggest me a great recipe?
 
7:15 PM
@Event_Horizon Ty for your help, it's very appreciated
 
user895378
Best way to get a chat ignore from me? Repeatedly pinging people for help just because they were recently active.
 
@Event_Horizon Yeah, that looks a bit closer to what I'm after, thanks
 
my page look like this
<?php

include 'pages/indexpage.class.php';
include 'modules/monmodule.class.php';

$page = new IndexPage();
$mod = new MonModule($page);
$mod->create();

$page->content_start();
?>
<div class="asss_ass"></div>
<span></span>
<?php
$page->content_end();
print_r($page->get_content());
?>
 
@rdlowrey github maybe? Not sure it gets published there.
 
@hakre sorry for interrupt.
 
user895378
7:17 PM
@GordonM just send me an email. same handle as SO but @gmail.com
 
Hold on a sec, just totally drowning in windows here.
 
@EventHorizon hi friend i have some doubt : how to add array values into database using php with mysql
@EventHorizon
 
@karthys hi friend I have some doubt : how to help one with poor as grammar this
 
OK, sent.
 
GordonM do you own gordiansolutions.com?
 
7:18 PM
Nope. I wanted it though :(
 
@EventHorizon sorry ya. i am fresher ya.
 
@GordonM that mozilla link is pretty handy
 
@rdlowrey @EventHorizon Do you know what i mean ?
 
Cybersquatting mission:start!
 
@EventHorizon sorry for the interrupt ya.
@EventHorizon ?
 
user895378
7:20 PM
@GordonM The fox is in the hen house. Repeat: the fox is in the hen house. You are go for takeoff.
 
:)
 
hi @RepWhoringPeeHaa
 
Ah much better with that spam pingers posts hidden
 
hi @rdlowrey
 
Huh. Job offer from lovefilm.
Shame I'm at the wrong end of the country :P
 
7:22 PM
@GordonM hi
 
hello
 
Now, @MikeBoutin why would a framework need to completely rebuild your page or tear it apart?

If you are just trying to build a page from scratch or allow it to be modifiable in PHP, why not just generate all the HTML code using PHP itself anyways?

What is your goal?
 
@GordonM
hi
 
Goal overall, not just what you are trying to do this second.
 
@GordonM i have some doubt , my question is how to add array values into database , here i am using php with mysql , would you like help to me?
 
7:25 PM
@rdlowrey Much obliged, sir.
 
/me ignores this user (everywhere) and goes back to S&M
 
@karthys Did you post your question on stackoverflow.com yet?
 
[Relax Bro - Go Tanning](http://i.imgur.com/1pqEl.png) [ref](http://chat.stackoverflow.com/transcript/11?m=3931538#3931538)
[Math.atan(rdlowrey); - SyntaxError: "I'm already Tanned Bro!"](http://i.imgur.com/QwgoB.png) [ref](http://chat.stackoverflow.com/transcript/11?m=3675176#3675176)
[me {color: Tanned !important; }](http://i.imgur.com/WYv6w.png) [ref](http://chat.stackoverflow.com/transcript/11?m=3655001#3655001)
[I'm too tanned to care about closures](http://i.imgur.com/IOWHn.png) [ref](http://chat.stackoverflow.com/transcript/11?m=3652375#3652375)
 
@RepWhoringPeeHaa you kinky bugger :)
 
user895378
@hakre lol
 
7:26 PM
oops not that kind of S&M :P
 
lol
 
lmao hakre
 
@hakre nice
 
user895378
That's what we call the "Tan Response Stack"
 
@GordonM no because i'm restricted person for asking question.
 
7:26 PM
> me {color: Tanned !important; }
still my fav
 
@Event_Horizon i just experiment some way ;) it's for my self
 
hi @stwhite
 
Anyone have experience in using / installing ImageMagick?
 
user895378
@rlemon the meme generator has improved since I last visited! Nice!
 
7:27 PM
well i'm lvl 53 barb. once I lvl 60 I might slow down a bit to do some other stuff
 
@MikeBoutin I don't see any reason for you to be handling it that way, honestly, its just going to be a big mess.
 
unfortunately I have a job and a girlfriend who demand time from me as well.
the time demanding is the unfortunate part, not the having of them
 
@Event_Horizon no, i just want to get all the code between my content_start() and content_end(),
it will be so clean
 
Why are you restricted?
 
the issue is, you are going to be building php pages like this:

<?php ?>
<html>
</html>
<?php ?>
Which makes no sense, when you can do this:

<?php echo "<html></html>"; ?>
 
7:30 PM
@GordonM because i'm new person for this site so i don't know about faq
hi @user996851
 
@Event_Horizon , actually your example makes no sense
 
@karthys the first thing any new person should do for anything is RTFD, and if they fail to do so, the ensuing ignores will be justified.
 
@Event_Horizon you don't understan my question, ty to had treid
tried
@tereško do you understand ?
 
hi @tereško
sir
 
user895378
That's my new "you just got ignored" message.
 
7:32 PM
@MikeBoutin i am trying to find that "question"
 
@tereško this is my code
<?php

include 'pages/indexpage.class.php';
include 'modules/monmodule.class.php';

$page = new IndexPage();
$mod = new MonModule($page);
$mod->create();

$page->content_start();
?>
<div class="asss_ass"></div>
<span></span>
<?php
$page->content_end();
print_r($page->get_content());
?>
 
user895378
Although it doesn't really have anything to do with being excessively tanned ...
 
i want to get all between $page->content_start(); and $page->content_end();
 
@rdlowrey , i think "excessive use of memes" is a valid reason too
=/
 
user895378
hehe aww come on, haven't done it in a long time!
 
7:33 PM
hi @tereško i have some doubt : my question is how to add array values into database using php with mysql
 
user895378
very well :)
 
but don't process the html code, just get it, can i?
 
my sample code is <?php

$array=array("foo"=>1,"bar"=>2,"baz"=>3);

$con = mysql_connect("localhost","peter","abc123");
if (!$con)
{
die('Could not connect: ' . mysql_error());
}

mysql_select_db("my_db", $con);

mysql_query("INSERT INTO Persons (FirstName, LastName, Age)
VALUES ('foo', 'bar',baz)");


mysql_close($con);
?>
this code not working
ya
 
@MikeBoutin , i am not sure i get what you mean , but i have a feeling that you are looking for this : codeangel.org/articles/simple-php-template-engine.html .. read the article ..if thats not what you need , you just gained an new bookmark .. if it is what you need - then the problem has been solved
 
VALUES ("array['foo']"...)"
 
7:35 PM
Coming in here and PESTERING EVERY USER ON CHAT is really not a good way to go about getting help. RTFM!
 
$('.user-1342735').hide();
 
<?php

$array=array("foo"=>1,"bar"=>2,"baz"=>3);

$con = mysql_connect("localhost","peter","abc123");
if (!$con)
{
die('Could not connect: ' . mysql_error());
}

mysql_select_db("my_db", $con);

mysql_query("INSERT INTO Persons (FirstName, LastName, Age)
VALUES ('foo', 'bar',baz)");


mysql_close($con);
?>
 
@karthys VALUES ("array['foo']"...)"
 
@karthys , why exactly did you ping me .. also , of course that code will not insert content of array in the database .. you are just inserting three string values
 
Christ... does anyone here yield a ban hammer?
 
7:38 PM
@tereško it really look like this
 
@karthys Didn't you just post that snippet a moment ago?
 
@tereško That vaguely resembles help. Don't give him any!
 
@karthys Right there I think
 
@tereško ill read it tonight ^^ ty
 
user895378
<style>
user.excessive-pinger { display: none; }
</style>
 
7:39 PM
Ignored. Moron.
 
did i miss something ?
 
@tereško already some time i got your guide sir, so i exactly ping you
 
Just FYI, this is probably why you're restricted on SO. Your attitude sucks balls and unless you fix it you're going to get no help at all here.
 
@hakre , we need another app : The Help Vampire Registry
 
dont mistake me @tereško
@Bracketworks but not insert a value into database . why?what is the reason?
 
7:41 PM
@karthys If you do not stop pinging people, you will receive no help.
> 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.
 
user image
6
 
@karthys is currently scoring about a 9 on the cockometer. It goes from 1 (not a cock) to 10 (complete prick), and sometimes 11 (Jeremy Clarkson)
 
@rlemon , also known as "Head in Sand" solution
 
@Bracketworks k ya. here after i don't ping any person exactly
thanks for your advice
@rlemon hi sir sorry for the disturb
here after i don't ask any question here so buy to all
 
7:46 PM
Ignore is broken
 
Ignore should be vote based an block the user from chat altogether
7
@rlemon autsch
 
like seriously, why do they thank us.
it is not alright.
FFS blizzard get your shit straight. this would chalk up to an epic release fail if you ask me.
 
Why so surprised? Everyone knows that these days "1.0" means "Beta version the marketing department forced us to release"
 
I get there are bugs, it's new. it's big, it's popular.... but to have constant server crashes and down time.
@GordonM because I payed ~$70 and waiting how many years.. and suffered playing D2 on my 1920*1080
 
7:51 PM
@rlemon once i say sorry for that ya
 
800*600 never looks good on 1080p
 
@rlemon So? It's a paid public beta :)
 
@GordonM you karthys!
$karthys === $_TROLL
 
Gee, thanks :)
 
actually i suspect he has been doing some rep-fraud
 
7:53 PM
Seriously though, I never touch commercial software that's been on general release for less than about 2 months.
 
so every release of every piece of software can be expected to be a piece of shit.
no, I expect the QA team to have done some effing work so I can pay for and use a stable product.
anything less is unacceptable.
 
No, just the 1.0 release.
Like I said, when a product gets close to finished, the marketing dept starts putting a shitload of pressure on the devs. I'm certain they all knew it wasn't ready.
 
@GordonM the issue is load. all servers but the Americans are up. even with the bugs.
Blizz is massive. they make more money than I care to even google to find out.
pay for the proper hardware to support the massive number of new users.
they should have learned from WoW
 
> Blizz is massive. they make more money than I care to even google to find out.
Hahaha
 
Activision Blizzard, Inc., formerly Activision, Inc. () is the American holding company for Activision and Blizzard Entertainment. The company is majority owned by French conglomerate Vivendi SA and was created through the merger of Activision and Vivendi Games, announced on December 2, 2007, in a deal worth USD$18.8 billion. The deal closed July 9, 2008. The company believed that the merging of the two companies would create "the world's largest and most subtle pure-play video game publisher". It believes that it is the only publisher that has "leading market positions across all categor...
net income, just over 1bil
i think they can afford a few effing servers
 
8:02 PM
shrug
I'm just used to the first release (and often the second as well) of commercial software never being up to much.
1.0 means "Marketing released a beta" and 1.1 means "We spent a week working 19 hour days to fix all the bugs in the last version and we THINK it works now"
3
 
like I said i'm ok with a few bugs... them having sub par servers that constantly are being over loaded and going down is not cool. then for see that the americas are the only servers which are constantly down is just annoying because I know it is just someone fucked up and not real technical issues.
 
@rlemon tan fanboy ;)
 
you know it
 
:)
tanboy
 
Ken
Is there really any point in ranting to us? We can't fix it :P
Every major online game is plagued with these kind of issues for the first few months. It doesn't even come close to a Windows Vista disaster, so hang in there with the rest of us.

Have you seen the Blizzard Jobs listings? They are clearly short staffed especially for D3 and BNet.
 
8:16 PM
@Ken no excuse, period. if I wanna vent I will. :P if you need it to be on topic I can $RAGE = "ffs blizzard get your shit in gear!"; echo uppercase($RAGE);
 
Ken
Awesome
lol
 
:)
 
user1385191
@RepWhoringPeeHaa apologies for the late ping; I only use spaces for block comments
 
servers back online
and with only 40 minutes left to work!
lol, that is the best part! I can't play right now anyways... i'm still pissed about the last big downtime though
 
@rlemon, are you talking about WoW or Diablo regarding the servers being down?
 
8:19 PM
@MattMcDonald np :-) But why would you use different indent type for comments and code?
 
user1385191
spaces are strictly for alignment
 
user1385191
which is handy for ascii art
 
user1385191
and diagrams
 
Diablo
 
ah, just curious
 
user1385191
8:21 PM
it seems like Blizzard spends all of its money on designers
 
i think i will download Arcanum .. haven't played that thing in ages
 
@MattMcDonald dragon comments? ;-)
 
anyone tried playing Terra Online?
 
@tereško Nor have I. It was an enjoyable game.
 
8:23 PM
LOL @ "Lets Brogram Together"
 
Ken
@MattMcDonald I don't mind :)
@hakre Thank you for contributing something of value to the body of the great world wide web.
 
@rdlowrey When are you going to push Atreyu changes? :)
 
user895378
@LeviMorrison I've gotten a little bogged down in the minutiae of the exact object-oriented design of the routing functionality. I'm working on it as we speak. If you want something to work on, the main thing we have left is a Request class ... something with content-negotiation functionality.
 
@rdlowrey I'll need something to base it off of.
 
@LeviMorrison , on a side note : demonoid tracker has something titled "occult collection" oO
 
8:30 PM
@tereško o.0
 
@tereško WHAT a question.. wish i had the rep to CV
 
user895378
@LeviMorrison Here's something I hacked up a while back for a Request object ... I'm really not sure how the superglobals should be represented. The only thing that the routing code relies on is the accompanying interface
 
lol .. i am not even sure that you have gained the privilege to "down vote" yet
 
Yeah I have
but, i'm only 4% for the CV haha
 
8:36 PM
@Justin You can get creative with just comments as well ^^
 
@rdlowrey So, I do believe you don't like the name RequestInterface, yes?
 
ah finally room mate finished cooking
 
@rdlowrey , the if-elseif-elseif bit look ugly , the LogicExceptions should come with code/number, the isAjax() method just sucks, there is something shady doing on in method() and address() methods and the interface is poorely made and does not cover nearly enough
in short .. kinda ok
 
user895378
@tereško Again, those are all really old (which is why they need to be re-written) ... I've been procrastinating on the Request stuff for a while now because I couldn't make up my mind how to proceed.
 
user895378
8:43 PM
@LeviMorrison Yeah, but for the life of me I can't figure out what kind of interface name would be needed for a Request interface.
 
@LeviMorrison , beside the collection looks kinda ok , if going by books that i have read
 
user895378
@LeviMorrison The only reason I used actual Request::uri() and Request::method() methods is because they allowed me to typehint a RequestInterface and know that I can access those "properties" of the request. They'd likely be better named getUri() and getMethod()
 
@rdlowrey I'm doing that kind of stuff right now.
Also, I'm getting rid of protocol. It is being replaced with isConnectionSecure.
 
user895378
@LeviMorrison great. I've totally ignored how to proceed with the whole Request. Do whatever you want. As long as there's an easy way to access the URI and HTTP method verb I'm happy.
 
@LeviMorrison , that would be really easy to implement
public function isConnectionSecure()
{
    return false;
}
 
8:48 PM
@tereško lol
 
user895378
lol
 
.. i just wanted to point out how misguiding the name was
 
@rdlowrey isAjax is irrelevant . . .
 
depends on how you write the application itself
and it should be called: isXHR()
 
user895378
@LeviMorrison Agreed. I have no connection to any of the Request stuff and honestly don't even remember what's in it. Half of it was probably hijacked directly from other frameworks just to have a starting place.
 
8:52 PM
@rdlowrey lol, I think I'll just start over then.
 
user895378
@LeviMorrison That's basically what I'm saying :)
 
there is a black cat half-draped over my keyboard
 
user895378
If you can make the Request::__construct compatible with the Provider instantiation rules, great. If not, it's not a big deal.
 
user895378
@tereško Your cat types very well.
 
hello there. I am looking for small projects that have a little bit of everything in web development to start learning. anyone know something good?
 
8:54 PM
naah .. i just move the head around , when i need to access a specific key
@JavascriptGeek , you should start with "zend 101" (google, first item) , to learn the language basics
if you already know them , read a book .. "PHP Master" will be good enough
 
i have learned the theory basics... i just finished a project for class, and i made a lot through that, and it s an interesting way to learn, so I would like to have a new project cause the last one was fun. If you don t know anything about what i mean, it s ok :)
 
have a new project, they said, it will be fun, they said
 
sorry for my english :(
 
@rdlowrey Initial thoughts:
interface Response
{

    function getHttpVersion();
    function setHttpVersion($httpVersion);

    function getStatusCode();
    function setStatusCode($httpStatusCode);

    function getStatusDescription();
    function setStatusDescription($httpStatusDescription);

    function getHeader($header);
    function hasHeader($header);
    function setHeader($header, $value);

    function getBody();
    function setBody($body);

}
 
@webarto i guess you don t suggest me to do that :)
 
8:58 PM
@LeviMorrison , it kinda depends on how you intend to use that Response
 
@tereško Return it from a controller-type class.
 
@LeviMorrison Is the status description variable and not prescribed by the std?
 
Probably needs a render function or something similar.
 
why not $controller->{method}( $request, $response ); .. that's what i use
 
@JavascriptGeek practice is more important then theory IMO, so just do it
 
8:59 PM
@rdlowrey Having a quick scan through that book now. The stuff on hierarchies was interesting, I didn't know the closure table approach and will have to look into it. Am quite familiar with the other stuff I've seen so far. Unfortunately for yours truly most other web devs don't seem to know them, leaving me with big messes. EAV tables are bad enough, CSV lists in columns are worse, but nothing compares to serialized PHP arrays in columns!
 
user895378
@LeviMorrison Yeah, or output() or send()
 

« first day (593 days earlier)      last day (4369 days later) »