PHP5 - Installation Error - 400 Bad Request

I've been eager to try out PHP5, so I've dumped it on my little dev
machine. It's running WinXP with IIS5. I've put the php-cgi.exe in the
"mappings" page as I'm used to doing with PHP4. I've got my php.ini all
set in C:Windows.

I created an index.php containing: <?php phpinfo(); ?>
When I try to view the page, I get "HTTP 400 - Bad Request".


Wordpress Installation HTTP Request Failure / An Unexpected HTTP Error Occurred During The API Request?

I just installed wordpress on my domain and to install themes, plugins, or even import a blog it gives the following error:

An Unexpected HTTP Error occurred during the API request.

What could be causing this? It's terribly annoying since I want to import my blogger blog.

EDIT: workarounds for themes and plugins are to manually download and upload via FTP but that's just ridiculous.

View 1 Replies View Related

Php5 - Webpage Request Returns 400 Bad Request?

I have tried using fopen, file-get-contents and a curl request but I always get 400 Bad Request returned. his is a simple webpage request with GET params. Here is my code, can anyone see why this would be causing problems? phpinfo(); shows the config allows these sorts of requests.

function get_web_page( $url )

View 1 Replies View Related

Php5 Installation

I have just installed php5 (using the installer) on IIS 5, I have also installed mysql (it works, at least when using Navicat). In the php.ini it says php5 has builtin support for mysql. When I activate scripts, I get a FATAL ERROR call to undefined function: mysql_close.

View 2 Replies View Related

Installation And Configuration Of PHP5 On Windows 2003 Enterprise Server IIS 6.0?

This is my first post, and I hope it can help somebody.I've been struggling for to days to get php5 work on windows 2003 enterprise server.Here is a guide How to do:HOW TO INSTALL AND CONFIGURE PHP 5.04 WINDOWS 2003 ENTERPRISE SERVER AND IIS 6.0

Step one:
Download the php binary files from

View 1 Replies View Related

Php5 - Create A Singleton Class To Handle Request Vars?

was thinking about creating a Single class called 'Request' to handle and clean POST and GET variables but being new to the singleton pattern I'm not sure how to implement it. Ideally I'd like to have 2 functions post($name,$clean) and get($name,$clean) - $clean being a boolean to determine whether to trim/ escape the value

View 2 Replies View Related

What Controls The Time A Request Is Processed On An Apache2.2 / Php5 Web Service

I'm testing a web service that is running on Apache 2.2 and PHP 5. Using curl to send requests I see that the time spent is always 2 minutes. I'm only getting partial returns from the service and I think something is configured to stop after 2 minutes. A search of httpd.config and php.ini for the string 120 turned up nothing. What could be set to 2 minutes to produce this behavior?

View 1 Replies View Related

Php5 - Process Soap Request Via Browser But Fine On The Command Line?

I am trying to connect to an external SOAP service using PHP and have written a small php test script that just connects to the service and performs a simple request to check everything is working.

This all works correctly but when I run via a browser request, it is very slow taking somewhere in the region of 40s to establish the initial connection. When I do the same request using the exact same script on the command line, it goes through straight away.

View 2 Replies View Related

Installation Error

I am a newbie to php. I am trying to setup geeklog on the internet. However, I get the following error. I would appreciate any help than you guys could provide. I am sure someone has seen this error before and could provide guidance on this issue.

Parse error: parse error, unexpected '<', expecting ')' in /home/cartiqco/public_html/geeklog/config.php on line 157.

View 1 Replies View Related

Memcached Installation Error?

when i try to install memcached in windows xp with xampp by command line as the follow:pecl install memcachedi recive this error in my command window :Error : The DSP memcached.dsp does not exist.1 - what is the problem ?2 - and if its not solvable how to compile the memcached package when download it directly from the pecl ?

View 1 Replies View Related

WAMPserver While Installation - Getting An Error?

am running
os- window-xp

i installed this package and got stuck with error which is very famous but none of the solution is working on my machine.


mysqld.exe has encountered a problem and needs to close . We are sorry for inc...

following is error log
090216 18:42:35 - mysqld got exception 0xc0000005 ;
This could be because you hit a bug. It is also possible that this binary or one of the libraries it was linked against is corrupt, improperly built,or misconfigured. This error can also be caused by malfunctioning hardware.We will try our best to scrape up some info that will hopefully help diagnose the problem, but since we have already crashed, something is definitely wrong and this may fail.


i download this package from :http:[url].... I tried clearing registry,unistall,re-install,port listening ... what ever i found i had tried on this and ending up with nothing.

View 10 Replies View Related

XAMPP Installation Error Port 80 Or 443 Are Already In Use

i wanted to set up a localserver. I tried installing it manually and had issues with Apache 2.2. Now i tried XAMPP and i get the same problem that port 80 or 443 are already in use. I have turned off the port on skype, so , its not skype thats interfering. Im running windows 7 and I dont know how to see what ports are being used because the netstat command doesnt seem to work on windows 7.

View 6 Replies View Related

Remove The Ssl Error From Modernbill Api Installation

i want to installed the modernbill on my localhost, i got this error on the installation phase,

* You MUST have (SSL-enabled PHP cURL for faster secure remote API queries [you do not], or SSL-enabled CLI cURL for secure remote API queries [you do not]) [you do not].

* You SHOULD have SSL-enabled PHP cURL for faster secure remote API queries [you do not].

* You SHOULD have the "openssl" extension loaded for asynchronous secure remote API queries [you do not].

* You MAY have the "sysvshm" extension loaded for Unix performance optimizations [you do not].

* You MAY have the "sysvsem" extension loaded for Unix performance optimizations [you do not].

i enable the ssl and cURL module from ,y wamp server, and also remove the ; from extention=php.curl file but i got the abou=ve error

View 1 Replies View Related

Parse Error In OS Commerce Installation

Not sure if this is the right forum for this but, I'm getting the following errors out of the blue when trying to access a newly installed OScommerce admin. Everything was working fine until it wasn't. To my knowledge no one made any changes to the code once it was up and running:

Warning: Unexpected character in input: ''' (ASCII=39) state=1 in / home / content / p / u / p / puppylapu / html/admin/index.php on line 117

Parse error: syntax error, unexpected $end in /home/content/p/u/p/puppylapu/html/admin/index.php on line 117


View 2 Replies View Related

JpGraph Error This PHP Installation Is Not Configured

I have serious problems with my GD Library configuration on my win2000 server. In phpinfo() every seems fine and I can use the library if Im running a php-script through a web browser. But, if Im in running the same script trough the command line interface like: c:xamppphpphp.exe c:scriptmyGdScript.php

I get the error message:

"JpGraph Error This PHP installation is not configured with the GD library. Please recompile PHP with GD support to run JpGraph. (Neither function imagetypes() nor imagecreatefromstring() does exist)"

View 2 Replies View Related

Error The Server Encountered An Internal Error Or Misconfiguration And Was Unable To Complete Your Request

I get the following error when trying to upload a video via CMS:

Internal Server Error The server encountered an internal error or misconfiguration and was unable to complete your request. Please contact the server administrator,[URL].. and inform them of the time the error occurred, and anything you might have done that may have caused the error. More information about this error may be available in the server error log.

What exactly would cause this to happen? I have never seen this error before.

View 4 Replies View Related

Internal Server Error", 500 Error When Using A CGI Request

with the keyfocus webserver using php i get this error.

"Internal Server Error", 500 error when using a CGI request

There are many reason why a CGI request could fail, it could be that the
CGI Filter is not properly configured or the CGI application itself has

i am using frames with php and html and the problem is definitely

my question becomes if i put this on a web host where they use a
server and operating system could that eliminate the problem?
or am i stuck and have to get to the bottom of it because my code is
causing the problem?

i start off with basicframe.html and then change what goes in the
individual frames (3) using php code. when i want to reload
basicframe.html to its original appearance (the home page(s) i guess)
i use
<a href="" target="_top" >
<img src=""></a>
and when this code is clicked sometimes i get internal server error
and sometimes i dont.

this is what my system.log shows

[2004/08/10 04:50:25.999 2 -0400] Debug MIME {INFO} <type:
application/x-httpd-php CGI action: c:phpphp.exe file: header.php>
[2004/08/10 04:50:26.059 2 -0400] External application error {INFO}
<Path: c:phpphp.exe; OS err: 0 {}>

View 1 Replies View Related

PHP Installation Issues On WinXP And IIS - Error: Unable To Start DCOM Server

I just installed PHP 5.1.4 on Windows XP and I am getting an error
trying to load a simple phpinfo() script.

Server Application Error
The server has encountered an error while loading an application during
the processing of your request. Please refer to the event log for more
detail information. Please contact the server administrator for

I checked the Event Viewer and I'm getting an error and a warning.

error: Unable to start DCOM Server as /IWAM_MYNAME_LT1. The error
"access denied"

warning: The server failed to load application /LM/W3SVC/1/ROOT. The
error was "general access denied error"

I have given Full Controll privileges to c:php, c:Inetpubwwwroot and
the php.ini file to both the IUSR and IWAM accounts. I have set IIS to
allow "Scripts and Executables". Application protection is "Medium
(pooled). I'm not sure what to do at this point. I don't remember ever
having this problem before. Any ideas what's going on?

One note... I changed "Application Protection" in IIS to "Low (IIS
Process" and now the PHP script loads... but restarting IIS with
"issreset /restart" causes IIS to crash.

View 3 Replies View Related

PEAR Installation - Error "llib/lt_setup.php File As Require('DB.php')?

Anyone tell me pear dbinsallation on WAMP, i got warnings on that while installing pear DB? pear DB supports only WAMP limited versions? i also tried manual pear DB but it doesn't work, it shows errror in llib/lt_setup.php file as require('DB.php');

View 2 Replies View Related

Programming Error "The Server Encountered An Internal Error Or Misconfiguration And Was Unable To Complete Your Request"

Internal Server Error The server encountered an internal error or misconfiguration and was unable to complete your request. Please contact the server administrator, admin@localhost and inform them of the time the error occurred, and anything you might have done that may have caused the error. More information about this error may be available in the server error log.

I have installed new Wamp Sever after installing the new windows XP, and now this error message is shown on the screen. I have searched over it and all of told me about .htaccess file replacement or changed its name, but after doing this PHP code was looking as it is and also css was not applying on the page. How can i remove this error?

View 1 Replies View Related

Can't See The Error (PHP5)

Anyone who can decipher this error message? What is PHP trying to tell me?

exception 'MysqlException'
in /var/www/localhost/htdocs/phenixsp/include/ Stack trace:
#0 /var/www/localhost/htdocs/phenixsp/include/
DB_MysqlStatement->__construct(NULL, 'SELECT * FROM u...')
#1 /var/www/localhost/htdocs/phenixsp/login.php(21):
DB_Mysql->prepare('SELECT * FROM u...') #2 {main}

The code is:
// login.php

// handles all database connectivity and queries

// rename variables to simplify further code
$user = $_GET['usr'];
$pass = $_GET['pass'];

// catch early error on part of the user
// you can't leave either or both variable empty in the login process

if(isset($user) && isset($pass)){

// do something to check credentials

$dbh = new DB_Mysql('$DBUSER', '$DBPASS', '$HOST', '$DB');
$newquery = "SELECT * FROM users WHERE name = :1";
$stmt = $dbh->prepare($newquery); //line 21

catch (MysqlException $e) {
print $e;


// - starting on line 54

public function prepare($query){
return new DB_MysqlStatement($this->dbh, $query);

class DB_MysqlStatement {
protected $result;
protected $binds;
public $query;
public $dbh;

public function __construct($dbh, $query){
$this->query = $query;
$this->dbh = $dbh;
throw new MysqlException("Not a valid database connection");

View 1 Replies View Related

PhpMyAdmin Installation - Thorough Installation Guide.

I am trying to install phpMyAdmin-2.6.3-pl1 on my machine because I am familiar with working with it itself, but not installing it. I have Apache 2.0.54, php 4.4.0, mysql 4.1.14 running on a Win XP Home machine. Like I said, I've never installed phpMyAdmin before and I've looked at the documentation and I can kinda make out what it says, but I'd rather try to find a very thorough installation guide.

View 1 Replies View Related

Twitter Feed - Error "failed To Open Stream: HTTP Request Failed! HTTP/1.1 400 Bad Request"

I have a twitter feed on my website which works fine when I try it locally but as soon as I upload the script to my webspace I get this error. I don't understand why it would work locally and not when I upload it.  Could this be a problem with the permissions?

Warning: DOMDocument::load( [domdocument.load]: failed to open stream: HTTP request failed! HTTP/1.1 400 Bad Request in /web1/user25846/website/contact.php on line 24

Warning: DOMDocument::load() [domdocument.load]: I/O warning : failed to load external entity "" in /web1/user25846/website/contact.php on line 24

I have pasted line 24 below.

$doc = new DOMDocument();

View 1 Replies View Related

XSL Error Handling In PHP5

I`m need hanling XSLT errors in my script,
before I`m use Sablotron, that has nice
interface for it:
function ProduceXHTML($xml, $xsl){
$xh = xslt_create();
xslt_set_encoding ($xh, CODE_PAGE);
$arguments = array('/_xml' => $xml, '/_xsl' => $xsl);
$result = @xslt_process($xh, 'arg:/_xml', 'arg:/_xsl', NULL,
$this->error = (int)xslt_errno($xh);
$errorMessage = sprintf("Cannot process XSLT document
[code %d]: %s",
xslt_errno($xh), xslt_error($xh));
$this->AddErrorMessage(5, $errorMessage);



but now I`m ported my project
in PHP5 and use XSLlib like this:

function ProduceXHTML($xsltemplate){
$xh = new XSLTProcessor();
$xml = new DOMDocument();
$xsl = new DOMDocument();



header('Content-type: text/xml');
if ($xhtml) {
$xhtml = str_replace("&amp;", "&", $xhtml);
echo $xhtml;
} else {
/* commented, because PHPv5 used
printf("Cannot process XSLT document [code %d]: %s",
xslt_errno($xh), xslt_error($xh));
return false; // invalid XSL

anybody know how I can track errors now?

View 2 Replies View Related

Php5 Compile Error

i used this configuration when i installed php-5.0.5

./configure --with-apxs2=/usr/local/apache2/bin/apxs --with-mysql

but when i compiled with make command the result is: Code:

View 1 Replies View Related

Php5 On Apache2 Error

i installed apache 2.0.55 and it works fine. then i downloaded php5 and extracted it to c:php, renamed php.ini-recommended to php.ini, copied php5ts.dll to the windows folder and added the following lines to httpd.conf:

LoadModule php5_module "c:/php/php5apache2.dll"
AddType application/x-httpd-php .php
PHPIniDir "C:/php"

now when im trying to start apache i get the following error:

Syntax error on line 958 of c:/Program File/Apache Group/Apache2/conf/httpd.conf:
Cannot load c:/php/php5apache2.dll into server: One of the library files needed to run this application cannot be found.

View 4 Replies View Related

PHP5, Domxml, On Windows Cfg./Error

need the straight dope on domxml for Windows!
Is it bundled or are DLL's necessary?
Also, what changes are needed in php.ini?

My setup: WXP, PHP 5.0.2 as an Apache Module, libxml v2.6.11 or so it says.

I see there's been quite a bit of posting on mailing.www.php-dev Re:

phpinfo() mis-reporting domxml enabled.....

View 4 Replies View Related

Php5 FTP Directory Listing Error?

array(1) {

View 2 Replies View Related

Php5 - Getting Unexpected T_ELSE Error

I am working on an example from a php book and am getting an error on line 8 with this code

$agent = getenv("HTTP_USER_AGENT");
if (preg_match("/MSIE/i", "$agent"));
$result = "You are using Microsoft Internet Explorer";
else if (preg_match("/Mozilla/i", "$agent"));

View 4 Replies View Related

Get Error While Coding Of Pagination In Php5?

i am writing code of pagination & i got an error.this is my code :

mysql_connect("localhost", "root", "") or die(mysql_error());
mysql_select_db("Admin") or die(mysql_error());

View 2 Replies View Related

HTTP_RAW_POST_DATA 400 Bad Request Error

I think the reason my script keeps throwing a 400 Bad Request error is because the script entails using $request = $HTTP_RAW_POST_DATA; in the RPC server. What should I do instead of that? I've tried $request =& $_POST and $request = $_POST and they all throw a 400 Bad Request... I'll post the code, but it's just to get a grip on how this stuff works, so no laughing :P


PHP Code: .....

View 1 Replies View Related

Php5 On Apache2 Error: Cannot Load C:/php/php5apache2.dll

i reinstalled windows (98), installed apache and extracted the php5 zip file into c:php. i renamed php.ini-recommended to php.ini and added the following lines to httpd.conf:

LoadModule php5_module "c:/php/php5apache2.dll"
AddType application/x-httpd-php .php
PHPIniDir "C:/php"

now when i start apache i get an error message:

Syntax error on line 957 of C:/Program Files/Apache
Cannot load C:/php/php5apache2.dll into server: One of the library files needed to run this application cannot be found.

when i delete the line
LoadModule php5_module "c:/php/php5apache2.dll"
apache works fine. i tried to copy php5ts.dll to c:windows,
c:windowssystem and c:program filesapache groupapache2in, it
still doesnt work...

View 4 Replies View Related

Getting What Appears To Be A PHP4 Error On PHP5 Server

I'm getting the below error on my server: Parse error: syntax error, unexpected T_STRING, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' in /nfs/c03/h03/mnt/53496/domains/ on line 5

However, the code works in a different part of the server (the development side). This is me trying to put it live. Below is the code it is referring to:

class Home_model extends Model {
public function Home_model()
// model constructor

Can syslink cause this sort of error? There are no htaccess scripts interfering either. I have run a phpinfo on the site and it's running php 5.2.6. I'll try the addhandler change and see if that works.

View 3 Replies View Related

PHP5 $_FILES[][] Notice Error - Undefined?

I am trying to upload a file to my server using php5 script. And I am receiving an notice error Undefined index: qqfile.


But I don't know how it is not defined from the previous script. The "tmp_name" is there in the array, but qqfile is showing UnDefined...

View 2 Replies View Related

Php5 - PHP 5.1.6 ArrayAccess Error When Iterating Over Object?

I'm having to develop a site on PHP 5.1.6 and I've just come across a bug in my site which isn't happening on 5.2+. When using foreach() to iterate over an object, I get the following error: "Fatal error: Objects used as arrays in post/pre increment/decrement must return values by reference..."

$f_type = new Feeding_type_Model;

View 1 Replies View Related

PEAR Installation Error "PEAR_Remote: Unexpected HTTP Response"

while installing the Pear package for ExcelWriter I caught up with following errors PEAR_Remote: unexpected HTTP response I find one post and tried to upgrade the PEAR package itself, pear upgrade PEAR it also displays the same error "PEAR_Remote: unexpected HTTP response"

View 1 Replies View Related

Error: Bad Request While Submitted A Form

This is the problems i'm getting. What type of error is this? Is this a Browser issue?

View 2 Replies View Related

How Do I Get PHP5's Exception Handling To Catch A Fatal Error?

Last weekend I decided to install
Apache 2.0.53-win32-x86-no_ssl
PHP 5.0.3
Smarty 2.6.7
MySQL essential-4.1.10-win32

I have Apache up (Port 80 blocked at the router and firewall!) and I
have got
Smarty working. I haven't got around to installing MySQL. I am now in
chapter 8 'Error and Exception Handling' of
"Beginning PHP 5 and MySQL: From Novice to Professional", by W. Jason
pub. Apress. I tried example Listing 8-1. Raising an Exception:
$smarty = new Smarty;

$smarty->template_dir='C:php5includessmarty emplates' ;
$smarty->compile_dir='C:php5includessmarty emplates_c '

View 1 Replies View Related

Php5 - Error: Undefined Index: Event_list When Its Already Defined

I am having an undefined index error in which I think its already defined. I have here the codes.

<?php include('functions.php'); ?>
$yr = $_GET['year_list'];
$evnt = $_GET['event_list'];

What I don't understand about this, is that I think when you declared an element with an ID you can use the ID as index for $_GET or $_POST. Secondly, why is it that the second element (event_list) is not recognized when they have the same declaration as the first element which is (year_list). I'm confused with the inconsistency. Only the second element is not recognized while the other first one is recognized.

View 1 Replies View Related

Mongodb - PHP5.2.13 MongoCursorException 'duplicate Key Error Index'

I'm getting duplicate _ids when inserting documents into our mongo database. This is an intermittent problem that only happens under some load (is reproducable with some test scripts). Here's some test code so you don't think I'm trying to double-insert the same object (I know that the PHP mongo driver adds the _id field):

// Insert a job
$job = array(
'type' => 'cleanup',
'meta' => 'cleaning the data',
'user_id' => new MongoId($user_id),
'created' => time(),
'status' => 'pending'
$this->db->job->insert($job, array('safe' => true)); // <-- failz here

I went on a frenzy and installed the latest stable (1.1.4) mongo driver to no avail. This isn't under heavy load. We're doing maybe 5 req/s on one server, so the 16M rec/s limit for the inc value probably isn't the issue. I'm hoping someone somewhere has used mongo with PHP and inserted more than 5 docs/s and had this issue ;). -EDIT- On CentOS 5.4 x86_64, linux 2.6.18-164.el5xen, Apache worker 2.2.15, PHP 5.2.13, MongoDB 1.8.1

-EDIT2- As noted in the comments, I'm using the latest version of the PECL driver as of now (1.2.0) and the problem is still happening.

-EDIT3- Forgot to post exact error: Uncaught exception 'MongoCursorException' with message 'E11000 duplicate key error index: hannibal.job.$_id_ dup key

View 1 Replies View Related

Copyrights 2005-15, All rights reserved