php-install Digest 20 Jan 2002 17:35:00 -0000 Issue 659
Topics (messages 5629 through 5637):
How to set up php.ini to load .so files using dl()?
5629 by: Joelmon2001.aol.com
Re: PHP path shown on browser
5630 by: Fred
5631 by: Tony
5632 by: Tony
5633 by: Tony
5637 by: Steven Cayford
Re: Configuring IIS on Win2k
5634 by: Numero 6
PHP 4.1.1 / Apache 1.3.22 (ISAPI) and snmp.dll won't work
5635 by: Andreas Jud
5636 by: Andreas Jud
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 ---
Hello, on linux, using apache, I have php 4.05
Anyway, I want to use the
dl() feature, but when I try I get errors stating it cannot find/load that
.so file
That's fine
So I checked the 'dynamic extensions' path in my php.ini file
It showed
./
as the path
So, can I create a directory and plop ming, gd library, and other .so files
in this directory, point to it using php.ini, restart apache, and then when I
load extensions dynamically, it will work on the php page?
I just want to use gd, ming, and others via
dl("module.so");
instead of reconfiguring php
I want to test it out, but I have no clue how to get started. Php.net I
didn't find out how, the general list offered literally no help. That's ok,
it's not such a common task. But how do I set up php to allow this to work
without fail? I've had enough fail ;)
Thanks
Joel
--- End Message ---
--- Begin Message ---
There is no need for the pound bang line in php, the script alias setting in
apache takes care of this. Furthermore, everything outside of the <??> is
rendered as pure html and that is why it is showing up in the browser.
Fred
Tony <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Hi all,
>
> I got a problem when i run php as a CGI binary.
> I wrote a php script as follow
>
> #!/usr/local/bin/php
> <?
> print "Hello World";
> ?>
>
> however, i got the following result when i called it from browser
>
> #!/usr/local/bin/php
> Hello World
>
> The path of PHP is always shown at the top of the browser.
>
> Does anyone know the solution?
>
> Thanks
> Tony.
>
>
>
--- End Message ---
--- Begin Message ---
Thanks Fred,
Since i do not install the php as Apache modules, I have to add the
path of the php binary at the top of the script. It is just like perl.
"Fred" <[EMAIL PROTECTED]> 级糶秎ン穝籇
:[EMAIL PROTECTED]
> There is no need for the pound bang line in php, the script alias setting
in
> apache takes care of this. Furthermore, everything outside of the <??> is
> rendered as pure html and that is why it is showing up in the browser.
>
> Fred
>
> Tony <[EMAIL PROTECTED]> wrote in message
> [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> > Hi all,
> >
> > I got a problem when i run php as a CGI binary.
> > I wrote a php script as follow
> >
> > #!/usr/local/bin/php
> > <?
> > print "Hello World";
> > ?>
> >
> > however, i got the following result when i called it from browser
> >
> > #!/usr/local/bin/php
> > Hello World
> >
> > The path of PHP is always shown at the top of the browser.
> >
> > Does anyone know the solution?
> >
> > Thanks
> > Tony.
> >
> >
> >
>
>
--- End Message ---
--- Begin Message ---
I have fixed the problem. The problem came out because PHP cannot access
php.ini. "#!/usr/local/bin/php" will disappear once PHP can read the
doc_root in php.ini.
However, i got another problem. If i run a problem that involve many php
files, many "#!/usr/local/bin/php" will appear on the browser. If works fine
if the program is just a php file.
For example :
Case I
----------------------------
#!/usr/local/bin/php
<?
print "Hello World";
?>
-----------------------------
It works fine.
Case II
---- index.php ------------------
#!/usr/local/bin/php
<?php
echo "Hello World!";
require("config.php");
echo "Hello World?";
?>
----- config.php ---------------------
#!/usr/local/bin/php
<?php
echo "In configure file";
.....
?>
-----------------------------------
The result is
Hello World!
#!/usr/local/bin/php
In configure file
Hello World?
i know the reason. PHP treat "#!/usr/local/bin/php" in config.php as html.
Simply remove "#!/usr/local/bin/php" in config.php can fix the problem.
However, it is very time-consuming to find out which files should take away
the line.
Does someone know how to modify the source code so that
"#!/usr/local/bin/php" will be ignored or the lines starting with "#" will
be treated as commend.
If you have no time to tell me the step, just tell me what file I should
modify or give me some hints. Thanks
"Tony" <[EMAIL PROTECTED]> 级糶秎ン穝籇
:[EMAIL PROTECTED]
> Hi all,
>
> I got a problem when i run php as a CGI binary.
> I wrote a php script as follow
>
> #!/usr/local/bin/php
> <?
> print "Hello World";
> ?>
>
> however, i got the following result when i called it from browser
>
> #!/usr/local/bin/php
> Hello World
>
> The path of PHP is always shown at the top of the browser.
>
> Does anyone know the solution?
>
> Thanks
> Tony.
>
>
>
--- End Message ---
--- Begin Message ---
FYI
The version of my PHP is 4.1.1
"Tony" <[EMAIL PROTECTED]> 级糶秎ン穝籇
:[EMAIL PROTECTED]
> I have fixed the problem. The problem came out because PHP cannot access
> php.ini. "#!/usr/local/bin/php" will disappear once PHP can read the
> doc_root in php.ini.
>
> However, i got another problem. If i run a problem that involve many php
> files, many "#!/usr/local/bin/php" will appear on the browser. If works
fine
> if the program is just a php file.
>
> For example :
> Case I
> ----------------------------
> #!/usr/local/bin/php
> <?
> print "Hello World";
> ?>
> -----------------------------
> It works fine.
>
> Case II
> ---- index.php ------------------
> #!/usr/local/bin/php
> <?php
> echo "Hello World!";
> require("config.php");
> echo "Hello World?";
> ?>
> ----- config.php ---------------------
> #!/usr/local/bin/php
> <?php
> echo "In configure file";
> .....
> ?>
> -----------------------------------
> The result is
>
> Hello World!
> #!/usr/local/bin/php
> In configure file
> Hello World?
>
> i know the reason. PHP treat "#!/usr/local/bin/php" in config.php as html.
> Simply remove "#!/usr/local/bin/php" in config.php can fix the problem.
> However, it is very time-consuming to find out which files should take
away
> the line.
>
> Does someone know how to modify the source code so that
> "#!/usr/local/bin/php" will be ignored or the lines starting with "#" will
> be treated as commend.
>
> If you have no time to tell me the step, just tell me what file I should
> modify or give me some hints. Thanks
>
>
> "Tony" <[EMAIL PROTECTED]> 级糶秎ン穝籇
> :[EMAIL PROTECTED]
> > Hi all,
> >
> > I got a problem when i run php as a CGI binary.
> > I wrote a php script as follow
> >
> > #!/usr/local/bin/php
> > <?
> > print "Hello World";
> > ?>
> >
> > however, i got the following result when i called it from browser
> >
> > #!/usr/local/bin/php
> > Hello World
> >
> > The path of PHP is always shown at the top of the browser.
> >
> > Does anyone know the solution?
> >
> > Thanks
> > Tony.
> >
> >
> >
>
>
--- End Message ---
--- Begin Message ---
I don't know if this is exactly the problem but check out
http://www.php.net/manual/en/security.cgi-bin.php
Under case 4 at the bottom it has a referce to a compile time option
--enable-discard-path which sounds like what you're looking for. Or else
put the binary in your cgi-bin directory?
-Steve
On 2002.01.20 06:14:16 -0600 Tony wrote:
> FYI
>
> The version of my PHP is 4.1.1
>
> "Tony" <[EMAIL PROTECTED]> 级糶秎ン穝籇
> :[EMAIL PROTECTED]
> > I have fixed the problem. The problem came out because PHP cannot
> access
> > php.ini. "#!/usr/local/bin/php" will disappear once PHP can read the
> > doc_root in php.ini.
> >
> > However, i got another problem. If i run a problem that involve many
> php
> > files, many "#!/usr/local/bin/php" will appear on the browser. If works
> fine
> > if the program is just a php file.
> >
> > For example :
> > Case I
> > ----------------------------
> > #!/usr/local/bin/php
> > <?
> > print "Hello World";
> > ?>
> > -----------------------------
> > It works fine.
> >
> > Case II
> > ---- index.php ------------------
> > #!/usr/local/bin/php
> > <?php
> > echo "Hello World!";
> > require("config.php");
> > echo "Hello World?";
> > ?>
> > ----- config.php ---------------------
> > #!/usr/local/bin/php
> > <?php
> > echo "In configure file";
> > .....
> > ?>
> > -----------------------------------
> > The result is
> >
> > Hello World!
> > #!/usr/local/bin/php
> > In configure file
> > Hello World?
> >
> > i know the reason. PHP treat "#!/usr/local/bin/php" in config.php as
> html.
> > Simply remove "#!/usr/local/bin/php" in config.php can fix the problem.
> > However, it is very time-consuming to find out which files should take
> away
> > the line.
> >
> > Does someone know how to modify the source code so that
> > "#!/usr/local/bin/php" will be ignored or the lines starting with "#"
> will
> > be treated as commend.
> >
> > If you have no time to tell me the step, just tell me what file I
> should
> > modify or give me some hints. Thanks
> >
> >
> > "Tony" <[EMAIL PROTECTED]> 级糶秎ン穝籇
> > :[EMAIL PROTECTED]
> > > Hi all,
> > >
> > > I got a problem when i run php as a CGI binary.
> > > I wrote a php script as follow
> > >
> > > #!/usr/local/bin/php
> > > <?
> > > print "Hello World";
> > > ?>
> > >
> > > however, i got the following result when i called it from browser
> > >
> > > #!/usr/local/bin/php
> > > Hello World
> > >
> > > The path of PHP is always shown at the top of the browser.
> > >
> > > Does anyone know the solution?
> > >
> > > Thanks
> > > Tony.
> > >
> > >
> > >
> >
> >
>
>
>
> --
> PHP Install 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]
>
>
--- End Message ---
--- Begin Message ---
"Parag Mahajan" <[EMAIL PROTECTED]> ha scritto nel messaggio
001101c1a0d2$c5576560$7e8c3cca@gautammahajan">news:001101c1a0d2$c5576560$7e8c3cca@gautammahajan...
> Hello group,
> I am a newbie to PHP & having Windows 2000 + IIS + PHP.
>
> Can anyone tell me what did I not do?
>
> I did the following things.
> 1.install PHP
> 2.Configure PHP as in Internet Service Manager.
> 3.Add the ISAPI filter as from C:\php\SAPI\php4isapi.dll
> 4.Add app Mapping as C:\php\php.exe
> 5.Run net stop issadmin
> 6.While doing net start w3svc
>
I think you have to choose between ISAPI and CGI.
This way you configured both.
--- End Message ---
--- Begin Message ---
hi,
if i configure apache(1.3.22) to use php(4.1.1) as an isapi module, and
enable snmp!
Now if i try to start the apache as an service, the start fails!
Eventlog says:
The Apache service named J:\Program Files\Apache Group\Apache\Apache.exe
reported the following error:
>>> Cannot load j:/program files/apache group/apache/php/sapi/php4apache.dll
into server: (127) The specified procedure could not be found: <<<
before the error.log file could be opened.
More information may be available in the error.log file. .
Any Ideas? Is it a Bug? a Feature ?
Thanks for every info
andy
--- End Message ---
--- Begin Message ---
Oh... i've forgot to say witch OS, i use!
It's under Windows 2000!
Cheers
andy
"Andreas Jud" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> hi,
>
> if i configure apache(1.3.22) to use php(4.1.1) as an isapi module, and
> enable snmp!
>
> Now if i try to start the apache as an service, the start fails!
>
> Eventlog says:
> The Apache service named J:\Program Files\Apache Group\Apache\Apache.exe
> reported the following error:
>
> >>> Cannot load j:/program files/apache
group/apache/php/sapi/php4apache.dll
> into server: (127) The specified procedure could not be found: <<<
>
> before the error.log file could be opened.
>
> More information may be available in the error.log file. .
>
>
>
> Any Ideas? Is it a Bug? a Feature ?
>
>
>
>
> Thanks for every info
>
> andy
>
>
--- End Message ---