php-windows Digest 30 Jun 2004 23:14:06 -0000 Issue 2302

Topics (messages 24083 through 24089):

Re: HTTP 400 Bad Request
        24083 by: Luis Moreira

PHP OOP
        24084 by: Ragnar
        24085 by: Luis Moreira
        24089 by: Ross Honniball

Re: > Problems with php_domxml and his xslt support (output settings not used)
        24086 by: Weyert de Boer

Strange dumping session behavior
        24087 by: Ron.Herhuth.tatumpartners.com

CGI Application misbehaved
        24088 by: Raj Gopal

Administrivia:

To subscribe to the digest, e-mail:
        [EMAIL PROTECTED]

To unsubscribe from the digest, e-mail:
        [EMAIL PROTECTED]

To post to the list, e-mail:
        [EMAIL PROTECTED]


----------------------------------------------------------------------
--- Begin Message ---
Stephen Cassidy wrote:

Hi all, I am fairly new to this (attended a beginners course last week) and
I have been asked to install PHP on or 4 web servers (spread over 4 sites),
all the servers are exactly the same running Windows XP and IIS 5.

I downloaded the latest PHP 4.3.7 and managed to install it perfectly on 3
of the servers the last one that I tried all seemed to install correctly but
I keep getting HTTP error 400 Bad request. Someone suggested going to the
C:\PHP directory and creating a php document in there called test.php with
<?phpinfo();?> to test I did this and PHP is working so I am baffled now.
The only difference I can see with the output of the file on a working
server and the one that is not working is the Configuration File (php.ini)
Path on the server that is not working this is set to
"C:\Documents and Settings\administrator.INTERNAL\WINDOWS\php.ini " and the
one that works
"C:\WINNT\php.ini ". Where is the path set? I installed PHP one each server
using the same logon account?

I hope someone can help as this is starting to drive me mad.

Thanks

Stephen



If you have taken a beginners courese last week, there is no need for going mad right now.
Give it a day or two...


From the Install notes :
Copy the file, php.ini-dist to your %WINDOWS% directory on
 Windows 95/98 or to your %SYSTEMROOT% directory under Windows NT,
 Windows 2000 or Windows XP and rename it to php.ini. Your %WINDOWS% or
 %SYSTEMROOT% directory is typically:
  c:\windows for Windows 95/98
  c:\winnt or c:\winnt40 for NT/2000/XP servers

Try to move the PHP.ini file to c:\winnt on the non-working system and retry.

Luis
--- End Message ---
--- Begin Message ---
Hi lads,

I'm just tinkering around in PHP again recently, I haven't done much
OO in general, so I wasn't too surpised when some of the stuff I did
today didn't work.

Example:

(DB abstraction):

function data($qry_result){
  if ($qry_result){
    return ibase_fetch_object($qry_result);
  }
}

(Item function)

function show_item($item) {
  $sublvl = $_GET['sub'];
        
  $qry_item = query("select ITMLIST.*, GRPLIST.NAME AS SUBNAME from ITMLIST,
GRPLIST where ITMLIST.ITEM_ID=$item AND GRPLIST.GROUP_ID = ITMLIST.PARENT_ID
AND ITMLIST.PARENT_ID = $sublvl");
    
  $obj_item = data($qry_item);
  
  if ($obj_item){ 
    return $obj_item;  
  }   
}

--------------------

Can someone tell me why I can't access the object that I want to have
returned .. or rather why it seems to be empty.

If I do <?= $obj_item->NAME ?> I don't get any output.

It's possibly because I am trying something stupid, but I'd really like it
if I could return that object, so I could output the bits that it has more
conviently (in templates etc.)

cheers,

Ben

-- 
+++ Jetzt WLAN-Router f�r alle DSL-Einsteiger und Wechsler +++
GMX DSL-Powertarife zudem 3 Monate gratis* http://www.gmx.net/dsl

--- End Message ---
--- Begin Message ---
Ragnar wrote:

Hi lads,

I'm just tinkering around in PHP again recently, I haven't done much
OO in general, so I wasn't too surpised when some of the stuff I did
today didn't work.

Example:

(DB abstraction):

function data($qry_result){
 if ($qry_result){
   return ibase_fetch_object($qry_result);
 }
}

(Item function)

function show_item($item) {
$sublvl = $_GET['sub'];

$qry_item = query("select ITMLIST.*, GRPLIST.NAME AS SUBNAME from ITMLIST,
GRPLIST where ITMLIST.ITEM_ID=$item AND GRPLIST.GROUP_ID = ITMLIST.PARENT_ID
AND ITMLIST.PARENT_ID = $sublvl");
$obj_item = data($qry_item);
if ($obj_item){ return $obj_item; } }


--------------------

Can someone tell me why I can't access the object that I want to have
returned .. or rather why it seems to be empty.

If I do <?= $obj_item->NAME ?> I don't get any output.

It's possibly because I am trying something stupid, but I'd really like it
if I could return that object, so I could output the bits that it has more
conviently (in templates etc.)

cheers,

Ben



Check (echo) the query string to see if it is properly formated.
If so, see if the "=" sign is the best one for your comparison. Sometimes it isn't...


Luis
--- End Message ---
--- Begin Message --- I'm guessing your ibase_fetch_object($qry_result) call does not successfully retrieve any data. It then returns false and your calling script does nothing if false is returned.


At 09:32 PM 30/06/2004, you wrote:

Hi lads,

I'm just tinkering around in PHP again recently, I haven't done much
OO in general, so I wasn't too surpised when some of the stuff I did
today didn't work.

Example:

(DB abstraction):

function data($qry_result){
  if ($qry_result){
    return ibase_fetch_object($qry_result);
  }
}

(Item function)

function show_item($item) {
  $sublvl = $_GET['sub'];

  $qry_item = query("select ITMLIST.*, GRPLIST.NAME AS SUBNAME from ITMLIST,
GRPLIST where ITMLIST.ITEM_ID=$item AND GRPLIST.GROUP_ID = ITMLIST.PARENT_ID
AND ITMLIST.PARENT_ID = $sublvl");

  $obj_item = data($qry_item);

  if ($obj_item){
    return $obj_item;
  }
}

--------------------

Can someone tell me why I can't access the object that I want to have
returned .. or rather why it seems to be empty.

If I do <?= $obj_item->NAME ?> I don't get any output.

It's possibly because I am trying something stupid, but I'd really like it
if I could return that object, so I could output the bits that it has more
conviently (in templates etc.)

cheers,

Ben

--
+++ Jetzt WLAN-Router f�r alle DSL-Einsteiger und Wechsler +++
GMX DSL-Powertarife zudem 3 Monate gratis* http://www.gmx.net/dsl

--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

. . Ross Honniball. JCU Bookshop Cairns, Qld, Australia. .

--- End Message ---
--- Begin Message ---
Anyone happen to have any idea? I currently kicked out DOMXML for XSLT
transforms, someting I don't prefer because the XSLT library (libxsl)
is faster then Sablotron.

--- End Message ---
--- Begin Message ---
Hi,

I am having this strange session related problem.  Basically I am starting
a session on a succesful login and forwarding them to a page using:

<?
session_start();
$_SESSION['admin_id'] = $id;
header("location:mainmenu.php?" . sid);
?>

This works fine and they can naviagate around a bit.  But when they return
to a few of the pages for some reason the session appears to be terminated
and sends them back to the login screen.  Each page in the site contains
this check to make sure they have logged in:

<?
session_start();
if(empty($_SESSION['admin_id']))
{
header("Location: login.php");
}
?>

The script seems to work fine...just for some reason every 3 page changes
or so seems to terminate the session and then  $_SESSION['admin_id'] ends
up being null sending them back to the login.

Why would the session be terminated in such an odd fashion?

Thanks for any help or suggestions you might be able to provied!
ROn






--- End Message ---
--- Begin Message ---
Hi All,

    I am testing the PHP - JAVA Integration. I am using Windows 2000
Server with SP4, IIS 5.5 and PHP 4.3.4 and Java 1.4.1. The Java works
with PHP. I am able to test the Java class Java.lang.system

  Now I want to test with one of my class files. When I did the
following

$publ = new Java('com.abc.utils.myTestDoc');
$s1 = $publ->getDocPath();

I get 

CGI Error:
The specified CGI application misbehaved by not returning a complete
set of HTTP headers. The headers it did return are: 


your help is greatly appreciated

--- End Message ---

Reply via email to