[PHP] Get Parameters in Includes [SOLVED!!!]

2008-01-10 Thread Liam
mike wrote: you're still issuing an HTTP request to get it, or executing perl on the command line... if it's a true non-profit 503(c)(3), you could offer someone the chance to write off their services... non-profits may not have a lot of money to spare but they do typically have money to fund

Re: [PHP] Get Parameters in Includes [SOLVED!!!]

2008-01-10 Thread mike
yeah - well you said you can't issue an http request although it depends - if your reporting is javascript/browser-executable, or if it's a server-side increment. if it's javascript, no worries, the curl request won't execute it. On 1/10/08, Liam [EMAIL PROTECTED] wrote: mike wrote: you're

Re: [PHP] Get Parameters in Includes [SOLVED!!!]

2008-01-10 Thread Liam
mike wrote: yeah - well you said you can't issue an http request although it depends - if your reporting is javascript/browser-executable, or if it's a server-side increment. if it's javascript, no worries, the curl request won't execute it. On 1/10/08, Liam [EMAIL PROTECTED] wrote: mike

Re: [PHP] Get Parameters in Includes [SOLVED!!!]

2008-01-10 Thread Daniel Brown
On Jan 10, 2008 4:00 AM, Liam [EMAIL PROTECTED] wrote: Thanks everyone for your assistance, I'll be sure to come back here and frustrate you with any future problems I have. :] :P That's fine, and it's for that reason this list exists, but here's a couple of pointers: 1.) Keep the

[PHP] Get Parameters in Includes?

2008-01-09 Thread Liam
How do I use a get parameter in a include? e.g. ?php include('x.cgi?want=ssilinks') ? I can't modify the cgi file though, and HTML includes don't work on my server. Thanks in advance. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Get Parameters in Includes?

2008-01-09 Thread mike
that is a horrible method. it works in zeus and apache, but not lighttpd, from my experience. it's just not a good idea. technically that should only be file paths, and i would expect it to load a file named x.cgi?want=ssilinks although fopen wrappers can confuse that further... in my opinion i

Re: [PHP] Get Parameters in Includes?

2008-01-09 Thread Liam
mike wrote: that is a horrible method. Thanks for the nice positive, refreshing and most helpful response. in my opinion i would say redesign it properly. Well what the hell do you suggest I do??? The script is MEANT to be used this way, as it has an admin panel inside etc. Oh, by the way,

Re: [PHP] Get Parameters in Includes?

2008-01-09 Thread Chris
The script is MEANT to be used this way I doubt it. If you want the contents from that url, then use curl (http://www.php.net/curl). -- Postgresql php tutorials http://www.designmagick.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] Get Parameters in Includes?

2008-01-09 Thread mike
On 1/9/08, Liam [EMAIL PROTECTED] wrote: mike wrote: that is a horrible method. Thanks for the nice positive, refreshing and most helpful response. read the sentence below it. in my opinion i would say redesign it properly. Well what the hell do you suggest I do??? The script is MEANT to

Re: [PHP] Get Parameters in Includes?

2008-01-09 Thread Richard Lynch
On Wed, January 9, 2008 8:38 pm, Liam wrote: How do I use a get parameter in a include? e.g. ?php include('x.cgi?want=ssilinks') ? I can't modify the cgi file though, and HTML includes don't work on my server. Thanks in advance. In order to fire the CGI and have it processed, you would

Re: [PHP] Get Parameters in Includes?

2008-01-09 Thread Liam
On 1/9/08, Liam [EMAIL PROTECTED] wrote: mike wrote: that is a horrible method. Thanks for the nice positive, refreshing and most helpful response. read the sentence below it. in my opinion i would say redesign it properly. Well what the hell do you suggest I do??? The script is MEANT to

Re: [PHP] Get Parameters in Includes?

2008-01-09 Thread mike
On 1/9/08, Liam [EMAIL PROTECTED] wrote: The cgi script IS perl. Oh, RE: the sentence below it: I'm running apache, and it DOESN'T work. The reason I am trying to call it in php is to include it on a webpage. So, tell me, how am I supposed to pre-generate the contents in a flatfile