<?php class Dotpay { public $dotpay_id; public $status; public function __construct($dotpay_id) { $this->dotpay_id = $dotpay_id; } public function check_sms_code($code, $check, $type, $del) { $server_ip = $_SERVER['REMOTE_ADDR']; $handle = fopen("http://dotpay.pl/check_code.php?id=".$this->dotpay_id."&code=".$code."&check=".$check."&type=".$type."&del=".$del."", 'r'); $this->status = $status; } else { $this->error = 'Please fill in all fields'; } } public function show_error() { return $this->error; } } ?> <?php $dotpay = new Dotpay($dotpay_id = 123123); ?>
dokładnie chodzi o tą linijke: