Search
Search titles only
By:
Search titles only
By:
Log in
Register
Search
Search titles only
By:
Search titles only
By:
Menu
Install the app
Install
Forums
New posts
All threads
Latest threads
New posts
Trending threads
Trending
Search forums
What's new
New posts
New ads
New profile posts
Latest activity
Free Ads
Latest reviews
Search ads
Members
Current visitors
New profile posts
Search profile posts
Contact us
Latest ads
Pure VPN - Up to 27 Months
vgp
Updated:
Yesterday at 8:10 AM
එක පැකේජ් එකයි මාසෙටම Unlimited Internet. තාමත් DATA CARD දාන්න සල්ලි වියදම් කරනවද? අඩුම මිලට අපෙන්.
sayuru bandara
Updated:
Tuesday at 12:30 PM
Ad icon
ඉන්ටර්නෙට් එකෙන් හරියටම සල්ලි හොයන්න සහ Success වෙන්න කැමතිද? 🚀 (E-Money & Success Stories)
siri sumana
Updated:
May 30, 2026
Gemini AI PRO 18 months Offer
Hawaka
Updated:
May 27, 2026
Ad icon
koko account
DasunEranga
Updated:
May 27, 2026
Electronics
Vehicles
Property
Search
Reply to thread
Forums
General
ElaKiri Help
PHP help???
Get the App
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Message
<blockquote data-quote="Hasitha-Kasun" data-source="post: 12689551" data-attributes="member: 175117"><p>[PHP]<?php</p><p>// # THE FOLLOWING BLOCK IS USED TO RETRIEVE AND DISPLAY LINK INFORMATION.</p><p>// # PLACE THIS ENTIRE BLOCK IN THE AREA YOU WANT THE DATA TO BE DISPLAYED.</p><p></p><p>// # MODIFY THE VARIABLES BELOW:</p><p>// # Enter your user key below (provided to you by Free-Link-Exchange.com):</p><p>$UserKey = "561413582012-MYXOEEF1Y1T3AYS";</p><p></p><p>// # The following variable defines how many columns are used to display categories</p><p>$CategoryColumns = "2";</p><p></p><p>// # The following variable defines how many links to display per page</p><p>$LinksPerPage = "25";</p><p></p><p>// # The following variable defines whether links are opened in a new window</p><p>// # (1 = Yes, 0 = No)</p><p>$OpenInNewWindow = "1";</p><p></p><p>// # The following variable determines whether the search function is enabled</p><p>// # for your links page (1 = Yes, 0 = No)</p><p>$AllowSearch = "1";</p><p></p><p>// # DO NOT MODIFY ANYTHING ELSE BELOW THIS LINE!</p><p>// ----------------------------------------------</p><p>$ThisPage = $_SERVER["PHP_SELF"];</p><p></p><p>// # NOTICE!!!!!</p><p>// # If your links page states "Script Name Undefined." when you run this,</p><p>// # your web host is probably running an older version of PHP. To correct</p><p>// # this problem, remove the two forward slashes from the line below:</p><p>// $ThisPage = $PHP_SELF;</p><p></p><p>$PostingString = "UserKey=" .$UserKey;</p><p>$PostingString .= "&ScriptName=" .$ThisPage;</p><p>$PostingString .= "&CatCols=" .$CategoryColumns;</p><p>$PostingString .= "&LinksPerPage=" .$LinksPerPage;</p><p>$PostingString .= "&OpenInNewWindow=" .$OpenInNewWindow;</p><p>$PostingString .= "&AllowSearch=" .$AllowSearch;</p><p></p><p>$QueryString = "script=php";</p><p>foreach ($HTTP_GET_VARS as $key => $value) {</p><p> $value = urlencode(stripslashes($value));</p><p> $QueryString .= "&$key=$value";</p><p>}</p><p></p><p>if(function_exists("curl_init")) {</p><p> echo curl_post("www.Free-Link-Exchange.com/smbin/dumplinks.asp?" . $QueryString, $PostingString);</p><p>} else {</p><p> // congfigure our headers</p><p> $header = "POST /smbin/dumplinks.asp?" . $QueryString . " HTTP/1.0\r\n";</p><p> $header .= "Content-Type: application/x-www-form-urlencoded\r\n";</p><p> $header .= "Content-Length: " . strlen($PostingString) . "\r\n\r\n";</p><p></p><p> // open a connection to Free-Link-Exchange</p><p> $fp = fsockopen ('www.Free-Link-Exchange.com', 80, $errno, $errstr, 30);</p><p></p><p> if (!$fp) {</p><p> // HTTP ERROR</p><p> echo "Error processing request";</p><p> } else {</p><p> // send form headers, form post</p><p> fputs ($fp, $header . $PostingString);</p><p> </p><p> // set our returned header flag to true, these we want to ignore</p><p> // initialize our body variable</p><p> $bHeader = true;</p><p> $sData = "";</p><p></p><p> while (!feof($fp)) {</p><p> $res = fgets ($fp, 8192);</p><p> $res = ereg_replace("[\r\n]", "", $res);</p><p> // if we have an empty line, we are now past the headers.</p><p> // set the flag so we can start retrieving data</p><p> if (strlen($res) == 0) $bHeader = false;</p><p> </p><p> if ($bHeader == false) $sData .= $res;</p><p> }</p><p> echo $sData;</p><p></p><p> fclose ($fp);</p><p> }</p><p>}</p><p></p><p>function curl_post( $Url, $postData) </p><p> { </p><p> $ch = curl_init($Url); </p><p> curl_setopt($ch, CURLOPT_POST, 1); </p><p> curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); </p><p> curl_setopt($ch, CURLOPT_POSTFIELDS, $postData); </p><p> $data = curl_exec($ch); </p><p> curl_close($ch); </p><p> return $data; </p><p>}</p><p>?>[/PHP]</p></blockquote><p></p>
[QUOTE="Hasitha-Kasun, post: 12689551, member: 175117"] [PHP]<?php // # THE FOLLOWING BLOCK IS USED TO RETRIEVE AND DISPLAY LINK INFORMATION. // # PLACE THIS ENTIRE BLOCK IN THE AREA YOU WANT THE DATA TO BE DISPLAYED. // # MODIFY THE VARIABLES BELOW: // # Enter your user key below (provided to you by Free-Link-Exchange.com): $UserKey = "561413582012-MYXOEEF1Y1T3AYS"; // # The following variable defines how many columns are used to display categories $CategoryColumns = "2"; // # The following variable defines how many links to display per page $LinksPerPage = "25"; // # The following variable defines whether links are opened in a new window // # (1 = Yes, 0 = No) $OpenInNewWindow = "1"; // # The following variable determines whether the search function is enabled // # for your links page (1 = Yes, 0 = No) $AllowSearch = "1"; // # DO NOT MODIFY ANYTHING ELSE BELOW THIS LINE! // ---------------------------------------------- $ThisPage = $_SERVER["PHP_SELF"]; // # NOTICE!!!!! // # If your links page states "Script Name Undefined." when you run this, // # your web host is probably running an older version of PHP. To correct // # this problem, remove the two forward slashes from the line below: // $ThisPage = $PHP_SELF; $PostingString = "UserKey=" .$UserKey; $PostingString .= "&ScriptName=" .$ThisPage; $PostingString .= "&CatCols=" .$CategoryColumns; $PostingString .= "&LinksPerPage=" .$LinksPerPage; $PostingString .= "&OpenInNewWindow=" .$OpenInNewWindow; $PostingString .= "&AllowSearch=" .$AllowSearch; $QueryString = "script=php"; foreach ($HTTP_GET_VARS as $key => $value) { $value = urlencode(stripslashes($value)); $QueryString .= "&$key=$value"; } if(function_exists("curl_init")) { echo curl_post("www.Free-Link-Exchange.com/smbin/dumplinks.asp?" . $QueryString, $PostingString); } else { // congfigure our headers $header = "POST /smbin/dumplinks.asp?" . $QueryString . " HTTP/1.0\r\n"; $header .= "Content-Type: application/x-www-form-urlencoded\r\n"; $header .= "Content-Length: " . strlen($PostingString) . "\r\n\r\n"; // open a connection to Free-Link-Exchange $fp = fsockopen ('www.Free-Link-Exchange.com', 80, $errno, $errstr, 30); if (!$fp) { // HTTP ERROR echo "Error processing request"; } else { // send form headers, form post fputs ($fp, $header . $PostingString); // set our returned header flag to true, these we want to ignore // initialize our body variable $bHeader = true; $sData = ""; while (!feof($fp)) { $res = fgets ($fp, 8192); $res = ereg_replace("[\r\n]", "", $res); // if we have an empty line, we are now past the headers. // set the flag so we can start retrieving data if (strlen($res) == 0) $bHeader = false; if ($bHeader == false) $sData .= $res; } echo $sData; fclose ($fp); } } function curl_post( $Url, $postData) { $ch = curl_init($Url); curl_setopt($ch, CURLOPT_POST, 1); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); curl_setopt($ch, CURLOPT_POSTFIELDS, $postData); $data = curl_exec($ch); curl_close($ch); return $data; } ?>[/PHP] [/QUOTE]
Insert quotes…
Verification
Asuwa dahayen wadi kalama keeyada?
Post reply
Top
Bottom