« first day (675 days earlier)      last day (4273 days later) » 

12:00 AM
<?php
mysql_connect("localhost", "root", "root");
mysql_select_db("some");

$result = mysql_query("SELECT * FROM `other`");
$i = 0;

while ($row = mysql_fetch_array($result, MYSQL_NUM)) {
echo "<tr><td>" . $row[$i++] . "</td>";
echo "<td>" . $row[$i++] . "</td>";
echo "<td>" . $row[$i++] . "</td>";
echo "<td>" . $row[$i++] . "</td>";
echo "<td>" . $row[$i++] . "</td>";
echo "<td>" . $row[$i++] . "</td></tr>";
}
?>
 
> This rate is non-refundable and cannot be changed or cancelled - if you do choose to change or cancel this booking you will not be refunded any of the payment.
 
$i isn't being accepted. It comes before the while loop and is declared as 0.
I am using an indexed array which starts at 0 but it seems like $i is being ignored.
 
@ircmaxell What's the purpose of cancelling if will not be refunded? :)
 
I echoed $i out. I seems like the indexed array starts at 1.
 
@W3Geek isn't MYSQL_ASSOC simplier?
@W3Geek And stop using DAMN MYSQL EXTENTION
 
12:07 AM
hey guys, can anyone guide me what to learn next on PHP ??
i learned OOP and CURL im looking for something new
of course i used many APIS like facebook/Youtube/Radio...
 
@user1558223 What is a static method?
 
that's used to add to the methods and properties to make it Static :P
 
Hrm, I'm not going to be in Munich for Oktoberfest. So plans change. Where to go first...
scratching Munich from the list of places to go
 
what i mean make it static is to call the method or prop without creating an object of the class :p
so guys any tip? im boared
 
@user1558223 MVC, MVP patterns?
 
12:12 AM
Frameworks?
 
@user1558223 No. Do you know what is MVC and MVP?
 
not really i think im going to learn :D
 
@user1558223 good luck
 
thanks
 
12:56 AM
Hrm, what to do, what to do
 
Has anyone used SOAP and RPC? I have a project requiring this and... well, I've never heard of SOAP. I've heard of RPC, but never used it. Any good reads on hand?
 
anyone versed in php and postgres mind taking a look at the following -> stackoverflow.com/questions/12047009/…
in a bit of a time crunch and hit a bit of a wall
 
@hookman haha I am fairly new to PHP and mySQL. I just want to experiment around with it. I know there is the oop approach also.
 
I've heard of bookings refunded over the telephone if its done quickly after the booking was made. (damn ' is near the enter key).
 
1:37 AM
Hrm, have a question for @NikiC tomorrow...
 
I can't figure out how to include an external Class into zend framework, I need to do an API integration. Can anyone help me understand namespaces and the autoloader function?

I have

Zend_Loader::loadFile('../library/API/AmazonECS.class.php', $dirs=null, $once=false);
$autoloader = Zend_Loader_Autoloader::getInstance();

class ShopController extends Zend_Controller_Action
{
}

The class name inside the amazon php file is AmazonECS , how would I call its functions in my controllers?
 
@Darius A class specifies the way an object is to behave. So, you don't call a classes functions. You call an objects functions (but its better to call these methods). So, like any method call you end up with: $object->methodName();
 
@Paul Alright, sorry about that. Do you know how I would call an objects function? I'm reading the documentation, and it doesn't seem to hook up, obviously I'm missing something.
I was hoping something along the lines of $amazon -> methodName();
 
an objects method: yes, like that.
 
I have my zend loader setup, and auto loader, what's missing? namespace?
 
1:49 AM
namespaces only affect the way you might need to instantiate it: $object = new \Full\Namespace\ObjectClass;
Its worth reading the manual, namespaces are pretty handy: php.net/manual/en/language.namespaces.php
 
Yeah, I've been reading it :\ Trying load class function now
 
Have a look at your error log to see if you are getting errors when you instantiate your class. Calling methods on an object just works like normal, so I think that is unlikely to be the issue.
 
Zend_Loader::loadClass('../library/API/AmazonECS.class',
array(
'../library/API/AmazonECS.class.php'
)
);
So was my original setup correct? I mean, it finds the file
I just don't know how to make it an object
so I could do $object -> functioninclass();
 
$object = new Classname;
$object = new \Full\Namespace\Classname($constructionParameter1, $etc);
 
Thank you, will try it now
 
2:05 AM
@Darius By the way, static is a way of writing OO code that is procedural. IMO, it takes away the benefits of OO. Thats just the Zend code that you are using too. There is a lot to learn if you want to write OO code in a way that is modular, testable and re-usable. If you do have some time, look for some articles on static and work out if you are happy with static.
 
Appreciate the help! Thank you
 
no worries, good luck
 
2:19 AM
@Paul evokePhp needs a super::$tatic, jquery and some moar codeigniter (:
 
@Lusitanian hehe, I'm waiting for a pull request, please let that never happen :)
 
you don't use yoda conditions ):
 
@Paul Do I need to load this for every action() i do now or is there a way to set it throughout the whole controller? $client = new classname($params,$etc); I'm used to setting stuff using init for view files, but never set a variable across the whole controller.
I'm sorry, I can see that my brain is making no sense, formal question. Is there a way I can set a variable across the whole controller? Anything i put above the controller name gets cancelled, anything I put in the init, gets cancelled, so I'm stuck it including it in every single page's call
 
@Darius I'd read up on this php.net/manual/en/language.oop5.php It will give you a better understanding of objects. I'm a bit unsure of what you mean, but I'm guessing you are looking for something that has global scope.
 
@Darius global scope is bad :)
 
2:26 AM
Probably global scope is what I am in need indeed.
 
Its important to understand the benefits of keeping your scope small. It limits the places where you need to look for problems.
 
@Lusitanian Why is global scope bad? In my situation i have a class name that always has the same paramaters being passed, it's an authentication for API
 
It makes your code untestable and you don't know where to look for errors.
Use dependency injection
Read up on SOLID as well
In computer programming, SOLID (Single responsibility, Open-closed, Liskov substitution, Interface segregation and Dependency inversion) is a mnemonic acronym introduced by Robert C. Martin in the early 2000s that stands for five basic principles of object-oriented programming and design. The principles when applied together intend to make it more likely that a programmer will create a system that is easy to maintain and extend over time. Overview {| class="wikitable" style="width: auto; font-size: 95%; table-layout: fixed; line-height:1.25; margin-left: auto; margin-right: auto;" |- ! In...
(I've probably posted that link 5 times in here)
 
I agree whole-heartedly with Lusitanian. There is a lot to learn when you start OOP. What is your current programming for (business or pleasure)?
 
To be honest it's optimistic business adventure
I'm doing it for myself
 
2:30 AM
Good code leads to better business
 
Agreed
I've been visiting these chats and reading up on stuff here and there and editing my code as I go. Today is a new breakthrough for me thanks to you guys.
 
when doing performance testing, do you get microtimes before and after the loop, then divide it by the amount of iterations? or do you do it within the loop, then at the end average all of the differences
 
I need to stop reading the stuff in the javascript room before I suffer a bad headache from too many
 
good, definitely read up on those things. Then start with something tiny. Don't do what you have in mind just yet. You'll be re-doing it 10 times if you don't read and practise first.
 
Also, don't use a framework [at first]
And if you do eventually use one...avoid CakePHP, CodeIgniter, FuelPHP, Laravel
um...there's more super-awful ones
Yii's moderately bad
Zend framework is pretty bad, symfony1 sucks and symfony2 is okay
but don't use any of them ;)
teach yourself some basic design patterns first and try implementing them
 
2:33 AM
@Nile do it outside the loop, otherwise it will effect the times.
 
okay, thanks
 
@Nile outside loop. out of curiosity, why not use xdebug?
 
@Lusitanian is that a class I can use? :D
 
no, it's a php extension
very powerful debugger/profiler
 
I see, thank you.
@Lusitanian are you a web designer?
 
2:36 AM
no
 
@Darius Without even writing code you can look at codereview.stackexchange.com to see some of the common suggestions for improving code. Or, once you have written some you can put it up for review too.
 
@Lusitanian ok
 
i'm pretty awful at design actually :( - no artistic talent
 
@Lusitanian lol, okay. just wanted to know :D
 
"nodejitsu" oh god my eyes
must leave js room
 
2:37 AM
yeah right, must delete all stupid js users: stackoverflow.com/questions/12
Look at the chosen answer vs. my answer
some people... -.-
 
@Paul Thank you. Why is Zend Framework bad? I've read here and there pluses and minuses and code igniter was said to be worse than ZF
 
@Nile where did you even answer that
 
there are only 3 answers... im in there
 
no there's like 20
 
oh! i must've deleted part of the query string
 
2:39 AM
@Darius I haven't looked at Zend Framework lately, but I don't like all of the static in it.
 
@Lusitanian Look at the comments also.
> i don't prefer attaching a handler to every child element! just attach to the parent and check on the id !
 
@Paul Hmm, I guess I will see when I hit a limit with it, and see where it prevents me from doing what i need it to :D. Again, thank you all. I finally got everything working.
 
he's really still using a handler...
 
Mic
Goodmorning guys
 
2:41 AM
morning
 
Mic
@Lusitanian, goodmorning
 
@webarto universal greeting time in action
 
Mic
@Lusitanian, goodmorning
 
@rdlowrey Bad day?
 
 
2 hours later…
4:41 AM
0
Q: How to parse an array from XML file

DariusI have an XML file after doing VAR_DUMP() this is what it returns ["EditorialReviews"]=> object(stdClass)#120 (1) { ["EditorialReview"]=> array(2) { [0]=> object(stdClass)#121 (3) { ["Source"]=> string(19) "Product De...

 
4:57 AM
morning
 
morning all
morning @tereško
 
posted on August 21, 2012 by Cal Evans

Blog: http://emsmith.net/ Twitter: @auroraeosrose Show Notes: http://phpmentoring.org/ http://codeconnexx.com/   Sponsored by: Engine Yard

 
Mic
5:44 AM
Goodafternoon guys, how can i tag my question here?
\
0
Q: How to add a key pointing to a new set of arrays PHP

MicI have data here: Here's the result of my first function.The variable I used for the result was $this->arrays. Array ( [1] => Array //Transactiondetails of SiteID 1 ( [SiteID] => 1 [Balance] => 2000 [MinBalance] => 1000 [MaxBalance] => 500 ...

Please help :)
 
 
1 hour later…
7:11 AM
its a govt worker strike here.. is it the same everywhere else? Gawd its quiet here today..
 
it's holiday here. .
 
Sam
@ShyamK hi
 
@tomexsans here where? what reason?
@Sam heya
 
Sam
@ShyamK how's it going?
@tomexsans hi
 
@Sam dull day.. no work.. felling a little sleepy..
 
Sam
7:18 AM
lol.....so sleep
 
@ShyamK islam celebration . . i forgot what they call it. .
@Sam, hi sam . .
 
how are things on your side @Sam
@Sam need a bed.. and I forgot my pillow at home ;)
 
Sam
not bad......just watching a rerun of Seinfeld, preparing for bed
 
@tomexsans eid-ul-fitr
 
Sam
lol.....you don't need a bed
all you need is a blanket
and a quiet space
 
7:19 AM
@Sam well I get back problems.. if I sleep upright...
 
Sam
ur PHP book will act as your pillow
 
@ShyamK, yah haha thats what it is. . .
 
Sam
oh ok......sorry then
I can sleep anywhere through any noise and light
:-D
 
@Sam lucky you.. I can sleep in any situation as long as i feel sleepy :D ... but a lil sleepy doesn't let me go to sleep.. atleast not yet :)
 
Sam
are you allowed to sleep in the office? is that part of your perks? :-P
 
7:23 AM
@tomexsans hmm.. I thought it fell on Sunday/Monday... well its on Monday here.. wait!! is it still Monday where you are?
@Sam nope.. :P
 
@ShyamK, Philipinnes, i don't know why but i think they extended it :D
 
Sam
alright then.....wait till you get home
 
*philippines
i always mess that up
 
ya... thing is its morning here.. and I feel sleepy through the morning.. night times, not so much...
 
Sam
rough night?
 
7:26 AM
Insomia?? count sheeps
 
@tomexsans well I din't know the difference until you pointed it out..
@tomexsans ya.. tried that couple of times.. lose count at around 150 sheep..
then I start over :D
 
Sem
Good morning
 
Lol me i put them inside an array and use count(), but i forgot i don't have a compiler so i lose count to hehehe
@sem Morning
 
@Sam nah.. Just got used to sleeping in the morning more. used to stay up till around 4-5am gaming and what not..
@tomexsans haha
 
can you give me some nice tutorials on python and wpx incase you may know,where to start
 
7:28 AM
@Sem morning :D
 
thanks @sam. yup this is one of my favorite sites, but i was thinking of a video cause my eyes cant read to much
 
Sam
lol......I haven't used any videos.......but you can try youtube
 
@tereško, well this is nice. . . thanks i'll check it out .
 
7:32 AM
morning all
 
yay
 
Sam
thanks, @teresko.......that's quite a useful link
 
morning all
 
@tereško nice.. thanks for that link..
 
@tereško, Nice nice
 
Sem
7:34 AM
@tereško Starred, love interactive tutorials!
 
@PeeHaa, @hookman Morning
 
Sem
@PeeHaa Goede morgen
 
Sam
@Sem interactive ones are the best.......
 
yep.. interactive is better than reading books (they have their purpose)
 
Please review the use of split() in this answer: stackoverflow.com/a/12046280/508666
 
7:37 AM
dunno .. some of javascript tutorials there are just horribly made.
 
yesterday, by tereško
if you store templates in database , you might need to visit a specialist
lol
made my day
 
good morning
 
user1125394
Hi people, is JSON.stringify the JS equivalenrt os json_encode, it seems the encoding is not done the same
 
user1125394
json_encode(array("text"=>"tereško")) gives {"text":"tere\u0161ko"}
 
user1125394
JSON.stringify({'text':'tereško'}) gives {"text":"tereško"}
 
user1125394
7:46 AM
JSON.stringify({'text':encodeURIComponent('tereško')}) gives {"text":"tere%C5%A1ko"}
 
user1125394
can't get the equivalent behaviour
 
2 API/calls to amazon for product xml file take 2-4 seconds, that normal? Is there a way to speed up the requests?
 
user1125394
asking that in JS chat sry....
 
Caching seems to be against terms of service for Amazon, am i mistaken
 
user1125394
'cause I'm posting using JS, and reading using Php
 
7:54 AM
salathe, Edinburgh, United Kingdom
15k 2 17 40
 
user1125394
I don't think url_decode('tere%C5%A1ko') would work
 
15,000 points today :)
 
@salathe gratz!
 
@salathe Congrats!
 
and what's with the tags there ?!?
 
7:59 AM
0
Q: parsing external xml in wordpress using cache

SharmajiI got a maintainance project in wordpress and I need to parse external xml. Previous developer has already implemented this. I just wanted to know whether it is a good way or I need to use my own. He is caching the xml in a json file which cached for 5 min. He asked me to call it using ajax and ...

please give some guideline
 
8:10 AM
@tereško Is there a way to speed up API calls? Server setting or anything to send 2 http requests simultaneously?
 
What does $smtm->store_result() do?
The manual makes no sense about this? Why do you have to store_result() after execution?
 
@Darius , that's a very vague question ..
 
@tereško I'm sending API calls to Amazon's product catalog and another to get related products. It's taking 2-6 seconds to get an answer at times. If I take one out it drops to ~2 seconds. So doing both takes longer, is there a way to request both at the same time. So I don't have to wait for one reply, then again for another reply.
 
@Darius please have a look at my question.
 
@Darius , you will have to ask @rdlowrey that
 
8:15 AM
@Sharmaji I'm no expert at this stuff, just starting out with API calls myself. In my noob, inexperienced opinion, I think it's ok. Only question is, what happens if the cache expires and you can't get any results, will it run the query again and set a new cache? If it does, then I don't really see a problem.
@tereško Alright, thank you.
 
I know you have to prepare, bind_params, execute... but why store results? It makes not sense to me. :/
 
Store results in cache to reduce server load for the same old content
if it's setup correctly, it'll check cache for the content you're looking for, and if it's in cache it should prevent another database call or w/e.
and use what you have from cache.
 
@Darius Okay that makes a bit more sense. So $stmt refers to that cache and you can use num_rows, ect without calling back to the database over and over?
 
Looking at
require 'api_cache/api_cache.php';
$cache_file = 'jsonfile';
$api_call ='xmlfile';
$cache_for = 5;
$api_cache = new API_cache ($api_call, $cache_for, $cache_file);

if (!$res = $api_cache->get_api_cache()) {
$res = "{error: 'Could not load cache'}";
}
ob_start();
echo $res;
$json_body = ob_get_clean();

header('Content-Type: application/json');
header('Content-length: '.strlen($json_body));
header('Expires: '.$api_cache->get_expires_datetime());
echo $json_body;
 
That makes no sense to me. I am completely a newbie when it comes to PHP. I know most of the constructs, datatypes, and objects.
 
8:21 AM
Require loads the class, then it stores the names of the stuff in the variables, the api_cache = new API_Cache ($variables, etc etc) calls the cached file if it exists, if it doesn't throw an error, then idk what ob_start(); is, that's where my smarts end. I've never dealt with this before.
 
In my site I need to give questions to, for example, 8 user and after this users send responses, and site need to process each user, and leave in the system 6 from 8 according to results and time to answer, and it goes on, while only one leave, how I can realize this? Is there some examples?
 
@W3Geek Wish I could be of more help, sorry.
 
It is okay. If I continue to study this language I will become more advanced with it. I kinda see what it does. But I don't really get how it deals with the store_results method?
 
@Darius No Problem Darius Thanks....
 
@W3Geek as i understand it , it is used when you want to manipulate mysqli_result directly.
but i have never used MySQLi in serious application, therefore i cannot tell why it would be a good or bad idea .. i prefer to use PDO
 
8:33 AM
It seems as if num_rows won't work without store_result set first.
 
lie
 
@W3Geek , thats bullshit
 
good morning
 
<?php
$id = 1;
$mysqli = new mysqli("localhost", "root", "root", "exam") or die("Error");

$smtm = $mysqli->prepare("SELECT * FROM employees WHERE id = ?");
$smtm->bind_param("i", $id);
$smtm->execute();

echo $smtm->num_rows;
?> This echos 0
<?php
$id = 1;
$mysqli = new mysqli("localhost", "root", "root", "exam") or die("Error");

$smtm = $mysqli->prepare("SELECT * FROM employees WHERE id = ?");
$smtm->bind_param("i", $id);
$smtm->execute();
$smtm->store_result();
echo $smtm->num_rows;
?> This echos 1
Its like it must store the result before echoing num_rows or it forgets.
I tried putting it before the execute(); but it still doesn't work.
 
what the funk is $smtm, and just funking use PDO :)
 
8:39 AM
$stmt is just short for statement - php.net/manual/en/mysqli-stmt.store-result.php
 
for mysqli prepared statements you have to use to be able to read num_rows, php.net/manual/en/mysqli-stmt.store-result.php
yes, but $smtm =/= $stmt
 
Oops, typo. xD I don't know why the documentation has to be a pain to read.
Where does it say that?
 
can someone answer to my question?
 
@test1604 we cannot understand it .. thus we cannot answer it
 
@tereško can you please check at myquestion ?
0
Q: parsing external xml in wordpress using cache

SharmajiI got a maintainance project in wordpress and I need to parse external xml. Previous developer has already implemented this. I just wanted to know whether it is a good way or I need to use my own. He is caching the xml in a json file which cached for 5 min. He asked me to call it using ajax and ...

 
8:51 AM
From my site I show users question and I need to detect when the request come, and process answers simultaniously and delete users who answer wrong and for a long time, how can I make a delay for a time, while requests will be proceeded?
 
@Jocelyn please have a look at my question. posted 1 hour ago. please
 
user1125394
why this doesn't work $a = array("59745506"=>array("up" => 0,));
$b = array("59745506"=>array("text" => "jfrj"));
$c = array_merge_recursive($a, $b);
 
user1125394
but this does $a = array("59745506AA"=>array("up" => 0,));
$b = array("59745506AA"=>array("text" => "jfrj"));
$c = array_merge_recursive($a, $b);
 
user1125394
how could I make the first one work (I have int keys)
 
@test1604 I still don't understand the question
Could you try to rephrase?
 
9:02 AM
@Truth Please have a look at my question. Asked 1 hour ago
 
@Sharmaji I'm not very good with Wordpress, XML, or cache, so you may want to wait for someone else :)
 
@Truth Oh..thanks for replying.. :) but this is not something related to wordpress you can please see as core.
 
@Sharmaji Try to edit the question when you get new details, it will bump it up to the top of the list, if within 2 days you get no answer, speak up here and maybe someone will sponsor you with a bounty.
I'll give it a shot.
 
@Truth I edited the question Truth. Thank you very much for your help.
 
user1125394
tried this
 
user1125394
9:06 AM
function array_merge_recursive_new() {

$arrays = func_get_args();
$base = array_shift($arrays);

foreach ($arrays as $array) {
reset($base); //important
while (list($key, $value) = @each($array)) {
if (is_array($value) && @is_array($base[$key])) {
$base[$key] = array_merge_recursive_new($base[$key], $value);
} else {
$base[$key] = $value;
}
}
}

return $base;
}
 
user1125394
from php.net/manual/en/function.array-merge-recursive.php but it's not perfectly working
 
Hello,
 
user1125394
ok I'm gonna post a question for this stuff
 
@Truth I want to process list of users' requests simultamiously, and delete some of them from the list, for example I have a question and need to show them it in one time, after their answers to select only them who answered right, is it possible?
 
I see the code for the cache retrieval, but not the code where the cache is generated, could you post the relevant method for API_cache that shows how the file is retrieved and cached? — Truth 46 secs ago
 
9:09 AM
Yes, I can post the same. but this is a library file for making a cache json file from profilepicture.co.uk/caching-api-responses-php
 
quick question, I visited the chat room the other day to ask a question regarding mysql queries and I was told the method I was using to query the data base was old and no longer supported and I should investigate one of the two new supported methods. I cant remember what they were and I wanted to spend the morning having a mess about with them, Any ideas what they are?? it was something like BDB
 
@test1604 Sorry mate, I still don't understand :P Try to place an example or pseudo code for your problem, if english isn't your strongest language.
Please, don't use mysql_* functions to write new code. They are no longer maintained and the community has begun deprecation process. See the red box? Instead you should learn about prepared statements and use either PDO or MySQLi. If you can't decide which, this article will help you. If you pick PDO, here is good tutorial.
@MichaelKing This comment probably?
 
@Truth All this is working fine. This is creating a json file but Just want to be sure that is this way good. like we get the xml, create json from it and then parse the json for showing results.
 
Thats it Truth your a star! were did you find that chat log?
 
@Truth ), I can show you prototype game on site conquiztador.ru
 
9:11 AM
moarnings
 
morgens
 
Good Morning @NikiC
 
morning @NikiC!
@Sharmaji I get hungry when I see your name
 
Heh, why the f has reddit.com/r/PHP/comments/yixlv/… 50 upvotes :/
 
@PeeHaa haha
 
9:15 AM
@Truth but this is on russian language, the main idea is that three users receive a question and given a time for which they must answer, all is online, if user answers right and answers first he wins and take 1000 points, second take 500 but last nothig, if all right, but if answer is wrong takes nothing
 
@MichaelKing I have it saved using a plugin
 
@PeeHaa can you please have a look at my question ?
 
@test1604 Seems simple enough, it is possible, yes.
@Sharmaji I've answered it.
@test1604 When an answer is received, you check if it's correct, if it is, you check if someone else had answered it correctly before, and award appropriately, then you save the fact that the user answered correctly, and wait for the rest of the users.
 
@Sharmaji link?
 
@Truth It is made on flash, but how can I realize on php, I think, that I need an Ajax, for simultanious, is it right?
 
9:18 AM
@test1604 Ajax is client side, it's JavaScript
I've told you what you need to do in PHP just now
1 min ago, by Truth
@test1604 When an answer is received, you check if it's correct, if it is, you check if someone else had answered it correctly before, and award appropriately, then you save the fact that the user answered correctly, and wait for the rest of the users.
 
user1125394
0
Q: php array_merge_recursive preserving numeric keys

cyrilI would simply like to merge $a = array("59745506"=>array("up" => 0,)); $b = array("59745506"=>array("text" => "jfrj")); $c = array_merge_recursive_new($a, $b); result: Array ( [0] => Array ( [up] => 0 ) [1] => Array ( ...

 
@Truth Thanks for answer, also I want to show results of users' answers at the end of result, when user select answer, so how can I realize a delay, for which results will be proceed?
 
@Truth : Love you :) :)
 
@Sharmaji ;)
@test1604 I don't understand, you want to show the ranking after all users finished answering?
 
9:23 AM
@Truth Yes, show all earned points
 
@test1604 , maybe you better try to ask this in some local development forums. You are not able to express yourself in english.
 
:) thank you very much
 
@test1604 In that case, you want to have your users check periodically if everyone finished answering, and if so, display the results to them.
But as @tereško stated, it may be more useful to you to ask in some forum in your own language.
 
@Truth Thank you
 
user1125394
9:38 AM
@salathe thx
 
@cyril np :)
 
user1125394
why the f.. php has so many functions array_replace_recursive array_megee_recursive
 
@cyril heh yeah, it's even more weird when the functions behave differently based on the type of the array keys!
 
*edits wiki* "Status: Rejected"
 
9:42 AM
so unset($array['key']); is overkill... ? array_search, great...
lol, so array_delete_value() and array_delete_key() should be introduced... to add up to confusion...
 
@webarto and array_delete_values() and array_delete_keys() and array_delete_values_strict() and ...
 
@salathe :) all you need is loops :)
 
@salathe Hm, I think I'll write a mail to internals proposing 20 new array functions
maybe it helps
 
a round of 20 array_* functions at least :)
 
yes
It will be hard coming up with so many
but I can probably think of some :P
 
9:51 AM
yes, we can search through SO and find some unusual/rare/odd cases... asked by user* :)
 
@NikiC or one function with a mega-bitmask of flags :)
Don't forget we need functions/flags for whether to re-index numerical arrays or not.
Oh gosh, and all of the array_add_*() to complement the deletes.
 
heh, i can't think of that many functions ^^
 
hey guys ... been thinking again
you know how it is a common practice to separate the authentication details from user profile data in database
i was thinking about using the same type of separation in model layer
but does the authentication details belong to user profile or other way around ?
 
@NikiC WTF 2 the max. But thx for the link. :)
 

« first day (675 days earlier)      last day (4273 days later) »