[PHP] define() function strange output... !!!!

2002-01-07 Thread Levon Ghazaryan

 Hi everibody
I have Apache running under Linux SuSE 7.2 with PHP/4.0.4pl1
The server the Linux and the php instalation is the standart
SuSE package instalation from the SuSE install cd-s so, everithing is
fine except one thing:
calling this test.php script in browser window:

?php

define(_Sc,Test);

#echo 'the constant is: ' . _Sc . 'br /';

if(defined(_Sc)){
echo 'Test:' . _Sc ;
}else{
echo 'Test: false';
}


?

... gives only on first time the excpected output:

Test: Test

after reloading a few times the script returns some strange
output like :

Test: /%/(%

or something like this, sometimes some values of other constants
then some characters and sometimes the server hangs up.. so that means
that the httpd process dies and the process SSL hangs up, and i have to
kill it manualy in order to be able to start up the server again.

one small detail:

calling the same script from the shell:

shell: ./test.php

!/usr/bin/php

?php

define(_Sc,hi hu hi\n);

#echo 'the constant is: ' . _Sc . 'br /';

if(defined(_Sc)){
echo 'ja:' . _Sc ;
}else{
echo 'nein';
}


?

.. returns allways the excpected output without errors

so my idea is that this may be a mod_php4 problem,
but i wonder if i am the only one that have this problemm yet
becoase i have the standart instalation from SuSe CD

Do anyone have some similar problemm and if yes how would you
suggest to solwe this?

I hasitate to uninstal php or apache becouse this is a customer server
and i did not foud some updates or patches by SuSE for this,
strange is that i did not heared about someone having this problem

thanks

levon


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] PHP + Windows 98 + Apache

2002-01-07 Thread Levon Ghazaryan

hm.. I also have Apache with PHP and mysql on my win 98
and it runs fine with both..
check ones more the configure steps to be done
for php configuration or write detailed what steps have you
gone thru configuring

levon

On Mon, 7 Jan 2002, Sandeep Murphy wrote:

 Hi all,

 I have installed Apache on my win 98 machine and it runs fine .. however, am
 unable to configure Apache to run with PHP.

 I installed the binary version of PHP and edited the httpd.conf file as
 instructed in the install.txt of php but am getting a browser (400) page not
 found error..

 any suggestions are appreciated,

 TIA,

 Sandeep

 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 To contact the list administrators, e-mail: [EMAIL PROTECTED]



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




RE: [PHP] PHP + Windows 98 + Apache

2002-01-07 Thread Levon Ghazaryan

I think this steps could not make PHP running..


On Mon, 7 Jan 2002, Sandeep Murphy wrote:

 hi,

 ok, heres what I did exactly...

 1.Downloaded and extracted PHP version 4.1.1 to c:\php

 2. Copied php4ts.dll to c:\windows\system  (running win98)

 3. php.ini-dist  to c:\windows  and renamed it to php.ini

 4. Edited the php.ini as follows:
   changed the 'extension_dir' setting to point to my c:\php
   Set the 'doc_root' to point to my webservers document_root.
 c:\apache\htdocs

 5. Copied the lines (

 ScriptAlias /php/ c:/php4/ --- Do you whant php running as CGI ?

 AddHandler application/x-httpd-php .php   --- OK

 Action application/x-httpd-php3 /php-bin/php.exe)   --

 Action application/x-httpd-php4 /php-bin/php.exe)   --
is php.exe really in [Apache-root]/php-bin/php.exe ?



 to my httpd.conf (tried placing these lines at the end first, then after the
 load module statements.. all in vain)

 6. Restarted Apache

 any suggestions??

 Thanks,
 sandeep

 -Original Message-
 From: Levon Ghazaryan [mailto:[EMAIL PROTECTED]]
 Sent: segunda-feira, 7 de Janeiro de 2002 11:39
 To: [EMAIL PROTECTED]
 Subject: Re: [PHP] PHP + Windows 98 + Apache


 hm.. I also have Apache with PHP and mysql on my win 98
 and it runs fine with both..
 check ones more the configure steps to be done
 for php configuration or write detailed what steps have you
 gone thru configuring

 levon

 On Mon, 7 Jan 2002, Sandeep Murphy wrote:

  Hi all,
 
  I have installed Apache on my win 98 machine and it runs fine .. however,
 am
  unable to configure Apache to run with PHP.
 
  I installed the binary version of PHP and edited the httpd.conf file as
  instructed in the install.txt of php but am getting a browser (400) page
 not
  found error..
 
  any suggestions are appreciated,
 
  TIA,
 
  Sandeep
 
  --
  PHP General Mailing List (http://www.php.net/)
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
  To contact the list administrators, e-mail: [EMAIL PROTECTED]
 


 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 To contact the list administrators, e-mail: [EMAIL PROTECTED]

 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 To contact the list administrators, e-mail: [EMAIL PROTECTED]




-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]