Pesquisar na base de dados |
Pesquisar por categoria |
|
|
|
Ver artigos por categoria |
|
Não há sub-categorias
|
PHP
|
9 artigos encontrados neste categoria.:
Comprimindo seu HTML
<?php // start output buffer ob_start('compress_html'); ?> <!-- todo conteudo xhtml aqui --> <?php // end output buffer and echo the page content ob_end_flush(); // this function gets rid of tabs, line breaks, and white space function compress_html($compress) { $i = array('/>[ ...
Tempo de Execução do PHP
Ao realizar um projeto utilizando crontabs do Linux, precisei aumentar o tempo de execução do meu script para me assegurar caso o servidor estivesse configurado errado. Foi aí que encontrei a solução abaixo: ini_set('max_execution_time', 600); //600 segundos, v ...
Compressor HTML usando PHP
When we write code we love to format it nicely adding tabs, line breaks and indentations, but the end user isn’t interested in how lovely the source code is, they just want the page content, so this script strips out all the line breaks and spaces in your code and puts it on one line, comp ...
Comentários em PHP Ajax
Continuing with a rather ‘Ajax’ theme after the last few tutorials on here i thought I’d go the full way and show you how to create a 140 character php and ajax comments tool. We’re using jQuery to perform the ajax request and create the user experience. You can download ...
AutoComplete jQuery
I’ve been working on a lot of JavaScript and PHP projects at work recently which is one of the reasons why I haven’t written a post for the last week. During my many projects i had the need to use an ‘autosuggest’ script that would, in my case, get a list of 10 schools ba ...
Detectando Ajax Request com PHP
Here’s a quick piece of code that i find useful to check if a request that comes to a PHP page was made via an Ajax call or a simple form post. This method uses the $_SERVER['HTTP_X_REQUESTED_WITH'] request to determine if data was sent to a specific page using an xmlhttprequest. It’ ...
Autenticação HTTP PHP
Occasionally you may wish to make certain pages of your site only viewable to a select few. you can do this by using PHPs built in HTTP Authentication. The code needs to go right at the top of your php page so don’t get ‘Headers Already Sent’ errors. You can see that we’v ...
Paginação com PHP
I’ve had a few pagination scripts over the years but I thought i’d share the one that i’m currently using as it’s a useful script to have in your toolbox. As a developer you’ll soon find a need to paginate data when displaying contents from the database, and rather ...
Criando um gráfico animado com PHP e jQuery
Regular readers of Papermashup will have seen the post that I wrote last week on Easy Poll, the personal project that I launched a few weeks back that allows you to create a simple 2 answer poll that you can share and gather feedback on. You can read the post about it and check out easypoll.pap ...
|