Tu esta com o servidor ligado?<?
$titulo = "Titulo que quer";
?>
<title><? echo "$titulo"; ?></title>
[]´s
There have been 15 items by gregorytg (Search limited from 14/05/2023)
Posted by gregorytg on 21/03/2006, 23:09 in PHP
Perfeito!a bem da verdade, vc nao estava colocando as aspas adequada. Tente assim que vai dar certo tb:
<? $TagsCode = array("[ b]", "[ i]", "[ u]", "[ /b]", "[ /i]", "[ /u]"); $TagsHtml = array("<strong>", "<em>", "<u>", "</strong>", "</em>", "</u>"); $TextoHtml = str_replace($TagsCode, $TagsHtml, $Texto); ?>Percebeu a diferença??
PS. era só editar o último post..
Flws...
Posted by gregorytg on 21/03/2006, 22:08 in PHP
$TagsCode = array(”[ b]”, “[ i]”, “[ u]”, “[ /b]”, “[ /i]”, “[ /u]”);
$TagsHtml = array(”<strong>”, “<em>”, “<u>”, “</strong>”, “</em>”, “</u>”);
$TextoHtml = str_replace($TagsCode, $TagsHtml, $Texto);
Parse error: parse error, expecting `')'' in c:\apache\htdocs\show_noticia.php on line 58
58 = $TagsCode = array(”[ b]”, “[ i]”, “[ u]”, “[ /b]”, “[ /i]”, “[ /u]”);
Posted by gregorytg on 21/03/2006, 22:32 in PHP
$TagsCode = array('[ b]', '[ i]', '[ u]', '[ /b]', '[ /i]', '[ /u]');
$TagsHtml = array('<strong>', '<em>', '<u>', '</strong>', '</em>', '</u>');
$TextoHtml = str_replace($TagsCode, $TagsHtml, $Texto);
Posted by gregorytg on 21/03/2006, 11:30 in Adobe Flash e ActionScript
Posted by gregorytg on 16/02/2007, 23:25 in MySQL
Posted by gregorytg on 23/03/2006, 13:13 in Javascript / DOM / AJAX / ECMAScript
<? include("botoes_formatacao.php")?> <textarea name="texto" cols="30" rows="15" onselect=storeCaret(this); onclick=storeCaret(this); onkeyup=storeCaret(this);></textarea>botoes_formatacao
<script language="JavaScript"> function storeCaret(cursorPosition) { if (cursorPosition.createTextRange) cursorPosition.caretPos = document.selection.createRange().duplicate(); } function AddMessageCode(code, promptText, InsertText) { var elem=document.form.texto; var selecao = document.selection.createRange(); var texto = selecao.text; var caretPos = elem.caretPos; if (code != "") { if(texto=="") { insertCode = prompt(promptText + "\n<" + code + ">Seu texto aparecerá entre estas marcações</" + code + ">", InsertText); if ((insertCode != null) && (insertCode != "")){ document.form.texto.value += "<" + code + ">" + insertCode + "</" + code + ">"; } } else { caretPos.text = caretPos.text.charAt(caretPos.text.length - 1) == ' ' ? '<'+code+'>'+texto+'</'+code+'>' : '<'+code+'>'+texto+'</'+code+'>'; } } document.form.comentario.focus(); } function AddCode(code) { if ((code != "") && (code == "URL")) { insertText = prompt("Digite o texto que será linkado", ""); if ((insertText != null) && (insertText != "") && (code == "URL")){ insertCode = prompt("Digite o link (ele deve começar por http://. Exemplo: http://www.flogao.com.br)", "http://"); if ((insertCode != null) && (insertCode != "") && (insertCode != "http://")){ document.form.texto.value += "<a href=" + insertCode + " target=_blank>" + insertText + "</a>"; } } } if ((code != "") && (code == "EMAIL")) { insertText = prompt("Digite o texto que será linkado para um email", ""); if ((insertText != null) && (insertText != "")){ insertCode = prompt("Digite o endereço de email", ""); if ((insertCode != null) && (insertCode != "")){ document.form.texto.value += "<a href=mailto:" + insertCode + ">" + insertText + "</a>"; } } } } </script> <a href="javascript:AddMessageCode('b','Digite o texto a ser formatado em negrito', '');"><img src="imgs/bold.gif" alt="Negrito" width="23" height="22" border="0"></a> <a href="javascript:AddMessageCode('i','Digite o texto a ser formatado em itálico', '');"><img src="imgs/italic.gif" alt="Itálico" width="23" height="22" border="0"></a> <a href="javascript:AddMessageCode('u','Digite o texto a ser sublinhado', '');"><img src="imgs/underline.gif" alt="Sublinhado" width="23" height="22" border="0"></a> <a href="javascript:AddMessageCode('s','Digite o texto a ser riscado', '');"><img src="imgs/strike.gif" alt="Riscado" width="23" height="22" border="0"></a> <a href="javascript:AddMessageCode('sub','Digite o texto a aparecer subescrito', '');"><img src="imgs/sub.gif" alt="Subescrito" width="23" height="22" border="0"></a> <a href="javascript:AddMessageCode('sup','Digite o texto a aparecer sobrescrito', '');"><img src="imgs/sup.gif" alt="Sobrescrito" width="23" height="22" border="0"></a> <a href="javascript:AddMessageCode('tt','Digite o texto a ser formatado em teletype', '');"><img src="imgs/tele.gif" alt="Teletype font" width="23" height="22" border="0"></a> <a href="javascript:AddMessageCode('marquee','Digite o texto que quer que fique se movimentando na página', '');"><img src="imgs/move.gif" alt="Texto em movimento" width="23" height="22" border="0"></a> <a href="Javascript:AddCode('EMAIL');"><img src="imgs/email2.gif" alt="E-mail link" width="23" height="22" border="0"></a> <a href="Javascript:AddCode('URL');"><img src="imgs/url.gif" alt="Inserir Link" width="23" height="22" border="0"></a>
Posted by gregorytg on 24/03/2006, 18:33 in Javascript / DOM / AJAX / ECMAScript
Community Forum Software by IP.Board
Licensed to: Webmasters Online