« first day (1417 days earlier)      last day (3524 days later) » 

10:00 PM
I mean you could not copy the entry ... but you have to copy everything else ... looks like a questionable gain ...
you do have to copy it, I don't see how it would work ... also my head hurts ...
 
hey! Adobe's CDN is down, taking down tons of sites: use.typekit.net/xfc8aie.js
 
Loads for me?
 
+1
probably down in usa
 
10:16 PM
loads for me, in usa
 
/me sleeps
 
later
 
10:38 PM
@ircmaxell '"Long" term support'
 
11:01 PM
So I have to store HTML in a variable so I can email it. The problem is it's a dynamic email and I'm using a foreach loop in there. And it basically won't work because of it. Any ideas?
 
11:13 PM
mornings
@Idris you are looking for output buffering maybe?
 
Morning
So ob_start basically executes the code before the actual HTML? Not sure if I understand it correctly @DaveRandom
 
Can you show some code? (pastebin.com)
Anyone still in need of a phpnw ticket?
 
@bwoebi I am refactoring that out anyway. Its just a placeholder...
 
pastebin.com/cCSr56Gf @DaveRandom I need to store the HTML as a variable so I can email it, but can't because of the PHP in HTML
 
@Idris OK yeh, you want output buffering
not that
@Idris consider this
 
11:26 PM
I'll give it a try and get back to you @DaveRandom
What happens though? When using your example and getting rid of the last 2 lines, it's still the same output?.... @DaveRandom
 
@LeviMorrison Playing devils advocate, your RFC doesn't say why it needs fixing (though obviously it needs fixing).
 
@Idris Not exactly the same. Note that my code sample results in var_dump output - it shows the string dump with length etc
If you don't explicitly terminate the buffer and do something with the data before the end of the script, it will be flushed to the regular output
@Idris consider what happens if you remove only the var_dump() line
Also consider 3v4l.org/UNrfn
 
No HTML is displayed. Am I right? Once I remove the var_dump @DaveRandom
 
11:45 PM
@Idris Exactly - the reason it is displayed when the line is there is because you output it explicitly. The data is stored in the variable.
i.e. what you want
 
morning peeps
 
Howdy
 
Morning
@DaveRandom So I should start ob_start(); at the top of my script. Then store ob_get_clean() as a variable. Correct?
 
When you call ob_start(), every output after it is buffered, until you stop the buffer. ob_get_clean() stops the buffer and returns the contents as a string, which can be stored in a variable like any other string.
So in other words... yes
But make sure you understand what it does before you use it ;-)
 
If things don't work, just add one more level of output buffering.
0
A: How to use PHP to check form field for specific value?

John CondeYou have two problem: =! should be != if(strlen($_POST['captcha']) != 7) You also need to turn on error reporting.

wow, such comment answer ...
 
11:57 PM
I understand it, and it works. Thanks for teaching me something new today @DaveRandom
 
:-)
 
@DaveRandom How's your array access?
 
...small, shrivelled and slightly to the left?
 
gotta love the classics heh
it's been ages since i saw liar liar
 
Seriously though... done nothing on it, been to phpnw UG meet tonight
Been hanging out with @MarkBaker
 
11:59 PM
ah cool ... anything interesting?
 

« first day (1417 days earlier)      last day (3524 days later) »