RE: [PHP] Error while passing parameters as path

2001-08-27 Thread Jaxon

I've also been having problems with trying to pass parameters in the path,
using PHP as a CGI.  I would hate to go into production with this site with
page.php?query=value&query2=value2 type of URL's, but I've not been able to
find a way to get page.php/value/value2 to work (throws Premature end of
script headers).

If anyone has ANY suggestions about how to get this working with the CGI
version, it would be most appreciated! :)

cheers,
jaxon

> -Original Message-
> From: Rasmus Lerdorf [mailto:[EMAIL PROTECTED]]
> Sent: Sunday, August 26, 2001 9:07 AM
> To: Anas Mughal
> Cc: [EMAIL PROTECTED]
> Subject: RE: [PHP] Error while passing parameters as path
>
>
> > Actually, I need to run as CGI because I have customized
> extensiont to PHP
> > that my hosting company will not imbed in their PHP-Apache module. I am
> > totally fine with that.
>
> Why don't you just dl() your extension into the module version?
>
> > Bottom line is that I need to run PHP as CGI.
> >
> > Is there a way for this work in that mode?
>
> I dunno.  Has been so long since I have used the CGI version for direct
> web stuff.  Play with it and figure it out.
>
> -Rasmus
>
>
> --
> PHP General 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]
>
>


-- 
PHP General 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]




RE: [PHP] Error while passing parameters as path

2001-08-26 Thread Rasmus Lerdorf

If you use the ext/ext_skel mechanism for creating your extension
framework your extension will be able to build shared automatically.

Just do ./configure --with-blah=shared and look in modules/

-Rasmus

On Mon, 27 Aug 2001, Anas Mughal wrote:

> I like your idea about using dl().
> Could someone please point me where I could read on how to write dynamic
> loading PHP extensions.
> Thank you very much.
>
>
> P.S. I found one at http://www.webtechniques.com/archives/2001/01/junk/
>  Please let me know of any other good resources. Thanks.
>
>
>
>
> -Original Message-
> From: Rasmus Lerdorf [mailto:[EMAIL PROTECTED]]
> Sent: Sunday, August 26, 2001 9:07 AM
> To: Anas Mughal
> Cc: [EMAIL PROTECTED]
> Subject: RE: [PHP] Error while passing parameters as path
>
>
> > Actually, I need to run as CGI because I have customized extensiont to PHP
> > that my hosting company will not imbed in their PHP-Apache module. I am
> > totally fine with that.
>
> Why don't you just dl() your extension into the module version?
>


-- 
PHP General 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]




RE: [PHP] Error while passing parameters as path

2001-08-26 Thread Anas Mughal

I like your idea about using dl().
Could someone please point me where I could read on how to write dynamic
loading PHP extensions.
Thank you very much.


P.S. I found one at http://www.webtechniques.com/archives/2001/01/junk/
 Please let me know of any other good resources. Thanks.




-Original Message-
From: Rasmus Lerdorf [mailto:[EMAIL PROTECTED]]
Sent: Sunday, August 26, 2001 9:07 AM
To: Anas Mughal
Cc: [EMAIL PROTECTED]
Subject: RE: [PHP] Error while passing parameters as path


> Actually, I need to run as CGI because I have customized extensiont to PHP
> that my hosting company will not imbed in their PHP-Apache module. I am
> totally fine with that.

Why don't you just dl() your extension into the module version?


-- 
PHP General 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]




RE: [PHP] Error while passing parameters as path

2001-08-26 Thread Rasmus Lerdorf

> Actually, I need to run as CGI because I have customized extensiont to PHP
> that my hosting company will not imbed in their PHP-Apache module. I am
> totally fine with that.

Why don't you just dl() your extension into the module version?

> Bottom line is that I need to run PHP as CGI.
>
> Is there a way for this work in that mode?

I dunno.  Has been so long since I have used the CGI version for direct
web stuff.  Play with it and figure it out.

-Rasmus


-- 
PHP General 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]




RE: [PHP] Error while passing parameters as path

2001-08-25 Thread Anas Mughal

yes, I am running as CGI.
How should that matter?

Actually, I need to run as CGI because I have customized extensiont to PHP
that my hosting company will not imbed in their PHP-Apache module. I am
totally fine with that.
Bottom line is that I need to run PHP as CGI.

Is there a way for this work in that mode?



-Original Message-
From: Rasmus Lerdorf [mailto:[EMAIL PROTECTED]]
Sent: Sunday, August 26, 2001 2:14 AM
To: Anas Mughal
Cc: [EMAIL PROTECTED]
Subject: Re: [PHP] Error while passing parameters as path


Are you running PHP 3 as a CGI?  Things work/don't work a bit differently
in CGI mode.

-Rasmus

On Sun, 26 Aug 2001, Anas Mughal wrote:

> All,
> I read the article by John Coggeshall on building search engine friendly
> pages. Now, I trying to pass my script parameters as path (instead of
> "?param=value¶m2=value2").
>
> However, for some reason I keep on getting the following error:
>
> Fatal error: Unable to open
> /home/mydomain/public_html/try.phtml/param1/123 in - on line 0
> No input file specified.
>
> This is what I run:
> http://www.mydomain.com/try.phtml/param1/123
>
> It seems like PHP is trying to read the file 123 at the given path. For
some
> reason, PHP doesn't realize the try.phtml is the script.
>
> I am trying this with PHP3. However, my production server is running PHP4
> and it works there. Is this a new feature in PHP4 or do I need to build
PHP3
> with some configuration for this to work?
>
> Thank you in advance.
> --
> anas mughal
>
>
>


-- 
PHP General 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]




Re: [PHP] Error while passing parameters as path

2001-08-25 Thread Rasmus Lerdorf

Are you running PHP 3 as a CGI?  Things work/don't work a bit differently
in CGI mode.

-Rasmus

On Sun, 26 Aug 2001, Anas Mughal wrote:

> All,
> I read the article by John Coggeshall on building search engine friendly
> pages. Now, I trying to pass my script parameters as path (instead of
> "?param=value¶m2=value2").
>
> However, for some reason I keep on getting the following error:
>
> Fatal error: Unable to open
> /home/mydomain/public_html/try.phtml/param1/123 in - on line 0
> No input file specified.
>
> This is what I run:
> http://www.mydomain.com/try.phtml/param1/123
>
> It seems like PHP is trying to read the file 123 at the given path. For some
> reason, PHP doesn't realize the try.phtml is the script.
>
> I am trying this with PHP3. However, my production server is running PHP4
> and it works there. Is this a new feature in PHP4 or do I need to build PHP3
> with some configuration for this to work?
>
> Thank you in advance.
> --
> anas mughal
>
>
>


-- 
PHP General 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]