Warning: Undefined variable $blocks in /customers/c/9/8/wpin4.1prod.one/httpd.www/landing-v2/wp-content/themes/onecom-landing-page-v2/functions.php on line 1431 Warning: Trying to access array offset on value of type null in /customers/c/9/8/wpin4.1prod.one/httpd.www/landing-v2/wp-content/themes/onecom-landing-page-v2/functions.php on line 1431 Warning: Trying to access array offset on value of type null in /customers/c/9/8/wpin4.1prod.one/httpd.www/landing-v2/wp-content/themes/onecom-landing-page-v2/functions.php on line 1431 Deprecated: str_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated in /customers/c/9/8/wpin4.1prod.one/httpd.www/landing-v2/wp-content/themes/onecom-landing-page-v2/functions.php on line 1431 Warning: Undefined variable $blocks in /customers/c/9/8/wpin4.1prod.one/httpd.www/landing-v2/wp-content/themes/onecom-landing-page-v2/functions.php on line 1441 Warning: Trying to access array offset on value of type null in /customers/c/9/8/wpin4.1prod.one/httpd.www/landing-v2/wp-content/themes/onecom-landing-page-v2/functions.php on line 1441 Warning: Trying to access array offset on value of type null in /customers/c/9/8/wpin4.1prod.one/httpd.www/landing-v2/wp-content/themes/onecom-landing-page-v2/functions.php on line 1441 Deprecated: preg_match(): Passing null to parameter #2 ($subject) of type string is deprecated in /customers/c/9/8/wpin4.1prod.one/httpd.www/landing-v2/wp-content/themes/onecom-landing-page-v2/functions.php on line 1442 Warning: Undefined variable $blocks in /customers/c/9/8/wpin4.1prod.one/httpd.www/landing-v2/wp-content/themes/onecom-landing-page-v2/functions.php on line 1441 Warning: Trying to access array offset on value of type null in /customers/c/9/8/wpin4.1prod.one/httpd.www/landing-v2/wp-content/themes/onecom-landing-page-v2/functions.php on line 1441 Warning: Trying to access array offset on value of type null in /customers/c/9/8/wpin4.1prod.one/httpd.www/landing-v2/wp-content/themes/onecom-landing-page-v2/functions.php on line 1441 Deprecated: preg_match(): Passing null to parameter #2 ($subject) of type string is deprecated in /customers/c/9/8/wpin4.1prod.one/httpd.www/landing-v2/wp-content/themes/onecom-landing-page-v2/functions.php on line 1442 Warning: Undefined variable $blocks in /customers/c/9/8/wpin4.1prod.one/httpd.www/landing-v2/wp-content/themes/onecom-landing-page-v2/functions.php on line 1441 Warning: Trying to access array offset on value of type null in /customers/c/9/8/wpin4.1prod.one/httpd.www/landing-v2/wp-content/themes/onecom-landing-page-v2/functions.php on line 1441 Warning: Trying to access array offset on value of type null in /customers/c/9/8/wpin4.1prod.one/httpd.www/landing-v2/wp-content/themes/onecom-landing-page-v2/functions.php on line 1441 Deprecated: preg_match(): Passing null to parameter #2 ($subject) of type string is deprecated in /customers/c/9/8/wpin4.1prod.one/httpd.www/landing-v2/wp-content/themes/onecom-landing-page-v2/functions.php on line 1442 Warning: Undefined variable $blocks in /customers/c/9/8/wpin4.1prod.one/httpd.www/landing-v2/wp-content/themes/onecom-landing-page-v2/functions.php on line 1441 Warning: Trying to access array offset on value of type null in /customers/c/9/8/wpin4.1prod.one/httpd.www/landing-v2/wp-content/themes/onecom-landing-page-v2/functions.php on line 1441 Warning: Trying to access array offset on value of type null in /customers/c/9/8/wpin4.1prod.one/httpd.www/landing-v2/wp-content/themes/onecom-landing-page-v2/functions.php on line 1441 Deprecated: preg_match(): Passing null to parameter #2 ($subject) of type string is deprecated in /customers/c/9/8/wpin4.1prod.one/httpd.www/landing-v2/wp-content/themes/onecom-landing-page-v2/functions.php on line 1442 Warning: Undefined variable $blocks in /customers/c/9/8/wpin4.1prod.one/httpd.www/landing-v2/wp-content/themes/onecom-landing-page-v2/functions.php on line 1441 Warning: Trying to access array offset on value of type null in /customers/c/9/8/wpin4.1prod.one/httpd.www/landing-v2/wp-content/themes/onecom-landing-page-v2/functions.php on line 1441 Warning: Trying to access array offset on value of type null in /customers/c/9/8/wpin4.1prod.one/httpd.www/landing-v2/wp-content/themes/onecom-landing-page-v2/functions.php on line 1441 Deprecated: preg_match(): Passing null to parameter #2 ($subject) of type string is deprecated in /customers/c/9/8/wpin4.1prod.one/httpd.www/landing-v2/wp-content/themes/onecom-landing-page-v2/functions.php on line 1442 Warning: Undefined variable $blocks in /customers/c/9/8/wpin4.1prod.one/httpd.www/landing-v2/wp-content/themes/onecom-landing-page-v2/functions.php on line 1441 Warning: Trying to access array offset on value of type null in /customers/c/9/8/wpin4.1prod.one/httpd.www/landing-v2/wp-content/themes/onecom-landing-page-v2/functions.php on line 1441 Warning: Trying to access array offset on value of type null in /customers/c/9/8/wpin4.1prod.one/httpd.www/landing-v2/wp-content/themes/onecom-landing-page-v2/functions.php on line 1441 Deprecated: preg_match(): Passing null to parameter #2 ($subject) of type string is deprecated in /customers/c/9/8/wpin4.1prod.one/httpd.www/landing-v2/wp-content/themes/onecom-landing-page-v2/functions.php on line 1442 Warning: Undefined variable $blocks in /customers/c/9/8/wpin4.1prod.one/httpd.www/landing-v2/wp-content/themes/onecom-landing-page-v2/functions.php on line 1441 Warning: Trying to access array offset on value of type null in /customers/c/9/8/wpin4.1prod.one/httpd.www/landing-v2/wp-content/themes/onecom-landing-page-v2/functions.php on line 1441 Warning: Trying to access array offset on value of type null in /customers/c/9/8/wpin4.1prod.one/httpd.www/landing-v2/wp-content/themes/onecom-landing-page-v2/functions.php on line 1441 Deprecated: preg_match(): Passing null to parameter #2 ($subject) of type string is deprecated in /customers/c/9/8/wpin4.1prod.one/httpd.www/landing-v2/wp-content/themes/onecom-landing-page-v2/functions.php on line 1442 Warning: Undefined variable $blocks in /customers/c/9/8/wpin4.1prod.one/httpd.www/landing-v2/wp-content/themes/onecom-landing-page-v2/functions.php on line 1441 Warning: Trying to access array offset on value of type null in /customers/c/9/8/wpin4.1prod.one/httpd.www/landing-v2/wp-content/themes/onecom-landing-page-v2/functions.php on line 1441 Warning: Trying to access array offset on value of type null in /customers/c/9/8/wpin4.1prod.one/httpd.www/landing-v2/wp-content/themes/onecom-landing-page-v2/functions.php on line 1441 Deprecated: preg_match(): Passing null to parameter #2 ($subject) of type string is deprecated in /customers/c/9/8/wpin4.1prod.one/httpd.www/landing-v2/wp-content/themes/onecom-landing-page-v2/functions.php on line 1442 Warning: Undefined variable $blocks in /customers/c/9/8/wpin4.1prod.one/httpd.www/landing-v2/wp-content/themes/onecom-landing-page-v2/functions.php on line 1441 Warning: Trying to access array offset on value of type null in /customers/c/9/8/wpin4.1prod.one/httpd.www/landing-v2/wp-content/themes/onecom-landing-page-v2/functions.php on line 1441 Warning: Trying to access array offset on value of type null in /customers/c/9/8/wpin4.1prod.one/httpd.www/landing-v2/wp-content/themes/onecom-landing-page-v2/functions.php on line 1441 Deprecated: preg_match(): Passing null to parameter #2 ($subject) of type string is deprecated in /customers/c/9/8/wpin4.1prod.one/httpd.www/landing-v2/wp-content/themes/onecom-landing-page-v2/functions.php on line 1442 Warning: Undefined variable $blocks in /customers/c/9/8/wpin4.1prod.one/httpd.www/landing-v2/wp-content/themes/onecom-landing-page-v2/functions.php on line 1441 Warning: Trying to access array offset on value of type null in /customers/c/9/8/wpin4.1prod.one/httpd.www/landing-v2/wp-content/themes/onecom-landing-page-v2/functions.php on line 1441 Warning: Trying to access array offset on value of type null in /customers/c/9/8/wpin4.1prod.one/httpd.www/landing-v2/wp-content/themes/onecom-landing-page-v2/functions.php on line 1441 Deprecated: preg_match(): Passing null to parameter #2 ($subject) of type string is deprecated in /customers/c/9/8/wpin4.1prod.one/httpd.www/landing-v2/wp-content/themes/onecom-landing-page-v2/functions.php on line 1442 Warning: Undefined variable $blocks in /customers/c/9/8/wpin4.1prod.one/httpd.www/landing-v2/wp-content/themes/onecom-landing-page-v2/functions.php on line 1441 Warning: Trying to access array offset on value of type null in /customers/c/9/8/wpin4.1prod.one/httpd.www/landing-v2/wp-content/themes/onecom-landing-page-v2/functions.php on line 1441 Warning: Trying to access array offset on value of type null in /customers/c/9/8/wpin4.1prod.one/httpd.www/landing-v2/wp-content/themes/onecom-landing-page-v2/functions.php on line 1441 Deprecated: preg_match(): Passing null to parameter #2 ($subject) of type string is deprecated in /customers/c/9/8/wpin4.1prod.one/httpd.www/landing-v2/wp-content/themes/onecom-landing-page-v2/functions.php on line 1442 Warning: Undefined variable $blocks in /customers/c/9/8/wpin4.1prod.one/httpd.www/landing-v2/wp-content/themes/onecom-landing-page-v2/functions.php on line 1441 Warning: Trying to access array offset on value of type null in /customers/c/9/8/wpin4.1prod.one/httpd.www/landing-v2/wp-content/themes/onecom-landing-page-v2/functions.php on line 1441 Warning: Trying to access array offset on value of type null in /customers/c/9/8/wpin4.1prod.one/httpd.www/landing-v2/wp-content/themes/onecom-landing-page-v2/functions.php on line 1441 Deprecated: preg_match(): Passing null to parameter #2 ($subject) of type string is deprecated in /customers/c/9/8/wpin4.1prod.one/httpd.www/landing-v2/wp-content/themes/onecom-landing-page-v2/functions.php on line 1442 Warning: Undefined variable $blocks in /customers/c/9/8/wpin4.1prod.one/httpd.www/landing-v2/wp-content/themes/onecom-landing-page-v2/functions.php on line 1441 Warning: Trying to access array offset on value of type null in /customers/c/9/8/wpin4.1prod.one/httpd.www/landing-v2/wp-content/themes/onecom-landing-page-v2/functions.php on line 1441 Warning: Trying to access array offset on value of type null in /customers/c/9/8/wpin4.1prod.one/httpd.www/landing-v2/wp-content/themes/onecom-landing-page-v2/functions.php on line 1441 Deprecated: preg_match(): Passing null to parameter #2 ($subject) of type string is deprecated in /customers/c/9/8/wpin4.1prod.one/httpd.www/landing-v2/wp-content/themes/onecom-landing-page-v2/functions.php on line 1442 Warning: Undefined variable $blocks in /customers/c/9/8/wpin4.1prod.one/httpd.www/landing-v2/wp-content/themes/onecom-landing-page-v2/functions.php on line 1441 Warning: Trying to access array offset on value of type null in /customers/c/9/8/wpin4.1prod.one/httpd.www/landing-v2/wp-content/themes/onecom-landing-page-v2/functions.php on line 1441 Warning: Trying to access array offset on value of type null in /customers/c/9/8/wpin4.1prod.one/httpd.www/landing-v2/wp-content/themes/onecom-landing-page-v2/functions.php on line 1441 Deprecated: preg_match(): Passing null to parameter #2 ($subject) of type string is deprecated in /customers/c/9/8/wpin4.1prod.one/httpd.www/landing-v2/wp-content/themes/onecom-landing-page-v2/functions.php on line 1442 Warning: Undefined variable $blocks in /customers/c/9/8/wpin4.1prod.one/httpd.www/landing-v2/wp-content/themes/onecom-landing-page-v2/functions.php on line 1441 Warning: Trying to access array offset on value of type null in /customers/c/9/8/wpin4.1prod.one/httpd.www/landing-v2/wp-content/themes/onecom-landing-page-v2/functions.php on line 1441 Warning: Trying to access array offset on value of type null in /customers/c/9/8/wpin4.1prod.one/httpd.www/landing-v2/wp-content/themes/onecom-landing-page-v2/functions.php on line 1441 Deprecated: preg_match(): Passing null to parameter #2 ($subject) of type string is deprecated in /customers/c/9/8/wpin4.1prod.one/httpd.www/landing-v2/wp-content/themes/onecom-landing-page-v2/functions.php on line 1442 Warning: Undefined variable $blocks in /customers/c/9/8/wpin4.1prod.one/httpd.www/landing-v2/wp-content/themes/onecom-landing-page-v2/functions.php on line 1441 Warning: Trying to access array offset on value of type null in /customers/c/9/8/wpin4.1prod.one/httpd.www/landing-v2/wp-content/themes/onecom-landing-page-v2/functions.php on line 1441 Warning: Trying to access array offset on value of type null in /customers/c/9/8/wpin4.1prod.one/httpd.www/landing-v2/wp-content/themes/onecom-landing-page-v2/functions.php on line 1441 Deprecated: preg_match(): Passing null to parameter #2 ($subject) of type string is deprecated in /customers/c/9/8/wpin4.1prod.one/httpd.www/landing-v2/wp-content/themes/onecom-landing-page-v2/functions.php on line 1442

O que é PHP?

PHP é uma das linguagens de programação mais populares

PHP é uma linguagem de programação e significa Hypertext Preprocessor. É através da linguagem PHP, e de outras linguagens como o HTML, que podemos construir coisas na rede mundial. Além disso, o PHP é open source, o que significa que todos são livres de o utilizar. De facto, o PHP atingiu a sua popularidade ao liderar a tecnologia web open source. 

Um site criado usando HTML é chamado de site estático. Um site estático significa que verá sempre o mesmo conteúdo. HTML (linguagem HyperText Markup) é o código mais fundamental em que consistem as páginas da Internet. Embora o HTML seja utilizado até hoje, as tecnologias evoluíram, e existem outras linguagens capazes de muito mais do que o HTML. 

Por outro lado, um site dinâmico muda o seu conteúdo e adapta-se aos seus utilizadores através de várias formas de interação. Os sites dinâmicos podem ser criados utilizando a linguagem PHP. O utilizador pode interagir com o site de formas complexas. Por exemplo, pode adquirir um produto ou escrever uma mensagem – tudo possível devido a sites dinâmicos. Todos os sites consistem numa certa parte de código HTML. Isto é para fornecer ao navegador do visitante informações básicas sobre como o código fonte deve ser interpretado. Para além disso, o conteúdo deve ser dinâmico e gerado por scripts.  

Para que é usado o PHP?

Se alguma vez descarregou uma instalação WordPress, verá que existem vários ficheiros que terminam em .PHP. Isto acontece porque o WordPress utiliza ficheiros PHP e compreende a linguagem PHP. 

O PHP corre num servidor; assim, quando escreve um endereço web que deseja visitar, o PHP está a funcionar em segundo plano.   

Para poder comunicar com um computador, deve utilizar uma linguagem que o computador compreenda. O texto, o software, é chamado ‘código-fonte’. 

Uma das linguagens de programação mais populares é, de facto, o PHP. Se combinar a MariaDB com PHP, pode construir sites de todos os tipos de tamanhos. 

Os scripts PHP podem parecer incompreensíveis, mas têm um trabalho significativo. PHP tem o cuidado de transformar o código fonte nas páginas web que vê, cheias de texto, imagens, e outros conteúdos que nós humanos podemos ver e utilizar. 

Exemplos de PHP

No tópico do WordPress, quando está a tentar iniciar sessão no seu painel de controlo WordPress, o pedido de início de sessão é enviado para um servidor. O PHP falará com a base de dados e permitir-lhe-á iniciar sessão no seu painel de controlo. 

Outro exemplo, também relacionado com o WordPress, é que o PHP também descarrega o conteúdo de um site ou página que deseja visitar. Típicamente, todo o conteúdo é armazenado numa base de dados, mas com a ajuda da linguagem PHP, o PHP comunica com a base de dados para lhe permitir saber que o conteúdo é necessário. 

PHP hospedado com a one.com

O PHP hospedado com a one.com permite-lhe um site de fácil utilização e avançado. A nossa base de dados MariaDB e PHP constituem a combinação ideal para o desenvolvimento de sites variados, ricos em conteúdo, e que permitem experiências interativas para o utilizador. Além disso, a utilização destas ferramentas irá atrair e seduzir os clientes a passarem tempo no seu site, uma vez que está a envolver e a estimular o seu interesse, especialmente se tiver um site de comércio eletrónico. 

Tanto PHP como MariaDB estão incluídos em todas as assinaturas de espaço web com a one.com. 

A importância do PHP

PHP e MariaDB permitem-lhe criar uma loja web. Graças ao PHP, irá registar que alguém colocou um artigo num carrinho de compras. Além disso, PHP irá gerar código HTML, algum texto, e talvez alguns gráficos que lhe permitam ver um carrinho de compras na página de checkout. Finalmente, graças à linguagem PHP, podemos enviar um recibo a um cliente após efetuar uma compra.

Para poder utilizar PHP, necessita de uma base de dados para armazenar todos os seus dados. É por isso que oferecemos a MariaDB na one.com, eles trabalham perfeitamente em conjunto. 

Além disso, é a base de dados que armazena informações sobre todos os produtos/serviços adquiridos. Assim, a base de dados permite ao PHP reunir as informações necessárias e enviar recibos aos clientes.