« first day (258 days earlier)      last day (4695 days later) » 
04:00 - 11:0011:00 - 22:00

11:00 AM
@ChristianSciberras I play free ver :P
 
@Robik Not that the paid one makes a huge hole in the pocket...
 
thank $deity i didnt buy shogun tw 2
 
Plus you can play it whenever/wherever you want.
Even multiple users at the same time (sssh!)
 
Free version have multiplayer too
 
@Gordon - Any particular reason?
@Robik - You didn't understand. Multiple people playing the same account ;)
 
11:02 AM
@ChristianSciberras because its 33% off now
 
:P
So you're into strategy, @Gordon?
How about CivV?
 
@ChristianSciberras i boycott 2kGames after Mafia 2
 
ahaha
borderlands is pretty fun in coop
@ChristianSciberras CivV was pretty good. But it had toned down everything. CiV4 would be better if you like to play with more units
 
CoH is nice RTS :P
 
I'm going to keep checking that page every day. Should be some good buys
never played it, heard good things about it.
 
11:06 AM
@Robik yeah, ive got the CoH pack. Never finished single player though
pretty good though
did you notice one of the commander voices in COH is also a voice in Crysis?
 
Well, I'm off for break. Cheers guys!
 
laters
 
Nope :P
 
Still no news on HL ep3 :(
 
HL?
 
11:09 AM
half life
poster boy for the geek hero
 
Individual price:
525,05€ Package price:
79,99€ Cost to you:
270,48€ You save:
 
:D
 
2k games pack..
but they list DNF at 45€ and M2 at 33€.. both of which are worth <10€
 
they list at the original list prices, I guess
Retribution. I'm swinging back and forth on that
just finishing chaos
 
the THQ pack is nice.. if I hadnt bough COH already, I'd go for that package
 
11:15 AM
One of those packs would keep me a long time. I haven't even gotten around to playing some of the games I bought recently
and now that TF2 is free to play..
 
paradox pack seems nice too.. not sure about the games, but it sure is a big list
 
never played any of them. but majica has been hogging the limelight on steam these past months
Check the ID pack, maaan that brings back some memories!
 
hmm, i guess the summer sale wont ruin me as much as i thought on first glance
 
don't rush! wait for the other days too. The packs are there till the 10th
 
of those on sale for today i really only want witcher 2
 
11:21 AM
I'm going to buy Retribution
 
im currently playing gta4. after that i can still play gta4:episodes and i havent played Singularity, nor Crysis Warhead. If I buy Witcher 2 now, those will keep me busy until DragonAge2 Ultimate Box is on sale hopefully and by the time I finished that, there will be ME3 and then its February 2012 :D
oh. and btw, yes. this is the PHP channel :D
 
:D
 
@Gordon I was just about to ask! :)
 
Sure! We have problems using Steam Packages API with PHP.
 
it's just been hijacked for a bit!
my fault!
 
11:25 AM
@Robik i was wondering if there is a PHP lib for that
 
ME3 should be really good. Bioware have to deliver!
 
@Gordon If not i won't be bored anymore :P
 
btw, DA2 plays a lot different than DA1.
 
@JohnP yeah, ME1 and 2 are the best games i ever played. uber frigging awesome. so that sets expectations for ME3
@Pekka hi Pekka
 
@Gordon hi!
 
11:27 AM
@Pekka do you game?
Steam sale going on :)
 
@JohnP not for a long time, no
The last game I played was Age of Empires 2
Back in 2002 :)=
 
ahhh loved that! classic RTS
 
And Sudden Strike 2. That was cool
 
@JohnP heard about that.. but i want to buy it nonetheless. but after they released the ultimate box for da:o with awakening and all the dlcs i felt someone cheated because i bought all that. so this time i wait to see if they do it again
 
@JohnP yeah, that was great.
I may have time to play again once I have a new job and all, we'll see.
 
11:28 AM
@Gordon the game's still good. Quite long too, everytime you think it's about to end, a new Act begins
 
There are some nice games out, for sure.
 
The new Qunari models are crazy!
 
Let's change room name(and description)! :D
 
ok game bought! I'm done fanboying for the moment!
 
hmm. do i buy w2 now or do i speculate it will be even cheaper next month
damn.. buying games on steam is like stock market exchange .. just that you can be sure the prices will drop
 
11:39 AM
you could wait till W3 comes :P
 
i think that might be too long ;)
 
you could be this guy :D
 
@JohnP once you are past 30, you dont care about not being hip anymore ;)
 
I don't get part about 'cake is a lie'.
 
@Robik buy Portal
 
11:42 AM
@Gordon I'll need to wait a couple more years then :P
 
why am i not getting upvotes on stackoverflow.com/questions/6546759/…
 
+1
 
I did too. But the ideal answer would be yours and Hans' one combined
 
ahahaaaha! acronyms can come back to bite you in the backside ^_^
 
11:55 AM
Got an email today about a company looking for PHP/JS developers (with sencha).
Thought I'd pass it round.
 
@JohnP i just imagined the parents with that cod wrapped as a present giving it to the boy and he's like totally excited, unwrapping it.. just to see it's cod fish. ROFL
@Raynos thanks
 
It's an in office UK thing though. Which is a pain, might be able to get away with a telecommute.
 
> We are looking for a Sencha developer to produce an iPad friendly client portal for one of our existing web based software. The MySQL database schema and wireframes are already completed and need someone in our office in North West London, UK (if possible) for 3 weeks, to write a PHP API and develop the Sencha interface so it is modular and scalable.
no hint about pay though. i hate that.
i like transparent job offers. tell me what you expect from me and tell me what i can expect from you, which means joel rating and rough payment estimate
anyways.. since i wont get that firewall opened for me today, i can just as well declare the weekend open
 
I'm off for a beer as well
laters all. May your victories on the (gaming) battlefield be legendary!
 
12:10 PM
@JohnP enjoy. layers
 
@JohnP wish it were beer o'clock here too
 
@salathe less than two hours to go in my tz
 
@Gordon at least 6 here :(
 
posted on July 01, 2011

Popular posts from PHPDeveloper.org for the past week:Techie Talks Blog: Building Secured Web Applications Using PHP - The Basics Anthony Ferrara's Blog: In Response To: Building Secured Web Applications Using PHP - The Basics PHP.net: PHP Documentation Update Kevin Schroeder's Blog: Deployment beta for Zend Server 5.5 - Getting Started Bastien Labelle's Blog: Why PHP is So Much Better than Rub

 
nah, you are in britain and the rule is "kein bier vor vier", so it three hours for you ;)
germans are authority on beer, so you can use that rule and be good
 
12:15 PM
hehe, that would mean sneaking away early to go find beer
which sounds like a good idea
 
@salathe hehe, but finding beer (not that what you pretend it to be) in britain is a much bigger problem though :D
anyway.. laters from here too
 
waves
 
heloo
 
this is the moment we were waiting for
hello! hello.
Let's drink vine and dance with Torah!
Yom ve layla! Yom ve layla! Lalalala! lalalalalala!
 
12:25 PM
do u watch bollywood movies ?
 
Вы антесемит?
 
Dan
Can anyone offer a hand quickly?
 
@OOOMMM english please
 
Dan
I'm trying to parse a variable to preg_replace
for the regex
Its not working : \
 
looks like russian :)
 
12:28 PM
Privet!
 
Dan
no one?
$theContent = preg_replace('/'.$find_me.'/','The Replacement', $content);
 
@Dan What's the problem?
 
Dan
that code above
Its not working as expected,
Can you concatenate the regex?
 
Try using preg_quote on $find_me
 
Dan
I have never used that, I'll check it out.
 
12:31 PM
will php be taught in colleges any day ?
 
@Krish probably not on sundays, no
just kidding. :)
What do you mean? Whether it will be taught in the future, or whether it is being taught?
 
Dan
@Robik I'm getting a match for every word, for some reason
 
like c++ and java
 
Dan
@Robik Does this look ok to you? $theContent = preg_replace('/'.preg_quote($find_me).'/','The Replacement', $content);
 
var_dump $find_me
 
Dan
12:36 PM
@Robik Its only a string, should be easy?!
string(11) "Petersfield"
 
If you are not planing advanced replacement use str_replace instead
 
Dan
I did think about that, but this problem is more that likely to pop up again
with something more complex
I expect preg_replace is overkill for this?
 
If you are going to replace simple expressions use str_replace
preg_replace is more for advanced replacement
 
Dan
I've used preg_match, preg_match_all and preg_replace before.
 
@Dan when using preg_quote() always add in the delimiter as a second argument... any way, in your case why not just use str_replace() as @Robik suggested?
 
Dan
12:39 PM
I just haven't passed a variable for the regex
yeah, I will use str_replace
I'm not being difficult :P Just trying to learn
 
@Dan you're definitely not being difficult :)
 
Dan
No, I'm being a noob haha
My PHP isn't too bad, but could be better : \
lol
$theContent = str_replace($find_me,'The Replacement', $content);
whats wrong with that now?
 
I guess $content and $theContent ?
 
Dan
nah,
$content is the haystack
right?
 
Right
But if you are replacing more than once it won't work.
 
Dan
12:52 PM
$find_me = "Petersfield"
Won't it just do one?
Or not, if there is more than one match?
 
No, i mean:
$theContent = str_replace($find_me, 'The Replacement', $content); // Won't work
$theContent = str_replace($find_me2,'The Replacement', $content);
 
Dan
'This function returns a string or an array with all occurrences of search in subject replaced with the given replace value.'
When it says "all"
I'm getting lost, that conflicts with what your saying?
Or I just dont "get it"
 
dump findme, $theContent and $content
 
Dan
This works:
$theContent = str_replace('Petersfield','The Replacement', $content);
Is the same value : \
So why does a string work, and the variable doesn't?
They are exactly the same.
 
Are you sure?
 
Dan
12:56 PM
Positive
 
var_dump( $find_me === 'Petersfield' );
 
Dan
Petersfield
Thats an echo of the variable
I get paranoid on spelling haha
 
Maybe $find_me got whitespaces?
 
Dan
That returns true btw...
Yeah, good thought there...
 
try using trim($find_me)
 
Dan
12:58 PM
you know var_dump
that includes white space I assume?
 
no
 
Dan
lol ok
I'll trim then :P
 
$theContent = str_replace( trim($find_me), 'The Replacement', $content);
Nah, that's stupid :P
 
Dan
Hmm, I'm still poking around
This should take 5 seconds really.
lol
 
Can you show code (more) ?
 
Dan
1:02 PM
$find_me = trim(get_option('text_italics_data'));
function text_italics ($content) {
$match = preg_match_all('/guitar/', $content, $matches);

if($match) {
$theContent = str_replace($find_me,'The Replacement', $content);

} else {
$theContent = $content;

}
return $theContent;
}
don't worry about the preg_match"all regex
its true
it will be replaced as soon as this is working
 
omg!
 
Dan
what? bad?
 
function text_italics dont have acces to $find_me
 
Dan
smacks head.
 
Add new parameter which will contain $find_me or use global
 
Dan
1:06 PM
Literally : \
no, Ill parse it to the function
rather than global
how the fuck did I miss that :s
 
:P
BTW, if you are only checking if the guitar is in content use strpos instead
 
Dan
I just moved the variable inside the function....
works fine lol
this is for a WordPress plugin
I'm not sure how to parse the variable, I'm not calling the function
its a "filter" hook
 
Dan
1:43 PM
@Robik Looks like everything is working ok - Thanks for your time : )
 
Np :P
 
posted on July 01, 2011

On Elated.com today there's the fourth part of their series looking at object oriented programming in PHP. This time the focus is specifically on autoloading classes, making objects into strings (serialized) and introspection. If you've read all the articles up to this point then you're already familiar with the most important concepts of object-oriented programming in PHP: classes, objects

 
2:21 PM
hi...
i have a joomla question...
i want the users in my site to post ads in the site, but the users must pay some amount via paypal before posting an ad...
how can i go about this ?
 
2:59 PM
posted on July 01, 2011

In a sort of "remind himself later" kind of post, Chris Shiflett has shared a quick example of a common task PHP developers face sorting a multi-dimensional array. Every time I need to sort a multi-dimensional array in PHP, I have to remind myself how to do it. It's not quite as quick and easy to look up as most things, so I'm going to blog a quick example. I've always felt like there must

 
3:15 PM
posted on July 01, 2011 by Lukas Smith

At Liip "Symfony2" started in production a year earlier. Well I say "Symfony2" because it was just our internal framework OkAPI enhanced with the current crop of at the time PHP 5.2 Symfony components (actually we also included the symfony 1.x routing component). The results were so convincing that we decided to switch to Symfony2 entirely. The big feature back then and today is of course depen

 
I can't get that php webserver to run :(
 
Try to start Apache
 
no i mean the -S builtin webserver
does anyone know whether it works at all on windows?
 
@nikic what version are you running?
 
5.4.0a1
a prebuilt windows version
I can start the server
but I can't access any files
it gives me require() errors
 
3:33 PM
if you can start the server, you're doing better than me :)
 
Doesn't yet seem very mature, that feature
 
the PHP side of things has had very little testing, and I've no idea about the server code itself
it seems to be working fine on 5.4.0alpha2-dev
it doesn't like subfolders though
 
Where PHP webserver is storing files? I want to upload index.php and i don't know where should i paste it :P
 
@salathe Are there prebuilt win versions for a2-dev?
 
@nikic yeah, snapshots -- windows.php.net/snapshots
 
3:46 PM
hm
i just tried that
and didn't work either
 
at all?
 
well, exactly same situation
i start the server
but i can't access files
wow
seems like I can access static files
but no PHP files
PHP files already give me something simliar to:
Warning: Unknown: failed to open stream: No such file or directory in Unknown on line 0

Fatal error: Unknown: Failed opening required './stack/quick.php' (include_path='.;C:\php\pear') in Unknown on line 0
 
yeah that seems to be a problem, and has been reported already
 
has it?
 
can you run any php files in the "root" folder of the server (i.e. not "stack") ?
 
3:50 PM
I saw a report about require() but it seemed like a different issue
i'll try
wow
yes, i can
 
that's better than nothing :)
 
posted on July 01, 2011

In a new post to the Ibuildings techPortal today, Patrick van der Velden shares some of his thoughts about one of the presentations given at this year's Dutch PHP Conference - Think like an ant, distribute the workload. [Helgi's] presentation started off explaining to us why distributing can be a good thing by pointing out three significant aspects: budget, efficiency and perception. Budget

 
But still, the performance improvements in PHP 5.4 are really nice
Just tested an old array-variants benchmarking script and it got 7 times faster ^^
 
4:18 PM
posted on July 01, 2011

Mike Purcell has a recent post to his blog looking at the rumors of a Symfony 1.x fork and some of his own thoughts on the matter. It's amazing that we are even having this type of discussion. We opted to use Symfony back in 0.x for some high traffic projects. [...] And now here we are on 1.4. Content and happy with the throughput the dev team is able to maintain. But now Symonfy says that

 
@salathe Is the CS for docs ZF?
 
@nikic PEAR CS
 
thx
And if I find example codes not using it I should aggressively fix it?
 
@nikic perhaps not too aggressively, your keyboard might not like that
 
Should I also put a trailing comma in multiline array constructs? I could imagine it confuses people
 
5:26 PM
Is [6,6,6] array syntax supported already?
 
6:15 PM
hi all
 
@Robik no
 
 
2 hours later…
8:38 PM
preg_grep is very useful function just as an FYI
 
9:17 PM
posted on July 01, 2011 by Bradley Holt

Rasmus Lerdorf today posted instructions for testing the upcoming PHP 5.4 release. Running the PHP tests and submitting the associated report will help the PHP team get PHP 5.4 ready faster as it gives them reports of failed tests from a variety of platforms. I just did this today for the first time and can tell you that it is very easy. Following are the steps that Rasmus outlined, in a bit mo

 
04:00 - 11:0011:00 - 22:00

« first day (258 days earlier)      last day (4695 days later) »