stephenlb / nodejuice

Automatic browser refresh on file change or update is what you can call it. NodeJuice is a set of tools which allows you to develop with a push connection to your web browser. JavaScript V8 Seeker Server and Web Server Gateway Interface. nodeJuice Seeker Server works with all other servers including Apache, Passenger, Nginx, Cherokee, and more. A web server isn't required, NodeJuice comes with one in case you forgot yours. It runs on NodeJS; a low level non-blocking network ready process with many capabilities. This is a tool that every web developer needs and has wanted for a very long time. IRC @ #node.js
http://nodejuice.com
Other
78 stars 3 forks source link

Nodejuice not loading some .php files that depend of if tests #11

Open cyberalex4life opened 9 years ago

cyberalex4life commented 9 years ago

I am learning php and sometimes I get to write pages files like this one: replace-example.php :

PHP-test


Search for:


Replace with:


<?php $offset = 0; if (isset($_POST['text']) && isset($_POST['searchfor']) && isset($_POST['replacewith'])){ $text = $_POST['text']; $search = $_POST['searchfor']; $replace = $_POST['replacewith']; $search_length = strlen($search); if (!empty($text) && !empty($search) && !empty($replace)) { while(($strpos=strpos($text, $search, $offset))) { $offset = $strpos + $search_length; $text = substr_replace($text, $replace, $strpos, $search_length); } echo $text; } else { echo 'Please fill in all fields'; } } ?>

Seeker and WSGI are not able to (re)load php files as the browser only asks me to download the file, even when apache2 runs. However, sidekick is able to reload properly most of these pages, but not this one. When I press the Submit button on the page, it only refreshes the page, what should I do?

PS: The page works fine if not loading through nodejuice sidekick.

stephenlb commented 9 years ago

hmm...

cyberalex4life commented 9 years ago

I usuallly get this line: { sidekicked: "localhost:80" , code: 200 , ctype: "text/html" , type: "POST" , uri: "/test-livereload/replace-example.php" }

stephenlb commented 9 years ago

right for sure you may have hit an unforeseen edgecase here.