FAQ Database Discussion Community


using the pycharm debugger with a flask application factory

python,debugging,flask,ide,web-development-server
I am typing more print statements than code. It's killing me. If a flask development server is invoked via below, I can use PyCharm debugger from ersapp import app if __name__ == '__main__': app.run(debug=True) I am following the example in Miguel Grinberg's book and an application manager (flask-script) is used....

How to use a variable in PHP file from another PHP file with include or require?

php,relative-path,web-development-server
Check out my directory http://imgur.com/SKuXjm9 , its simple. I wanted to call a variable from nuclear_test2.php by nuclear_test.php //I have unsuccessfully tried the following calls as stated below: //include_once("../test/nuclear_test2.php"); //include_once("nuclear_test2.php"); //include_once("./test/nuclear_test2.php"); //require_once("./nuclear_test2.php"); nuclear_test.php <?php require "nuclear_test2.php"; function acheckReturner() { echo " ?" . $check; } acheckReturner(); ?> nuclear_test2.php <?php $check...

PHP saving and re fetching checkbox values [closed]

javascript,php,html,checkbox,web-development-server
I am an electronic engineering student. I have a doubt concerning Web development. I have to make a web site for doctors to enter patients data. Most of the data are in check box format. My question is regarding saving and re fetching check box status from the data base,...

Passing variables in PHP pages

php,html,mysql,web-development-server
I have read a value from a form as input form the user. the form is POST. <form action="form_handler.php" method="POST"> Then, in the form_handler.php page I saved this value in a variable. $productID=$_POST['product']; Then, I want to pass this variable via link to another page as: echo "<a href='products.php?prodID=".$productID."' title='Products...

How should I set a custom style on a object that is a gwt component?

java,html,css,gwt,web-development-server
I am using Java (Eclipse) and for the web development I use gwt. The object that I want to change (loader) has a default font-size. It also has a method named setHtml(String). I have almst no knowledge on on HTML and CSS and how should I integrate such files in...

I'm getting a fs.js:347 throw new TypeError('Bad arguments');

javascript,node.js,sockets,web,web-development-server
I was trying to follow a tutorial on creating a router with Node.js. Here is the code for the router.. var http = require("http"); var url = require('url'); var fs = require('fs'); var server = http.createServer(function(request, response){ console.log('Connection'); var path = url.parse(request.url).pathname; switch(path){ case '/': response.writeHead(200, {'Content-Type': 'text/html'}); response.write('hello world');...