|
-
My blog readers prefer Mozilla browsers on Windows!
Date: 02/11/05
(Java Web) Keywords: browser
My blog readers prefer Mozilla based browsers, which is used by 51.21%. IE is lagging behind at 39.08%!
Source: http://feeds.feedburner.com/AngsumansBlogOnJavaAndWebTechnologies?m=144
-
Firefox in NYT: The Fox Is in Microsoft’s Henhouse (and Salivating)
Date: 12/19/04
(Java Web) Keywords: browser, web, microsoft
Here's some interesting observations from the article:
FIREFOX is a classic overnight success, many years in the making.
Firefox is a Web browser that is fast and filled with features that Microsoft's stodgy Internet Explorer lacks.
Source: http://feeds.feedburner.com/AngsumansBlogOnJavaAndWebTechnologies?m=109
-
Firefox in NYT: The Fox Is in Microsoft’s Henhouse (and Salivating)
Date: 12/19/04
(Java Web) Keywords: browser, web, microsoft
Some interesting quotes from the article:
FIREFOX is a classic overnight success, many years in the making.
Firefox is a Web browser that is fast and filled with features that Microsoft's stodgy Internet Explorer lacks.
For the first time, Internet Explorer has been losing market share.
Source: http://feeds.feedburner.com/AngsumansBlogOnJavaAndWebTechnologies?m=101
-
Internet Explorer: Java Applet Champion?
Date: 08/30/04
(Java Web) Keywords: browser, java
I realized that several applet functionalities are not supported by either Mozilla or Firefox browsers. In fact Internet Explorer seems to have the best support for Java applets!
Source: http://feeds.feedburner.com/AngsumansBlogOnJavaAndWebTechnologies?m=37
-
Ask Jeeves mulls Firefox-based browser
Date: 02/15/05
(Web Technology) Keywords: browser, technology
Ask Jeeves, Mozilla Foundation begin talks on Jeeves browser and on donating Jeeves' search technology to the open-source group.
Source: http://news.zdnet.com/Ask+Jeeves+mulls+Firefox-based+browser/2100-9588_22-5576335.html?part=rss&tag=feed&subj=zdnn
-
Reversal: Next IE update divorced from Windows
Date: 02/15/05
(Web Technology) Keywords: browser, microsoft
Version 7.0 of the browser will launch ahead of the next update to Windows, as Microsoft shifts plans.
Source: http://news.zdnet.com/Reversal%3A+Next+IE+update+divorced+from+Windows/2100-9588_22-5577263.html?part=rss&tag=feed&subj=zdnn
-
Reversal: Next IE divorced from new Windows
Date: 02/15/05
(Web Technology) Keywords: browser, microsoft
update Version 7.0 of the browser will launch ahead of the next update to Windows, as Microsoft shifts plans.
Is Microsoft reacting to Firefox's popularity?
Source: http://news.zdnet.com/Reversal%3A+Next+IE+divorced+from+new+Windows/2100-9588_22-5577263.html?part=rss&tag=feed&subj=zdnn
-
Firefox reaches 25 million desktops
Date: 02/18/05
(Web Technology) Keywords: browser, microsoft
Mozilla's browser continues to build a strong following, challenging the dominance of Microsoft's IE.
Source: http://news.zdnet.com/Firefox+reaches+25+million+desktops/2100-9588_22-5581508.html?part=rss&tag=feed&subj=zdnn
-
Here a password, there a password...
Date: 02/13/05
(PHP Community) Keywords: browser, database, java
I have a problem. My current login system works as follows:
The user inputs their username and password and hits Login. Before the browser sends this information, a javascript catches the password and replaces it with an md5 hash (combined with the username). On my server, the username is queried in the database, pulling up the password. The md5 is regenerated, and is compared with the hash that the user sent.
Now, the problem is that this scheme leaves the password unencrypted in my database.
The problem is, I simply have no idea about how verify the login without having the actual password somewhere. I don't want it sent over the network, but I don't want to store it plainly in the database either. Any suggestions?
Source: http://www.livejournal.com/community/php/258899.html
-
ljLog = PHP + MySQL
Date: 02/09/05
(PHP Community) Keywords: php, mysql, browser, database, sql
[Error: Irreparable invalid markup (' ') in entry. Owner must fix manually. Raw contents below.]
Lately, I've been adding hidden <img> tags to my posts. The source attribute points to non-existent URLs on my server, each tagged to the post ID - aka: http://ohsonline.no-ip.com/lj74252. Simple little way to see whenever someone reads your journal, or whenever somebody checks out a friends page you're listed on. Not the best solution, but hey, it works. Last night, I got bored, and still a little out of it from being sick, decided to work on a little PHP/MySQL script to actually collect all of that data coming in and provide a little analysis. So far it's basic, and only really provides the IP, post ID, timestamp, browser, and platform. I still need to add the source to pump out page hits based on post, ip, browser, platform, etc. Anyways, somebody's probably come up with a similar/better solution before, but as always, feel free to hack away :)
/** / ljLog \\> @author Michael Bommarito @version 20050208-1 @license LGPL Keep track of who views your LJ, complete with analysis by post, browser, operating system, and referring URL. Or it will. Some day. */
$db = new mysqli('localhost', 'root', 'password', 'ljlog'); if( mysqli_connect_errno() ) { die("Unable to contact database server. Try again later..."); }
if( isset($_REQUEST['post-id']) ) { $post_id = $db->real_escape_string($_REQUEST['post-id']); $user_ip = ip2long($_SERVER['REMOTE_ADDR']); $user_agent = $_SERVER['HTTP_USER_AGENT']; $user_referer = $_SERVER['HTTP_REFERER']; $query = "SELECT * FROM `ljview_post` WHERE `ljview_post_id` = $post_id"; $res = $db->query($query); if( $res->num_rows > 0 ) { $user_post_id = $res->fetch_object()->ljview_post_id; $query = "UPDATE `ljview_post` SET `ljview_post_hits` = `ljview_post_hits` + 1 WHERE `ljview_post_id` = $post_id"; $db->query($query); } else { $query = "INSERT INTO `ljview_post` VALUES($post_id, 1)"; $db->query($query); $user_post_id = $db->insert_id; } $res->free(); if( $user_ip > 0 ) { $query = "SELECT * FROM `ljview_ip` WHERE `ljview_ip_ip` = $user_ip"; $res = $db->query($query); if( $res->num_rows > 0 ) { $user_ip_id = $res->fetch_object()->ljview_ip_id; $query = "UPDATE `ljview_ip` SET `ljview_ip_hits` = `ljview_ip_hits` + 1 WHERE `ljview_ip_ip` = $user_ip"; $db->query($query); } else { $query = "INSERT INTO `ljview_ip` VALUES(NULL, $user_ip, 1)"; $db->query($query); $user_ip_id = $db->insert_id; } $res->free(); } if( $user_referer != '' ) { $query = "SELECT * FROM `ljview_referer` WHERE `ljview_referer_string` = '$user_referer'"; $res = $db->query($query); if( $res->num_rows > 0 ) { $user_referer_id = $res->fetch_object()->ljview_referer_id; $query = "UPDATE `ljview_referer` SET `ljview_referer_hits` = `ljview_referer_hits` + 1 WHERE `ljview_referer_string` = '$user_referer'"; $db->query($query); } else { $query = "INSERT INTO `ljview_referer` VALUES(NULL, '$user_referer', 1)"; $db->query($query); $user_referer_id = $db->insert_id; } $res->free(); } $query = "SELECT * FROM `ljview_user_agent` WHERE `ljview_user_agent_string` = '$user_agent'"; $res = $db->query($query); if( $res->num_rows > 0 ) { $user_user_agent_id = $res->fetch_object()->ljview_user_agent_id; $query = "UPDATE `ljview_user_agent` SET `ljview_user_agent_hits` = `ljview_user_agent_hits` + 1 WHERE `ljview_user_agent_string` = '$user_agent'"; $db->query($query); } else { $query = "INSERT INTO `ljview_user_agent` VALUES(NULL, '$user_agent', 1)"; $db->query($query); $user_user_agent_id = $db->insert_id; } $res->free(); $ts = time(); $query = "INSERT INTO `ljview` VALUES (NULL, $user_ip_id, $post_id, $user_user_agent_id, $user_referer_id, $ts)"; $db->query($query); } else { ?> PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "DTD/xhtml1-transitional.dtd">
ljLog - ALPHA-000-UNSTABLE-RC-FLAMING-AARDVARK |
$res = $db->query("SELECT * FROM ljview ORDER BY ljview_id DESC"); while( $view = $res->fetch_object() ) { print (""); $ip_id = $view->ljview_ip_id; $res_ip = $db->query("SELECT * FROM ljview_ip WHERE ljview_ip_id = $ip_id"); if( $res_ip ) { $ip = $res_ip->fetch_object(); $res_ip->free(); print ( "" . long2ip($ip->ljview_ip_ip) . " | " ); } else { print(" | "); } $post_id = $view->ljview_post_id; print("$post_id | "); if( $view->ljview_ts ) { print ( "" . date("m/d/Y, g:i:s a", $view->ljview_ts) . " | " ); } else { print(" | "); } $user_agent_id = $view->ljview_user_agent_id; $res_user_agent = $db->query("SELECT * FROM ljview_user_agent WHERE ljview_user_agent_id = $user_agent_id"); if( $res_user_agent ) { $user_agent = $res_user_agent->fetch_object(); $res_user_agent->free(); $browser = get_browser($user_agent->ljview_user_agent_string); print ( "" . $browser->parent . " | " ); print ( "" . $browser->platform . " | " ); } else { print(" | "); } print (" "); } ?>
} $db->close(); ?>
`ljview_post_id` int(10) unsigned NOT NULL default '0', `ljview_user_agent_id` int(10) unsigned NOT NULL default '0', `ljview_referer` int(10) unsigned NOT NULL default '0', `ljview_ts` int(10) unsigned NOT NULL default '0', PRIMARY KEY (`ljview_id`) ) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_bin;
-- --------------------------------------------------------
-- -- Table structure for table `ljview_ip` --
DROP TABLE IF EXISTS `ljview_ip`; CREATE TABLE IF NOT EXISTS `ljview_ip` ( `ljview_ip_id` int(10) unsigned NOT NULL auto_increment, `ljview_ip_ip` int(32) NOT NULL default '0', `ljview_ip_hits` int(10) unsigned NOT NULL default '0', PRIMARY KEY (`ljview_ip_id`) ) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_bin;
-- --------------------------------------------------------
-- -- Table structure for table `ljview_post` --
DROP TABLE IF EXISTS `ljview_post`; CREATE TABLE IF NOT EXISTS `ljview_post` ( `ljview_post_id` int(10) unsigned NOT NULL auto_increment, `ljview_post_hits` int(10) unsigned NOT NULL default '0', PRIMARY KEY (`ljview_post_id`) ) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_bin;
-- --------------------------------------------------------
-- -- Table structure for table `ljview_referer` --
DROP TABLE IF EXISTS `ljview_referer`; CREATE TABLE IF NOT EXISTS `ljview_referer` ( `ljview_referer_id` int(10) unsigned NOT NULL auto_increment, `ljview_referer_string` text collate utf8_bin, `ljview_referer_hits` int(10) unsigned NOT NULL default '0', PRIMARY KEY (`ljview_referer_id`) ) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_bin;
-- --------------------------------------------------------
-- -- Table structure for table `ljview_user_agent` --
DROP TABLE IF EXISTS `ljview_user_agent`; CREATE TABLE IF NOT EXISTS `ljview_user_agent` ( `ljview_user_agent_id` int(10) unsigned NOT NULL auto_increment, `ljview_user_agent_string` text collate utf8_bin, `ljview_user_agent_hits` int(10) unsigned NOT NULL default '0', PRIMARY KEY (`ljview_user_agent_id`) ) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_bin;
Source: http://www.livejournal.com/community/php/257133.html
-
Firefox reaches 25 million downloads
Date: 02/18/05
(Web Technology) Keywords: browser, microsoft
Mozilla's browser continues to build a strong following, challenging the dominance of Microsoft's IE.
Source: http://news.zdnet.com/Firefox+reaches+25+million+downloads/2100-9588_22-5581508.html?part=rss&tag=feed&subj=zdnn
-
Invision Power Board
Date: 02/21/05
(PHP Community) Keywords: browser, web
Hello all! I'm new to this community, and I've encountered an extremely frustrating problem.
I recently set up an Invision Power Board forum at one of my websites. Everything is working fine -- except my users (and myself) cannot stay logged in. Even after checking the "keep me logged in" box, if you close the browser or even surf to another site and come back, you are suddenly not logged in.
I've been through the admin panel over and over, and everything appears to be configured correctly. I know this must be a cookie problem, but I can't figure out what could be causing it, and my users are getting very irritated with it.
Any help at all would be so greatly appreciated! Thanks in advance!
Source: http://www.livejournal.com/community/php/264825.html
-
PHP + MySQL = ljLog
Date: 02/10/05
(MySQL Communtiy) Keywords: php, mysql, browser, database, sql
[Error: Irreparable invalid markup (' ') in entry. Owner must fix manually. Raw contents below.]
I've written little PHP/MySQL script to parse HTTP requests from hidden <img> tags in LJ posts (e.g. <img src="http://ohsonline.no-ip.com/ljview.php?post-id=74765" style="display:none;" />), archiving it all in a MySQL database and providing a little analysis. So far it's basic, and only really provides the IP, post ID, referring user, timestamp, browser, and platform. I still need to add the source to pump out page hits based on post, ip, browser, platform, etc. Anyways, somebody's probably come up with a similar/better solution before, but as always, feel free to hack away :)
/** / ljLog \\> @author Michael Bommarito @version 20050209-2 @license GPL Keep track of who views your LJ, complete with analysis by post, browser, operating system, and referring URL. */
$db = new mysqli('localhost', 'root', 'password', 'ljlog'); if( mysqli_connect_errno() ) { die("Unable to contact database server. Try again later..."); }
if( isset($_REQUEST['post-id']) ) { $post_id = $db->real_escape_string($_REQUEST['post-id']); $user_ip = ip2long($_SERVER['REMOTE_ADDR']); $user_agent = $_SERVER['HTTP_USER_AGENT']; $user_referer = $_SERVER['HTTP_REFERER']; $query = "SELECT SQL_CACHE * FROM `ljview_post` WHERE `ljview_post_id` = $post_id"; $res = $db->query($query); if( $res->num_rows > 0 ) { $user_post_id = $res->fetch_object()->ljview_post_id; $query = "UPDATE `ljview_post` SET `ljview_post_hits` = `ljview_post_hits` + 1 WHERE `ljview_post_id` = $post_id"; $db->query($query); } else { $query = "INSERT INTO `ljview_post` VALUES($post_id, 1)"; $db->query($query); $user_post_id = $db->insert_id; } $res->free(); if( $user_ip > 0 ) { $query = "SELECT SQL_CACHE * FROM `ljview_ip` WHERE `ljview_ip_ip` = $user_ip"; $res = $db->query($query); if( $res->num_rows > 0 ) { $user_ip_id = $res->fetch_object()->ljview_ip_id; $query = "UPDATE `ljview_ip` SET `ljview_ip_hits` = `ljview_ip_hits` + 1 WHERE `ljview_ip_ip` = $user_ip"; $db->query($query); } else { $query = "INSERT INTO `ljview_ip` VALUES(NULL, $user_ip, 1)"; $db->query($query); $user_ip_id = $db->insert_id; } $res->free(); } if( $user_referer != '' ) { $query = "SELECT SQL_CACHE * FROM `ljview_referer` WHERE `ljview_referer_string` = '$user_referer'"; $res = $db->query($query); if( $res->num_rows > 0 ) { $user_referer_id = $res->fetch_object()->ljview_referer_id; $query = "UPDATE `ljview_referer` SET `ljview_referer_hits` = `ljview_referer_hits` + 1 WHERE `ljview_referer_string` = '$user_referer'"; $db->query($query); } else { $query = "INSERT INTO `ljview_referer` VALUES(NULL, '$user_referer', 1)"; $db->query($query); $user_referer_id = $db->insert_id; } $res->free(); } $query = "SELECT SQL_CACHE * FROM `ljview_user_agent` WHERE `ljview_user_agent_string` = '$user_agent'"; $res = $db->query($query); if( $res->num_rows > 0 ) { $user_user_agent_id = $res->fetch_object()->ljview_user_agent_id; $query = "UPDATE `ljview_user_agent` SET `ljview_user_agent_hits` = `ljview_user_agent_hits` + 1 WHERE `ljview_user_agent_string` = '$user_agent'"; $db->query($query); } else { $query = "INSERT INTO `ljview_user_agent` VALUES(NULL, '$user_agent', 1)"; $db->query($query); $user_user_agent_id = $db->insert_id; } $res->free(); $ts = time(); $query = "INSERT INTO `ljview` VALUES (NULL, $user_ip_id, $post_id, $user_user_agent_id, $user_referer_id, $ts)"; $db->query($query); } else { ?> PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "DTD/xhtml1-transitional.dtd">
ljLog - ALPHA-000-UNSTABLE-RC-FLAMING-AARDVARK $count = array_pop($db->query("SELECT ljview_id FROM ljview ORDER BY ljview_id DESC LIMIT 1")->fetch_row()); $limit = isset($_REQUEST['limit']) ? abs($_REQUEST['limit']) : 20; $offset = isset($_REQUEST['offset']) ? abs($_REQUEST['offset']) : 0; $place = $count - $offset; $query = "SELECT SQL_CACHE * FROM ljview WHERE ljview_id <= $place ORDER BY ljview_ts DESC LIMIT $limit"; $res = $db->query($query); $end = $offset + $limit; $back = $offset - $limit; print(""); print(""); } ?> |
while( $view = $res->fetch_object() ) { print (""); $ip_id = $view->ljview_ip_id; $res_ip = $db->query("SELECT SQL_CACHE * FROM ljview_ip WHERE ljview_ip_id = $ip_id"); if( $res_ip ) { $ip = $res_ip->fetch_object(); $res_ip->free(); print ( "" . long2ip($ip->ljview_ip_ip) . " | " ); } else { print(" | "); } $post_id = $view->ljview_post_id; print("$post_id | "); if( $view->ljview_ts ) { print ( "" . date("m/d/Y, g:i:s a", $view->ljview_ts) . " | " ); } else { print(" | "); } $user_agent_id = $view->ljview_user_agent_id; $res_user_agent = $db->query("SELECT SQL_CACHE * FROM ljview_user_agent WHERE ljview_user_agent_id = $user_agent_id"); if( $res_user_agent ) { $user_agent = $res_user_agent->fetch_object(); $res_user_agent->free(); $browser = get_browser($user_agent->ljview_user_agent_string); print ( "" . $browser->parent . " | " ); print ( "" . $browser->platform . " | " ); } else { print(" | "); } $referer_id = $view->ljview_referer; $res_referer = $db->query("SELECT SQL_CACHE * FROM ljview_referer WHERE ljview_referer_id = $referer_id"); if( $res_referer ) { $referer = $res_referer->fetch_object(); $res_referer->free(); $referer_stack = split('[-./]', $referer->ljview_referer_string); if( strcasecmp($referer_stack[2], 'livejournal') == 0 ) { $lj_user = $referer_stack[5]; } else if( strcasecmp($referer_stack[3], 'livejournal') == 0 ) { $lj_user = $referer_stack[6]; } print("$lj_user | "); } else { print(" | "); } print (" "); } ?>
} $db->close(); ?>
`ljview_post_id` int(10) unsigned NOT NULL default '0', `ljview_user_agent_id` int(10) unsigned NOT NULL default '0', `ljview_referer` int(10) unsigned NOT NULL default '0', `ljview_ts` int(10) unsigned NOT NULL default '0', PRIMARY KEY (`ljview_id`) ) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_bin;
-- --------------------------------------------------------
-- -- Table structure for table `ljview_ip` --
DROP TABLE IF EXISTS `ljview_ip`; CREATE TABLE IF NOT EXISTS `ljview_ip` ( `ljview_ip_id` int(10) unsigned NOT NULL auto_increment, `ljview_ip_ip` int(32) NOT NULL default '0', `ljview_ip_hits` int(10) unsigned NOT NULL default '0', PRIMARY KEY (`ljview_ip_id`) ) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_bin;
-- --------------------------------------------------------
-- -- Table structure for table `ljview_post` --
DROP TABLE IF EXISTS `ljview_post`; CREATE TABLE IF NOT EXISTS `ljview_post` ( `ljview_post_id` int(10) unsigned NOT NULL auto_increment, `ljview_post_hits` int(10) unsigned NOT NULL default '0', PRIMARY KEY (`ljview_post_id`) ) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_bin;
-- --------------------------------------------------------
-- -- Table structure for table `ljview_referer` --
DROP TABLE IF EXISTS `ljview_referer`; CREATE TABLE IF NOT EXISTS `ljview_referer` ( `ljview_referer_id` int(10) unsigned NOT NULL auto_increment, `ljview_referer_string` text collate utf8_bin, `ljview_referer_hits` int(10) unsigned NOT NULL default '0', PRIMARY KEY (`ljview_referer_id`) ) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_bin;
-- --------------------------------------------------------
-- -- Table structure for table `ljview_user_agent` --
DROP TABLE IF EXISTS `ljview_user_agent`; CREATE TABLE IF NOT EXISTS `ljview_user_agent` ( `ljview_user_agent_id` int(10) unsigned NOT NULL auto_increment, `ljview_user_agent_string` text collate utf8_bin, `ljview_user_agent_hits` int(10) unsigned NOT NULL default '0', PRIMARY KEY (`ljview_user_agent_id`) ) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_bin;
Source: http://www.livejournal.com/community/mysql/47917.html
-
Session Variables
Date: 02/21/05
(Web Development) Keywords: browser, html, asp, java
My ASP application uses several session variables. If the user exits properly - by using the in browser controls then they will clear (using session.abandon) and all will be good.
The problem is that there is a single HTML form with a javascript menu that remains open. If the user does not exit through the controls I have given them, but x's out of the browser, and then goes back in to the application - the session variables still exist.
I'm trying to figure out how/where I can clear these variables. I can't do it when the form loads because it reloads many times, and I need to keep the session variables. I can't put it in the HTML menu page either, because that one never reloads.
Any ideas/suggestions?
Thanks!
Source: http://www.livejournal.com/community/webdev/174225.html
-
Floating content
Date: 02/07/05
(Web Development) Keywords: browser, css
I came across this site ( http://www.w3.org/QA/Tips/color ) that has content that floats on the right hand side of the page when viewed in netscape, but in IE it floats at the top right. (In netscape, the content will float on the same location regardless of where in the document a browser is.) I'm looking for a way to replicate this behavior in netscape and IE, I can't get the CSS right. Any ideas?
Source: http://www.livejournal.com/community/webdev/170173.html
-
Slow JavaScript rollovers in Firefox
Date: 02/02/05
(Web Development) Keywords: browser, java, linux, seo
Hi all, I'm new around here. Have you ever run into amazingly slow javascript rollovers in the Windows build of Firefox? Check out this little test to see what I'm talking about. Basically there are 4 absolutely positioned gifs on top of each other, with the links to the side set up with onMouseOver events that toggle a given gif's src. This works just fine in IE 6, Safari, and Mac and Linux builds of Firefox, but in Firefox on Windows it's painfully slow. Or at least it is on my machine. Others have told me that it looks fine. A version with all the state's counties practically locks up my browser.
Any thoughts? A known bug, perhaps? Any better techniques? I've tried toggling style.visibility instead of the src, but to no avail.
Source: http://www.livejournal.com/community/webdev/168815.html
-
.ASP testing environment?
Date: 02/02/05
(Web Development) Keywords: browser, asp
Hi all!
I'm fairly new to .ASP proramming, and would like to do make acid-testing a little easier. Client-side scripting is real simple - just preview in the browser. However testing server-side scripting is a little challenging. Every time I wish to test my code, I have to upload the page to a remote server. Although the final test is the final post, when I'm working on a page, I will make a bunch of small nip-and-tuck changes until I get it right and uploading every thirty seconds after making a minor change is a big pain in the rear. Is ther a way to set up a local .ASP testing environment on my own PC, so I don't have to repeatedly send up every little tweak and adustment done during a course of development?
Source: http://www.livejournal.com/community/webdev/168345.html
-
Deploying a simple servlet on Tomcat.
Date: 12/14/04
(Apache) Keywords: browser, html, xml, java, web
Edit: Thanks, solved.
Hi, I'm having problems deploying a very simple servlet on Tomcat 5.5. When I direct my browser to the expected URL, Tomcat just spits back a blank "Directory Listing for /" page, and I'm not seeing anything helpful in the logs.
I'm wondering if the problem is that I have not included any .html files in my webapp ... but I don't understand why I would need to, or what I would have to put in it.
Compiles fine. Servlet Code: public class HelloWorldExample extends HttpServlet {
public void doGet(HttpServletRequest request, HttpServletResponse response) throws IOException, ServletException { response.setContentType("text/html"); PrintWriter out = response.getWriter(); out.println(""); out.println(""); out.println(""); out.println("See my first demo work!"); out.println(""); out.println(""); } }
The URL I type into my browser is http://localhost:8080/Hello. No dice :(
Web.xml config: Hello v2 Hello Demo Hello HelloWorldExamplelet-class> Hello /Hello
As I understand it, this configuration should allow me to access my servlet by http://localhost:8080/Hello
.war layout: demo/ WEB-INF/web.xml WEB-INF/classes/HelloWorldExample.class WEB-INF/classes/HelloWorldExample.java
I've read the tomcat docs and "Tomcat - The Definitive Guide" (O'Reilly). Many thanks if anyone could offer me some pointers. -Phil
Source: http://www.livejournal.com/community/apache/14800.html
-
POSTing and redirecting
Date: 02/02/05
(PHP Development) Keywords: php, browser, database, java
I'm in a situation where I want to create a page that redirects to another site and posts as it does so, as if it were a form (the page needs to record acceptance in a database before the site-user hares off into the unknown, possibly not to return). Is there a way of manually setting these post values in php? header() just seems to apply to the page you're in. I can't rely on Javascript, and somehow sending the post variables to the other site and mirroring the result of the first page on my site would be commercially problematic. Help!
Thinking about this, there just doesn't seem to be a solution. Header sets HTTP header variables in the document that goes back to the user's browser, not the second server. POST variables would usually be provided by the user's browser to the second server, not by the first server. I just don't think that there's a way of doing this kind of redirection, but I may be wrong, it's not really my area.
Fascinating problem, would anybody like to comment?
Source: http://www.livejournal.com/community/php_dev/52088.html
-
security in websites
Date: 12/29/04
(PHP Development) Keywords: php, mysql, browser, database, sql, security, web
i am preparing to design a website for my family. i'd like it to have a secure log-in, which references usernames and passwords in a mysql database. i'd like the rest of the website to be secure, meaning, if you're not logged in, you're redirected to the index. i'm planning to use sessions with cookies. as i'm relatively new to security in web design, i'd like some advice.
i know the login.php script will check the username and password against a corresponding user table. if the login succeeds, a call will be made to session_start(). session_start() will be called on all subsequent pages, as well as a check to see if the login status is true (or something like that). herein is my first question: what should each subsequent page of the site check for?
do i need to turn SSL on or will sessions, cookies and a database be enough? (it doesn't need to be super tight--mainly, some of my aunts and uncles don't want the pictures of their bikini clad daughters from our beach trips accessible to just anyone over the net.)
... i guess i'm not entirely sure what else to ask. i suppose that i'll need to make each page check to see if the above mentioned login status variable is set to true, but how do i set it to false? do i just design the session or cookie to expire when the browser is closed?
any help or feedback is appreciated. if you know of a good site (that's easy to understand) which goes over what you need to do to design s secure site, please let me know.
ah, by the way, the environment i'm designing this site for is a RedHat server with PHP4.3.9 and MySQL4.0
thanks for your help
Source: http://www.livejournal.com/community/php_dev/50687.html
|