Skip to content

Programmatically create a SER project file?

Hi,

Is it possible for me to create a .ser project file? I have all my data on urls, keywords, articles, bios etc stored in a MySQL database that I interact with using PHP. It would be awesome if I could write a script to create the projects that I need from that data.

Many thanks!

Comments

  • SvenSven www.GSA-Online.de
    *.ser is just a zip file. Have a look inside and prepare your files exactly as there.
  • Awesome Sven that's perfect, thanks
  • edited October 2015
    Hi Sven,

    What about the email accounts section of the .prj file? They seem to be encoded:
    image
    That's one that's been imported using the full format (email:pop3:login:password:ssl)

    Thanks!
  • SvenSven www.GSA-Online.de
    discussed many times here already. Fields are seperated by 0xff char and the password can be stored unencrypted using ##password
  • edited October 2015
    Thanks Sven. 

    To others who may be wondering how to do this in PHP the following will write the 0xFF character:

    echo pack('H*', "ff");

    then save your file as UTF-8

    function writeUTF8File($filename,$content) { 
    $f=fopen($filename,"w"); 
    # Now UTF-8 - Add byte order mark 
    fwrite($f, pack("CCC",0xef,0xbb,0xbf)); 
    fwrite($f,$content); 
    fclose($f); 
    }

Sign In or Register to comment.