- Details
- Written by: Stanko Milosev
- Category: PHP
- Hits: 5771
If the path to your PHP directory has spaces (e.g. "C:\Program Files\PHP") and IIS gives a 500+ error or responds with "The specified module could not be found." when you try to run a PHP script, try changing the ISAPI DLL's path in IIS (in the "Home Directory" tab, under "Configuration...") to the 8.3-equivalent path.
ĂÂ
That is, use C:\PROGRA~1\PHP\php5isapi.dll instead of "C:\Program Files\PHP\php5isapi.dll".
ĂÂ Copy/Pasted from here.
- Details
- Written by: Stanko Milosev
- Category: PHP
- Hits: 5440
With using DomDocument class.
Like this:
<?From here.
$sXML = '<root><element><key>a</key><value>b</value></element></root>';
$doc = new DOMDocument();
$doc->preserveWhiteSpace = false;
$doc->formatOutput = true;
$doc->loadXML($sXML);
echo $doc->saveXML();
?>
- Details
- Written by: Stanko Milosev
- Category: PHP
- Hits: 4238
- Details
- Written by: Stanko Milosev
- Category: PHP
- Hits: 5105
If you need to redirect page and pass $_POST variable (or any other variable) you should use following code:
<?php
header("HTTP/1.0 307 Temporary redirect");
header("Location: http://localhost/test.php");
?>