|
Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com |
php-general Digest 21 Sep 2003 17:45:14 -0000 Issue 2310
php-general-digest-help
lists.php.net
Date: Sun Sep 21 2003 - 12:45:14 CDT
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
php-general Digest 21 Sep 2003 17:45:14 -0000 Issue 2310
Topics (messages 163332 through 163363):
Re: How to get the Web Address of the Script
163332 by: NukedWeb.aol.com
Re: Trying to View php.ini
163333 by: Eugene Lee
163340 by: Burhan Khalid
dynamic pop up
163334 by: fr r
163335 by: Becoming Digital
163338 by: Marek Kilimajer
Re: session_start() || shell access problem......
163336 by: Marek Kilimajer
163343 by: CF High
163344 by: CF High
163346 by: Rasmus Lerdorf
163347 by: Tom Rogers
163349 by: CF High
Re: Bypassing the 'open or save' dialog when outputting a docum ent
163337 by: [-^-!-%-
Re: php|cruise
163339 by: Stevie D Peele
163353 by: John W. Holmes
Re: Housing multiple classes under one class
163341 by: Burhan Khalid
PHP output|Buffer, PLEASE ADVISE
163342 by: nabil
163345 by: Rasmus Lerdorf
163348 by: Marek Kilimajer
Re: Problem's addign a script to my web page.
163350 by: Marek Kilimajer
Re: processing post requests
163351 by: Vadim Bendebury
163352 by: John Nichel
163354 by: Curt Zirzow
163355 by: andu
Re: consistent PHP function names?
163356 by: Raquel Rice
Class inheritance behaviour
163357 by: Gerard Samuel
163358 by: Robert Cummings
163360 by: Gerard Samuel
163363 by: Robert Cummings
Need help with a regex
163359 by: Adam Zey
163361 by: esctoday.com | Wouter van Vliet
Setting Up PHP
163362 by: Dalton Seymour
Administrivia:
To subscribe to the digest, e-mail:
php-general-digest-subscribe
lists.php.net
To unsubscribe from the digest, e-mail:
php-general-digest-unsubscribe
lists.php.net
To post to the list, e-mail:
php-general
lists.php.net
----------------------------------------------------------------------
attached mail follows:
In a message dated 9/21/2003 1:35:43 AM Eastern Standard Time,
php-general
zirzow.dyndns.org writes:
> The host: header is what HTTP_HOST is. If you can access the site
> by the IP, I'm not exactly sure what will happen in that case,
> cause the browser may not send that host: value.
>
If it's accessed by IP, the "Host: header is omitted, and $HTTP_HOST returns
the IP address. To build the full URL to that particular script, you would
have to piece it together, using protocol + "://" + $http_host + "/" +
$REQUEST_URI etc etc, not sure the exact code, but thats what ya gotta do...
attached mail follows:
On Sat, Sep 20, 2003 at 06:19:25PM -0400, Stephen Tiano wrote:
:
: I'm on a Mac PowerBook. I'm able to locate the php.ini file. But when I
: open it with BBEdit, it's a blank page. I just want to open it and
: either view it, or make a copy to view. But all I have is the blank. Any
: suggestions?
If you're talking about PHP 4.1.2 currently shipping with Mac OS X,
it does not come with a php.ini file anywhere (although you can grab
one from the source distribution and install it in /usr/lib).
attached mail follows:
andu wrote:
> On Sat, 20 Sep 2003 18:19:25 -0400
> Stephen Tiano <stiano
optonline.net> wrote:
>
>
>>I'm on a Mac PowerBook. I'm able to locate the php.ini file. But when I
>>open it with BBEdit, it's a blank page. I just want to open it and
>>either view it, or make a copy to view. But all I have is the blank. Any
>>suggestions?
>
>
> Put a file phpinfo.php with
> <?php
> phpinfo();
> ?>
> in your server's root and call it with the browser, it will tell you where the
> php.ini is, don't think it can be empty.
>
Actually, php.ini can be empty and php will start with default options.
--
Burhan Khalid
phplist[at]meidomus[dot]com
http://www.meidomus.com
attached mail follows:
i have something like a mail system and i want whenever the user recieves a new message ( and its stored in the databse ) a pop up window appears telling him that he has a new message.
so i guess i want something like a daemon but i'm not working on a unix server, i'm working on Windows NT platform.
Thx guys
---------------------------------
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
attached mail follows:
I, too, want many things. Perhaps you can show us some of the code you've tried and we'll work from there.
Edward Dudlik
Becoming Digital
www.becomingdigital.com
wishes | www.amazon.com/o/registry/EGDXEBBWTYUU
----- Original Message -----
From: "fr r" <rehab_php
yahoo.com>
To: <php-general
lists.php.net>
Sent: Sunday, 21 September, 2003 04:44
Subject: [PHP] dynamic pop up
i have something like a mail system and i want whenever the user recieves a new message ( and its stored in the databse ) a pop up window appears telling him that he has a new message.
so i guess i want something like a daemon but i'm not working on a unix server, i'm working on Windows NT platform.
Thx guys
---------------------------------
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
attached mail follows:
Do you want to run it from within browser or as php-gtk application?
Windows have a sheduler too, you can use it for php-gtk application. If
you want it from browser, you can have a hidden iframe that regularly
refreshes, if thare are any new messages, send the iframe javascript
that would pop up the window.
fr r wrote:
> i have something like a mail system and i want whenever the user recieves a new message ( and its stored in the databse ) a pop up window appears telling him that he has a new message.
>
> so i guess i want something like a daemon but i'm not working on a unix server, i'm working on Windows NT platform.
>
> Thx guys
>
>
> ---------------------------------
> Do you Yahoo!?
> Yahoo! SiteBuilder - Free, easy-to-use web site design software
attached mail follows:
Sessions don't work on command line and that is how you run your script
- from command line.
CF High wrote:
> Hey Robert.
>
> Indeed, hard to find the problem.
>
> I don't believe it's a whitespace issue, or even a "Headers sent issue",
> despite the fact that I'm receiving that error.
>
> Check it out:
>
> test.php contains just one line: <?$text = `usr/local/bin/php
> /path/to/my/php/test1.php`;?>
>
> test1.php, the file to be executed, contains just one line:
> <?session_start();?>
>
> There are no line breaks, spaces, etc.
>
> Still get "Headers already sent".
>
> Pretty strange, right?
>
> Correct me if I'm wrong, but I think the problem may be related to the fact
> that when files are executed from the command line, php now looks for
> include_paths, session_paths, etc. relative to the server root; not the site
> root.
>
> I can think of no other reason why include paths, starting sessions, and so
> on, return errors from the command line but ork perfectly fine when run in a
> browser.....
>
> Feel free to clue me in -- I know didly about shell access issues.
>
> --Noah
>
>
> "Robert Cummings" <robert
interjinn.com> wrote in message
> news:1064091763.19204.1.camel
blobule.suds...
>
>>On Sat, 2003-09-20 at 15:46, CF High wrote:
>>
>>>Hey all.
>>>
>>>I'm running a script from the command-line php interpreter as follows:
>>>(thanks to D. Souza for lead)
>>>
>>>$text = `usr/local/bin/php /path/to/my/php/page.php`;
>>>
>>>within the read file I want to enable sessions, so I session_start() at
>
> the
>
>>>top of the page:
>>>
>>><?
>>>session_start();
>>>?>
>>><?
>>> code to execute here.......
>>>?>
>>>
>>>Regardless of how I mess around with placement of session_start(), I get
>
> a
>
>>>"Headers already sent".
>>>
>>>Why? Nothing has been output to the browser within the read file!
>>>Furthermore, if I create a test page with just:
>>>
>>><?$text = `usr/local/bin/php /path/to/my/php/page.php`;?>
>>>
>>>Still receive "Headers already sent".
>>>
>>>My eyes are completely fried -- anyone feel like saving my vision?
>>
>>This often is difficult to detect when there's is implicit output
>>outside of the <? tag. Check the top of the included file or start php
>>script and see if there is any whitespace or newlines preceding the tag.
>>
>>HTH,
>>Rob.
>>--
>>.------------------------------------------------------------.
>>| InterJinn Application Framework - http://www.interjinn.com |
>>:------------------------------------------------------------:
>>| An application and templating framework for PHP. Boasting |
>>| a powerful, scalable system for accessing system services |
>>| such as forms, properties, sessions, and caches. InterJinn |
>>| also provides an extremely flexible architecture for |
>>| creating re-usable components quickly and easily. |
>>`------------------------------------------------------------'
>
>
attached mail follows:
Hmmmm,
Well, is there a way to pass params to file_to_be_executed in command line?
For example:
<?
$my_param = 'my_include_path';
$text = `usr/local/bin/php /path/to/my/php/page.php`;
?>
Somehow I need $my_param to be passed to page.php (the file to be processed
in command line).
Any ideas?
--Noah
"Marek Kilimajer" <kilimajer
webglobe.sk> wrote in message
news:3F6D7638.6050400
webglobe.sk...
> Sessions don't work on command line and that is how you run your script
> - from command line.
>
> CF High wrote:
> > Hey Robert.
> >
> > Indeed, hard to find the problem.
> >
> > I don't believe it's a whitespace issue, or even a "Headers sent issue",
> > despite the fact that I'm receiving that error.
> >
> > Check it out:
> >
> > test.php contains just one line: <?$text = `usr/local/bin/php
> > /path/to/my/php/test1.php`;?>
> >
> > test1.php, the file to be executed, contains just one line:
> > <?session_start();?>
> >
> > There are no line breaks, spaces, etc.
> >
> > Still get "Headers already sent".
> >
> > Pretty strange, right?
> >
> > Correct me if I'm wrong, but I think the problem may be related to the
fact
> > that when files are executed from the command line, php now looks for
> > include_paths, session_paths, etc. relative to the server root; not the
site
> > root.
> >
> > I can think of no other reason why include paths, starting sessions, and
so
> > on, return errors from the command line but ork perfectly fine when run
in a
> > browser.....
> >
> > Feel free to clue me in -- I know didly about shell access issues.
> >
> > --Noah
> >
> >
> > "Robert Cummings" <robert
interjinn.com> wrote in message
> > news:1064091763.19204.1.camel
blobule.suds...
> >
> >>On Sat, 2003-09-20 at 15:46, CF High wrote:
> >>
> >>>Hey all.
> >>>
> >>>I'm running a script from the command-line php interpreter as follows:
> >>>(thanks to D. Souza for lead)
> >>>
> >>>$text = `usr/local/bin/php /path/to/my/php/page.php`;
> >>>
> >>>within the read file I want to enable sessions, so I session_start() at
> >
> > the
> >
> >>>top of the page:
> >>>
> >>><?
> >>>session_start();
> >>>?>
> >>><?
> >>> code to execute here.......
> >>>?>
> >>>
> >>>Regardless of how I mess around with placement of session_start(), I
get
> >
> > a
> >
> >>>"Headers already sent".
> >>>
> >>>Why? Nothing has been output to the browser within the read file!
> >>>Furthermore, if I create a test page with just:
> >>>
> >>><?$text = `usr/local/bin/php /path/to/my/php/page.php`;?>
> >>>
> >>>Still receive "Headers already sent".
> >>>
> >>>My eyes are completely fried -- anyone feel like saving my vision?
> >>
> >>This often is difficult to detect when there's is implicit output
> >>outside of the <? tag. Check the top of the included file or start php
> >>script and see if there is any whitespace or newlines preceding the tag.
> >>
> >>HTH,
> >>Rob.
> >>--
> >>.------------------------------------------------------------.
> >>| InterJinn Application Framework - http://www.interjinn.com |
> >>:------------------------------------------------------------:
> >>| An application and templating framework for PHP. Boasting |
> >>| a powerful, scalable system for accessing system services |
> >>| such as forms, properties, sessions, and caches. InterJinn |
> >>| also provides an extremely flexible architecture for |
> >>| creating re-usable components quickly and easily. |
> >>`------------------------------------------------------------'
> >
> >
attached mail follows:
Thank the heavens above........
Actually, thank "Ben", a poster from php.net manual.
Looks like environment variables are not passed to file when it is executed
from the command line.
A workaround is:
$inc_path = $_SERVER['DOCUMENT_ROOT'] . '/';
$remaddr = getenv("DOCUMENT_ROOT");
putenv("DOCUMENT_ROOT=$inc_path");
That does the trick for what I need done now; namely, being able to include
files within my command line executed files.
Still, there must be a way to pass params to command line executed
files......
--Noah
"Cf High" <noah
newminddesign.com> wrote in message
news:20030921131313.1438.qmail
pb1.pair.com...
> Hmmmm,
>
> Well, is there a way to pass params to file_to_be_executed in command
line?
>
> For example:
>
> <?
> $my_param = 'my_include_path';
> $text = `usr/local/bin/php /path/to/my/php/page.php`;
> ?>
>
> Somehow I need $my_param to be passed to page.php (the file to be
processed
> in command line).
>
> Any ideas?
>
> --Noah
>
>
>
> "Marek Kilimajer" <kilimajer
webglobe.sk> wrote in message
> news:3F6D7638.6050400
webglobe.sk...
> > Sessions don't work on command line and that is how you run your script
> > - from command line.
> >
> > CF High wrote:
> > > Hey Robert.
> > >
> > > Indeed, hard to find the problem.
> > >
> > > I don't believe it's a whitespace issue, or even a "Headers sent
issue",
> > > despite the fact that I'm receiving that error.
> > >
> > > Check it out:
> > >
> > > test.php contains just one line: <?$text = `usr/local/bin/php
> > > /path/to/my/php/test1.php`;?>
> > >
> > > test1.php, the file to be executed, contains just one line:
> > > <?session_start();?>
> > >
> > > There are no line breaks, spaces, etc.
> > >
> > > Still get "Headers already sent".
> > >
> > > Pretty strange, right?
> > >
> > > Correct me if I'm wrong, but I think the problem may be related to the
> fact
> > > that when files are executed from the command line, php now looks for
> > > include_paths, session_paths, etc. relative to the server root; not
the
> site
> > > root.
> > >
> > > I can think of no other reason why include paths, starting sessions,
and
> so
> > > on, return errors from the command line but ork perfectly fine when
run
> in a
> > > browser.....
> > >
> > > Feel free to clue me in -- I know didly about shell access issues.
> > >
> > > --Noah
> > >
> > >
> > > "Robert Cummings" <robert
interjinn.com> wrote in message
> > > news:1064091763.19204.1.camel
blobule.suds...
> > >
> > >>On Sat, 2003-09-20 at 15:46, CF High wrote:
> > >>
> > >>>Hey all.
> > >>>
> > >>>I'm running a script from the command-line php interpreter as
follows:
> > >>>(thanks to D. Souza for lead)
> > >>>
> > >>>$text = `usr/local/bin/php /path/to/my/php/page.php`;
> > >>>
> > >>>within the read file I want to enable sessions, so I session_start()
at
> > >
> > > the
> > >
> > >>>top of the page:
> > >>>
> > >>><?
> > >>>session_start();
> > >>>?>
> > >>><?
> > >>> code to execute here.......
> > >>>?>
> > >>>
> > >>>Regardless of how I mess around with placement of session_start(), I
> get
> > >
> > > a
> > >
> > >>>"Headers already sent".
> > >>>
> > >>>Why? Nothing has been output to the browser within the read file!
> > >>>Furthermore, if I create a test page with just:
> > >>>
> > >>><?$text = `usr/local/bin/php /path/to/my/php/page.php`;?>
> > >>>
> > >>>Still receive "Headers already sent".
> > >>>
> > >>>My eyes are completely fried -- anyone feel like saving my vision?
> > >>
> > >>This often is difficult to detect when there's is implicit output
> > >>outside of the <? tag. Check the top of the included file or start php
> > >>script and see if there is any whitespace or newlines preceding the
tag.
> > >>
> > >>HTH,
> > >>Rob.
> > >>--
> > >>.------------------------------------------------------------.
> > >>| InterJinn Application Framework - http://www.interjinn.com |
> > >>:------------------------------------------------------------:
> > >>| An application and templating framework for PHP. Boasting |
> > >>| a powerful, scalable system for accessing system services |
> > >>| such as forms, properties, sessions, and caches. InterJinn |
> > >>| also provides an extremely flexible architecture for |
> > >>| creating re-usable components quickly and easily. |
> > >>`------------------------------------------------------------'
> > >
> > >
attached mail follows:
On Sun, 21 Sep 2003, CF High wrote:
> Well, is there a way to pass params to file_to_be_executed in command line?
>
> For example:
>
> <?
> $my_param = 'my_include_path';
> $text = `usr/local/bin/php /path/to/my/php/page.php`;
> ?>
>
> Somehow I need $my_param to be passed to page.php (the file to be processed
> in command line).
>
> Any ideas?
Just put them after the filename and grab them out of your $argv array.
-Rasmus
attached mail follows:
Hi,
Monday, September 22, 2003, 2:13:57 AM, you wrote:
CH> Hmmmm,
CH> Well, is there a way to pass params to file_to_be_executed in command line?
CH> For example:
CH> <?
CH> $my_param = 'my_include_path';
CH> $text = `usr/local/bin/php /path/to/my/php/page.php`;
?>>
CH> Somehow I need $my_param to be passed to page.php (the file to be processed
CH> in command line).
CH> Any ideas?
CH> --Noah
CH> "Marek Kilimajer" <kilimajer
webglobe.sk> wrote in message
CH> news:3F6D7638.6050400
webglobe.sk...
>> Sessions don't work on command line and that is how you run your script
>> - from command line.
>>
>> CF High wrote:
>> > Hey Robert.
>> >
>> > Indeed, hard to find the problem.
>> >
>> > I don't believe it's a whitespace issue, or even a "Headers sent issue",
>> > despite the fact that I'm receiving that error.
>> >
>> > Check it out:
>> >
>> > test.php contains just one line: <?$text = `usr/local/bin/php
>> > /path/to/my/php/test1.php`;?>
>> >
>> > test1.php, the file to be executed, contains just one line:
>> > <?session_start();?>
>> >
>> > There are no line breaks, spaces, etc.
>> >
>> > Still get "Headers already sent".
>> >
>> > Pretty strange, right?
>> >
>> > Correct me if I'm wrong, but I think the problem may be related to the
CH> fact
>> > that when files are executed from the command line, php now looks for
>> > include_paths, session_paths, etc. relative to the server root; not the
CH> site
>> > root.
>> >
>> > I can think of no other reason why include paths, starting sessions, and
CH> so
>> > on, return errors from the command line but ork perfectly fine when run
CH> in a
>> > browser.....
>> >
>> > Feel free to clue me in -- I know didly about shell access issues.
>> >
>> > --Noah
>> >
>> >
>> > "Robert Cummings" <robert
interjinn.com> wrote in message
>> > news:1064091763.19204.1.camel
blobule.suds...
>> >
>> >>On Sat, 2003-09-20 at 15:46, CF High wrote:
>> >>
>> >>>Hey all.
>> >>>
>> >>>I'm running a script from the command-line php interpreter as follows:
>> >>>(thanks to D. Souza for lead)
>> >>>
>> >>>$text = `usr/local/bin/php /path/to/my/php/page.php`;
>> >>>
>> >>>within the read file I want to enable sessions, so I session_start() at
>> >
>> > the
>> >
>> >>>top of the page:
>> >>>
>> >>><?
>> >>>session_start();
>> >>>?>
>> >>><?
>> >>> code to execute here.......
>> >>>?>
>> >>>
>> >>>Regardless of how I mess around with placement of session_start(), I
CH> get
>> >
>> > a
>> >
>> >>>"Headers already sent".
>> >>>
>> >>>Why? Nothing has been output to the browser within the read file!
>> >>>Furthermore, if I create a test page with just:
>> >>>
>> >>><?$text = `usr/local/bin/php /path/to/my/php/page.php`;?>
>> >>>
>> >>>Still receive "Headers already sent".
>> >>>
>> >>>My eyes are completely fried -- anyone feel like saving my vision?
>> >>
>> >>This often is difficult to detect when there's is implicit output
>> >>outside of the <? tag. Check the top of the included file or start php
>> >>script and see if there is any whitespace or newlines preceding the tag.
>> >>
>> >>HTH,
>> >>Rob.
>> >>--
>> >>.------------------------------------------------------------.
>> >>| InterJinn Application Framework - http://www.interjinn.com |
>> >>:------------------------------------------------------------:
>> >>| An application and templating framework for PHP. Boasting |
>> >>| a powerful, scalable system for accessing system services |
>> >>| such as forms, properties, sessions, and caches. InterJinn |
>> >>| also provides an extremely flexible architecture for |
>> >>| creating re-usable components quickly and easily. |
>> >>`------------------------------------------------------------'
>> >
>> >
Try this
<?php
$args = '"hello world"';
$text = `/usr/bin/php /usr/local/apache/htdocs/in.php $args`;
echo $text;
?>
in.php contains:
<?php
echo '<pre>';
phpinfo(32);
echo '</pre>';
echo $_SERVER['argv'][1];
?>
That should do what you want if I understand the problem :)
--
regards,
Tom
attached mail follows:
Finally!
Thanks Tom & Rasmus for pointing me in the right direction.
God, two days of bleary eyed searching -- enough is enough. Thank you guys
for helping out a newbie.....
--Noah
"Tom Rogers" <trogers
kwikin.com> wrote in message
news:3836670437.20030921234130
kwikin.com...
> Hi,
>
> Monday, September 22, 2003, 2:13:57 AM, you wrote:
> CH> Hmmmm,
>
> CH> Well, is there a way to pass params to file_to_be_executed in command
line?
>
> CH> For example:
>
> CH> <?
> CH> $my_param = 'my_include_path';
> CH> $text = `usr/local/bin/php /path/to/my/php/page.php`;
> ?>>
>
> CH> Somehow I need $my_param to be passed to page.php (the file to be
processed
> CH> in command line).
>
> CH> Any ideas?
>
> CH> --Noah
>
>
>
> CH> "Marek Kilimajer" <kilimajer
webglobe.sk> wrote in message
> CH> news:3F6D7638.6050400
webglobe.sk...
> >> Sessions don't work on command line and that is how you run your script
> >> - from command line.
> >>
> >> CF High wrote:
> >> > Hey Robert.
> >> >
> >> > Indeed, hard to find the problem.
> >> >
> >> > I don't believe it's a whitespace issue, or even a "Headers sent
issue",
> >> > despite the fact that I'm receiving that error.
> >> >
> >> > Check it out:
> >> >
> >> > test.php contains just one line: <?$text = `usr/local/bin/php
> >> > /path/to/my/php/test1.php`;?>
> >> >
> >> > test1.php, the file to be executed, contains just one line:
> >> > <?session_start();?>
> >> >
> >> > There are no line breaks, spaces, etc.
> >> >
> >> > Still get "Headers already sent".
> >> >
> >> > Pretty strange, right?
> >> >
> >> > Correct me if I'm wrong, but I think the problem may be related to
the
> CH> fact
> >> > that when files are executed from the command line, php now looks for
> >> > include_paths, session_paths, etc. relative to the server root; not
the
> CH> site
> >> > root.
> >> >
> >> > I can think of no other reason why include paths, starting sessions,
and
> CH> so
> >> > on, return errors from the command line but ork perfectly fine when
run
> CH> in a
> >> > browser.....
> >> >
> >> > Feel free to clue me in -- I know didly about shell access issues.
> >> >
> >> > --Noah
> >> >
> >> >
> >> > "Robert Cummings" <robert
interjinn.com> wrote in message
> >> > news:1064091763.19204.1.camel
blobule.suds...
> >> >
> >> >>On Sat, 2003-09-20 at 15:46, CF High wrote:
> >> >>
> >> >>>Hey all.
> >> >>>
> >> >>>I'm running a script from the command-line php interpreter as
follows:
> >> >>>(thanks to D. Souza for lead)
> >> >>>
> >> >>>$text = `usr/local/bin/php /path/to/my/php/page.php`;
> >> >>>
> >> >>>within the read file I want to enable sessions, so I session_start()
at
> >> >
> >> > the
> >> >
> >> >>>top of the page:
> >> >>>
> >> >>><?
> >> >>>session_start();
> >> >>>?>
> >> >>><?
> >> >>> code to execute here.......
> >> >>>?>
> >> >>>
> >> >>>Regardless of how I mess around with placement of session_start(), I
> CH> get
> >> >
> >> > a
> >> >
> >> >>>"Headers already sent".
> >> >>>
> >> >>>Why? Nothing has been output to the browser within the read file!
> >> >>>Furthermore, if I create a test page with just:
> >> >>>
> >> >>><?$text = `usr/local/bin/php /path/to/my/php/page.php`;?>
> >> >>>
> >> >>>Still receive "Headers already sent".
> >> >>>
> >> >>>My eyes are completely fried -- anyone feel like saving my vision?
> >> >>
> >> >>This often is difficult to detect when there's is implicit output
> >> >>outside of the <? tag. Check the top of the included file or start
php
> >> >>script and see if there is any whitespace or newlines preceding the
tag.
> >> >>
> >> >>HTH,
> >> >>Rob.
> >> >>--
> >> >>.------------------------------------------------------------.
> >> >>| InterJinn Application Framework - http://www.interjinn.com |
> >> >>:------------------------------------------------------------:
> >> >>| An application and templating framework for PHP. Boasting |
> >> >>| a powerful, scalable system for accessing system services |
> >> >>| such as forms, properties, sessions, and caches. InterJinn |
> >> >>| also provides an extremely flexible architecture for |
> >> >>| creating re-usable components quickly and easily. |
> >> >>`------------------------------------------------------------'
> >> >
> >> >
>
>
> Try this
>
> <?php
> $args = '"hello world"';
> $text = `/usr/bin/php /usr/local/apache/htdocs/in.php $args`;
> echo $text;
> ?>
>
> in.php contains:
>
> <?php
> echo '<pre>';
> phpinfo(32);
> echo '</pre>';
> echo $_SERVER['argv'][1];
> ?>
>
> That should do what you want if I understand the problem :)
>
> --
> regards,
> Tom
attached mail follows:
This is a client issue.
There should be an option on the dialog box that you can check to do that.
_j
=P e p i e D e s i g n s
www.pepiedesigns.com
Providing Solutions That Increase Productivity
Web Developement. Database. Hosting. Multimedia.
On Fri, 19 Sep 2003, Curt Zirzow wrote:
> * Thus wrote FLOWERS, Gareth (Gareth.FLOWERS
eur.crowncork.com):
> > Hi,
> >
> > I'v created several pages for my company website that output php to MS Word
> > and MS Excel. These work fine fine but as soon as you load the page you get
> > a dialog that asks whether to open or save the document. We always select
> > 'open' as we want view the contents in Excel/Word applications.
> > Is there a way to stop this dialog box appearing everytime - can I just open
> > the document without it appearing. I know theres a checkbox at the bottom of
> > the dialog you can unitck but I only want this setting to apply to certain
> > pages.
>
> Nope, unfortunately you don't have that power, and for good reasons.
> It all depends on the client's file (mime/type) associations on
> their local computer.
>
> If this were the case malicious people could force visitors to
> launch an .eml file (or something containing a virus) without their
> consent.
>
> Curt
> --
> "I used to think I was indecisive, but now I'm not so sure."
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
attached mail follows:
I would love to go, but 15 year olds don't usually have 1500
dollars.....:)
Stevie
On Sat, 20 Sep 2003 23:30:51 -0400 "John W. Holmes"
<holmes072000
charter.net> writes:
> Is anyone planning on going to this?
>
> http://www.phparch.com/cruise/
>
> I'm trying to go. It would be nice to put a face to the name with a
> few
> people out there. Let me know.
>
> --
> ---John Holmes...
>
> Amazon Wishlist: www.amazon.com/o/registry/3BEXC84AB3A5E/
>
> php|architect: The Magazine for PHP Professionals – www.phparch.com
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
>
________________________________________________________________
The best thing to hit the internet in years - Juno SpeedBand!
Surf the web up to FIVE TIMES FASTER!
Only $14.95/ month - visit www.juno.com to sign up today!
attached mail follows:
John Nichel wrote:
> John W. Holmes wrote:
>
>> Is anyone planning on going to this?
>>
>> http://www.phparch.com/cruise/
>>
>> I'm trying to go. It would be nice to put a face to the name with a
>> few people out there. Let me know.
>>
[snip]
> The wife has been
> bugging me to bring her on a cruise for years now
Yeah, same here. I think this is the ONLY PHP conference she'd ever
agree to going to. :)
--
---John Holmes...
Amazon Wishlist: www.amazon.com/o/registry/3BEXC84AB3A5E/
php|architect: The Magazine for PHP Professionals – www.phparch.com
attached mail follows:
Gerard Samuel wrote:
[ snip ]
> By having one class where they all can share each others data.
> Is it just a dream?
> The only way I know how is by making object/objects like
> $foo->bar->do_something()
Have you tried using inheritence?
class foo { /* class methods, objects */ } class bar extends foo { .. }
--
Burhan Khalid
phplist[at]meidomus[dot]com
http://www.meidomus.com
attached mail follows:
Hi all;
In general , when you open an html file , the browser start to display and
draw the tables, then start to display the pictures (on slow internet
connection).. but when you make your html code inside an php the output will
be different, it will buffer everything then it will pop the whole page.
I have a question.. how can I make php output and display my website as
stream html..
because I have a postnuke website and it take ages for popping all contents
, but when I saved it as html and I upload it on the same apache server ,
the home page start to be displayed picture after picture and so on ...
Please any advise ??
Nabil
attached mail follows:
On Sun, 21 Sep 2003, nabil wrote:
> In general , when you open an html file , the browser start to display and
> draw the tables, then start to display the pictures (on slow internet
> connection).. but when you make your html code inside an php the output will
> be different, it will buffer everything then it will pop the whole page.
>
> I have a question.. how can I make php output and display my website as
> stream html..
>
> because I have a postnuke website and it take ages for popping all contents
> , but when I saved it as html and I upload it on the same apache server ,
> the home page start to be displayed picture after picture and so on ...
>
> Please any advise ??
The output won't actually be different unless you have turned on
zlib.output_compression or output_buffering in your php.ini file. Both of
these are off by default. Without these PHP will not do any buffering.
The only buffering you see is done by Apache and this buffering happens in
your static file case as well. It is natural that a static file version
of a big complex page will render faster than the PHP-generated one.
You can ask Apache to flush its internal buffer by using the flush() call
from PHP, but it really isn't advised to do that too often. Apache is
buffering in order to spew out full TCP packets for maximum efficiency.
Using flush() defeats that and your application end-to-end page delivery
time will increase.
-Rasmus
attached mail follows:
Check "Activate compression" setting in postnuke admin. You want it to
be "No". If this setting is activated, ob_start("ob_gzhandler"); is
called in pnInit()
nabil wrote:
> Hi all;
>
> In general , when you open an html file , the browser start to display and
> draw the tables, then start to display the pictures (on slow internet
> connection).. but when you make your html code inside an php the output will
> be different, it will buffer everything then it will pop the whole page.
>
> I have a question.. how can I make php output and display my website as
> stream html..
>
> because I have a postnuke website and it take ages for popping all contents
> , but when I saved it as html and I upload it on the same apache server ,
> the home page start to be displayed picture after picture and so on ...
>
>
> Please any advise ??
>
> Nabil
>
attached mail follows:
Do you have shell access(ssh)? You can use that. Other way is to ask
your ISP to change the parmissions or to enable chmod command.
stratis Aftousmis wrote:
> Hello, i will be a succinct as possible. I downloaded a php script (a
> chatbox) for my web page. The web page is from my ISP, 15Mb space, you have
> to have knowledge of UNIX and Html to use the service(to create the page
> and upload to the site). I wrote the page in Html, downloaded the php
> script, intalled and changed the file extention from html to php. The site
> from which i got the php chatbox script say's i have to 'chmod' the
> directory where the file's are to be created to 777...the script create the
> file's if they don't exist with 'touch':
>
> <snip>
> if(!is_writable($latest) || !is_writable($archive)) {
> touch($latest);
> touch($archive)
> if (!is_writable($latest) || !is_writable($archive)) {
> exit("$latest or $archive is not writable, please check your permission's
> and try again");
> }
> </snip>
>
> One problem i have is the 'chmod'command is not implemented on this site
> (SunOS 5.8):
>
> <snip>
> lftp stratus
ftp.ccsi.com:~/public_html/ext> chmod 777 archives
> chmod: Access failed: 502 SITE command not implemented. (archives)
> lftp stratus
ftp.ccsi.com:~/public_html/ext>
> </snip>
>
> i then tryed to do using the php 'chmod' function to 777 on the directory in
> question, no go. (hey...don't laugh)
>
> When i try to use the chatbox in question, i get the error's:
>
> <snip>
> Warning: utime failed: Permission denied in
> /export/home/stratus/public_html/ext/minichat2.inc.php on line 102
>
> Warning: utime failed: Permission denied in
> /export/home/stratus/public_html/ext/minichat2.inc.php on line 103
> /export/home/stratus/public_html/ext/archive/minichat2.latest or
> /export/home/stratus/public_html/ext/archive/minichat2.archive is not
> writable. Please check your permissions and try again.
> </snip>
>
> those line's are both the touch command's, the file's are not being created,
> it won't even work if i create them myself.
> I *hope* that's enough info for a diagnosis. Any help would be welcome.
>
> stratis.
>
attached mail follows:
Andu,
thank you and James Johnson, who sent me an email, so much.
You guys are gentlmen and scholars, as opposed to some others who would
lecture you wasting your (and their own!) time, stating the obvious,
saying nothing of value, but enjoying their litte egos.
thanks again,
/vb
Andu wrote:
> On Sat, 20 Sep 2003 17:28:45 -0700
> Vadim Bendebury <moosor
comcast.net> wrote:
>
>
>>The web page has a form with a following element in it:
>>
>><select multiple size="4" name="city">
>> <option selected value=0>no preference</option>
>> <option value=2>Paris</option>
>> <option value=1>London</option>
>> <option value=3>Madrid</option>
>></select>
>
>
> <select multiple size="4" name="city[]">
> <option selected value=0>no preference</option>
> <option value=2>Paris</option>
> <option value=1>London</option>
> <option value=3>Madrid</option>
> </select>
>
>>The intention is to be able to pick multiple cities. However, when the
>>request arrives on the server, the $_POST array includes just the one
>>last pick, no matter how many options are highligted when the "submit"
>>button is hit.
>>
>>What's the deal - is the an HTML code problem or PHP problem? Is it at
>>all possible to have multiple choices derived from this kind of form
>>element?
>>
>>Thanks in advance!
>>
>>--
>>PHP General Mailing List (http://www.php.net/)
>>To unsubscribe, visit: http://www.php.net/unsub.php
>>
>>
>>
>
>
>
> ____
> Regards, Andu Novac
attached mail follows:
VB wrote:
> Dan Anderson wrote:
>
>>> do you feel good being a moron?
>>>
>>
>>
>> Do you feel good being a rude ass?
>>
> no, I don't, and I regret sending it to the list.
>
> But I sure do think that replying with an RTFM is not a good thing to do.
You're right...it's something we shouldn't have to do to something as
trivial as this. Manual aside, this has been discussed MANY times, and
a search of the archives would have given you your answer. So
basically, if people would take a little initiative, spend five minutes
looking for the answer to their problem, no-one here would have to say RTFM.
> Indeed, why wouldn't you guys just mention that the brackets are
> required when naming the <select> box. Let it even be sent along with
> your lecturing.
>
>> He was offering you help. At least say thank you.
>>
>>
> give me a break, man, saying 'read the manual' is not offering help.
You're confusing help with hand-out.
> /vb
>
>> You're missing a point clearly outlined in the manual.
>>
>> -Dan
--
By-Tor.com
It's all about the Rush
http://www.by-tor.com
attached mail follows:
* Thus wrote Vadim Bendebury (moosor
comcast.net):
> Andu,
>
> thank you and James Johnson, who sent me an email, so much.
>
> You guys are gentlmen and scholars, as opposed to some others who would
> lecture you wasting your (and their own!) time, stating the obvious,
> saying nothing of value, but enjoying their litte egos.
>
ok. first you publicly *attempt* to bash Jason, then send try to
look good by sending a apology message to the group (for sending a
flame to the list instead of personally) Now with what you just
said I have come to believe that your original post was
intentional.
You're extended comments are unwelcomed here.
Curt
--
"I used to think I was indecisive, but now I'm not so sure."
attached mail follows:
On Sun, 21 Sep 2003 08:00:56 -0700
Vadim Bendebury <moosor
comcast.net> wrote:
> Andu,
>
> thank you and James Johnson, who sent me an email, so much.
Don't mention it.
>
> You guys are gentlmen and scholars, as opposed to some others who would
> lecture you wasting your (and their own!) time, stating the obvious,
> saying nothing of value, but enjoying their litte egos.
Don't expect things to change soon though.
>
> thanks again,
> /vb
>
> Andu wrote:
> > On Sat, 20 Sep 2003 17:28:45 -0700
> > Vadim Bendebury <moosor
comcast.net> wrote:
> >
> >
> >>The web page has a form with a following element in it:
> >>
> >><select multiple size="4" name="city">
> >> <option selected value=0>no preference</option>
> >> <option value=2>Paris</option>
> >> <option value=1>London</option>
> >> <option value=3>Madrid</option>
> >></select>
> >
> >
> > <select multiple size="4" name="city[]">
> > <option selected value=0>no preference</option>
> > <option value=2>Paris</option>
> > <option value=1>London</option>
> > <option value=3>Madrid</option>
> > </select>
> >
> >>The intention is to be able to pick multiple cities. However, when the
> >>request arrives on the server, the $_POST array includes just the one
> >>last pick, no matter how many options are highligted when the "submit"
> >>button is hit.
> >>
> >>What's the deal - is the an HTML code problem or PHP problem? Is it at
> >>all possible to have multiple choices derived from this kind of form
> >>element?
> >>
> >>Thanks in advance!
> >>
> >>--
> >>PHP General Mailing List (http://www.php.net/)
> >>To unsubscribe, visit: http://www.php.net/unsub.php
> >>
> >>
> >>
> >
> >
> >
> > ____
> > Regards, Andu Novac
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
>
____
Regards, Andu Novac
attached mail follows:
On Wed, 17 Sep 2003 21:22:36 +1000
Justin French <justin
indent.com.au> wrote:
> I posted a similar topic a few months back. I guess the answer is
> that the collaborative nature of open source, and the fact that
> PHP has grown from very humble beginnings has meant that naming
> standards and conventions are a little lacking.
>
> It would've been nice if these issues were rectified in PHP5 with
> deprecated aliases to the old names left in for backwards
> compatibility, but it'd be a HUGE job :)
>
>
> Justin
I suppose that if this really bothers someone, they could create
their own aliases.
function decodehtmlentities($string, $quote_style, $charset) {
return html_entity_decode($string, $quote_style, $charset);
}
--
Raquel
============================================================
You and I want our lives to matter. We want our lives to make a
real difference - to be of genuine consequence in the world. We
know that there is no satisfaction in merely going through the
motions, even if those motions make us successful, or even if we
have arranged to make those motions pleasant. We want to know we
have made some impact on the world. In fact, you and I want to
contribute to the quality of life. We want to make the world work.
--Werner Erhard
attached mail follows:
Just double checking with the php crowd.
Code example:
-------------
<?php
$bar = new second_class;
echo $bar->foo() . '<br />';
var_dump(get_class_methods('second_class'));
class first_class
{
function foo()
{
echo 'foo from class first_class';
}
}
class second_class extends first_class
{
function foo()
{
echo 'foo from class second_class';
}
}
?>
-----------
My goal (if feasable). To be able to house multiple classes under one
class, and to not have copied references of one class in
another.
For example, housing ADODB, Smarty, and other misc classes under one
class/object,
and not having a copied reference to ADODB in other "child" classes that
need access to a database.
Now to my code snippet above.
What Im testing is to see if class methods behave like regular
functions, where
it cannot be defined more than once.
Trying to define a function more than once produces an error, but it
seems that redefining a class method overwrites the previous class
method of the same name.
So if I were to work towards my goal, there is a possiblity that class
methods can overwrite themselves.
So (theoritically) if Smarty and ADODB have the same class method names,
problems would arise.
So Im looking to see if this is "normal" class behaviour.
If so, then I shouldn't even try to work towards my goal, as its not
prudent.
attached mail follows:
Method overriding is one of the core principles of any Object Oriented
(OO) language. By having second_class extend first_class you get all the
functionality of first_class, but generally you extend a class because
you want to inherit all of the functionality with a few differences. For
this reason method overriding is important to get the different
functionality but maintain the developer interface. So yes the behaviour
you are asking about is correct. Generally speaking I can't see a
problem occuring between Smarty and ADODB, since you are extending
these, and you can currently only extend one or the other. So it follows
that multiple definitions cannot occur unless you specifically attempt
to multiply define the same method.
HTH and HIU (Hope I Understood :)
Cheers,
Rob.
On Sun, 2003-09-21 at 12:41, Gerard Samuel wrote:
> Just double checking with the php crowd.
> Code example:
> -------------
> <?php
>
> $bar = new second_class;
> echo $bar->foo() . '<br />';
> var_dump(get_class_methods('second_class'));
>
> class first_class
> {
> function foo()
> {
> echo 'foo from class first_class';
> }
> }
>
> class second_class extends first_class
> {
> function foo()
> {
> echo 'foo from class second_class';
> }
> }
>
> ?>
> -----------
> My goal (if feasable). To be able to house multiple classes under one
> class, and to not have copied references of one class in
> another.
> For example, housing ADODB, Smarty, and other misc classes under one
> class/object,
> and not having a copied reference to ADODB in other "child" classes that
> need access to a database.
> Now to my code snippet above.
> What Im testing is to see if class methods behave like regular
> functions, where
> it cannot be defined more than once.
> Trying to define a function more than once produces an error, but it
> seems that redefining a class method overwrites the previous class
> method of the same name.
> So if I were to work towards my goal, there is a possiblity that class
> methods can overwrite themselves.
> So (theoritically) if Smarty and ADODB have the same class method names,
> problems would arise.
>
> So Im looking to see if this is "normal" class behaviour.
> If so, then I shouldn't even try to work towards my goal, as its not
> prudent.
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
--
.------------------------------------------------------------.
| InterJinn Application Framework - http://www.interjinn.com |
:------------------------------------------------------------:
| An application and templating framework for PHP. Boasting |
| a powerful, scalable system for accessing system services |
| such as forms, properties, sessions, and caches. InterJinn |
| also provides an extremely flexible architecture for |
| creating re-usable components quickly and easily. |
`------------------------------------------------------------'
attached mail follows:
Robert Cummings wrote:
>Method overriding is one of the core principles of any Object Oriented
>(OO) language. By having second_class extend first_class you get all the
>functionality of first_class, but generally you extend a class because
>you want to inherit all of the functionality with a few differences. For
>this reason method overriding is important to get the different
>functionality but maintain the developer interface. So yes the behaviour
>you are asking about is correct. Generally speaking I can't see a
>problem occuring between Smarty and ADODB, since you are extending
>these, and you can currently only extend one or the other. So it follows
>that multiple definitions cannot occur unless you specifically attempt
>to multiply define the same method.
>
Thanks for replying.
The idea that I have in mind is something like ->
1. Create a dummy class with no methods/variables (if neccessary).
class dummy
{
}
2. Have ADODB extend dummy
class ADODB extends dummy
{
function Execute()
{
}
}
3. Have Smarty extend dummy
class Smarty extends dummy
{
function display()
{
}
}
Repeat as neccessary for other known classes, or autoload them from a
function.
So if method overwriting is normal behaviour, then the idea I have is
potentially not sound as it can break interfaces.
Is it the best way to go, Im not sure at the moment.
I may just leave my code as it is. Im passing the DB object by
reference. So what am I worried about....
Thanks again...
attached mail follows:
Are you looking to create a single point of access to any libraries your
application may wish to use and to subsequently base this on a singleton
pattern (only one instance of the object may exist?)?
Rob.
On Sun, 2003-09-21 at 13:18, Gerard Samuel wrote:
> Robert Cummings wrote:
>
> >Method overriding is one of the core principles of any Object Oriented
> >(OO) language. By having second_class extend first_class you get all the
> >functionality of first_class, but generally you extend a class because
> >you want to inherit all of the functionality with a few differences. For
> >this reason method overriding is important to get the different
> >functionality but maintain the developer interface. So yes the behaviour
> >you are asking about is correct. Generally speaking I can't see a
> >problem occuring between Smarty and ADODB, since you are extending
> >these, and you can currently only extend one or the other. So it follows
> >that multiple definitions cannot occur unless you specifically attempt
> >to multiply define the same method.
> >
> Thanks for replying.
> The idea that I have in mind is something like ->
> 1. Create a dummy class with no methods/variables (if neccessary).
> class dummy
> {
> }
>
> 2. Have ADODB extend dummy
> class ADODB extends dummy
> {
> function Execute()
> {
> }
> }
>
> 3. Have Smarty extend dummy
> class Smarty extends dummy
> {
> function display()
> {
> }
> }
>
> Repeat as neccessary for other known classes, or autoload them from a
> function.
> So if method overwriting is normal behaviour, then the idea I have is
> potentially not sound as it can break interfaces.
> Is it the best way to go, Im not sure at the moment.
> I may just leave my code as it is. Im passing the DB object by
> reference. So what am I worried about....
> Thanks again...
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
--
.------------------------------------------------------------.
| InterJinn Application Framework - http://www.interjinn.com |
:------------------------------------------------------------:
| An application and templating framework for PHP. Boasting |
| a powerful, scalable system for accessing system services |
| such as forms, properties, sessions, and caches. InterJinn |
| also provides an extremely flexible architecture for |
| creating re-usable components quickly and easily. |
`------------------------------------------------------------'
attached mail follows:
I'm using the following regex:
/<tr><td class='newsitemtitle-td'>([^<]*)<\/td><td
class='newsitemposter-td'><span
class=([^>]*)>([^<]*)<\/span>([^<]*)<\/td><\/tr> <tr><td
class='newsitemcontent-td' colspan=2>([^<]*)<\/td><\/tr>/
Everything works well, except I've ran into one problem. In the last text
field, the bulk of the newsitem, sometimes the poster includes some HTML
tags (Like "<br \>", but others could be inserted). What I need to do is
modify that last submatch "([^<]*)" so that instead of matching until it
reaches a "<" (It catches on the br tag and ruins the match), it will match
until it reaches the entire <\/td> tag. Can somebody help me out with this?
I'm completely stumped about how to go about doing a "match until string" as
opposed to a "match until character".
Regards, Adam.
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.520 / Virus Database: 318 - Release Date: 18/09/2003
attached mail follows:
Pretty easy, just make the regex stuff a little less greedy .. ;)
class='newsitemcontent-td' colspan=2>(.*?)<\/td><\/tr>/
That would catch it .. And yes, the question mark is both correct and
confusing. But it doesn't mean "maybe" in here. Now let's hope that your
post doesn't include <td></tr> ..
Wouter
Ps. I'm assuming you use perl compatible regexes (preg_*) and not POSIX
(ereg_*), don't know if this works for POSIX as well
-----Original Message-----
From: Adam Zey [mailto:guspaz
gus.ath.cx]
Sent: Sunday, September 21, 2003 7:07 PM
To: php-general
lists.php.net
Subject: [PHP] Need help with a regex
I'm using the following regex:
/<tr><td class='newsitemtitle-td'>([^<]*)<\/td><td
class='newsitemposter-td'><span
class=([^>]*)>([^<]*)<\/span>([^<]*)<\/td><\/tr> <tr><td
class='newsitemcontent-td' colspan=2>([^<]*)<\/td><\/tr>/
Everything works well, except I've ran into one problem. In the last text
field, the bulk of the newsitem, sometimes the poster includes some HTML
tags (Like "<br \>", but others could be inserted). What I need to do is
modify that last submatch "([^<]*)" so that instead of matching until it
reaches a "<" (It catches on the br tag and ruins the match), it will match
until it reaches the entire <\/td> tag. Can somebody help me out with this?
I'm completely stumped about how to go about doing a "match until string" as
opposed to a "match until character".
Regards, Adam.
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.520 / Virus Database: 318 - Release Date: 18/09/2003
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
attached mail follows:
I'm trying to setup PHP support on an small 2 station Intranet for
development purposes. I'm using PWS under Win98 SE. I believe I'm
experiencing a common problem, but I seem to be unable to work my way around
it. At the suggestion of several installation tutorials, after installing
it, I have made a simple PHP file including the following statement:
<?php phpinfo();?>
I'm supposed to be able to test the functioning of PHP with that simple
command to confirm it's working. Yet, all I get is a security alert:
Security Alert! The PHP CGI cannot be accessed directly.
This PHP CGI binary was compiled with force-cgi-redirect enabled. This
means that a page will only be served up if the REDIRECT_STATUS CGI variable
is set, e.g. via an Apache Action directive.
For more information as to why this behavior exists, see the manual page
for CGI security.
For more information about changing this behavior or re-enabling this
webserver, consult the installation file that came with this distribution,
or visit the manual page.
I have tried for the life of me to disable the CGI.Force_Redirect or what
ever it is in the PHP.INI file but all that does is to make IE come back
with file not found.
What do I have to do to disable the security from getting in the way of
displaying PHP pages?
Sincerely,
Dalton Seymour
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]