|
|
|
Test your vacancy "Web programmer"It is necessary to solve at least one problem from each entry, the solution of all tasks is welcome! Deadline assignment: one week. The answer should send an e-mail: info@it-avenue.net with the theme "Vacancy programmer".If we satisfied with your test implementation tasks, we assign an interview, which discussed in detail the terms of cooperation. 1. PHP1.1 php-Write a script that would own conclusions code.1.2 b> Dan array of "patterns", each element of which is an associative array types: "Id" => "ParentId" => "Atribut" => "Text" => There is a need to write a recursive function, which returns the text obtained replacement attribute template with ID allocated as a parameter, "embedded" in the parent template, which in turn invested in its parent, etc. template to having no parents. Example array of patterns: $ templates = array ( array ( "Id" => 1, "ParentId" => 0, "Atribut "=>""," Text" => "The root template / <% TITLE%>") , array ( "Id" => 2, "ParentId" => 1, "Atribut "=>"<% TITLE %>"," Text" => "First podshablon <% CONTENT %>"), array ( "Id" => 3, "ParentId" => 1, "Atribut "=>"<% TITLE %>"," Text" => "Second podshablon <% CONTENT %>"), array ( "Id" => 4, "ParentId" => 2, "Atribut "=>"<% CONTENT %>"," Text "=>"< b> Template 4 b> "), array ( "Id" => 5, "ParentId" => 3, "Atribut "=>"<% CONTENT %>"," Text "=>"< b> Template 5 b> "), array ( "Id" => 6, "ParentId" => 2, "Atribut "=>"<% CONTENT %>"," Text "=>"< b> Template 6 b> "), array ( "Id" => 7, "ParentId" => 0, "Atribut "=>""," Text" => "The root template № 2") ) 2. PHP, MYSQL h2>
2.1 b> Dany 2 files with log.
Is welcome if it will work in browsers IE c 5.0 and above, firefox c 1.5 and above, Opera c 7.5 and above 3.2 b> Propose option DHTML-wood, working in IE5 and above, Netscape6 and above, firefox c 1.5 and above, Opera c 7.5 and above. Sites should be disclosed without the need to update your browser window. 4. APACHE h2>
4.1 b> There is a php script, vyvodyaschy values GET variable x var1, var2 and var3 lines of inquiry. There is a need to adjust Apache thus,
that when you enter in a string query index-var1-4.2 b> Using directives apache close access from the outside (the Internet) to a folder. Use file. Htaccess. |
|