Solved

XML will not display on the page

Posted on 2012-03-13
64
374 Views
Last Modified: 2012-07-24
Hi all i have a php page that had xml on it, i have two other files, of course the XML file with the date and then i have a XLst and XLS file for formatting, when i try to view the file on the screen all i see if a white screen with my css styling

can someone please give em a hand here

Here is the Products.XSLT as i could noty attatch

<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
    version="1.0">
    <xsl:key name="product-by-cat" match="product" use="@cat-ref"/>
    <xsl:key name="product-by-id" match="product" use="@id"/>
    
    <xsl:strip-space elements="*"/>
    <xsl:output indent="yes"/>
    
    <xsl:param name="product"/>
    <xsl:param name="base-page" select="'../product.php'"/>
    
    <xsl:template match="products">
        <div id="productsdesc">
            <xsl:if test="normalize-space($product)">
                <xsl:apply-templates select="key('product-by-id', $product)/Description"/>
            </xsl:if>
        </div>
        <div id="products">
                     <table>
                        <xsl:for-each select="categories/category[position() mod 3 = 1]">
                            <tr>
                                <th><xsl:apply-templates select="."/></th>
                                <th><xsl:apply-templates select="following-sibling::category[1]"/></th>
                                <th><xsl:apply-templates select="following-sibling::category[2]"/></th>
                            </tr>
                            <xsl:call-template name="get-next-row">
                                <xsl:with-param name="cat1" select="@cat-id"/>
                                <xsl:with-param name="cat2" select="following-sibling::category[1]/@cat-id"/>
                                <xsl:with-param name="cat3" select="following-sibling::category[2]/@cat-id"/>
                                <xsl:with-param name="count" select="1"/>
                            </xsl:call-template>
                        </xsl:for-each>
                    </table>
        </div>
    </xsl:template>
    
    <xsl:template name="get-next-row">
        <xsl:param name="cat1"/>
        <xsl:param name="cat2"/>
        <xsl:param name="cat3"/>
        <xsl:param name="count"/>
        <xsl:if test="key('product-by-cat', $cat1)[position() = $count ]| key('product-by-cat', $cat2)[position() = $count] | key('product-by-cat', $cat3)[position() = $count]">
            <tr>
                <td><a href="{concat($base-page, '?product=', key('product-by-cat', $cat1)[position() = $count ]/@id)}"><xsl:apply-templates select="key('product-by-cat', $cat1)[position() = $count ]/title"/></a></td>
                <td><a href="{concat($base-page, '?product=', key('product-by-cat', $cat2)[position() = $count ]/@id)}"><xsl:apply-templates select="key('product-by-cat', $cat2)[position() = $count ]/title"/></a></td>
                <td><a href="{concat($base-page, '?product=', key('product-by-cat', $cat3)[position() = $count ]/@id)}"><xsl:apply-templates select="key('product-by-cat', $cat3)[position() = $count ]/title"/></a></td>
            </tr>
            <xsl:call-template name="get-next-row">
                <xsl:with-param name="cat1" select="$cat1"/>
                <xsl:with-param name="cat2" select="$cat2"/>
                <xsl:with-param name="cat3" select="$cat3"/>
                <xsl:with-param name="count" select="$count + 1"/>
            </xsl:call-template>
        </xsl:if>
    </xsl:template>
    
    <xsl:template match="p">
        <p>
            <xsl:apply-templates select="node()"/>
        </p>
        <br/>
    </xsl:template>
    
    <xsl:template match="list">
        <p class="list_intro">
            <xsl:apply-templates select="list-intro"/>
        </p>
        <br/>
        <ol>
            <xsl:for-each select="list-item">
                <li><xsl:apply-templates/></li>
            </xsl:for-each>
        </ol>
    </xsl:template>
    
    
</xsl:stylesheet>

Open in new window

products.xml
product.php
products.xsl
0
Comment
Question by:awolarczuk
  • 33
  • 31
64 Comments
 
LVL 60

Accepted Solution

by:
Geert Bormans earned 500 total points
ID: 37717969
Nowhere in your HTML page (please remove the credentials away from before the DOCTYPE, it will break the styling) you actually call the XSLT processor on the XML

So you will need to add something like this to the php code

  $xsl = new DomDocument;
  $xsl->load('products.xsl');
 
  $xp->importStylesheet($xsl);
 
  $xml_doc = new DomDocument;
  $xml_doc->load('products.xml');

  echo  $xp->transformToXML($xml_doc);

as the parameter for the load() method please make sure that you have a correct reference to your XML and XSL files.

These lines of code take the XML file and the XSLT file and will return the result of the XSLT transformation to the output
0
 

Author Comment

by:awolarczuk
ID: 37718108
yea ok sorry i forgot the PHP page , here it is
product.php
0
 
LVL 60

Expert Comment

by:Geert Bormans
ID: 37718116
nope, you did not forget the php page, it was with the original question.
it just contains no code for performing the XSLT transform.
That is what I added.

You have to tell your PHP to actually run the XSLT against the source XML.
It won't happen automatically.
If you don't perform the XSLT, you will not see results of course
0
 

Author Comment

by:awolarczuk
ID: 37718364
yep all correct mate and i changed the code to use the one you showed here, thank you very much for that and it is the same mate no text on the page
0
 
LVL 60

Expert Comment

by:Geert Bormans
ID: 37718797
1. remove the credits from the page
2. remove the product parameter getter from the page (it would be void if you don't pas a parameter)
3. add the code I showed
4. test and if it does not work., send the new products.php
0
 

Author Comment

by:awolarczuk
ID: 37719194
mate do i need something like this as well
"  $xp->setParameter('', 'product', $product);"

also i have done  the first bit andi am not sure what you mean about the #2 and i have added you code here is my current code

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"  "http://www.w3.org/TR/html4/loose.dtd">

<html lang="en">

<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
<title>Products - Australian Financial and Mortgage Services </title>
		
		<meta http-equiv="content-script-type" content="text/javascript" >
		<meta http-equiv="content-type" content="text/html;charset=iso-8859-1" >
		<link href="settings.css" rel="stylesheet" type="text/css">


</head>

<body>
	<div id="container"><!-- Top of the page and page location -->
		
		<div id= "ptitle"><b>PRODUCTS AND SERVICES</b></div>
		
		<?php include("menu.php"); ?>
		
		
 

		<?php
					$xsl = new DomDocument;
				  $xsl->load('products.xsl');
				  
				  $xp->importStylesheet($xsl);
				  
				  $xml_doc = new DomDocument;
				  $xml_doc->load('products.xml');
				
				  echo  $xp->transformToXML($xml_doc);	
							     ?>
		
		
		<!-- *****This is for the bottom table links****-->
		
			<?php include("footer.php"); ?>

		<!--**** This is for the bottom table links***-->

	<!-- Bottom  of the page and page location -->
  
    
    </div>


</body>

</html>

Open in new window

0
 
LVL 60

Expert Comment

by:Geert Bormans
ID: 37719214
$xp->setParameter('', 'product', $product);

is what you would do if you need to pass a parameter to the XSLT. Do you need that?

OK, the above PHP should work.
If it doesn't it likely means you are not loading the XML and XSLT correctly
make sure the files are in the virtual root of your application, or add a relative path to the load method

 $xsl->load('xslpath/products.xsl');
0
 

Author Comment

by:awolarczuk
ID: 37723022
HI mate yes this is waht i need,
i am 100% sure all the files are inthe right place they are all in the root, they are all in the same place
0
 
LVL 60

Expert Comment

by:Geert Bormans
ID: 37723960
OK, but we will do one step at the time.

First lets verify that you loaded the XML correctly

So drop all the code I send you in favour of this code

<?php 
	$xml_doc = new DomDocument;
	$xml_doc->load('products.xml');
	$xpath = new DOMXpath($xml_doc);
	$elements = $xpath->query("//product/title");	
	if (!is_null($elements)) {
  	foreach ($elements as $element) {
    	echo "<br/>[". $element->nodeValue . "]";
  	}
 	}
  
	//echo $xml_doc;
 ?>

Open in new window


It should return something like this

[Standard Variable]
[Basic Variable]
[Introductory (Honeymoon)]
[Fixed Rate Loan]
[Refinancing]
[Bridging Loan]
[Credit Impaired]
[Low Document Loans]
[Second Mortgages]
[Hire Purchase]
[Finance Lease]
[Commercial Mortgages]
[Short Term Business Loans]
[Medium-Long Term Business Loans]
[Why is an Investment Property a Good Strategy ?]
[Negative Gearing]
[Capital Gains Tax]
[Line of Credit]
[Reverse Mortgages]

Open in new window

0
 
LVL 60

Expert Comment

by:Geert Bormans
ID: 37723967
If that is not what you get

check the php snippet, lets do a hello world

<?php 
echo "Hello World"
 ?>

Open in new window


and see what happens then

If you now see "Hello World" it proves you php is executed
if you did not see the title list, it proves your XML is not loaded correctly.
Then you need to figure out your settings
since this
"i am 100% sure all the files are inthe right place "
is untrue
0
 

Author Comment

by:awolarczuk
ID: 37727184
ok matwe working it now sorry but network been down just came back up
0
 

Author Comment

by:awolarczuk
ID: 37727190
ok that is what i go mate

[Standard Variable]
[Basic Variable]
[Introductory (Honeymoon)]
[Fixed Rate Loan]
[Refinancing]
[Bridging Loan]
[Credit Impaired]
[Low Document Loans]
[Second Mortgages]
[Hire Purchase]
[Finance Lease]
[Commercial Mortgages]
[Short Term Business Loans]
[Medium-Long Term Business Loans]
[Why is an Investment Property a Good Strategy ?]
[Negative Gearing]
[Capital Gains Tax]
[Line of Credit]
[Reverse Mortgages]
0
 
LVL 60

Expert Comment

by:Geert Bormans
ID: 37727291
so, it proves the XML is loaded well
Let me do something similar to prove the XSLT is there
0
 
LVL 60

Expert Comment

by:Geert Bormans
ID: 37727355
OK, now you have loaded the XML correctly, let's see if the XSL is OK

<?php

	//echo "[" . $_GET["product"] . "]<br/>" ;

	$xsl = new DomDocument;
	$xsl->load('products.xsl');

	$xp = new xsltprocessor;				  
	$xp->importStylesheet($xsl);

	$xml_doc = new DomDocument;
	$xml_doc->load('products.xml');

	$xpath = new DOMXpath($xsl);
	
	$attributes = $xpath->query("/*/@version");	
	if (!is_null($attributes)) {
  foreach ($attributes as $attribute) {
  	echo "<br/>[". $attribute->nodeValue . "]";
  	}
 	}
 	
 ?>

Open in new window

0
 
LVL 60

Expert Comment

by:Geert Bormans
ID: 37727373
You should see
[1.0]
in the output
That proves the XSLT is loaded correctly

If so, then this code will perform the trnaform and will show the headers correctly

<?php

	//echo "[" . $_GET["product"] . "]<br/>" ;

	$xsl = new DomDocument;
	$xsl->load('products.xsl');

	$xp = new xsltprocessor;				  
	$xp->importStylesheet($xsl);

	$xml = new DomDocument;
	$xml->load('products.xml');

	echo $xp->transformToXml($xml);
 ?>

Open in new window

0
 
LVL 60

Expert Comment

by:Geert Bormans
ID: 37727381
Next steps (for you, I am off to bed)

1. add the parameter passing with a fixed value
2. grab the parameter from the request and use that to pass the parameter
0
 

Author Comment

by:awolarczuk
ID: 37727386
ok mate with that late bit of code i see nothin at all
0
 
LVL 60

Expert Comment

by:Geert Bormans
ID: 37727391
did you see the
[1.0] ?
0
 
LVL 60

Expert Comment

by:Geert Bormans
ID: 37727392
Make sure that you use PHP5
0
 

Author Comment

by:awolarczuk
ID: 37727423
no mate i didnt see anything at all i have the latest php i only installed it a two wees back
0
 
LVL 60

Expert Comment

by:Geert Bormans
ID: 37728068
I sent two snippets of code in a row (I should not have, I should have waited for results first)
You need toi try them both.
The one from
http://#a37727355
should render [1.0]
Can you test that

If the XML worked and loading the XSLT does not work... there is something wrong with the XSL
it is either not wellformed or in a different location
0
 

Author Comment

by:awolarczuk
ID: 37728109
ok mate i ran the code in 37727355 and i dont see render [1.0] all i see is the css layout for the page, one thing i do notice is now i dont see the footer in the css
0
 
LVL 60

Expert Comment

by:Geert Bormans
ID: 37728137
you should learn to debug with isolated bits.
You can't test things in a whole, you need to find errors in isolated code.
My next question was going to be "Is there a CSS that throws it all away?

so drop the includes of the other php from the page
also drop every reference to a CSS from the page
and try isolated

here I have your xsl, xml and the php I posted on a server
http://www.c-moria.com/php-test.php?product=abc
0
 

Author Comment

by:awolarczuk
ID: 37731949
Mate thank for the hint i have torn my site down to nothin and i still cant get it to bloody work,  i did get the one to work showing the heading

<?php

	echo "[" . $_GET["product"] . "]<br/>" ;

	$xsl = new DomDocument;
	$xsl->load('products.xsl');

	$xp = new xsltprocessor;				  
	$xp->importStylesheet($xsl);

	$xml = new DomDocument;
	$xml->load('products.xml');

	echo $xp->transformToXml($xml);
 ?>

Open in new window


with my current code .

<html>

<head>

<title>Products - Australian Financial and Mortgage Services </title>
		
	


</head>

<body>
		
		
 

	<?php
					$xsl = new DomDocument;
				  $xsl->load('..\products.xsl');
				  
				  $xp->importStylesheet($xsl);
				  
				  $xml_doc = new DomDocument;
				  $xml_doc->load('..\products.xml');
				
				  echo  $xp->transformToXML($xml_doc);	
							     ?>
</body>

</html>

Open in new window


i cant se a thing on the screen at all

can i take a look at the code you have mate on that test server
0
 
LVL 60

Expert Comment

by:Geert Bormans
ID: 37732159
on my test server there is a php file, your xslt and your xml
all three are in the same directory (root)

this is the full content of the php file

<html>
<body>
<p>
<?php

	//echo "[" . $_GET["product"] . "]<br/>" ;

	$xsl = new DomDocument;
	$xsl->load('products.xsl');

	$xp = new xsltprocessor;				  
	$xp->importStylesheet($xsl);

	$xml = new DomDocument;
	$xml->load('products.xml');

	echo $xp->transformToXml($xml);
	
	
	// $xpath = new DOMXpath($xsl);
	
	// $attributes = $xpath->query("/*/@version");	
	// if (!is_null($attributes)) {
  // foreach ($attributes as $attribute) {
  // 	echo "<br/>[". $attribute->nodeValue . "]";
  // 	}
 	// }
 	
 ?>
</p>
 </body>
 </html>

Open in new window

0
 
LVL 60

Expert Comment

by:Geert Bormans
ID: 37732161
I am most concerned with the XSLT file. I don't understand why that piece of code somewhere above does not render
[1.0]
this means there is something wrong with loading the XSLT file
0
 

Author Comment

by:awolarczuk
ID: 37732472
even with your code mate i cant get a bloody thing to show i dont know what going on how do we work this out mate
0
 
LVL 60

Expert Comment

by:Geert Bormans
ID: 37732681
That can mean a lot of things for you to check
- is the XSLT wellformed. I know you posted a correct XSLT. But is that waht you have there? Or did you mess around in the XSLT without knowing. I think your number one task is to try the script that renders the "1.0]" from the XSLT, until that works. If you don't get past that, you will not get access to the transformation
You could give me the URL of the XSLT, so I can evaluate acces to it
- are you sure you get nothing? Not seeing it doesn't mean it is not there. Your browser you use to view it could simply cache it. Set the "expiry" to always and use firefox to view. IE always caches stuff, so that is not good for testing, webdevelopment. Use the FireFox web developer to see what the source is of what you get
- check the version of the PHP. It should be 5.2 at least
- check the PHP settings. or the .htaccess Maybe you disabled access to the XSLT file or the XSLT processor
-...
We are getting in an area where I only can say what you should check yourself. You need someone on the machine to verify what is going wrong at a level deeper than the coding

As you see on my server (using PHP5) the PHP code in combination with XML and XSLT does what it should do
0
 

Author Comment

by:awolarczuk
ID: 37735629
Yep 100% agree your server is working,

i will try all of that now , i was using crome but i am downloading firefox now, also wher do i check this check the PHP settings. or the .htaccess if you dont mind me asking??

but apart form what ill try the rest now

Thanks for your help mate
0
 

Author Comment

by:awolarczuk
ID: 37735662
This is interesting when i use firefox i am getting a clear page like the rest but i use the webdev are and i ma getting

[09:49:26.751] GET http://webtestsrv/ausf/product.php [HTTP/1.1 500 Internal Server Error 588ms]
0
 

Author Comment

by:awolarczuk
ID: 37735670
and i cant seem to find .htaccess
0
 
LVL 60

Expert Comment

by:Geert Bormans
ID: 37735804
something on the page is obviously not right.
I am still thinking there is a XSLT loading error

what is the architecture? web server, platform,...
0
Free Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

 
LVL 60

Expert Comment

by:Geert Bormans
ID: 37735806
is your server accessible?
give me the url of the XSLT then please
0
 

Author Comment

by:awolarczuk
ID: 37735816
i am using 2008 server with iss 7
i canb open a port so u can take a look give me a bit
0
 

Author Comment

by:awolarczuk
ID: 37735838
Ok here is the link to my test server

http://test.adbydesigns.com.au/ausf/
0
 
LVL 60

Expert Comment

by:Geert Bormans
ID: 37735878
0
 

Author Comment

by:awolarczuk
ID: 37735981
if it stil doest work just try the ipaddress http://60.241.48.12/ausf/
0
 
LVL 60

Expert Comment

by:Geert Bormans
ID: 37736506
test.adbydesigns does not work

the other one gives an error 500 on the php and and a 404 on the xml and xsl
can you put the page there that just shows the XML headers (the one you claimed that worked
and give it a name product1.php
0
 

Author Comment

by:awolarczuk
ID: 37736540
0
 
LVL 60

Expert Comment

by:Geert Bormans
ID: 37736544
funny, I get a 500 on that one too.
I think you need to start checking what the restrictions are on what you allow to go outside.
I start to feel that part of your issues is caused by IIS settings. But I can't help you to configure IIS directly. Bt I believe you have an open question on IIS config already
0
 

Author Comment

by:awolarczuk
ID: 37736577
thats wrid it should be working i can rdp in to another system oputside of my office and i can see it let me do some checking
0
 
LVL 60

Expert Comment

by:Geert Bormans
ID: 37736590
now I see it.
I see that you print the product parameter correctly

so this line of code works
echo "[" . $_GET["product"] . "]<br/>" ;

Open in new window


Good, that is something

Can you now put the code for reading the XML in?

Here it only shows the [abc], no XML headers
0
 
LVL 60

Expert Comment

by:Geert Bormans
ID: 37736592
note that currently (so please don't change the files)
I have access to your Xml and XSLT
0
 
LVL 60

Expert Comment

by:Geert Bormans
ID: 37736616
I don't understand this anymore.

Here is what I did
I changed my php to use your XSL
and it works

http://www.c-moria.com/php-test-remote-xsl-attr.php

here is the code for the php

<html>
<body>
<p>
<?php

	//echo "[" . $_GET["product"] . "]<br/>" ;

	$xsl = new DomDocument;
	$xsl->load('http://60.241.48.12/ausf/products.xsl');

	$xp = new xsltprocessor;				  
	$xp->importStylesheet($xsl);

	$xml = new DomDocument;
	$xml->load('products.xml');

	$xpath = new DOMXpath($xsl);
	
	$attributes = $xpath->query("/*/@version");	
	if (!is_null($attributes)) {
  foreach ($attributes as $attribute) {
  	echo "<br/>[". $attribute->nodeValue . "]";
  	}
 	}
 	
 ?>
</p>
 </body>
 </html>

Open in new window

0
 
LVL 60

Expert Comment

by:Geert Bormans
ID: 37736624
OK and the following tests excludes issues with your XML and XSL file
(so don't touch them anymore)

http://www.c-moria.com/php-test-remote-transform.php

It does the transform with your copies of the files

<html>
<body>
<p>
<?php

	//echo "[" . $_GET["product"] . "]<br/>" ;

	$xsl = new DomDocument;
	$xsl->load('http://60.241.48.12/ausf/products.xsl');

	$xp = new xsltprocessor;				  
	$xp->importStylesheet($xsl);

	$xml = new DomDocument;
	$xml->load('http://60.241.48.12/ausf/products.xml');

	echo $xp->transformToXml($xml);
	
 	
 ?>
</p>
 </body>
 </html>

Open in new window

0
 

Author Comment

by:awolarczuk
ID: 37736633
your not the only one that doesnt get this at all it is driving me nuts, the only thing is that i can rem when you said to check the  .htaccess this was no where to be found
0
 

Author Comment

by:awolarczuk
ID: 37736650
ok got it for commant 37736624 i am using this code as well now and same still

would it make a difference if i started a new site with a new folder in iis ect
0
 
LVL 60

Expert Comment

by:Geert Bormans
ID: 37736658
So, I can come to the conclusion that the files are OK and at the right location.
The problem is in your configuration
- wrong version of PHP
- locks on permissions of files
- ...
beyond my knowledge definitely
0
 

Author Comment

by:awolarczuk
ID: 37736665
but the problem is when i move it to the real server this is just s test server it is the same issue
if you like i can move everything here
0
 

Author Comment

by:awolarczuk
ID: 37736667
and it did work at once stage would it make a difference without the .htaccess
0
 

Author Comment

by:awolarczuk
ID: 37736677
this is one a different server
http://austfinancial.com/product1.php

with the file you help me create

can you please zip all four fiels you are using i know they are the same as mine and ill place them here and test them
0
 

Author Comment

by:awolarczuk
ID: 37736701
this is my php test page
http://60.241.48.12/other/test.php
if that helps
0
 

Author Comment

by:awolarczuk
ID: 37736727
Mate i need to get something working for a clinet is there a way to get this working without the xlst file
0
 
LVL 60

Expert Comment

by:Geert Bormans
ID: 37737000
There is only one file, I was accessing the xml and xslt on your server for this
but it worked until you moved the files away

Please, if you move stuff from one server to another, make sure that you build it up again with all the test php as I showed you in the scope of this question

And if it used to work at some point, you should be allarmed by what you changed.

Yes, this can be done without XSLT, by writing a bunch of PHP code to process the XML,
pretty inconvenient if at some point you need to add a parameter. Instead of thinking about that option you should think about what is different between test and production server. Developing all this outside XSLT is only a short term solution, and I am definitely not going to develop all that DOM code for you

I understand you need to deliver to a client. Don't put that pressure on me, please. I need to deliver to a client now too, so I will be gone for the rest of the day. Good luck.
0
 
LVL 60

Expert Comment

by:Geert Bormans
ID: 37737001
Here is a set that uses local XML/XSLT
0
 
LVL 60

Expert Comment

by:Geert Bormans
ID: 37737007
I am curious what happens if you run the php that tests the XML headers on the production server

You send me a testinfo() on php of your test server. Did you make exactly the same install on the production server?

You should verify at least the PHP version on production server and the libxml version that is active
0
 
LVL 60

Expert Comment

by:Geert Bormans
ID: 37737259
seems the attachments did not work. Here is teh full set again
test-php.zip
0
 

Author Comment

by:awolarczuk
ID: 37740221
sorry mate i didnt mean to put the heat on you at all
i didnt build the production server i am using cpanel for that.
I also didnt move anything im not usre what happend there, i am happy to build another quick test server with linux what would you suggest???
mate i dont expect you to do all the work at all and as far as i know i didnt change a thing, i have got the three files and i will also upload the test file to the production server to see it as well
thanks os much for all your help so far mate
0
 

Author Comment

by:awolarczuk
ID: 37740241
Here is the test file for the production server ;
http://austfinancial.com/test.php

what webserver are you using there ???
i copied all ur files to the production server and same issues
this is really started to get to me now, and i am sure it is just something so small , i have dont to using wordpress for other sites i am doing but i cant seem to find how to do this sort of thing in wordpress if i could i  would build the site again in wordpress
0
 

Author Comment

by:awolarczuk
ID: 37740640
Now it is really driving my nuts i just built a ubunto webserver and put the files there and i am still having a issue i cant work out whats going on
0
 
LVL 60

Expert Comment

by:Geert Bormans
ID: 37740985
For every new install you make you ahev to do all the steps, because we want to know what is going on

- step 1: see if the php works with a simple echo "hello world" (but nothing else of your menu and footer)
- step 2: see if the XML reads correctly (with the code that returns the header)
- step 3: see if the XSLT is read correctly (with the code that returns the version [1.0]
- step 4: test the XSLT itself

basically you should make 4 php test files (one for each step) and test them all in a row
so you can pinpoint the problem

I am using a hosted php server and cpanel (I guess it is on windows but that should not matter) I can choose between PHP4 and PHP5 and I have checked PHP5

I see some differences between the two test.php you referenced, and in neither of the two I see libxslt as an enabled package. Maybe you should check with your hosting company how that goes
0
 

Author Comment

by:awolarczuk
ID: 37745805
ok i got an old asp version working with no issues i am guess that is no help for the issues we are having, i rebuilt a iis server windows 2008 iis7  with just asp, what would you suggest the first set for install php just download the server ??
0
 
LVL 60

Expert Comment

by:Geert Bormans
ID: 37745904
If you have an iis with asp?
I remember I did this entire project in ASP for you about a year ago... use that.

if you still want to do it i PHP, download PHP and install it and make sure that a .php file gets executed. dump the three files in the root and it should work.

I have no clue about configuring IIS for PHP, but it should be straight forward

I am not sure that jumping between servers for a small issue like this is the best idea.
Did you try the four steps with the four php?
0
 

Author Comment

by:awolarczuk
ID: 37745934
i did mate yep  and same issue, i am sure it is not something you or i are doing all my other php sites are worming no issues, i am moving to a new hosting server that doesnt like asp, but i might have to leave just this site at on my old server unless where is a way linux will host ASP
0

Featured Post

6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

Join & Write a Comment

I was working on a PowerPoint add-in the other day and a client asked me "can you implement a feature which processes a chart when it's pasted into a slide from another deck?". It got me wondering how to hook into built-in ribbon events in Office.
Password hashing is better than message digests or encryption, and you should be using it instead of message digests or encryption.  Find out why and how in this article, which supplements the original article on PHP Client Registration, Login, Logo‚Ķ
Viewers will learn about the regular for loop in Java and how to use it. Definition: Break the for loop down into 3 parts: Syntax when using for loops: Example using a for loop:
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.

744 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now