- Fórum WMO
- → Viewing Profile: Tópicos: zafar
Community Stats
- Group Usuários
- Active Posts 12
- Profile Views 1337
- Member Title Novato no fórum
- Age Age Unknown
- Birthday Birthday Unknown
-
Sexo
Male
-
Localidade
Araguaina
0
Neutral
User Tools
Friends
zafar hasn't added any friends yet.
Topics I've Started
Criar Extensão Do Firefox
16/06/2011, 17:31
Tenho observado que existem milhares de plugins para o firefox na web, mas como eu faço para criar uma extensão?
Perl Ou Php
15/06/2011, 11:59
Estou pensando em programar um Script de Proxy mas gostaria de saber qual a liguagem que oferece mais recursos e desempenho? PHP tem o Curl, Perl tem a biblioteca LWP. Tipo tem que simular o Navegador, contar quantos bytes foram transferidos, mandar referencias, guardar cookies aquela coisa toda.
Template Ou Echo
09/12/2010, 17:58
Olá, preciso imprimir um texto na tela e esse texto tem uma variável chamada $url. Não sei se e melhor utilizar um echo que dá muito trabalho pois tenho que fazer linha por linha e ainda tomando cuidado com os caracteres especiais ou então usar um template. Alguém pode me ajudar a achar uma solução menos difícil?
O texto é esse abaixo.
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR...nsitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<meta http-equiv="refresh" content="1; URL=$url">
<title></title>
<style type="text/css">
html {
background: #000;
}
body {
background: #404040;
border: 1px solid #666;
color: #999;
font: 14px "Lucida Grande", "Lucida Sans Unicode", tahoma, verdana, arial, sans-serif;
margin: 5% 10%;
text-align: center;
}
a {
color: #FF8301;
}
h1 {
color: #EEE;
}
#container {
background: #292929;
line-height: 2.4;
padding: 1em;
}
p#url {
font-weight: bold;
overflow: hidden;
width: 100%;
}
</style>
</head>
<body>
<h1></h1>
<div id="container">
<p>Please wait while you're being redirected to ...<br />
In einer Sekunde geht es zu ...<br />
Espera mientras te redireccionamos a ...</p>
<p id="url"><a href="$url">$url</a></p>
<hr />
<p><a href=""></a></p>
</div>
</body>
</html>
O texto é esse abaixo.
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR...nsitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<meta http-equiv="refresh" content="1; URL=$url">
<title></title>
<style type="text/css">
html {
background: #000;
}
body {
background: #404040;
border: 1px solid #666;
color: #999;
font: 14px "Lucida Grande", "Lucida Sans Unicode", tahoma, verdana, arial, sans-serif;
margin: 5% 10%;
text-align: center;
}
a {
color: #FF8301;
}
h1 {
color: #EEE;
}
#container {
background: #292929;
line-height: 2.4;
padding: 1em;
}
p#url {
font-weight: bold;
overflow: hidden;
width: 100%;
}
</style>
</head>
<body>
<h1></h1>
<div id="container">
<p>Please wait while you're being redirected to ...<br />
In einer Sekunde geht es zu ...<br />
Espera mientras te redireccionamos a ...</p>
<p id="url"><a href="$url">$url</a></p>
<hr />
<p><a href=""></a></p>
</div>
</body>
</html>
Abortar
09/12/2010, 11:17
como faço para abortar a execução de script para que ele não continue a executar as linhas abaixo.
<?php
if ($x > 0) {
echo "$x é maior que 0";
//Quero que pare de executar o script aqui.
}
if ($x < 2) {
echo "$x é menor 2";
}
?>
<?php
if ($x > 0) {
echo "$x é maior que 0";
//Quero que pare de executar o script aqui.
}
if ($x < 2) {
echo "$x é menor 2";
}
?>
Duvida Php
08/12/2010, 08:51
Quero um script php que veja se uma variável tem o valor começado com tal texto.
por exemplo tenho a variável "abacaxilaranja"
se começar com abacaxi imprimi o texto abacaxi na tela.
por exemplo tenho a variável "abacaxilaranja"
se começar com abacaxi imprimi o texto abacaxi na tela.
- Fórum WMO
- → Viewing Profile: Tópicos: zafar
- Privacy Policy
- Regras ·