I am trying to optimize the speed of a query that calculates bias/mean absolute error of forecasts against observations. The forecasts are issued hourly, and make hourly forecasts to the 48th hour. Furthermore, there are about 20 different forecast methods. On top of that, there are 12 different...
I'm trying to write a preg_match function that matches invalid characters in an input (in this case, a username). Here is the function:
if ( preg_match('/[^A-Za-z0-9]/', $username) ) { error; }
Based on the regex, the if-statement should return true when it matches a character other than A-Z...
I've been coding in PHP too much lately, and have really fallen short on the HTML/CSS/JScript standards of today. My goal is to have a website that conforms to the HTML 4.01 Strict standard (I do not plan on using XML unless "AJAX" operations that do not return XML- ie. just simple HTML, are...
Hello, my script is rather simple:
function preview_post() {
document.postform.action = 'submain.php';
document.postform.d.value = 'preview';
w = window.open('submain.php?d=preview','previewwin','scrollbars=yes,width=500,height=600');w.focus();
document.postform.target = 'previewwin'...
I believe this problem happens in a lot of browsers, even in IE for Mac. The tables basically explode, going to a width of 2000px or more. However, these tables are confined in a div:
<div style="position:absolute; top:96; left: 33; width:750;">
which is properly closed at the end of the file...
Hi,
I am building a site that makes use of PHP Sessions. Obviously, PHP will transmit the PHPSESSID (The Session ID) to a cookie to identify users, however, I've noticed some users have been experiencing bugs, and if cookies aren't enabled, the PHPSESSID won't be placed in the cookie. Is there a...
Hi.
I am creating a system that will use both MySQL and the $_SESSION variable, and there will be data that users carry as they navigate the site, in fact, a lot of data. Some data will change a lot, some will not. I have an idea of what to throw into MySQL, and $_SESSION, but there is some data...
http://www.seto-kaiba.com/tidir/login.php
-Note the Username/Password Entry. I want the Checkbox/Radio Button to have a similar format, a simple box, with no beveled appearance. and no background color around the box. Rather, a smaller, box version of that field. I looked all over CSS places but...
With PHP and generic HTML Pages, are images cached by default regardless of browser settings, or would a header function be needed to absolutely ensure force caching of images? For my site, I want images to be cached, but not data that changes with changes of the mySQL Db (Such as forum posts).
Hi, I've been coding in PHP for a while now, and every week I learn something new. I've decided to apply my new knowledge in creating a new version of my main site, which runs several different systems and a forum for one memberbase (One table of users basically). I am trying to figure out what...
I'm trying to get this code to work, basically there is a div with code:
<div id="diva" style="position:relative; height:69; width:238; top:-444; left:-229; visibility:hidden; filter:alpha(opacity=90);">
<a onmouseout="hidediva()">
<table width="100%" cellpadding="0" cellspacing="0">...
I am not sure if PHP has a function to support this, *Searched PHP.net for it* Does anyone know a very efficient way of doing IP Resolution without going away from PHP/Javascript? (When I mean IP Resolution I mean take in an IP Address, output the lookup, which is like, nyc.rr.1.1.1.1)
Well I am coding a simple Chatting script, and I have run into a problem with getting the chat body (where it shows the msgs) to reload after a user submits a message to it. Anyway the structure of my page is the following:
Main Window, with my site navigation, etc.
chat --> Iframe in the main...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.