« first day (1231 days earlier)      last day (1197 days later) » 

8:25 AM
hello....Is anybody know drupal????
 
 
1 hour later…
 
8 hours later…
user457812
5:29 PM
1 message moved from NSChat
 
5:41 PM
@PeeHaa, I'll have to use php because it's the only way I can get this done today, but thanks for the JSON suggestion
I'm literally one question away to solve this entire thing, I'll use fopen to create a new config.php file, and rename, to rename the old one for backup purposes
the only thing left now is, how can I use $something without the code seeing it as a var?

Let's say:
(admin.php)
<?php require 'config.php' ?>

<form method="post" action="submit.php">
<input type="text" name="form_URL" value="$URL">
</form>

(submit.php)
<?php
$time = date('d-m-Y');
rename("config.php", "config-$time.php");

$form_URL = $_POST['form_URL'];

$configFile = fopen("config.php", "w") or die("Error!");
$txt =
"<?php
$URL = $form_URL;
?>";

fwrite($configFile, $txt);
fclose($configFile);
the question is on $txt
$URL should be written as plain text, and $form_URL should be the $form_URL value
sorry for bothering you guys, by the way
should be written as $URL = somevalue
I did it bitches!
sorry for whining and shit
have a nice day y'all
crap can I delete those spammy messages I sent? /\
 
5:56 PM
11 messages moved from PHP
 

« first day (1231 days earlier)      last day (1197 days later) »