catalyst2 community forums  

Go Back   catalyst2 community forums > Support > Scripting Support

Reply
 
LinkBack Thread Tools Rate Thread Display Modes
Old 11-08-2008, 10:43 AM   #1 (permalink)
kat
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
kat is offline   Reply With Quote
Old 11-08-2008, 07:29 PM   #2 (permalink)
Bring me your problems :p
 
paulredpath's Avatar
 
Join Date: Jan 2003
Location: /dev/ahhhhhhhhh
Posts: 3,537
Kate,

Should work ok, looks like its missing a php module, if you open a ticket we can look at getting that added for you.
paulredpath is offline   Reply With Quote
Reply

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


All times are GMT. The time now is 11:14 AM.


Powered by vBulletin® Version 3.7.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.