Ir para conteúdo
Fórum Script Brasil

MARLON307

Membros
  • Total de itens

    3
  • Registro em

  • Última visita

Sobre MARLON307

MARLON307's Achievements

0

Reputação

  1. se eu usar esse codigo ira funcionar <?php $nametotest = "fuzzygroup.com"; testipaddress($nametotest); $nametotest = "providence.mascot.com"; testipaddress($nametotest); function testipaddress ($nametotest) { $ipaddress = $nametotest; $ipaddress = gethostbyname($nametotest); if ($ipaddress == $nametotest) { echo "No ip address for host, so host " . "not currently available in DNS and " . "probably offline for some time<BR>"; } else { echo "good hostname, ipaddress = $ipaddress<BR>"; } } ?>
  2. GOSTARIA EM QUE ME AJUDA-SE A FAZE UM CÓDIGO EM PHP DA SEGUINTE FORMA. PEGAR O IP DO SERVIDOR E TRANSFORMÁ-LO EM UM SUB DOMÍNIO DESSA FORA EX. IP: 127.0.0.1:9999 E DEIXALO ASIMM IP: NOME.DOMINIO:9999
  3. SEMPRE QUANDO VOU COMPILAR APARECE ESSA MENSAGEM DE AVISO "[Warning] comparison between pointer and integer [enabled by default]" já PESQUISEI E NÃO CONSIGO TIRAR ES AVISO DE JEITO NENHUM CÓDIGO #include<stdio.h> #define SIZE 200 int op; char nome[SIZE][50]; char email[SIZE][50]; int idade[SIZE][20]; void cadastro(); void pesquisa(); int main(void) { cadastro(); pesquisa(); } //inicio do cadastro void cadastro() { static int linha; do { printf("\nDigite o se Nome: "); scanf("%s",&nome[linha]); printf("\nDigite o E-MAIL: "); scanf("%s",&email[linha]); printf("\nDigite sua idade: "); scanf("%d",&idade[linha]); printf("Pressioe 1 para continuar."); scanf("%d",&op); ++linha; } while(op==1); } // fim do cadastro void pesquisa() { int i; int pesquisaidade; char emailPesquisa[50]; do { printf("\nDigite 1 para pesquisa."); scanf("%d",&op); switch(op) { case 1: printf("\nDigite a idade: "); scanf("%d", &pesquisaidade); for(i = 0; i < SIZE; ++i) { if(idade[i] == pesquisaidade) {//LINHA DO WANRING printf("\nNome: %s \nE-MAIL: %s\nIdade: %d",nome[i], email[i], idade[i]); } } break; case 2: printf("\nDigite o E-MAIL: "); scanf("%d", &emailPesquisa); for(i = 0; i < SIZE; ++i) { if(strcmp(email[i],emailPesquisa)) { printf("\nNome: %s \nE-MAIL: %s\nIdade: %d",nome[i], email[i], idade[i]); } } break; default: printf("\nOpção Invalida!"); break; } printf("Digite 1 para continuar a pesuisar"); scanf("%d",&op); } while(op==1); }
×
×
  • Criar Novo...