![]() |
|
|
#1 (permalink) |
|
Ickle One
Join Date: Oct 2003
Location: north lincolnshire
Posts: 67
|
linux site to windows
I have recently taken over a website which has been built in php and hosted on a linux server. I have a windows server and so the site is pulling in a few errors at the moment. I think there seems to be a DLL issue. Does anyone know if it is possible to make a linux php site work in the windows environment without too much reprogramming. I have to admit I am not a programmer so go easy on the tech advice!!
![]() I am getting an error message: Fatal error: Call to undefined function: xslt_create() in d:\domains\mydomain.com\wwwroot\client\events\clsX sl.inc.php on line 67 opening the clsXsl.inc.php file I get: xmldata=$xml; else { $this->xmlfile=$xml; $this->xmldata=$this->readxmlfile(); } } function setXsl($xslFilename) { /** Set xsl property **/ $this->xsl=$xslFilename; } function setErrLog($LogFilename) { /** Set error log file property **/ $this->ErrorLog=$LogFilename; } function Transform_XML($params) { /*** *@name:Transform_XML *@abstract: perform xslt transformation on xml *@author: Shaun Hare *@param array $params holds reference to any params to be passed to xslt file **/ $arguments=""; if (!empty($this->xsl)) { $arguments = array( '/_xml' => $this->xmldata ); $this->xp = xslt_create(); xslt_set_object($this->xp,$this); xslt_set_error_handler($this->xp, "handle_xslt_error"); $result = xslt_process($this->xp, 'arg:/_xml', $this->xsl, NULL, $arguments,$params); } else $result="No XSLT file specified"; return $result; xslt_free($this->xp); } function handle_xslt_error($xp, $errorno, $level, $fields) { /*** *@name:handle_xslt_error *@abstract: perform xslt transformation on xml *@author: Shaun Hare *@param object $xp holds reference to xlst object *@param integer errno holds error number *@param level holds error information *@param array fields hold error information **/ // Handle errors $msg = "An error occurred on line " .__LINE__; $msg .= " in " .$_SERVER['PHP_SELF'] ."\n"; $msg .= "Error no: " .xslt_errno($xp) ."\n"; $msg .= "Error : " .xslt_error($xp) ."\n"; if(is_array($fields)) { while(list($key, $value) = each($fields)) { $msg .= "$key => $value \n"; } $this->Errlog($msg); } echo $msg; } function Errlog($errStr) { /*** *@name:Errlog *@abstract: custom error loggin routine *@author: Shaun Hare *@param string $errstr error information **/ // timestamp for the error entry $dt = date('Y-m-d H:i:s (T)'); echo $dt; echo $errStr; } function readXMLFile() { /*** *@name:readXMLFile *@abstract: read the xml data in from a file, requires full file path *@author: Shaun Hare **/ if (file_exists($this->xmlfile)) { // file handling $filename=$this->xmlfile; $fileHandle=fopen($filename, 'r'); $this->xmldata = fread($fileHandle, filesize($filename)); fclose($fileHandle); } else echo "error reading xml file"; } } Does this make any sense??? I am tempted just to purchase a single domain linux package and put the site on there. Would it be that simple to fix the solution? Kate |
|
|
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|