← Desenvolvimento

ASP vs PHP

Lida 5345 vezes

Offline

HACKER_ALHOO 
Membro
Mensagens 5 Gostos 0
Troféus totais: 19
Trófeus: (Ver todos)
Super Combination Combination Topic Starter Level 4 Level 3 Level 2 Level 1 First Post Karma Tenth year Anniversary

Hey pessoal!
Nunca programei em ASP, só PHP; o que acontece é que a empresa onde me integrei usa esta primeira. Alguém, com experiência nas duas, pode me dizer que diferenças significativas existe entre uma e outra?

'brigado.
Offline

Bruno Mota 
Membro
Mensagens 1733 Gostos 3
Troféus totais: 28
Trófeus: (Ver todos)
Super Combination Combination Topic Starter 10 Poll Votes Poll Voter Level 5 Level 4 Level 3 Level 2 Level 1

sao muitas!!!
Offline

asturmas 
Administrador
Mensagens 19734 Gostos 50
Feedback +2

Troféus totais: 39
Trófeus: (Ver todos)
Mobile User Windows User Super Combination Combination Topic Starter 100 Poll Votes 50 Poll Votes 10 Poll Votes Poll Voter Poll Starter

Exacto..
E dificiel explicar..
Offline

cenourinha 
Elite
Mensagens 4094 Gostos 21
Troféus totais: 34
Trófeus: (Ver todos)
Mobile User Apple User Level 6 Super Combination Combination Topic Starter 10 Poll Votes Poll Voter Level 5 Level 4

Uma delas é a ASP ser dos servidores Windows e php ser dos Servidores Linux!
Offline

Ricardo75 
Membro
Mensagens 1660 Gostos 0
Troféus totais: 28
Trófeus: (Ver todos)
Super Combination Combination Topic Starter 10 Poll Votes Poll Voter Level 5 Level 4 Level 3 Level 2 Level 1

cenourinha, podes ter php em servidores windows!
Offline

PTNetworks 
Membro
Mensagens 315 Gostos 0
Troféus totais: 27
Trófeus: (Ver todos)
Super Combination Combination Topic Starter Poll Voter Level 5 Level 4 Level 3 Level 2 Level 1 100 Posts

e asp em servidores linux tambem, apesar de não ser muito bom.
Offline

cenourinha 
Elite
Mensagens 4094 Gostos 21
Troféus totais: 34
Trófeus: (Ver todos)
Mobile User Apple User Level 6 Super Combination Combination Topic Starter 10 Poll Votes Poll Voter Level 5 Level 4

Sim claro que se pode ter, mas em regra geral cada um serve para o seu caso!
Offline

Ricardo75 
Membro
Mensagens 1660 Gostos 0
Troféus totais: 28
Trófeus: (Ver todos)
Super Combination Combination Topic Starter 10 Poll Votes Poll Voter Level 5 Level 4 Level 3 Level 2 Level 1

Citação de: "PTNetworks"
e asp em servidores linux tambem, apesar de não ser muito bom.


Mas tipo, oficialmente o asp pode correr em linux? Ou isso é um hack que alguém fez?
É que não estou a ver a microsoft a fazer algo compatível com o linux  :?
Offline

PTNetworks 
Membro
Mensagens 315 Gostos 0
Troféus totais: 27
Trófeus: (Ver todos)
Super Combination Combination Topic Starter Poll Voter Level 5 Level 4 Level 3 Level 2 Level 1 100 Posts

é uma versão da Chilisoft ASP

e existe tambem ASP.NET para Linux, project mono mas não sei se funciona ou não.
Offline

asturmas 
Administrador
Mensagens 19734 Gostos 50
Feedback +2

Troféus totais: 39
Trófeus: (Ver todos)
Mobile User Windows User Super Combination Combination Topic Starter 100 Poll Votes 50 Poll Votes 10 Poll Votes Poll Voter Poll Starter

Sempre ouvi dixer ke asp so dava em windows.. :roll:
Offline

Jota 
Editor
Mensagens 773 Gostos 0
Feedback +1

Troféus totais: 27
Trófeus: (Ver todos)
Super Combination Combination Topic Starter 10 Poll Votes Poll Voter Level 5 Level 4 Level 3 Level 2 Level 1

Ehehe.
Tive na faculdade e durante 2 anos sempre a dar no PHP, MySQL open source sempre a rasgar :D
Comecei a trabalhar e buff ASP, ASP.NET MS SQL..

E lixado.
O meu PHP esta enferrujado mas olha, espero que isto te ajude:

Epa eu queria adicionar aqui no post exemplos de codigo, mas nao da.
Isto nao tem o BBCode [CODE] ?

Alternativas so se me dares o teu email mando te os exemplos.
Offline

Ricardo75 
Membro
Mensagens 1660 Gostos 0
Troféus totais: 28
Trófeus: (Ver todos)
Super Combination Combination Topic Starter 10 Poll Votes Poll Voter Level 5 Level 4 Level 3 Level 2 Level 1

Código: [Seleccione]
Aqui dá ....
Offline

Jota 
Editor
Mensagens 773 Gostos 0
Feedback +1

Troféus totais: 27
Trófeus: (Ver todos)
Super Combination Combination Topic Starter 10 Poll Votes Poll Voter Level 5 Level 4 Level 3 Level 2 Level 1

Código: [Seleccione]

Enviar mensagens
PHP
<?php echo "ola"?>
ASP
<% Response.Write ("Ola") %>
Variaveis
Em php ao contrario de ASP nao precissas de dimensionar. E tens sempre que usar $ sinal.
<?php
$txt
="Ola Mundo";
echo 
$txt;
?>


<%
Dim txt
txt = "Ola Mundo"
Response.Write txt
%>

Conectar
PHP
<?php
$txt1
="Ola";
$txt2="Mundo";
echo 
$txt1 " " $txt2 ;
?>

ASP
<%
Dim txt1
Dim txt2

txt1 = "Ola"
txt2 = "Mundo "
Response.Write txt1 &" "& txt2
%>

Comentarios
PHP
<?php

//Comentario

/*
CSS style
E um bloco
*/

?>

ASP
<%
'Comentario
%>
LOOPS
E o mesmo principio que ASP
PHP
<?php
$d 
"MaisTrafico"
if &#40;$d=="MaisTrafico"&#41;
echo "Bem vindo mais trafico"
else
echo 
"Bem vindo"
?>

ASP
<%
Dim d
d = "MaisTrafico"
If (d="MaisTrafico") Then
Response.Write ("Bem vindo mais trafico")
Else
Response.Write ("Bem vindo")
End If
%>

Offline

Jota 
Editor
Mensagens 773 Gostos 0
Feedback +1

Troféus totais: 27
Trófeus: (Ver todos)
Super Combination Combination Topic Starter 10 Poll Votes Poll Voter Level 5 Level 4 Level 3 Level 2 Level 1

Okidoki obrigado.
Descobri porque nao dava, nao da para por exemplos de agarrar variaveis de uma forma ou pelo o url.
Offline

DEVAXTATOR 
Membro
Mensagens 57 Gostos 0
Troféus totais: 25
Trófeus: (Ver todos)
Super Combination Combination Topic Starter Level 5 Level 4 Level 3 Level 2 Level 1 50 Posts 10 Posts

Bem alguem falou em ASP???
ASP é com o je ja uso ASP há anos!!!
qualquer duvida mail!!!
informatica@sconrado.pt