Django server on custom Port
Running Django server on a custom Port
python manage.py runserver 8001
Running Django server on a custom Port
python manage.py runserver 8001
This command fetches a web page, converts it to text and shows it.
lynx -dump http://www.example.com/
Want to show something on your machine to someone over the web? Don’t copy it or upload it somewhere. Just run “webshare” and the current directory and everything beneath it will be served from a new web server listening on port 8000. When your pal is finished, hit control-c.
python -c "import SimpleHTTPServer;SimpleHTTPServer.test()"
For a slightly more advanced version of this server, see this article(Warning: German Article – but code is self explaining)
Use this code to force a download of any type of content with PHP
header("Content-type:application/octect-stream");
header('Content-Disposition: attachment; filename=filename_' . date('Y-m-d') . '.sql');
print "Hello World";
font:10pt ‘Trebuchet MS’,Arial,sans-serif;
font:76%/140% Verdana,Geneva,Arial,Helvetica,sans-serif;
font:76%/1.5 “Lucida Grande”,Geneva,Verdana,Arial,Helvetica,sans-serif;
font:12px/1.5 “Lucida Grande”,”Lucida Sans Unicode”, sans-serif;