← Desenvolvimento

Screenshots!

Lida 10304 vezes

Offline

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

Acho que é impossivel () mas voces é que sabem  :wink:
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

Offline

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

Pensei que tavas a falar de PHP !!

Cumps
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

Esse é em asp, mas tem que haver em php!
Offline

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

cenourinha, testas-te o código?

Já agora deixa o kingless falar..este menino até já quer ensinar php ao morpheus LOL enfim..

Desprezo às vezes resulta tão bem... :')
Offline

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

Citação de: "cenourinha"
Código: [Seleccione]
<?
include("snapshot.class.php");

class url_snapshot extends snapshot{

var $browser_type="NS6";

var $browser=array(
"NS6"=>array(
"PATH"=>"c:/programme/Netscape/Netscape/netscp.exe",
"SPACETOP"=>"141",
"SPACEBOTTOM"=>"47",
"SPACELEFT"=>"0",
"SPACERIGHT"=>"17"
)
);


var $url="";

var $screen_width="";
var $screen_height="";

function url_snapshot($url){
$this->url=$url;
}

function set_browser($type){
// $type -> IE5 , NS6
$this->browser_type=$type;
}

function set_screen_resolution($width,$height){
$this->screen_width=$width;
$this->screen_height=$height;

$this->snap_width=$this->screen_width-($this->browser[$this->browser_type]["SPACELEFT"]+$this->browser[$this->browser_type]["SPACERIGHT"]);
$this->snap_height=$this->screen_height-($this->browser[$this->browser_type]["SPACETOP"]+$this->browser[$this->browser_type]["SPACEBOTTOM"]);
$this->snap_x=$this->browser[$this->browser_type]["SPACELEFT"];
$this->snap_y=$this->browser[$this->browser_type]["SPACETOP"];
}

function shot_url(){
$exec=$this->browser[$this->browser_type]["PATH"]." ".$this->url;

system($exec);
sleep(4);
$this->shot();
}
}
?>


Alguem que teste isto!


Pelo que vi do code isto deve ser só uma parte, pois ainda falta o snapshot.class.php do include, pois depois dá este erro:

Código: [Seleccione]
Fatal error: Class url_snapshot: Cannot inherit from undefined class snapshot in c:\phpdev\www\teste.php on line 4

O erro é da class, falta o file com as classes :?[/code]
Offline

+speed 
Membro
Mensagens 544 Gostos 0
Troféus totais: 26
Trófeus: (Ver todos)
Super Combination Combination Topic Starter Poll Voter Poll Starter Level 5 Level 4 Level 3 Level 2 Level 1

oi, oi já que se fala nisto os Screenshots no www.domaintools.com antigo www.whois.sc e seclhar outros do genero ñ insere a Screenshots se o dominio ñ for registado em conjunto com a conta de alojamento, como meto uma Screenshots no meu dominio, quando inserido o dominio para leitura? alguem sabe :(