Jump to content

php code u *.html fajlu


Stator

Recommended Posts

da:

<?

php_kod

?>

mislim da je kod starijih servera bilo neophodno pisati ovako:

<?php

php_kod

?>

ali nisam siguran, u svakom slucaju ono prvo ce naverovatnije upaliti

takodje moras i da izmenis htaccess tako sto ces dodati:

RemoveHandler .html .htm

AddType application/x-httpd-php .php .htm .html

na nekim serverima se cak i ne mora ovo dodavati, pousaj prvo sa <? ?> tagovima pa ako ne radi, onda dodaj ove dve linije u .htaccess

The people can always be brought to the bidding of the leaders. That is easy. All you have to do is tell them they are being attacked and denounce the pacifists for lack of patriotism and exposing the country to danger. It works the same way in any country.

Link to comment
Share on other sites

asp nije jezik, vec tip stranice, po definiciji script engine. asp stranice se rade u activescriptu, perlu, vbscriptu (po difoltu) ... sto, sta radis?

The people can always be brought to the bidding of the leaders. That is easy. All you have to do is tell them they are being attacked and denounce the pacifists for lack of patriotism and exposing the country to danger. It works the same way in any country.

Link to comment
Share on other sites

Treba da odradim 301 redirekciju sa jednog domena na drugi (.co.yu --> .com). Jedini nacin da uplodujem fajlove na taj server je preko neke budjave skripte koja prima samo *.html fajlove. Server je hostovan na Win-u i IIS-u, i nemam nikakav pristup tome. Dakle trebao bi mi neki *.html fajl koji bi mogao da odradi tu rederekciju da bude Google/Yahoo! frendly.

Trenutno redirekciju radim ovako:

<META HTTP-EQUIV=REFRESH CONTENT="1; URL=http://www.*.com"> 

<html> 

<body> 

<a href="http://www.*.com">http://www.*.com</a> 

</body> 

</html>

I to radi posao za posetioce ali ne i za pretrazivace.

Link to comment
Share on other sites

evo sta sam nasao:

http://www.stevenhargrove.com/redirect-web-pages/

pa javi jel uspelo

The people can always be brought to the bidding of the leaders. That is easy. All you have to do is tell them they are being attacked and denounce the pacifists for lack of patriotism and exposing the country to danger. It works the same way in any country.

Link to comment
Share on other sites

jebo te, pre pet dana sam slučajno naleteo na blogu nekog web dizajnera na najbolje načine za redirekciju, ali sad ne mogu da nađem link, brisao sam history.

uglavnom, mislim da je on rekao da je najbolji način onaj default html, ništa skriptovi.

Link to comment
Share on other sites

mora da radi, sad sam na seminaru u ns pa sve radim leteci, pomocu ti od ponedeljka ako ti nije kasno?

The people can always be brought to the bidding of the leaders. That is easy. All you have to do is tell them they are being attacked and denounce the pacifists for lack of patriotism and exposing the country to danger. It works the same way in any country.

Link to comment
Share on other sites

ajde ovako

u pocetnoj strani sajta (trebalo bi da je index.html), ili doduse u bilo koju stranu ubaci prvo ovo:

<?

echo "Test";

?>

to je cisto da vidimo da li ce procitati php

ako na ekranu onda ispise Test, cita php, kul, ako ne ispise, goto post#2

ako cita ubaci samo ovo u glavnu stranu

<?

header( "HTTP/1.1 301 Moved Permanently" );

header( "Status: 301 Moved Permanently" );

header( "Location: http://www.klanrur.rs" );

exit(10);

?>

ovo bi trebalo da ga redirektuje na klanrur, npr

upravo sam isprobao kod mene i radi

The people can always be brought to the bidding of the leaders. That is easy. All you have to do is tell them they are being attacked and denounce the pacifists for lack of patriotism and exposing the country to danger. It works the same way in any country.

Link to comment
Share on other sites

pa jel moze da svuce?

cek statore, jedina dozvola koju imas je ta da uploadujes .html fajlove i nista vise?

redirekt preko html-a (u meta tagu) je los, i nisam siguran da ga google dozvoljava

ako imas tu skriptu za upload, onda su u njoj podaci za pristup, izvuci ih, pa pristupi ftp-u pomocu nekog normalnog programa

ili ja nisam razumeo celokupnu situaciju?

The people can always be brought to the bidding of the leaders. That is easy. All you have to do is tell them they are being attacked and denounce the pacifists for lack of patriotism and exposing the country to danger. It works the same way in any country.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...