Re: [PHP] Get Parameters in Includes [SOLVED!!!]
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 attitude and sarcasm to a minimum (or follow it by a smiley face so it looks like you're not that rude). 2.) Keep ALL RELATED POSTS in one thread. It was a little overboard to have to follow your conversation across five separate threads, and that doesn't help people searching on Google (or directly in the archives) use your experience to solve a similar problem. Aside from that, parsing the text should be no problem. Depending on what you want to do, regexps are probably the way you want to do it, just as a heads-up. For that, look into the preg_*() and ereg() families. -- Daniel P. Brown Senior Unix Geek and #1 Rated "Year's Coolest Guy" By Self Since 1979. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Get Parameters in Includes [SOLVED!!!]
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 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 things in the organization's interests... hopefully. Well, heh, I am really the only person behind my organization, and I'm under 18, so I can't get a PayPal account or whatever and accumulate donations either. However, I did find a cURL solution: this is the code behind it for anyone else who had/has this problem: http://goldenlightsoft.org/cgi-bin/lt/linktrade.cgi?want=ssilinks";); curl_setopt($ch, CURLOPT_RETURNTRANSFER,1); $result=curl_exec ($ch); curl_close ($ch); echo $result ?> Now, I just need to look into parsing the text. Thanks everyone for your assistance, I'll be sure to come back here and frustrate you with any future problems I have. :] :P -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php It's a server side log thing. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Get Parameters in Includes [SOLVED!!!]
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 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. > > Well, heh, I am really the only person behind my organization, and I'm > under 18, so I can't get a PayPal account or whatever and accumulate > donations either. > > However, I did find a cURL solution: this is the code behind it for > anyone else who had/has this problem: > > $ch = curl_init(); > curl_setopt($ch, > CURLOPT_URL,"http://goldenlightsoft.org/cgi-bin/lt/linktrade.cgi?want=ssilinks";); > curl_setopt($ch, CURLOPT_RETURNTRANSFER,1); > $result=curl_exec ($ch); > curl_close ($ch); > echo $result > ?> > > Now, I just need to look into parsing the text. > > Thanks everyone for your assistance, I'll be sure to come back here and > frustrate you with any future problems I have. :] :P > > -- > 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
[PHP] Get Parameters in Includes [SOLVED!!!]
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 things in the organization's interests... hopefully. Well, heh, I am really the only person behind my organization, and I'm under 18, so I can't get a PayPal account or whatever and accumulate donations either. However, I did find a cURL solution: this is the code behind it for anyone else who had/has this problem: curl_setopt($ch, CURLOPT_URL,"http://goldenlightsoft.org/cgi-bin/lt/linktrade.cgi?want=ssilinks";); curl_setopt($ch, CURLOPT_RETURNTRANSFER,1); $result=curl_exec ($ch); curl_close ($ch); echo $result ?> Now, I just need to look into parsing the text. Thanks everyone for your assistance, I'll be sure to come back here and frustrate you with any future problems I have. :] :P -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php