Home | Reviews | GUIpedia | Forum | Fun500


pharoahText2QML Converter
I wrote a quick PHP script to convert text files to QML. It doesn't make links or anything(obviously), but it will turn plain text into a QML page with the proper line breaks to make things a bit easier. http://pharoah.xetaspace.net/txt2qml.php EDIT: Looks like my Xetaspace site decided to go down just now. Sorry about that, should be back soon. Here's the code anyway: EDIT2: Apparently if you post PHP in code tags here it gets deleted by the forum, so here's a temp link in case anyone cares: http://cl1p.net/txt2qml
2009-04-0310:30 PM

BrandonRe:Text2QML Converter
404
2009-04-0310:32 PM

pharoahRe:Text2QML Converter
Yeah, something just happened to XS. Anyway there's a code link in the edit.
2009-04-0310:35 PM

ksrRe:Text2QML Converter
If a line is 80 characters long, the following | is not necessary, isn't that right?
2009-04-048:41 AM

pharoahRe:Text2QML Converter
I guess it would depend on what you want it to do, but in general yes, because the carriage is already on the next line. What the converter does is simply to replace all the "n"s with "n".'|'."n".'$'
2009-04-049:23 AM

ToddRe:Text2QML Converter
XS should be up and should stay up. I installed monit to keep track of any daemons and services that die or get SIGTERMed and restarts them immediately within a minute or two.
2009-04-049:39 AM

pharoahRe:Text2QML Converter
It seems to be down right now. I get "The connection to the server was reset while the page was loading." Was working about 5 minutes ago. Edit: Never mind :).
2009-04-049:47 AM

ToddRe:Text2QML Converter
As soon as you mentioned that, I decided to do a server reboot. It's fully rebooted and should now be working. I have to investigate it further since Apache throws errors like crazy.
2009-04-049:49 AM

BrandonRe:Text2QML Converter
Pharoah, don't forget that hosting space I gave you on this server, it tends to be more reliable.
2009-04-0410:04 AM

ToddRe:Text2QML Converter
:P It tends to be more hackable too. ;)
2009-04-0411:28 AM

BrandonRe:Text2QML Converter
Hackers thoughts: Brandoncornell.com with lots of hits or Xetaspace with none? which to attack?
2009-04-0412:04 PM

ToddRe:Text2QML Converter
Both. Hackers attack sites that are usually visited quite often. They can also attack sites without hits but that's less challenging.
2009-04-0412:14 PM

Other


2021 Brandon Cornell