Jump to content











Photo
- - - - -

[php] New Server


  • Please log in to reply
3 replies to this topic

#1 Nuno Brito

Nuno Brito

    Platinum Member

  • .script developer
  • 10547 posts
  • Location:boot.wim
  • Interests:I'm just a quiet simple person with a very quiet simple life living one day at a time..
  •  
    European Union

Posted 08 October 2007 - 12:10 AM

Hi everyone!

Description

This beta script is mostly meant for developers who wish to upload a few files to a web server and need to modify the updates.ini file.

It will avoid having to maintain a mirror server on their computer or manually editing the changes on the updates.ini



What it will do:

Will output a new updates.ini based on the contents of the subfolders and files from where it is placed.



Usage

-- Upload to the same folder where your updates.ini is placed
-- Change permissions of the output file to 777
-- Run this script - example: http://myserver.com/new_server.php


Beta testing

This script was tested under xampp running PHP5 in windows - I've noticed that under the boot-land.net server (which is based on debian), a few modifications had to be made.

Please help by reporting any bugs you notice - if you have experience with PHP and know how to fix it, I would appreciate any help!

By default - this script will output to a file called test.txt - you'll be able to change these settings inside the script itself


Advantages

This means that you can upload your scripts at any given time to your download server and then use this script to generate a new valid updates.ini to be used along with wb.



:cheers:

#2 pscEx

pscEx

    Platinum Member

  • Team Reboot
  • 12707 posts
  • Location:Korschenbroich, Germany
  • Interests:What somebody else cannot do.
  •  
    European Union

Posted 10 October 2007 - 07:44 AM

Hi everyone!

Description

This beta script is mostly meant for developers who wish to upload a few files to a web server and need to modify the updates.ini file.

It will avoid having to maintain a mirror server on their computer or manually editing the changes on the updates.ini


I tried and it works well for me :cheers:

This will remarkably decrease the time (and the complexity) to upload non-script files.

Two suggestions:
  • If the output file does not exist, simply create it rather than to preceed all linews with 'not writable'
  • I have a server structure like this:
    web_server.gif
    And would like to exclude LiveXP20070731. An empty flag file for including (or omitting) would be nice
Peter

#3 Nuno Brito

Nuno Brito

    Platinum Member

  • .script developer
  • 10547 posts
  • Location:boot.wim
  • Interests:I'm just a quiet simple person with a very quiet simple life living one day at a time..
  •  
    European Union

Posted 10 October 2007 - 08:20 AM

Thanks for testing Peter! :cheers:


- Under windows the new file is generated straight away but on debian it seems necessary to have the proper permissions to create a file - does anyone here know how solve this detail? Will have to dig in a bit further and see how it can be done.

- Will try to add a folder exclusion list

:cheers:

#4 thunn

thunn

    Silver Member

  • .script developer
  • 531 posts
  • Location:Brooklyn, New York
  • Interests:computers<br />mechanics<br />distortion<br /><br />
  •  
    United States

Posted 17 October 2007 - 10:24 AM

:cheers:
/\/\
thx for the php script!
This will be very helpfull, more so if time is a factor, nice thinking! Can you protect the script from tampering?




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users