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
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
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
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
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:/
[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/
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
[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
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
> 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
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.
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
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
"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
> 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
"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
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
"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
>
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
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
> 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
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
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
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
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
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
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)
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 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
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
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
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(
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
> 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.
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
> 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.
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
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
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
> 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
>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
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
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
43 matches
Mail list logo