Shared Variables There is another type of shared member we can create. There are times when it is nice to share a value across all instances of a class – when every object of a given type should share the same variable. This is accomplished through the use of shared variables. A shared variable is … Continue reading
First you must open blocked xp_cmdshell command sp_configure ‘show advanced options’,1 GO RECONFIGURE GO sp_configure xp_cmdshell,1 GO RECONFIGURE You can try this action to check your reconfigure is active and already use EXEC master.dbo.xp_cmdshell ‘ipconfig’ Second, please copy this procedure to getting IP address after SQL Server resulting client HOST NAME : USE [dbname] GO … Continue reading
A. Installing IIS (IIS 6.0) _____________________ This topic describes 3 methods for installing IIS: • Using the Configure Your Server Wizard. • Using Add or Remove Programs from Control Panel. • Using unattended setup. This topic also lists the directories created on install, describes the IIS initial configuration backup, and briefly describes IIS optional components. … Continue reading
1. HOST If you have that’s problem first check your host. If you didn’t success made connection using IP addres, try using YOURHOSTNAME/SERVICE_NAME Example your IP 192.168.1.111, and your host : TheGeek-Area, sqlserver service NETSQLSERVER, then you can write the host is TheGeek-Area/NETSQLSERVER 2. SQL Server should be up and running. Go to All Programs … Continue reading
I hate that, and it seems that every time I (or a co-worker) gets the error “Unable to Start Debugging on the Web Server” on a machine when attempting to debug an ASP.NET project, I have to scramble to remember what to look at. Here’s a few things that has worked for me to get things working so … Continue reading
A. CLASS <?php class Item { protected $name, $price, $qty, $total; public function __construct($iName, $iPrice, $iQty) { $this->name = $iName; $this->price = $iPrice; $this->qty = $iQty; $this->calculate(); } protected function calculate() { $this->price = number_format($this->price, 2); $this->total = number_format(($this->price * $this->qty), 2); } public function __toString() { return “You ordered ($this->qty) ‘$this->name'” . ($this->qty == … Continue reading