Jump to content
php.lv forumi

kā iekš php var iegūt informāciju


trinklins

Recommended Posts

Nu tu saki pasutiitaajam ka tas neiet krastaa php ir serverside valoda un reaali klienta pusee nevar nodetekteet neko citu bez taaa ko browseris nosuuta webserverim vai webserveris pats speej dabuut (ip/browser)..

 

Ja tieshaam nu nekaadiigi nevar neko izdomaat var jau pamaazhoties ar php4delfi http://members.chello.be/ws36637/php4delphi.html bet tas tikuntaa buus exeutable un atseviskji jaalaizh klienta pusee.. Za to iespeejams to visu rakstiit ieksh php un pasutiitaajam teik ka viss shtokos.

Link to comment
Share on other sites

<html>
<head>
<LINK href="kartupelis.css" type=text/css rel=stylesheet>
</head>
<body>

<table cellpadding="5" border="0" style="border-collapse: collapse" bordercolor="#000000">
 <tr>
   <td colspan="2" class="shis" bgcolor="#EEEEDD">Šis un tas pa tavu kompi:</td>
 </tr>
 <tr>
   <td class="velkautkas">Tava ip:</td>
   <td class="tas"><?=$_SERVER[REMOTE_ADDR]?></td>
 </tr>
 <tr>
   <td class="velkautkas">Apača admina e-pasts:</td>
   <td class="tas"><?=$_SERVER[SERVER_ADMIN]?></td>
 </tr>
 <tr>
   <td class="velkautkas">OS (Operētājsistēma)</td>
   <td class="tas"><?=$_ENV[OS]?></td>
 </tr>
 <tr>
   <td class="velkautkas">Tavs servera softs:</td>
   <td class="tas"><?=$_SERVER[SERVER_SOFTWARE]?></td>
 </tr>
 <tr>
   <td class="velkautkas">Šī faila atrašanās vieta:</td>
   <td class="tas"><?=$_SERVER[PATH_TRANSLATED]?></td>
 </tr>
 <tr>
   <td class="velkautkas">Servera ports:</td>
   <td class="tas"><?=$_SERVER[SERVER_PORT]?></td>
 </tr>
 <tr>
   <td class="velkautkas">Defaultā Valoda:</td>
   <td class="tas"><?=$_SERVER[HTTP_ACCEPT_LANGUAGE]?></td>
 </tr>
 <tr>
   <td class="velkautkas">Monitora izšķirtspēja:</td>
   <td class="tas"><script language="javascript">document.write(""+screen.width+"x"+screen.height+"");</script></td>
 </tr>
</Table>
</body>
</html>

Lieto šito moš pietiek, TEV:

Link to comment
Share on other sites

×
×
  • Create New...