php-windows Digest 27 Mar 2002 15:02:10 -0000 Issue 1065

Topics (messages 12768 through 12780):

Re: PHP as an Apache module
        12768 by: Helphand
        12769 by: Tommy Claasens / QDC KZN
        12770 by: Ali Nayeri
        12772 by: Tommy Claasens / QDC KZN

buggi decision script
        12771 by: Fabian Hoffmann

decision between explorer types
        12773 by: Fabian Hoffmann
        12778 by: Nicole Amashta
        12779 by: Dan Zarrella
        12780 by: R'twick Niceorgaw

Mail() problem solved!
        12774 by: Alberto. Sartori

Failed opening  for inclusion
        12775 by: Sonia
        12777 by: Sonia

R: [PHP-WIN] Failed opening  for inclusion
        12776 by: Alberto. Sartori

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 ---
At 06:32 PM 3/26/02 -0800, Ali wrote:
>hi all,
>
>i'm new to PHP and PHP installation.  I've tried it before and used the cgi
>since I couldn't figure out the module installation.  but i really want to
>get it working.  the problem is whatever I do, I get an error message from
>Apache.  I installed the binary version of the latest release of PHP and
>then added the parameters to httpd.conf:
>
><snip>
>#LoadModule usertrack_module modules/mod_usertrack.so
>#LoadModule unique_id_module modules/mod_unique_id.so
>LoadModule php4_module C:/Program Files/Apache Group/PHP/sapi/php4apache.dll

   Try using the 8.3 file names instead of long ones...

LoadModule php4_module c:/progro~1/apache~1/php/sapi/php4apache.dll


>#
>#  Reconstruction of the complete module list from all available modules
>#  (static and shared ones) to achieve correct module execution order.
>#
># The modules listed below, without a corresponding LoadModule directive,
># are static bound into the standard Apache binary distribution for Windows.
>#
># Note: The order in which modules are loaded is important.  Don't change
># the order below without expert advice.
>#
># [WHENEVER YOU CHANGE THE LOADMODULE SECTION ABOVE, UPDATE THIS TOO!]
>ClearModuleList
>AddModule mod_php4.c

    I did not have to add the above line to mine...


    Scott


http://www.geocities.com/Helphand1/

Helphand's Not So FAQ's for the Palm
     http://www.geocities.com/helphand1/palmprobs.htm

--- End Message ---
--- Begin Message ---
Dont add the LoadModule in the top of the file, Just add it at the end of
the file. It will work fine there
i.e.
[httpd.conf]
.
.
.
.
.

LoadModule php4_module C:/Program Files/Apache Group/PHP/sapi/php4apache.dll
AddType application/x-httpd-php .php

-----Original Message-----
From: Ali [mailto:[EMAIL PROTECTED]]
Sent: Wed, 27 Mar 2002 04:32
To: [EMAIL PROTECTED]
Subject: [PHP-WIN] PHP as an Apache module


hi all,

i'm new to PHP and PHP installation.  I've tried it before and used the cgi
since I couldn't figure out the module installation.  but i really want to
get it working.  the problem is whatever I do, I get an error message from
Apache.  I installed the binary version of the latest release of PHP and
then added the parameters to httpd.conf:

<snip>
#LoadModule usertrack_module modules/mod_usertrack.so
#LoadModule unique_id_module modules/mod_unique_id.so
LoadModule php4_module C:/Program Files/Apache Group/PHP/sapi/php4apache.dll

#
#  Reconstruction of the complete module list from all available modules
#  (static and shared ones) to achieve correct module execution order.
#
# The modules listed below, without a corresponding LoadModule directive,
# are static bound into the standard Apache binary distribution for Windows.
#
# Note: The order in which modules are loaded is important.  Don't change
# the order below without expert advice.
#
# [WHENEVER YOU CHANGE THE LOADMODULE SECTION ABOVE, UPDATE THIS TOO!]
ClearModuleList
AddModule mod_php4.c
AddType application/x-httpd-php .php
#AddModule mod_vhost_alias.c
AddModule mod_env.c
AddModule mod_log_config.c
</snip>

I also tried it this way:

<snip>
#LoadModule usertrack_module modules/mod_usertrack.so
#LoadModule unique_id_module modules/mod_unique_id.so

#
#  Reconstruction of the complete module list from all available modules
#  (static and shared ones) to achieve correct module execution order.
#
# The modules listed below, without a corresponding LoadModule directive,
# are static bound into the standard Apache binary distribution for Windows.
#
# Note: The order in which modules are loaded is important.  Don't change
# the order below without expert advice.
#
# [WHENEVER YOU CHANGE THE LOADMODULE SECTION ABOVE, UPDATE THIS TOO!]
ClearModuleList
LoadModule php4_module C:/Program Files/Apache Group/PHP/sapi/php4apache.dll
AddModule mod_php4.c
AddType application/x-httpd-php .php
#AddModule mod_vhost_alias.c
AddModule mod_env.c
AddModule mod_log_config.c
</snip>

but in the first case i got:

LoadModule takes two arguments, a module name and the name of a shared
object file to load it from

in the second situation i got:

LoadModule takes two arguments, a module name and the name of a shared
object file to load it from

I looked around and it seems to me that i have to compile from the source in
order to get Apache working with the module.  but i don't have VC++ and
compliling seems too complicated.  any solutions?

thanks




-- 
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--- End Message ---
--- Begin Message ---
that worked! thank you! I just got another question.  when i ran a phpinfo
script it gave me info that was wrong:

Configuration File (php.ini) Path ---> c:\winnt
-->but i got winMe and the ini is actually in c:\windows\system\

and then ofcourse it doesn't load my extensions and the rest of formatings.

anyway i can change that?

thanks for your help


-----Original Message-----
From: Tommy Claasens / QDC KZN [mailto:[EMAIL PROTECTED]]
Sent: March 26, 2002 11:17 PM
To: 'Ali'; [EMAIL PROTECTED]
Subject: RE: [PHP-WIN] PHP as an Apache module


Dont add the LoadModule in the top of the file, Just add it at the end of
the file. It will work fine there
i.e.
[httpd.conf]
.
.
.
.
.

LoadModule php4_module C:/Program Files/Apache Group/PHP/sapi/php4apache.dll
AddType application/x-httpd-php .php

-----Original Message-----
From: Ali [mailto:[EMAIL PROTECTED]]
Sent: Wed, 27 Mar 2002 04:32
To: [EMAIL PROTECTED]
Subject: [PHP-WIN] PHP as an Apache module


hi all,

i'm new to PHP and PHP installation.  I've tried it before and used the cgi
since I couldn't figure out the module installation.  but i really want to
get it working.  the problem is whatever I do, I get an error message from
Apache.  I installed the binary version of the latest release of PHP and
then added the parameters to httpd.conf:

<snip>
#LoadModule usertrack_module modules/mod_usertrack.so
#LoadModule unique_id_module modules/mod_unique_id.so
LoadModule php4_module C:/Program Files/Apache Group/PHP/sapi/php4apache.dll

#
#  Reconstruction of the complete module list from all available modules
#  (static and shared ones) to achieve correct module execution order.
#
# The modules listed below, without a corresponding LoadModule directive,
# are static bound into the standard Apache binary distribution for Windows.
#
# Note: The order in which modules are loaded is important.  Don't change
# the order below without expert advice.
#
# [WHENEVER YOU CHANGE THE LOADMODULE SECTION ABOVE, UPDATE THIS TOO!]
ClearModuleList
AddModule mod_php4.c
AddType application/x-httpd-php .php
#AddModule mod_vhost_alias.c
AddModule mod_env.c
AddModule mod_log_config.c
</snip>

I also tried it this way:

<snip>
#LoadModule usertrack_module modules/mod_usertrack.so
#LoadModule unique_id_module modules/mod_unique_id.so

#
#  Reconstruction of the complete module list from all available modules
#  (static and shared ones) to achieve correct module execution order.
#
# The modules listed below, without a corresponding LoadModule directive,
# are static bound into the standard Apache binary distribution for Windows.
#
# Note: The order in which modules are loaded is important.  Don't change
# the order below without expert advice.
#
# [WHENEVER YOU CHANGE THE LOADMODULE SECTION ABOVE, UPDATE THIS TOO!]
ClearModuleList
LoadModule php4_module C:/Program Files/Apache Group/PHP/sapi/php4apache.dll
AddModule mod_php4.c
AddType application/x-httpd-php .php
#AddModule mod_vhost_alias.c
AddModule mod_env.c
AddModule mod_log_config.c
</snip>

but in the first case i got:

LoadModule takes two arguments, a module name and the name of a shared
object file to load it from

in the second situation i got:

LoadModule takes two arguments, a module name and the name of a shared
object file to load it from

I looked around and it seems to me that i have to compile from the source in
order to get Apache working with the module.  but i don't have VC++ and
compliling seems too complicated.  any solutions?

thanks




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


_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com

--- End Message ---
--- Begin Message ---
What exactly do you mean with 
"and then ofcourse it doesn't load my extensions and the rest of
formatings." 

Thanks 
Tommy


-----Original Message-----
From: Ali Nayeri [mailto:[EMAIL PROTECTED]]
Sent: Wed, 27 Mar 2002 10:15
To: Tommy Claasens / QDC KZN; [EMAIL PROTECTED]
Subject: RE: [PHP-WIN] PHP as an Apache module


that worked! thank you! I just got another question.  when i ran a phpinfo
script it gave me info that was wrong:

Configuration File (php.ini) Path ---> c:\winnt
-->but i got winMe and the ini is actually in c:\windows\system\

and then ofcourse it doesn't load my extensions and the rest of formatings.

anyway i can change that?

thanks for your help


-----Original Message-----
From: Tommy Claasens / QDC KZN [mailto:[EMAIL PROTECTED]]
Sent: March 26, 2002 11:17 PM
To: 'Ali'; [EMAIL PROTECTED]
Subject: RE: [PHP-WIN] PHP as an Apache module


Dont add the LoadModule in the top of the file, Just add it at the end of
the file. It will work fine there
i.e.
[httpd.conf]
.
.
.
.
.

LoadModule php4_module C:/Program Files/Apache Group/PHP/sapi/php4apache.dll
AddType application/x-httpd-php .php

-----Original Message-----
From: Ali [mailto:[EMAIL PROTECTED]]
Sent: Wed, 27 Mar 2002 04:32
To: [EMAIL PROTECTED]
Subject: [PHP-WIN] PHP as an Apache module


hi all,

i'm new to PHP and PHP installation.  I've tried it before and used the cgi
since I couldn't figure out the module installation.  but i really want to
get it working.  the problem is whatever I do, I get an error message from
Apache.  I installed the binary version of the latest release of PHP and
then added the parameters to httpd.conf:

<snip>
#LoadModule usertrack_module modules/mod_usertrack.so
#LoadModule unique_id_module modules/mod_unique_id.so
LoadModule php4_module C:/Program Files/Apache Group/PHP/sapi/php4apache.dll

#
#  Reconstruction of the complete module list from all available modules
#  (static and shared ones) to achieve correct module execution order.
#
# The modules listed below, without a corresponding LoadModule directive,
# are static bound into the standard Apache binary distribution for Windows.
#
# Note: The order in which modules are loaded is important.  Don't change
# the order below without expert advice.
#
# [WHENEVER YOU CHANGE THE LOADMODULE SECTION ABOVE, UPDATE THIS TOO!]
ClearModuleList
AddModule mod_php4.c
AddType application/x-httpd-php .php
#AddModule mod_vhost_alias.c
AddModule mod_env.c
AddModule mod_log_config.c
</snip>

I also tried it this way:

<snip>
#LoadModule usertrack_module modules/mod_usertrack.so
#LoadModule unique_id_module modules/mod_unique_id.so

#
#  Reconstruction of the complete module list from all available modules
#  (static and shared ones) to achieve correct module execution order.
#
# The modules listed below, without a corresponding LoadModule directive,
# are static bound into the standard Apache binary distribution for Windows.
#
# Note: The order in which modules are loaded is important.  Don't change
# the order below without expert advice.
#
# [WHENEVER YOU CHANGE THE LOADMODULE SECTION ABOVE, UPDATE THIS TOO!]
ClearModuleList
LoadModule php4_module C:/Program Files/Apache Group/PHP/sapi/php4apache.dll
AddModule mod_php4.c
AddType application/x-httpd-php .php
#AddModule mod_vhost_alias.c
AddModule mod_env.c
AddModule mod_log_config.c
</snip>

but in the first case i got:

LoadModule takes two arguments, a module name and the name of a shared
object file to load it from

in the second situation i got:

LoadModule takes two arguments, a module name and the name of a shared
object file to load it from

I looked around and it seems to me that i have to compile from the source in
order to get Apache working with the module.  but i don't have VC++ and
compliling seems too complicated.  any solutions?

thanks




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


_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com
--- End Message ---
--- Begin Message ---
 Ich bräuchte ganz dringend eure Hilfe, wegen einem Buggi PHP -
Script!!!!!!!!!!
Ich muss am Anfang von einer Page automatisch zwischen einem IE und Netscape
unterscheiden, da dann zwei vers. Weiterleitungen kommen!!!!!!!!

Das habe ich bis jetzt so gemacht!!!!!!!!!!!!!!

<?php

if($HTTP_USER_AGENT=="Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0)")

{?>

<meta http-equiv="refresh" content="0;URL=deutsch/index.php?con=home.htm">

<?}

else

{?>

<meta http-equiv="refresh" content="0;URL=cnv/index.htm">

<?}?>

Nur kann ich nicht jede einzelne IE Version hier aufführen bzw. auch noch
für jedes Betriebssystem!!!!!!!!!

Hast ihr ne Idee??????????????????????????????????????????????



--- End Message ---
--- Begin Message ---
Hi all!

I need your for a buggi PHP-Skript!

At the start of my Page my Script must automaticly decide between IE or
other Explorers!! Because the Iex Version is another then the Netscape
Version!!

My Scipt at the moment:

<?php

if($HTTP_USER_AGENT=="Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0)")

{?>

<meta http-equiv="refresh" content="0;URL=deutsch/index.php?con=home.htm">

<?}

else

{?>

<meta http-equiv="refresh" content="0;URL=cnv/index.htm">

<?}?>

The Problem is I cant write all Iex versions into the script... or I wont
...

Have anyone an idea ?????????????


--- End Message ---
--- Begin Message ---
You need to try a  broader check. You can use regular expressions for this:

if ( eregi( "ie", $HTTP_USER_AGENT ) ) ## IE browsers (all versions)
{
 ## do something
}
else ## all other browsers
{ 
     ## do something
}

The regular expression "eregi" is a case-insensitive search. You can use ereg for 
case-sensitive search.
There is also the "perl" regular expression function: preg_match, where you use perl 
like regular expressions. So, 
the above code would look like this:

if ( preg_match( "/ie/i", $HTTP_USER_AGENT ) ) ## IE browsers (all versions)
{
 ## do something
}
else ## all other browsers
{ 
     ## do something
}

In this case, the regex "/ie/i" .. the 'i' aftere the last '/' signifies a 
case-insensitive search.

Hope this helps! It works for me.
Good luck,
Nicole Amashta
www.aeontrek.com



"Fabian Hoffmann" <[EMAIL PROTECTED]> wrote in message 
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Hi all!
> 
> I need your for a buggi PHP-Skript!
> 
> At the start of my Page my Script must automaticly decide between IE or
> other Explorers!! Because the Iex Version is another then the Netscape
> Version!!
> 
> My Scipt at the moment:
> 
> <?php
> 
> if($HTTP_USER_AGENT=="Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0)")
> 
> {?>
> 
> <meta http-equiv="refresh" content="0;URL=deutsch/index.php?con=home.htm">
> 
> <?}
> 
> else
> 
> {?>
> 
> <meta http-equiv="refresh" content="0;URL=cnv/index.htm">
> 
> <?}?>
> 
> The Problem is I cant write all Iex versions into the script... or I wont
> ...
> 
> Have anyone an idea ?????????????
> 
> 



--- End Message ---
--- Begin Message ---
the php string functions strstr and stristr are faster and just as usefull 
as the regex stuff in this case, strstr(string haystack, string needle) is 
case sensitive, and stristr is insensitive.-dan

_________________________________________________________________
Join the world’s largest e-mail service with MSN Hotmail. 
http://www.hotmail.com

--- End Message ---
--- Begin Message ---
Here's a small CLASS that I use to distinguish between  various browsers. It
doesn't work with all browsers but works for most versions of
IE/netscape/opera.

http://www.utkalika.net/projects/browser.phps

R'twick Niceorgaw

"Fabian Hoffmann" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Hi all!
>
> I need your for a buggi PHP-Skript!
>
> At the start of my Page my Script must automaticly decide between IE or
> other Explorers!! Because the Iex Version is another then the Netscape
> Version!!
>
> My Scipt at the moment:
>
> <?php
>
> if($HTTP_USER_AGENT=="Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0)")
>
> {?>
>
> <meta http-equiv="refresh" content="0;URL=deutsch/index.php?con=home.htm">
>
> <?}
>
> else
>
> {?>
>
> <meta http-equiv="refresh" content="0;URL=cnv/index.htm">
>
> <?}?>
>
> The Problem is I cant write all Iex versions into the script... or I wont
> ...
>
> Have anyone an idea ?????????????
>




--- End Message ---
--- Begin Message ---
Hi guys, like I've mentioned some days ago, I solved my problem using mail() function. 
It was appear "Server error"
My SMTP server was correctly configured but one option wasn't.
Open IIS console, SMTP Service, right click, select the ACCESS menu, CONNECTION (Grant 
the access ONLY to your machine's IP or others,but include always your IP). Do the 
same thing for the next button "Relay". With these new option, all works fine!
Sorry for my english....bye!


Alberto Sartori - Developer
--- End Message ---
--- Begin Message ---
Hie all,

Do someone knows why i've got an error when my script is:

<?
include ("http://domain.com/test.php";)
?>


Error : Failed opening 'http://domain.com/test.php' for inclusion
(include_path='')

Other include on my localhost (server : IIS5) are ok


Thanks all

French kiss
Sonia



--- End Message ---
--- Begin Message ---
If  your server run at Linux : yes.
But  about windows it seems not.

I would like to know if there is a solution.


"Alberto. Sartori" <[EMAIL PROTECTED]> a écrit dans le message news: 
[EMAIL PROTECTED]
You can do this? use an URL as an argument for include?

-----Messaggio originale-----
Da: Sonia [mailto:[EMAIL PROTECTED]]
Inviato: mercoledì 27 marzo 2002 13.39
A: [EMAIL PROTECTED]
Oggetto: [PHP-WIN] Failed opening for inclusion


Hie all,

Do someone knows why i've got an error when my script is:

<?
include ("http://domain.com/test.php";)
?>


Error : Failed opening 'http://domain.com/test.php' for inclusion
(include_path='')

Other include on my localhost (server : IIS5) are ok


Thanks all

French kiss
Sonia




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



--- End Message ---
--- Begin Message ---
You can do this? use an URL as an argument for include?

-----Messaggio originale-----
Da: Sonia [mailto:[EMAIL PROTECTED]]
Inviato: mercoledì 27 marzo 2002 13.39
A: [EMAIL PROTECTED]
Oggetto: [PHP-WIN] Failed opening for inclusion


Hie all,

Do someone knows why i've got an error when my script is:

<?
include ("http://domain.com/test.php";)
?>


Error : Failed opening 'http://domain.com/test.php' for inclusion
(include_path='')

Other include on my localhost (server : IIS5) are ok


Thanks all

French kiss
Sonia




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

--- End Message ---

Reply via email to