html = ""; $this->html=$htmlcode; return true; } function LoadHTML($filename) { $this->html = ""; if (!file_exists ($filename)) { //return false; } //$filename="http://www.dynamick.it"; //echo $filename."
"; $fh = @fopen (trim($filename), "r"); if ($fh!=false) { //flock($fh,2); while (!feof ($fh)) { $buffer = fgets($fh, 10240); if ($buffer!="") { $this->html.=trim($buffer); } } //flock($fh,3); fclose($fh); return true; } else return false; } function GetElements(&$result) { if (count($this->elements)==0) { return false; $result=array(); } $result=$this->elements; return true; } function Parse() { $ignorechar = false; $intag = false; $tagdepth = 0; $line=""; $text=""; $tag=""; if ($this->html=="") { return false;} $raw = split ("\r\n", $this->html); while (list($key, $line) = each ($raw)) { $htmlline = htmlentities($line); if ($line=="") { continue; } $line = trim($line); for ($charsindex=0;$charsindex<=strlen($line);$charsindex++) { if ($ignorechar==true) { $ignorechar=false;} if (($line[$charsindex]=="<") && (!$intag)) { if ($text!="") { /* Found Text */ $this->elements[]=$text; $text=""; } $intag = true; } else if (($line[$charsindex]==">") && ($intag)) { $tag .=">"; /* Tag Found */ $this->elements[]=$tag; $ignorechar = true; $intag=false; $tag=""; } if ((!$ignorechar) && (!$intag)) { $text .= $line[$charsindex]; } else if ((!$ignorechar) && ($intag)) { $tag .= $line[$charsindex]; } } } return true; } function download($file_source, $file_target) { $rh = @fopen($file_source, 'rb'); $wh = fopen($file_target, 'wb'); if ($rh===false || $wh===false) { return true; } while (!feof($rh)) { if (fwrite($wh, fread($rh, 1024)) === FALSE) { echo 'Download error: Cannot write to file ('.$file_target.')'; return true; } } fclose($rh); fclose($wh); return false; } function getAttributes($html) { //preg_match_all('/(\w+\s*=\s*"[^"]*")*|(\w+\s*=\s*\'[^\']*\')*/',$html,$attr); $attrWithDblQuote='((\w+)\s*=\s*"([^"]*)")*'; $attrWithQuote='((\w+)\s*=\s*\'([^\']*)\')*'; $attrWithoutQuote='((\w+)\s*=(\w))*'; preg_match_all('/'.$attrWithDblQuote.'|'.$attrWithQuote.'|'.$attrWithoutQuote.'/',$html,$attr); //echo "#
";print_r($attr);echo "
"; if (is_array($attr)) foreach ($attr as $count=>$attrArr) { if (is_array($attrArr)) foreach ($attrArr as $i=>$a) { if ($a!="" and $count==2) $res[$a]=$attr[3][$i]; if ($a!="" and $count==5) $res[$a]=$attr[6][$i]; if ($a!="" and $count==8) $res[$a]=$attr[9][$i]; } } return $res; } function linkAnalyzer($url) { $regexp = "(([^:/?#]+):)?(//([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?"; $regexp = "(([^:/?#]+):)?(//([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?"; eregi($regexp,$url,$ret); $r["url"]=$url; $r["scheme"]=$ret[2]; $r["authority"]=$ret[4]; $r["path"]=$ret[5]; $r["query"]=$ret[7]; $r["fragment"]=$ret[9]; return $r; } function getTagResource($tag="a") { global $elements; $tag="<".$tag; while (list($key, $code) = each ($this->elements)){ if (strtolower(substr($code,0,strlen($tag)))==$tag) { $attribArr[]=$this->getAttributes($code); } } return $attribArr; } function includeImportCss($html,$path="",$level=1) { global $urlToGrabArr; preg_match_all('/@import\s[\"]*((http:\/\/[^\/]*){0,1}(.*?))[\"]{0,1};/i', $html,$result); //echo "

#".dirname($path)."#

";print_r($result);echo "
";die; if (is_array($result[3])) foreach ($result[3] as $k=>$v) { $url=dirname($path)."/".$result[3][$k]; //echo "url ricavato: $url
"; if ($this->url_exists($url)) { $css=@file_get_contents($url); //die ($css); $html=preg_replace('/@import\s[\"]*((http:\/\/[^\/]*){0,1}(.*?))[\"]{0,1};/i', $css, $html); //if (strstr($html,"@import")) $html=importCss($html,dirname($result[3][$k]),$level++); } } return $html; } function url_exists($url) { $handle = @fopen($url, "r"); if ($handle === false) return false; fclose($handle); return true; } } ?> Curriculum :: Farid Bielma Blog
Log in | Jump |

Farid Bielma Blog

Welcome to Farid Bielma Weblog, Just a Blog - Imagination is more Important than knowledge

About Farid Bielma Blog

Welcome to Farid Bielma Weblog, Just a Blog - Imagination is more Important than knowledge

Feed Subscriptions

RSS FeedRSS Things
RSS Comments

You can follow comments through the RSS 2.0 feed. Both comments and trackbacks are closed.

Datos Generales:

Estudios Profesionales:

No. de Cedula Profesional: 5459266 (ITESCO)

Estudios Complementarios:

2012 Diplomado en Alta Dirección. Tecnológico de Monterrey.
2012 Gobierno Electrónico. Organización de los Estados Americanos (OEA)

Experiencia Profesional (Con duracion mayor a un Año):

  • Para mayor referencia solicitar CV en extenso en PDF.

Actividades Profesionales Adicionales:

Courses as Speaker:

Course: Ubuntu Linux Hoary
Company: CMIC Coatzacoalcos
Address: Nicolas Bravo, esquina Quevedo, Coatzacoalcos, Ver.
……………………………………………………….
Course: Red Hat Enterprise Linux Es
Company: Computacion del Golfo
Address: Gonzalez Pages 1126, Veracruz, Ver.
……………………………………………………….
Course: Debian Linux 3.0
Company: Instituto Tecnologico Superior de Coatzacoalcos
Address: Antigua Minatitlan-Coatzacoalcos Km 16.5, Coatzacoalcos, Ver
……………………………………………………….

Premios y Reconocimientos:

Event: Concurso Nacional de Soluciones Empresariales
Place: First position.
Date: May 19 and 20, 2005. Jalapa, Veracruz,
Problem: Developed a sales point, the language to choose was PHP

Conferences:

All the information in reference to the material presented/displayed in conferences can find it in this link:

Toda el material y contenido de las Conferencias presentadas por Farid Alfredo Bielma Lopez, puede encontrarlo en este enlace:

Free Software talks - Farid Bielma Conferences.

Publications (ISBN):

(1) Bielma Lopez, Farid Alfredo. Cual es el Impacto del Software Libre en las Instituciones Educativas y en el Gobierno?. Memorias Congreso Global “Networking into the Future” 2 - Posglobalizacion: Las Instituciones de Educacion Superior antes la Sociedad / Economia del Conocimiento y el Gats. Pag. 90
ISBN 968-5469-04-0

Favorite book:

1. Hill Napoleon, Stone Clement. AMP: Un camino hacia el exito.
2. Sklar David. Essential PHP Tools: Modules, Extensions and Accelerators.
3. Oppenheimer Andrés. Basta de Historias, la obsesión latinoamericana con el pasado y las 12 claves del futuro.

This thing was constructed by .


You can follow comments through the RSS 2.0 feed. Both comments and trackbacks are closed.

Comments are currently closed