[PHP] Re: Scratch that
Liam wrote: How can I display the returned HTML contents of a cgi (Perl) script, without get parameters? Oh, this means that 1: It mustn't count as a http hit, and 2: I need to only get what is between the tags. Thanks in advance. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Re: Scratch that
On 1/9/08, Liam <[EMAIL PROTECTED]> wrote: > Liam wrote: > 1: It mustn't count as a http hit, it's going to > and 2: I need to only get what is between the tags. now you're just asking the list to code something for you... my suggestions again: look into rewriting it to be more reusable look at http://us2.php.net/manual/en/function.tidy-get-body.php it's CGI, it can be executed using perl on the shell, sometimes - depends on what it actually does. however it may count as a "hit" either way. CGI must be executed to work, just depends on if it's going to be executed via the web (definately a hit) or the shell (maybe/maybe not depending on what the script does) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Re: Scratch that
OK, what I meant was 1) Not dump the contents to a file, as the cgi will dynamically show different links every time, (it's a reciprocal linking script) 2) Not count as though the user manually navigated to that page (for my sanity when checking the site statistics!) and 3) I also need to know how to run a expression-ish thing so that when I 'parse' the text, it returns all text between x and y, but parse it BEFORE it gets 'included'. Note: fOpen is NOT enabled, and I CAN'T enable it. Thanks in advance P.S. Sorry mike for my previous ungracious answer. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Re: Scratch that
On 1/9/08, Liam <[EMAIL PROTECTED]> wrote: > OK, what I meant was > 1) Not dump the contents to a file, as the cgi will dynamically show > different links every time, (it's a reciprocal linking script) > 2) Not count as though the user manually navigated to that page (for my > sanity when checking the site statistics!) > and > 3) I also need to know how to run a expression-ish thing so that when I > 'parse' the text, it returns all text between x and y, but parse it > BEFORE it gets 'included'. > > Note: fOpen is NOT enabled, and I CAN'T enable it. > > Thanks in advance > P.S. Sorry mike for my previous ungracious answer. what language are you comfortable in? obviously perl is supported on your server. i would recommend if you know perl, to stick with what you know and integrate it together. otherwise it sounds like you've got a handful of requirements (and scope creep), no clue where to start, and no PHP knowledge to boot. this is where i think you decide to just "pay someone to do it quick" :) 1) rentacoder.com 2) phparch.com forums i think has a jobs area anyway, expression stuff can be done using php.net/preg, php.net/ereg and if possible, just normal str* functions. first you need to get the content though and if you can't get that, i'm not sure that's going to help any more ... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Re: Scratch that
My non-profit setup makes that 'Pay Someone' alternative. What I am planning on doing: When the script is called, it is equivilent of using the want=ssilinks GET parameter. So therefore, all I need to do is get the HTML returned from the script, not the contents of the script itself. Can anyone help now? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Re: Scratch that
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 things in the organization's interests... hopefully. On 1/9/08, Liam <[EMAIL PROTECTED]> wrote: > My non-profit setup makes that 'Pay Someone' alternative. What I am > planning on doing: > > When the script is called, it is equivilent of using the want=ssilinks > GET parameter. > > So therefore, all I need to do is get the HTML returned from the script, > not the contents of the script itself. Can anyone help now? > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Re: Scratch that
On Wed, January 9, 2008 10:39 pm, Liam wrote: > 2) Not count as though the user manually navigated to that page (for > my > sanity when checking the site statistics!) > and Configure statistics package to not count your own server hits. Problem solved. If no allow_url_fopen, then use curl. If no allow_url_fopen AND no curl, then find a better host. -- Some people have a "gift" link here. Know what I want? I want you to buy a CD from some indie artist. http://cdbaby.com/from/lynch Yeah, I get a buck. So? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php