Jasiek’s Blog

Jasiek’s Blog header image 4

Entries Tagged as 'Programming'

PHP SOAP error over https:

August 27th, 2008 · Comments Off · PHP

When getting an error:
SoapFault exception: [WSDL] SOAP-ERROR: Parsing WSDL: Couldn’t load from…
or similar. and SOAP over http works but over https does not, make sure that
“extension=php_openssl.dll”
is enabled in php.ini:
[PHP_SOAP]
extension=php_soap.dll
extension=php_openssl.dll

[Read more →]

Tags:

ASP web site redirect

June 14th, 2008 · Comments Off · Programming

[-]?View Code LANGUAGE1
2
3
4
5
6
7
8
9
10
<%
‘ Custom redirect for www.website.com moved to www2.website.net
‘ J. Tylek 08-09-2003
‘ Get the original URL
sPage = Request.QueryString
‘ Strip everything before (the original URL will start with 404)
sPage = Right( sPage, Len( sPage ) - InStr( 1, sPage, "" ) )
newPage = Replace (sPage, "http://www2", "http://www", 1)
response.redirect newPage
%>

[Read more →]

Tags:

Error Code: 2006 - MySQL server has gone away

May 30th, 2008 · Comments Off · MySQL

During restore from SQL dump.
Insert is probably too big. Try to increase:
Max. packet size from default of 1 MB to something bigger (2, 3 MB)
You can use MySQL Administrator GUI available at mysql.com

[Read more →]

Tags:

Windows 2003 IIS 6 FastCGI PHP and fopen error

May 9th, 2008 · Comments Off · Joomla/Mambo CMS, Microsoft, PHP

When setting up Joomla on Windows 2003 server with PHP in FastCGI mode I was getting an error:
PHP Warning:
fopen … failed to open stream: Permission denied in …\admin.config.php on line 374
I’ve searched high and low and there was no solution - I knew that this is the permission issue. Of course I had Internet Guest [...]

[Read more →]

Tags:

Error Undefined variable: HTTP_SERVER_VARS

November 21st, 2007 · Comments Off · PHP

Error Undefined variable: HTTP_SERVER_VARS when using below
$thisscript = $HTTP_SERVER_VARS["PHP_SELF"];
use instead:
$thisscript = $_SERVER['PHP_SELF'];

[Read more →]

Tags: