Re: [PHP] Virtual includes of PHP into SSI pages.

2005-11-16 Thread cron
For this to work you must set html and shml as a php file extension in apache. This is because shml includes are made before it reaches apache output, so if you have file "a" including file "b" it the same as having only one file "a" with copy and paste of file "b" with shml file extension and thu

Re: [PHP] Virtual Directory Support

2005-11-15 Thread Brad Glonka
The script does not give me any output. I think this is what I need to enable. On 11/15/05, Jasper Bryant-Greene <[EMAIL PROTECTED]> wrote: > Jay Blanchard wrote: > > [snip] > > I think I may be headed down the wring direction. > > I'm using Apache. > > What I'd like to be able to do is to > > p

Re: [PHP] Virtual Directory Support

2005-11-15 Thread Jasper Bryant-Greene
Brad Glonka wrote: The script does not give me any output. I think this is what I need to enable. No, as has already been said on the list. That "virtual directory" setting has nothing to do with this AFAIK. Are you running PHP as an Apache module or as CGI? Jasper -- PHP General Mailing L

Re: [PHP] Virtual Directory Support

2005-11-15 Thread Curt Zirzow
On Tue, Nov 15, 2005 at 02:50:53PM -0500, Brad Glonka wrote: > I think I may be headed down the wring direction. Yeah, the Virtual Directory Support isn't really what its name seems to be, it basically is enabled when php is compiled with Zend Thread Saftey which only effects how certain things be

Re: [PHP] Virtual Directory Support

2005-11-15 Thread Jasper Bryant-Greene
Jay Blanchard wrote: [snip] I think I may be headed down the wring direction. I'm using Apache. What I'd like to be able to do is to pass arguments to a script as though it were a directory. Something like so http://server.com/script.php/some-virtual/dirs/ [/snip] http://us2.php.net/dir http:/

RE: [PHP] Virtual Directory Support

2005-11-15 Thread Jay Blanchard
[snip] I think I may be headed down the wring direction. I'm using Apache. What I'd like to be able to do is to pass arguments to a script as though it were a directory. Something like so http://server.com/script.php/some-virtual/dirs/ [/snip] http://us2.php.net/dir http://httpd.apache.org/docs/

Re: [PHP] Virtual Directory Support

2005-11-15 Thread Brad Glonka
I think I may be headed down the wring direction. I'm using Apache. What I'd like to be able to do is to pass arguments to a script as though it were a directory. Something like so http://server.com/script.php/some-virtual/dirs/ On 11/15/05, Jay Blanchard <[EMAIL PROTECTED]> wrote: > [snip] > Re

RE: [PHP] Virtual Directory Support

2005-11-15 Thread Jay Blanchard
[snip] Real simple question How do I change this from disabled to enabled. [/snip] Flip the switch? /subtle :) This an IIS question. Please see http://www.microsoft.com/windows2000/en/server/iis/default.asp?url=/windows2 000/en/server/iis/htm/core/iicodirv.htm -- PHP General Mailing List

Re: [PHP] Virtual Host problem

2004-09-23 Thread Pahlevanzadeh Mohsen
please send it to Apache mailling list. --- "a.k.a kioto" <[EMAIL PROTECTED]> wrote: > Hi all i've try to configure Apache with Virtual > Host in the main > configuration file of Apache i have modify like > this: > > #NameVirtualHost *:80 > NameVirtualHost * > # > # VirtualHost example: > # Almo

Re: [PHP] Virtual Host problem

2004-09-23 Thread Steve Brown
> Someone correct me if I am wrong, but haven't you just confused the > hell out of Apache? You have just declared three virtual hosts, all > listening on port 80, but apache has no way to identify them based on > the incoming packets. You need to add a "ServerName" directive to > each virtual ho

Re: [PHP] Virtual Host problem

2004-09-23 Thread John Nichel
a.k.a kioto wrote: I have insert a file index.php in all main folder of virtaul host: /usr/local/apache/users/default/index.php /usr/local/apache/users/mysite/index.php /usr/local/apache/users/brothersite/index.php I have modified the file hosts in etc/hosts. 39.244.88.126 mordoch 127.

RE: [PHP] Virtual Host problem

2004-09-23 Thread Chris Gregors
as. -Original Message- From: Jason Davidson [mailto:[EMAIL PROTECTED] Sent: Thursday, September 23, 2004 11:42 AM To: a.k.a kioto; [EMAIL PROTECTED] Subject: Re: [PHP] Virtual Host problem your problem, as correctly outputted, is permission based, and as far as i can tell, has no

Re: [PHP] Virtual Host problem

2004-09-23 Thread Jason Davidson
your problem, as correctly outputted, is permission based, and as far as i can tell, has nothing to do with PHP.. Jason "a.k.a kioto" <[EMAIL PROTECTED]> wrote: > > Hi all i've try to configure Apache with Virtual Host in the main > configuration file of Apache i have modify like this: > > #N

Re: [PHP] virtual domain own php.ini

2004-04-22 Thread pan
"Rick Fletcher" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > > on most servers ini_set will be the best you can hope for > > > > security settings won't allow alternative php.ini file reads > > If we're talking about Apache, you can place php config commands in an > .htaccess or h

RE: [PHP] virtual domain own php.ini

2004-04-22 Thread Rick Fletcher
> on most servers ini_set will be the best you can hope for > > security settings won't allow alternative php.ini file reads If we're talking about Apache, you can place php config commands in an .htaccess or httpd.conf file. Those files can easily be associated with a particular VirtualHost. C

Re: [PHP] virtual domain own php.ini

2004-04-22 Thread pan
"John Nichel" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > pan wrote: > > "Robby Russell" <[EMAIL PROTECTED]> wrote in message > > news:[EMAIL PROTECTED] > > > >>Trying to use own php.ini file (rather than the one that the webserver > >>sees by default) for a web site (on a box th

Re: [PHP] virtual domain own php.ini

2004-04-22 Thread John Nichel
pan wrote: "Robby Russell" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] Trying to use own php.ini file (rather than the one that the webserver sees by default) for a web site (on a box that has many websites that utilize the other) and used the following instructions, but it doesn't

Re: [PHP] virtual domain own php.ini

2004-04-22 Thread pan
"Robby Russell" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > > Trying to use own php.ini file (rather than the one that the webserver > sees by default) for a web site (on a box that has many websites that > utilize the other) and used the following instructions, but it doesn't >

RE: [PHP] Virtual Directory Support

2003-12-03 Thread Ralph Guzman
html pages appear to be loading faster. I guess compiling from source provides better performance than installing using rpm. -Original Message- From: Jason Wong [mailto:[EMAIL PROTECTED] Sent: Wednesday, December 03, 2003 1:43 AM To: [EMAIL PROTECTED] Subject: Re: [PHP] Virtual Dire

Re: [PHP] Virtual Directory Support

2003-12-03 Thread Jason Wong
On Wednesday 03 December 2003 12:51, Ralph Guzman wrote: > I have a new installation of PHP 4.1.2 and it appears I cannot run php > scripts outside of apache root directory. How did you come to this conclusion? Was there an error message? If so, what did it say? If there was no error message, the

RE: [PHP] virtual() test

2003-02-28 Thread John W. Holmes
> At 03:09 28.02.2003, John W. Holmes said: > [snip] > >Can anyone with Apache verify that you can pass arguments inside of a > >virtual() call? Something like: > > > >Virtual("script.pl?id=1") > > > >And have $id available within script.pl. > > > >I don't ha

Re: [PHP] virtual() test

2003-02-28 Thread Ernest E Vogelsinger
At 03:09 28.02.2003, John W. Holmes said: [snip] >Can anyone with Apache verify that you can pass arguments inside of a >virtual() call? Something like: > >Virtual("script.pl?id=1") > >And have $id available within script.pl. > >I don't have access to an Apac

Re: [PHP] virtual() test

2003-02-27 Thread Tom Rogers
Hi, Friday, February 28, 2003, 12:09:30 PM, you wrote: JWH> Can anyone with Apache verify that you can pass arguments inside of a JWH> virtual() call? Something like: JWH> Virtual("script.pl?id=1") JWH> And have $id available within script.pl. JWH> I don't have access to an Apache server right

Re: [PHP] Virtual includes

2002-08-26 Thread Steve Keller
At 11:12 AM 8/26/2002 +0200, you wrote: > I'm trying include .php files which reside in alternative directories or > sub-directories. Such as a file which reside in www/chat/page.php, and for > this page I would like to include a file which resides in www/forum/include/ Using $DOCUMENT_ROOT h

RE: [PHP] Virtual includes

2002-08-26 Thread Scott Houseman
Hi there. This should work I think. include( '../forum/include/test.php' ); This uses the path in relation to the current directory the script resides in. Regards -Scott > -Original Message- > From: Gregory Barker [mailto:[EMAIL PROTECTED]] > Sent: 26 August 2002 11:12 > To: [EMAIL PR

Re: [PHP] Virtual includes

2002-08-26 Thread David T-G
Gregory -- [You know, you shouldn't just reply to any old message and start a new topic; send a fresh message to the list instead so that it will be the start of a new thread.] ...and then Gregory Barker said... % % Hi all, Hello! % % I'm trying include .php files which reside in alternativ

Re: [PHP] virtual coin toss 55%

2002-05-17 Thread Jason Wong
On Friday 12 April 2002 13:07, Randy Johnson wrote: > I was surfing the internet today and found a site that offered a coin toss > game in PHP.The site claimed that it used the latest and most random > computer algorithms to do the Coin Toss. > > In the next line it said that you (the player)

Re: [PHP] virtual coin toss 55%

2002-05-17 Thread Richard Baskett
I want to say right from the beginning that there is a better way of doing this, but this will work :) Just keep track of what the user has thrown so far and do a check on it.. So that if it's less than 45% change the flip to what the user picked.. If that will put it over 45% then make it opposi

Re: [PHP] virtual host problem

2002-05-10 Thread Ian Newlands
Re question 2: You can set this using the php_value command in apache. I think you need to have the SAPI version configured for this to work though. You might want to check that out. I have only done this on XP, haven't tried it on linux yet. ServerAdmin [EMAIL PROTECTED] DocumentRoo

Re: [PHP] virtual

2001-10-30 Thread Nikola Karoviæ
no wait, try require or but not using apsolute path like require(../../cgi-bin/folder/program.pl); for eg. - volim popit, volim zagalamit - Original Message - From: Gary <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: 30. listopad 2001 16:30 Subje

Re: [PHP] virtual

2001-10-30 Thread Gary
Tried that, same result. looks like I am going to have to strip off the php from that page and change it to shtml Gary Nikola karoviæ wrote: > you could try using require(/cgi-bin/folder/program.pl); instead > - > volim popit, volim zagalamit > - Original Message - > Fr

Re: [PHP] virtual

2001-10-30 Thread Nikola Karoviæ
you could try using require(/cgi-bin/folder/program.pl); instead - volim popit, volim zagalamit - Original Message - From: Gary <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: 30. listopad 2001 04:41 Subject: [PHP] virtual > What would cause a fatal error using virtual(

Re: [PHP] virtual() call to CGI script

2001-08-28 Thread Egan
On Wed, 29 Aug 2001 02:14:10 +1000, "Jason Brooke" <[EMAIL PROTECTED]> wrote: >Another way you might be able to do it is find an environment variable that >is only present when the cgi's are executed by the virtual() call, Could not find any ... >use the apache SetEnvIf directive combined with

Re: [PHP] virtual() call to CGI script

2001-08-28 Thread Jason Brooke
> After testing this I see that: > > Apache uses the IP address of the remote host to determine whether to > allow or deny access. > > Even though PHP is running on localhost, and making a request via the > virtual() function, Apache still knows the IP address of the remote > host, and uses that.

Re: [PHP] virtual() call to CGI script

2001-08-28 Thread Egan
On Wed, 29 Aug 2001 00:16:10 +1000, "Jason Brooke" <[EMAIL PROTECTED]> wrote: >It will work in .htaccess if you enable it, or you might even be able to use >something like: > > >(untested again) After testing this I see that: Apache uses the IP address of the remote host to determine whether t

Re: [PHP] virtual() call to CGI script

2001-08-28 Thread Jason Brooke
> We don't define any virtual hosts in httpd.conf; instead, we use a > custom handler hooked into post-read-request. So I won't be able to > define "/path/to/usr/cgi" in httpd.conf. > > But if that concept will work in user .htaccess files, it would be an > improvement over my current techniques.

Re: [PHP] virtual() call to CGI script

2001-08-28 Thread Egan
On Tue, 28 Aug 2001 23:38:30 +1000, "Jason Brooke" <[EMAIL PROTECTED]> wrote: >if you're using apache, something along the lines of the following untested >directives should prevent anyone but the localhost (which is where your >virtual() calls should be coming from) from accessing the cgi's via

Re: [PHP] virtual() call to CGI script

2001-08-28 Thread Jason Brooke
if you're using apache, something along the lines of the following untested directives should prevent anyone but the localhost (which is where your virtual() calls should be coming from) from accessing the cgi's via http order deny, allow deny from all allow from localhost > Thanks for the ide

Re: [PHP] virtual() call to CGI script

2001-08-28 Thread Egan
On Tue, 28 Aug 2001 16:38:14 +1000, "Jason Brooke" <[EMAIL PROTECTED]> wrote: >> I use the PHP virtual() function to call a CGI script, and that works >> fine. But I need to prevent the CGI from being executed directly, in >> case someone tries to access its URL. >> >> Since HTTP_REFERER is unre

Re: [PHP] virtual() call to CGI script

2001-08-27 Thread Jason Brooke
> I use the PHP virtual() function to call a CGI script, and that works > fine. But I need to prevent the CGI from being executed directly, in > case someone tries to access its URL. > > Since HTTP_REFERER is unreliable, I was wondering how others have > solved this problem ... > > > Egan move i

Re: [PHP] Virtual Servers (apache) and php

2001-08-19 Thread B. van Ouwerkerk
>AddType application/x-httpd-php .php .php3 > AddType application/x-httpd-php-source .phps If those lines aren't you should get your code in your browser. 403 might be a rights issue. Say you created the file you're trying to open as root you should chown it to the user under which apa

Re: [PHP] Virtual Servers (apache) and php

2001-08-14 Thread CGI GUY
Wouldn't it be just to add, say, AddType application/x-httpd-php .php .php3 AddType application/x-httpd-php-source .phps or approximation within the tags? I think (fingers crossed here) that should do it... --- Jay Paulson <[EMAIL PROTECTED]> wrote: > Hello- > > I'm using the virutal

Re: [PHP] Virtual Hosts document root directory.

2001-05-23 Thread Joseph Blythe
Richard Quadling wrote: > I assume there is a variable somewhere? > > Ideas/suggestions please. I think its the predefined apache variable $DOCUMENT_ROOT (look under predefined variables in manual), or try $SCRIPT_FILENAME, you may then parse the part you need. I use Linux so I am only guess