View previous topic :: View next topic |
Author |
Message |
Grundlegod -
Joined: 01 Dec 2003 Posts: 13
|
Posted: Sat Mar 06, 2004 8:06 pm Post subject: Automatic site hosting? |
|
|
Is there some cms or control panel that I can set up on abyss to host sites and stuff for free without havinbg to manualy create the directories? thanks for the help in advanced :) _________________
 |
|
Back to top |
|
 |
iNaNimAtE -
Joined: 05 Nov 2003 Posts: 2381 Location: Everywhere you're not.
|
Posted: Sat Mar 06, 2004 9:43 pm Post subject: |
|
|
Well I'm sure there is a script floating around on hotscripts.com or similar sites that can create directories when users fill out a form. I'm not too adept with PHP to make a script myself... sorry. _________________ Bienvenidos! |
|
Back to top |
 |
 |
eznetlinks -
Joined: 27 Sep 2003 Posts: 144
|
Posted: Thu Mar 11, 2004 5:22 am Post subject: |
|
|
Here is a php script that will create a directory and an index file.
Must be in root directory to work.
addir.php
<?
$cont = "Welcome to your new homepage replace this with your new index.html";
$domain = $_ENV["SERVER_NAME"];
$filename = $_POST["Newdirectory"];
if ($filename != "")
{
if (is_dir($filename)) {
echo "The directory $filename already exists, Please choose another name.";
}
else
{
mkdir($filename);
fopen("$filename/index.html", 'w+');
$newindex = fopen("$filename/index.html","a");
fwrite($newindex, $cont);
fclose($newindex);
header("Location: http://$domain/$filename/index.html");
}
}
else
{
echo "<form method=\"post\" action=\"$PHP_SELF\">";
echo "New Directory<br>";
echo "<input name=\"Newdirectory\" size=\"30\" maxlength=\"50\"><br>\n";
echo "<input type=\"submit\" value=\"Create My New Site\">\n";
echo "</form>";
}
?>
modify as you please
:D |
|
Back to top |
|
 |
iNaNimAtE -
Joined: 05 Nov 2003 Posts: 2381 Location: Everywhere you're not.
|
Posted: Thu Mar 11, 2004 6:36 am Post subject: |
|
|
You seem to know your PHP. First the multiple site script, now this; when will the madness ever end?! Hehe... _________________ Bienvenidos! |
|
Back to top |
 |
 |
eznetlinks -
Joined: 27 Sep 2003 Posts: 144
|
Posted: Thu Mar 11, 2004 1:32 pm Post subject: |
|
|
aww shucks!
I like to help when i can.
:D |
|
Back to top |
|
 |
Hunted -
Joined: 24 Nov 2003 Posts: 71
|
Posted: Sat Mar 13, 2004 11:09 am Post subject: |
|
|
Hmm, would there be a script that would create a FTP and a mySQL/phpMyAdmin account? |
|
Back to top |
|
 |
eznetlinks -
Joined: 27 Sep 2003 Posts: 144
|
Posted: Sat Mar 13, 2004 1:31 pm Post subject: |
|
|
I agree the script isn't of much use without a ftp setup. I may be able to help with that. However what i know about sql you could write on a head of a pin with a broad tip marker. Realisticly i can't be of any help in a reasonable amount of time with the sql portion. I will post again when i get the ftp issue resolved. It may be some time though. I would like to wait for the new release of AWS to see if they give us a command line 'RESTART' so sub directorys can be created. |
|
Back to top |
|
 |
GameFalcon -
Joined: 14 Mar 2004 Posts: 4
|
Posted: Sun Mar 14, 2004 8:58 pm Post subject: |
|
|
Yaknow, one thing I just have to question about you, is you spent WAY to many hours in front of technical books when you were like 3 years old, right? ROFL
Heheh, sometimes I wish I was a smart as you, but then I'm also glad I'm not 'cuz then it makes for wonderous things being able to plead ignorance and actually be tellin' the truth. LOL |
|
Back to top |
|
 |
iNaNimAtE -
Joined: 05 Nov 2003 Posts: 2381 Location: Everywhere you're not.
|
Posted: Mon Mar 15, 2004 3:36 am Post subject: |
|
|
Ignorance is bliss. And tech books KICK ASS! Hehe... _________________ Bienvenidos! |
|
Back to top |
 |
 |
|