Ir para conteúdo
Fórum Script Brasil

skolroots

Membros
  • Total de itens

    298
  • Registro em

  • Última visita

Tudo que skolroots postou

  1. cara...eu não vi janela nenhuma ali... mas sei que isso se faz com camadas... pelo dreamweaver é bem fácil de fazê... mas se tu quiser ih pro "braço" é com javascript e html vlw
  2. skolroots

    Problema Com Serv-n

    cara... tenta instalá o phpmyadmin... foi assim que eu fiz aqui em casa...depois é só atualizá o php, mysqle phpmyadmin em suas respectivas páginas! vlw!
  3. skolroots

    Problemas Com Upload

    velho...tenta coloca o endereço completo... eu fui fazê um esquema igual, mas com imagens...aí não deu porque tava usando o endereço relativo, que nem tu... aí boteio endereço completo e funcionô.. tem uam função do php que pega o endereço real.. realPath eu acho... depois ainda tive outro problema...pois meu pc é windows e o servidor era linux...aí tinha um endereçamento diferente...mas aí bombô! vlw
  4. skolroots

    Rss...como?

    já deu uma olhada no site da UOL?!?!
  5. skolroots

    Access Para Mysql

    tenta exportá o sql do access... aí depois tu roda no phpmyadmin
  6. skolroots

    Update Script

    da uma olhada nos campos que são do tipo integer.... aí não vai ''(aspas simples) tipo... WHERE id='" . $_POST['ud_id'] . "'"; se esse campo é inteiro...deixa ele assim: WHERE id= . $_POST['ud_id] . ";"; vlw
  7. skolroots

    Albúm De Fotos

    dá uma olhada no http://www.phpbrasil.com.br
  8. skolroots

    Socorro, Por Favor !

    me add aí no MSN...aí eu posso te dáuma mão... giovanimarin@hotmail.com vlw
  9. skolroots

    Socorro, Por Favor !

    porque tu não bota todos dados da página em cookies? aí tu pode atualizaá... bjo
  10. ehh...com o select tu aproveita o valor que o cara escolhê! vai lá...
  11. velho..acho que ninguém te respondeu porque tem um monte de tópico sobre isso... dá uma pesquisada no forum aí! vlw!
  12. skolroots

    Hospedagem Gratis

    cara...tem um de 1 pila por mês...bem bom! tu deposia 5 pila...é servodor por 5 meses...rsrsrs dá uma olhada aí! www.fhost.com.br
  13. mas leo...será que assim ele não vai concaterná o valor do campo de texto? eu acho que tu vai tê que botá um menu suspenso pra cada pasta...são muitas?
  14. skolroots

    Loop Automatico ?

    cara...creio que está fazendo desordenado...porque tuas tag's de title, head...estão dentro do loop... em toda tabela porque na consulta tu faz select * from... o * traaz todos campos da tabela.. e a tua variável $x...é uma array? de onde ela vem...a condição pode estar cm problema...problema de lógica... falou!
  15. skolroots

    Socorro, Por Favor !

    faz assim ó...o campo de cidade...carregar de acordo com o valor que tiver na cookies X. se tiver vazia...aparece pra escolher...e quando escolher um estado...ele carrega e armazena nessa cookie o estado... depois... quando tu carregar, ou coltar denovo...ele vai verificar dessa cookie denovo...que ai ter o valor do estado...aí carrega denovo... tendeu?
  16. cara...desculpa a demora...é que esqueci...mas está aí! <?php /** * E-Mail class * * <p>RFCS:</p> * <pre> * {@link http://www.rfc-editor.org/rfc/rfc2822.txt RFC2822} - Mail headers and body formatting * </pre> * * @author Sérgio Surkamp <sergio@empreendedor.com.br> * @package util */ /** * E-Mail class * * <p>RFCS:</p> * <pre> * {@link http://www.rfc-editor.org/rfc/rfc2822.txt RFC2822} - Mail headers and body formatting * </pre> * * @author Sérgio Surkamp <sergio@empreendedor.com.br> * @version 1.0.2 * @package util * @todo Implement the priority level system * @todo Implement and test the CC and BCC system * @todo Implement attachFromFile method * @todo Implement external mimetype class * @todo Implement external charset class * @todo Rewrite the {@link Mail::send()} method */ class Mail { /** * @var array $to Array of recipments */ private $to = array(); /** * @var array $cc Array of mail Carbon Copy */ private $cc = array(); /** * @var array $bcc Array of mail Blind Carbon Copy */ private $bcc = array(); /** * @var array $file Array of files */ private $file = array(); /** * @var string $fromEmail Email from... */ private $from = null; /** * @var string $fromStr String for the mail from... */ private $fromString = null; /** * @var string $subject Mail subject */ private $subject = null; /** * @var string $message Mail message */ private $message = null; /** * @var string $contentType Mime of the content type */ private $contentType = Mail::MIME_TEXT_HTML; /** * @var string $charset Character set */ private $charset = 'ISO-8859-1'; /** * @var int $priority Mail priority */ private $priority = Mail::PRIORITY_NORMAL; /**#@+ * Constante */ const MIME_TEXT_HTML = 'text/html'; const MIME_TEXT_PLAIN = 'text/plain'; const MIME_MULTIPART_MIXED = 'multipart/mixed'; const MIME_MULTIPART_ALTERNATIVE = 'multipart/alternative'; const PRIORITY_HIGHEST = 1; const PRIORITY_HIGH = 2; const PRIORITY_NORMAL = 3; const PRIORITY_LOW = 4; const PRIORITY_LOWEST = 5; /**#@-*/ /** * Construtor * * @author Sérgio Surkamp <sergio@empreendedor.com.br> * @since 1.0.0 * @param string $from String of the from mail * @param array $to Array of recipments * @param string $subject Message subject * @param string $message Message * @param string $fromString String for the from mail * @param array $cc Array of copy * @param array $bcc Array of back copy */ function __construct($from, $to, $subject, $message, $fromString = null, $cc = null, $bcc = null) { $this->from = $from; $this->fromString = $fromString; $this->subject = $subject; $this->message = $message; if( is_array($to) ) { $this->to = $to; } else { $this->to[] = $to; } if( is_array($cc) ) { $this->cc = $cc; } if( is_array($bcc) ) { $this->bcc = $bcc; } } /** * Attach a file * * @author Sérgio Surkamp <sergio@empreendedor.com.br> * @since 1.0.0 * @param string $filename Filename * @param mixed $data File data * @param string $mime Mimetype */ public function attachFile($filename, $data, $mime) { $this->file[] = array( 'filename'=>$filename, 'data'=>$data, 'mime'=>$mime ); } /** * Encode a string with the charset * * <p>See the {@link http://www.faqs.org/rfcs/rfc2047.html RFC2047} for details about non-ASCII text</p> * * @author gordon@kanazawa-gu.ac.jp */ function encodeIntoCharset($in_str) { $out_str = $in_str; if ($out_str) { // define start delimimter, end delimiter and spacer $end = "?="; $start = "=?".$this->charset."?B?"; $spacer = $end."\r\n ".$start; // determine length of encoded text within chunks // and ensure length is even $length = 75 - strlen($start) - strlen($end); // $length = floor($length/2) * 2; $length = $length - ($length % 4); // fix by gardan@gmx.de // encode the string and split it into chunks // with spacers after each chunk $out_str = base64_encode($out_str); $out_str = chunk_split($out_str, $length, $spacer); // remove trailing spacer and // add start and end delimiters $spacer = preg_quote($spacer); $out_str = preg_replace("/".$spacer."$/", "", $out_str); $out_str = $start.$out_str.$end; } return $out_str; } /** * Send the mail(s) * * <p>Since version 1.0.2 this method supports the <var>$oneByOne</var> * parameter</p> * * @author Sérgio Surkamp <sergio@empreendedor.com.br> * @since 1.0.0 * @param int $delay Delay time * @param int $between Mailcount for delay * @param boolean $oneByOne Send one by one mail. Otherwise send all the mails with just one 'mail' call. */ public function send($delay = 1, $between = 500, $oneByOne = false) { ini_set('sendmail_from', $this->from); if( ! is_null( $this->fromString ) ) { $RFCFrom = '"'.$this->encodeIntoCharset($this->fromString).'"<'.$this->from.'>'; } $cc = ''; foreach($this->cc as $copy) { if( $cc ) { $cc .= ','; } $cc .= $copy; } $bcc = ''; foreach($this->bcc as $copy) { if( $bcc ) { $bcc .= ','; } $bcc .= $copy; } $to = ''; foreach($this->to as $copy) { if( $to ) { $to .= ','; } $to .= $copy; } $message = $this->message; $attachHeader = ''; $headerEnd = ''; $mailMime = $this->contentType; if( ! empty( $this->file ) ) { $boundary = '--='.md5(uniqid(time())).'='; $messageBoundary = '--='.md5(uniqid(time())).'='; $attachHeader = 'boundary="'.$boundary.'";'; $headerEnd = "\n".'This is a multi-part message in MIME format.'."\n"; $message = '--'.$boundary.' Content-Type: '.Mail::MIME_MULTIPART_ALTERNATIVE.'; boundary="'.$messageBoundary.'" This is a multi-part message in MIME format. --'.$messageBoundary.' Content-Type: '.$this->contentType.'; charset='.$this->charset.' Content-Transfer-Encoding: 7bit '.$this->message.' --'.$messageBoundary.'-- '; $mailMime = Mail::MIME_MULTIPART_MIXED; foreach($this->file as $info) { $message .= '--'.$boundary.' Content-type: '.$info['mime'].'; name="'.$this->encodeIntoCharset($info['filename']).'" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="'.$this->encodeIntoCharset($info['filename']).'" '.chunk_split(base64_encode($info['data'])).' '; } $message .= '--'.$boundary.'--'; } else { $attachHeader = 'charset="'.$this->charset.'" Content-Transfer-Encoding: 7bit'; } if($cc) { $headerEnd = 'Cc: '.$cc."\n".$headerEnd; } if($bcc) { $headerEnd = 'Bcc: '.$bcc."\n".$headerEnd; } $count = 0; if($oneByOne) { foreach( $this->to as $destination ) { $header = 'MIME-Version: 1.0 Content-Type: '.$mailMime.'; '.$attachHeader.' Date: '.date('r').' From: '.$RFCFrom.' Reply-To: '.$this->from.' Return-Path: '.$RFCFrom.' Subject: '.$this->encodeIntoCharset($this->subject).' X-Priority: '.$this->priority.' X-Mailer: PHP '.phpversion().' '.$headerEnd.' '; mail( $destination, $this->encodeIntoCharset($this->subject), $message, $header ); $count++; if($count == $between) { sleep($delay); } } } else { $header = 'MIME-Version: 1.0 Content-Type: '.$mailMime.'; '.$attachHeader.' Date: '.date('r').' From: '.$RFCFrom.' To: '.$to.' Reply-To: '.$this->from.' Return-Path: '.$RFCFrom.' Subject: '.$this->encodeIntoCharset($this->subject).' X-Priority: '.$this->priority.' X-Mailer: PHP '.phpversion().' '.$headerEnd.' '; mail( null, $this->encodeIntoCharset($this->subject), $message, $header ); } } } ?> bem comentada...rsrsr falou!
  17. $pasta_upload = "c:\pasta"; $vpasta_upload.= $_request; echo $vpasta_upload; será que dá? é isso?
  18. caara... eu uso uma...que até agora não me deu problema... dá uma olhada aí;...se tu gostar.. www.fhost.com.br é 1 pila só! o custo benefício é muito bom! rsrs
  19. skolroots

    Tabelas Relacionadas!

    vlw pelas ajudas aí povo! com ajuda do pessoal daqui e algumas dicas on-line cheguei onde queria e tá bombando...rsrs vai o código aí... function arrayToStr($char, $separador){ $temp = ""; for ($x = 0; array_key_exists($x, $char); $x++) { $temp.=$char[$x]."$separador "; } $total = strlen($temp); $temp = substr($temp, 0 , ($total - 2)); return $temp; } /** * Reformula o nível do nó e de seus sub-nós; * * @param Codigo do nó a ser modificado $CodNo * @param Codigo do novo Nó Pai $CodNovoPai */ function reorganizaPai($CodNo, $CodNovoPai){ //Busca o (novo)nível do novo pai $Sql1= "SELECT nosNivel FROM nos WHERE nosCodigo IN (".trim($CodNovoPai)."); "; //$Nivel = $this->conn->Executar( $Sql1 ); //Atualiza o nivel do nó de acordo com o Novo Pai $Sql1= "UPDATE nos SET nosNivel= ".trim($Nivel)." + 1 WHERE nosCoddigo in (".trim($CodNo)."); "; //$this->conn->Executar( $Sql1 ); //Busca o código de todos os filhos do nó $sql2= "SELECT nosCodigo FROM nos WHERE nosPai IN (".trim($CodNo)."); "; //$resulsql2 = $this->conn->Executar( $Sql2 ); $this->arrayToStr($resulsql2, ','); if ($temp != ""){ $this->reorganizaPai($temp,$CodNo); return true; }else{ return false; } } coisa linda...um tópico só meu! hauhaua
  20. skolroots

    Socorro, Por Favor !

    gata...tenta guardar todos os valores que tu trabalha e depois busca novamente em uma session ou uma cookies... assim, eles nunca se perdemm... pode tá acontecendo de ele buscar novamente os valores e vim vazio... ttenta aí...se não der...berra denovo aqui... vlw! ou tu pode pegá comigo um script que faz a mesma coisa...só que em ajax...tu queh? se quiser me manda um e-mail pedindo... giovanimarin@gmail.com bjo
  21. skolroots

    Tabelas Relacionadas!

    porque nunca responde minhas perguntas? vou contar tuo pra minha mãe!
  22. eae galera...blza? seguinte... To tentando fazê uma função onde eu altere multiplos campos... ex: tenho um usuário X que convidou seu amigo Y, logo...Y está no primeiro nível de X. Y é um cara esforçado...e indicou Z, W e K...logo Z, W e K estão no nível 1 de Y e no nível 2 de X. Aconteceu de Z convidae A e B, logo A e B estão no níve 1 de Z, nível 2 de Y e nível 3 de X. tão conseguindo entendê?? tipo marketing multinível...rsrs blza... aí que vem o problema... Digamos que Y saiu da lista... os que tavam no nível 1 dele...e eram do nível 2 do X passam a ser nivel 1 de X, ou seja, eu atualizo os campos...mas tenho que fazê um loop pra isso... alguém pode me dá uma luz aí... vlw
  23. skolroots

    Me Ajudem Com Urgencia

    baixa o phptriad e instala o php, apache e o mysql...tudo duma vez sohe sem complicações...depois...se tu quiseer...aí pode pesquisar...mas de imediato essa é minha recomendação... bjos!
  24. javascript também dá...
×
×
  • Criar Novo...