almostbob 866 Retired: passive income ROCKS
function formatDate($val)  
  {  
      list($date, $time) = explode(" ", $val);  
      list($year, $month, $day) = explode("-", $date);
      list($hour, $minute, $second) = explode (":", $time);
      return date("l, m.j.y @ H:ia", mktime($hour, $minute, $second, $month, $day, $year));

There is nothing in that script that is set to language or timezone specific.
the dateformat is described fully in the online php manual at www.php.net
This script takes a date stored in a database by some slow thinking desgner(1) as a text string, breaks it and creates a manipulatable data set and returns a date.
What should happen is the database designer & programmer be fired.
then the database modified so that the data already stored is converted to a timestamp, and all future stored dates be stored as a timestamp
then the script is redundant and becomes

echo date("l, m.j.y @ H:ia", $val));

coding for language and regional date styles is just a matter of changing the date string, which can be in user config, by button, or in the code if the change is permanent

Note 1. I think he/she(designer/programmer) is a bleep idiot.

almostbob 866 Retired: passive income ROCKS

Its a standard shopping cart with the name changed to 'quote bla bla bla'
there are thousands premade and can be custom made,
for free and for pay,
supported and unsupported,
in any (computer) language you are comfortable with.

your friendly neighbourhhod Google (not spiderman)

almostbob 866 Retired: passive income ROCKS

shrink the image first, many people will not wait.
as long as there is a size set for the image, fake it
create a 1pixel square image and load that into the 800*600(example) image space.
put the javascript to load the image, and replace the 1px placeholder, last in the file. The page will load, be functional and then the image will change as soon as it is downloaded

<!-- most of page -->
<img src='tiny1px.jpg' id='bigpic'width='800' height='600'>
<!-- rest of page -->
</body>
<script language="javascript" type="text/javascript">
//<![CDATA[
<!-- 
Function replaceimage() {
image1 = new Image();
image1.src = "http://pics.mysite.com/bicpic.jpg";
document.getElementByID('bigpic').src = image1.src;
}
replaceimage;
//-->
//]]>
</script>
</html>

If the image is being preloaded for a subsequent page, its easier

<script language="javascript" type="text/javascript">
//<![CDATA[
<!-- 
image1 = new Image();
image1.src = "http://pics.mysite.com/bicpic.jpg";
//-->
//]]>
</script>

on a previous page will put the image in TIF ready for a call

almostbob 866 Retired: passive income ROCKS

in your css file or between the <style></style> tags in the header if using inline styles

td:hover {background:#aebcff;}
td {background:#ffffff;}

and your html is just

<td>sdsdsad</td>

& javascript may be disabled in the client browser
individual javascripts in elements are unneccessary

almostbob 866 Retired: passive income ROCKS
.bassano1 { width: 33%; }
.bassano2 { width: 33%; }
.bassano3 { width: 33%; }
.bassano1, .bassano2, .bassano3, .bassano4, .bassano5
{ position: relative;
background-color: #008001;
border: 2px solid #095E09;
float: left;
height: 50 %; }

the css is buggy, the space between '50' & '%' makes a second parameter, not sure how much rendering difference it will make or what quirks it will throw at which browser height: 50%; and retry,

almostbob 866 Retired: passive income ROCKS

went browsing through some old posts to find it

to see how your page looks in other screen sizes OS browsers, submit it to
http://www.browsershots.org
the response is screen images from users with every possible combination

almostbob 866 Retired: passive income ROCKS

the embedded styles in your html is effectively inline css,
you could use a css menu by embedding the style definitions in the head, instead of in a separate style sheet if external style sheets are not supported.

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<style>
<!--
td {border:1px; cursor:hand; border: 1px; border-style: solid; border-color: #7E3517; background-color:#FDD017;}
td:hover {background-color:#FFFC17;}
-->
</style>
</head>
<body>etc

css menus that use lists, are easier to implement than tables, there are thousands of examples on the web, and list structures lend themselves to submenus well

almostbob 866 Retired: passive income ROCKS

code in

tags
it makes it easy to read
that makes it easy to help
make it difficult, just get rude answers like this
[code=html]<form>
Hotel
<input type="text" id="txt1" onkeyup="showHint(this.value)">
</form>
<p>Suggestions: <span id="txtHint"></span></p>

var xmlHttp
function showHint(str)
{
if (str.length==0)
{
document.getElementById("txtHint").innerHTML="";
return;
}
xmlHttp=GetXmlHttpObject();
if (xmlHttp==null)
{
alert ("Your browser does not support AJAX!");
return;
}
var url="gethint.php";
url=url+"?q="+str;
url=url+"&sid="+Math.random();
xmlHttp.onreadystatechange=stateChanged;
xmlHttp.open("GET",url,true);
xmlHttp.send(null);
}
function stateChanged()
{
if (xmlHttp.readyState==4)
{
document.getElementById("txtHint").innerHTML=xmlHttp.responseText;
}
}
function GetXmlHttpObject()
{
var xmlHttp=null;
try
{
// Firefox, Opera 8.0+, Safari
xmlHttp=new XMLHttpRequest();
}
catch (e)
{
// Internet Explorer
try
{
xmlHttp=new ActiveXObject("Msxml2.XMLHTTP");
}
catch (e)
{
xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");
}
}
return xmlHttp;
}

anyhow
line32 above, try document.getElementById("txt1").innerHTML=xmlHttp.responseText; not certain

almostbob 866 Retired: passive income ROCKS

All screen measurements should only be in ems or %
the user sets the screen font to suit their vision on their computer.
change it to something stupid in px, they leave.(all px measurements for fonts are stupid, no offence intended)
Set fonts you want to be larger by 20% to font-size:120%; or font-size:1.2em; smaller to 85%, .85em
let the person viewing the page set the base font.
this screen I am composing on is 1920px high, and 16.8inches
18px text is an invisible grey smudge

almostbob 866 Retired: passive income ROCKS

let you know, Afterward

(not looking for an afterlife,
hoping for Apres Vie)

work

almostbob 866 Retired: passive income ROCKS

Have you tried lying inside a coffin?

have only ever been truthful when in a coffin

almostbob 866 Retired: passive income ROCKS

What happens to marketing emails
never get read,
straight to trash,
even the ones people opt in for
ISP blacklist the sender never heard from again.
The best marketing does not look like marketing,
- write your mailer in house, make it personal.
blacklists are easier to get on, than to get off
dont use a mass marketing agent.

almostbob 866 Retired: passive income ROCKS

:-/ All you men watch out

Women take time and moneywoman = time * money
time is money woman= money * money = money^2
money is the root of all evil woman = (evil^1/2)^2
=> woman = evil

jon.kiparsky commented: There are cave paintings of this one... lame indeed! +0
almostbob 866 Retired: passive income ROCKS

Well you forgot to include the script,
but you dont have that much control
the user can do whatever they want on the users pc, which is where the file ends up
Even when the user saves the file,
the download window will prompt to open on completion
unless 'close this dialog when complete' is checked

<?php if(!$file) return false;
header("Content-disposition: attachment; filename=$file");
header("Content-type: $filetype");
readfile("$file");
?>

<a href=savefile.php?filename=filename&filetype=filetype'>Save this file</a>

almostbob 866 Retired: passive income ROCKS

the width of #innerwrap could be, throwing browsers off
without a dimension IE firefox opera render differently
IE assumes px
firefox throws it away(but 0 auto margin setting would make it work anyway in firefox)
opera goes funky

body {  text-align:center; }
#innerwrap{ text-align: left;
 margin: 0 auto;
 width: 60%; }

works in opera IE Firefox
I set the body, you set outer wrap, same thing

almostbob 866 Retired: passive income ROCKS
<frameset onload='document.getElementById("main").focus()'; rows="75,*">
<frame src="menu.php" scrolling="no" marginwidth="0" marginheight="0" >
<frame src="home.php" id="main" >
<noframes>
<body>Your browser does not support frames.
You can view the <a href="/home.php">Home Page</a>.</body>
</noframes>
</frameset>

If you, use a css positioned menu,
you dont have to have ugly framesets
the page will scroll,
index better
and will work in browsers with javascript disabled

almostbob 866 Retired: passive income ROCKS

in the time between the first post and now
it is impossible that the site has been respidered,
that 'keywords' that you think are important have been included.
the process of preparing for submission can not be complete yet, so if submitted, you have submitted a dud.
you did not read the helpscreens, because they say
WAIT for changes to take effect
often, repetitively and in big letters

READ THE HELPSCREENS

almostbob 866 Retired: passive income ROCKS
almostbob 866 Retired: passive income ROCKS

Hi,

I have a website in development and i've made it centered regardless of width of the viewing browser window (eg. the browser is 1000px wide and the content is 600px wide and is centered with 200px each side) by using div's.

Now it works perfectly in FF, IE and WebKit (Safari, Chrome etc) but trying to open in Opera it is aligned left...

Now i know opera doesn't recognize text-align: center (how i'm centering the "wrapper" div) so my question really is...does anyone know of a work around for this typr of centering in Opera?

Thanks

Its not going to work in any browser, except your own.
open a window less than full screen and your page is shifted right, out of the visible area, click a link and the new page is shifted right out of the visible area. No.
images and borders, sized in pixels
all other elements, sized in ems or %
then the visible page will properly adjust,
Your divs should be something like 10% 80% 10% which will scale, and increase the usable area by 1/3

opera has a few quirks
for the vanishing div try sticking something in it
<div> &nbsp; </div>
still 'blank' but may display differently
check also the styles, different browsers throw away the entire style if the definitions are 'wrong'

almostbob 866 Retired: passive income ROCKS

You cant make it look the same on different resolutions,
diferent browsers,
different OS,
most likely the movement is the page adjusting to the chosen measurements at the changed resolution
and regardless of resolution you cant even be certain what size window the page is opened in.

you can't make a paper layout the same on 8*11 and and 9*14 paper, in portrait and landscape either

but you can make it look good, by choosing a scalable layout.
float images in position and flow text around them.
set the most important paragraph/image/whatever in place, then let everything adjust around that

almostbob 866 Retired: passive income ROCKS

Is the missing quote is just a typo in this question. that would cause failure

almostbob 866 Retired: passive income ROCKS

THere are a multitude of rate my picture scripts on script repositories like hotscripts.com phpscrips,com
grab a couple. examine them, and use ideas from the best bits of all of them.

almostbob 866 Retired: passive income ROCKS

this is the only error I get in the about us page

Notice: Undefined variable: HTTP_USER_AGENT in /home/www/fairfieldlimousine/mission.php on line 25

Notice: Undefined variable: HTTP_USER_AGENT in /home/www/fairfieldlimousine/mission.php on line 31

in this domain www.fairfieldlimousine.com

In php versions >=4.20 global variables are turned off anti hacking security
HTTP_USER_AGENT does not exist, ($HTTP_USER_AGENT )

the old domains are running an old(V.old) version of php or have had register_globals turned on to allow bad(old) code to run

the new domain has a newer version of php, or one that has not been altered

now it is $_SERVER

almostbob 866 Retired: passive income ROCKS

A GOOD way is to sign up at google for a webmaster account,
then read the helpscreens.
Google tell you what google look for.
tell you how to prepare your site before submission(dont submit a dud)
tell you how to submit it
tell you when it was/is/will be spidered
give you feedback through webmaster tools to make it index better.
get links to your site, they tell you how to do that to.

not google exclusive, yahoo msn Jeeves do too

if you cant find the webmaster tools
google for google webmaster tools

If you still cant find it http://www.google.com/support/webmasters/?hl=en
then read the helpscreens.
a little effort to sort out some technish (googlespeak), and it works

almostbob 866 Retired: passive income ROCKS

Emphatically yes
and there are dozens of tutorials on creating css menu bars on the web
with drop downs on some items, mouseover and onclick effects
(hover and active effects)
they work the same in browsers with/without javascript, only better

almostbob 866 Retired: passive income ROCKS

Fedex & UPS do what the postal service does with parcels to po boxes
they send a card to the box, and the box owner has to pick up the parcel from the nearest office

Many sites refuse delivery to postboxes
I had terrible trouble getting parcels to MilPo boxes

almostbob 866 Retired: passive income ROCKS

When you get ob_start(); inside php tags, there should be a flush of that object
exmple

<?php ob_start("ob_gzhandler"); 
statements 
 ob_flush(); ?>

opening a buffer object and adding a gzip handler makes for compressed output,

<?php statement ?>
<?php statement ?>
<?php statement ?>
<?php statement ?>
<?php statement ?>
<?php statement ?>

is functionally equivalent to

<?php statement 
statement
statement
statement
statement
statement ?>

and slower to execute

almostbob 866 Retired: passive income ROCKS

both else statements are redundant
else
blue = blue

almostbob 866 Retired: passive income ROCKS

Google webmaster central, a preferred response for 404 not found errors
http://googlewebmastercentral.blogspot.com/2008/08/farewell-to-soft-404s.html
prefer a redirect to a 404 page, a 404 error page does not negatively impact SER

in many sites the 404 error page has a
timed redirect to the menu
or a
click here to access menu button.
or a
sitesearch box populated with 'did you mean'
or
all of the above

ErrorDocument 404 /notfound.php

this seems to work for me notfound.php

<!doctype html public "-//w3c//dtd html 4.01 transitional//en" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta name="Language" content="en-US">
<meta http-equiv="content-Script-Type" content="text/javascript">
<LINK rel='StyleSheet' HREF='/style.css.php' TYPE="text/css" MEDIA='all'>
<script language="javascript" type="text/javascript" src="/script.js.php"></script>
<title>File Not Found</title>
</HEAD>
<body style='margin:70px;'>
<a class='log1'> ErrorDocument 404 notfound</a>
<p>File not found<BR>The requested resource or page <?php echo $_SERVER['REQUEST_URI']; ?> is not available<BR>
or<br>
Direct linking to this page is not available.<br>
Page names on this site may alter as information changes,<br>
Bookmarks may no longer be accurate,<br>
or <u>we</u> may have broken a menu link</p>
<p><a class='button' href="/">Click here</a> to open menu pages</P>
<p style='margin:100px; margin-top:0px;'>Site Search:
<div style="text-align:center; font-size: 90%;">
<a href="http://search.freefind.com/find.html?si=******&amp;m=0&amp;p=0">sitemap</a> &nbsp;
<a href="http://search.freefind.com/find.html?si=******&amp;pid=a">advanced</a>
<form action="http://search.freefind.com/find.html" method="get" accept-charset="utf-8" target="_self">
<input type="hidden" name="si" value="******">
<input type="hidden" name="pid" value="r">
<input type="hidden" name="n" value="0">
<input type="hidden" name="_charset_" value="">
<input type="hidden" name="bcd" value="÷">
Search for <input style='padding:5px; text-align:left;' type="text" name="query" size="25" value='<?php echo $_SERVER['REQUEST_URI'].' '; ?>'>
<input style='border:2px; border-color:#a4a4a4; background:#cccccc; text-enhance:bold; padding:2px;' type="submit" value="Search">
</form>
<span style="text-align:center; font-size: 90%; padding:4px;">
<a …
almostbob 866 Retired: passive income ROCKS

I have to add as many links as possible in other pages which links to my website.

links pointing back from valid(from a search bot perspective) web sites, related to the content of your site.
Links from link exchanges, web sites promising to increase your SER by dumping hundreds of links on random pages, have the opposite effect.

The more visitors, the better result in searh engines.

not really, visitors are anonymous outside your site,

visitors that leave blog entries on their site are a bonus

Are these 2 statements right?

Thanks

almost right,
its not easy,
four weeks is not a long time becuase the sites that link back to you dont get spidered,
the links once they begin to exist may not trigger search spiders to access your site weeks after that

Once a bot comes to look,
Your site has to interest the bot, the search bot has a range of factors that cause the site to be spidered or ignored
Page Titles have to work
keywords if used have to match the site text,
images have to have relevant alt text,
in-site links have to be easily readable
There has to be interesting content
search spiders do multiple languages, so 'ipsem lorem' filler text wont do it.
Valid HTML CSS XML XHTML always helps

Contact similar sites on the other side of town/county/province and arrange link exchange with the webmaster.

almostbob 866 Retired: passive income ROCKS
almostbob 866 Retired: passive income ROCKS

Not an answer
but often the easiest to setup is the worst to use
and the worst to setup is the easiest to use,
because all the problems are taken care of during the tedious setup.
Likewise any answers of the 'best' are going to be extremely subjective.
No recommendation to the best of them or how suited they are to your use but there are 118 classified ad scripts at http://www.hotscripts.com/PHP/Scripts_and_Programs/Classified_Ads/General/

almostbob 866 Retired: passive income ROCKS

Got directed to these cheat sheets php css scripting regular expressions 'et al'
had to pass the link on

peter_budo commented: Thanx for sharing +14
almostbob 866 Retired: passive income ROCKS

Like it..

poop?..

hate it when I dont have one,
relaxing when I have one
flavor:: havent tried it

camel

almostbob 866 Retired: passive income ROCKS

in the .htaccess file ErrorDocument 404 /

almostbob 866 Retired: passive income ROCKS

Its also very bad form, to get your images from someone elses servers.

almostbob 866 Retired: passive income ROCKS

There is no float :top; property
float takes left right none

almostbob 866 Retired: passive income ROCKS

Also as an aside

Keep content on the left of the screen, unneccessary advertising and navigation on the right
if the page does get to a screen that needs horizontal scrolling, the part that the user is reading is on screen, the dross is offscreen (like this page) user friendly,

not ebay : navigation on the left, auction items offscreen to the right

almostbob 866 Retired: passive income ROCKS

First Impression:: without looking :: your style sheet ::

different alignments in browsers usually means that you have

.something{
padding: 0px;
margin: 0px;
someattribute: 0dimension;
}

those zero should be dimensionless -no px pt em %, just zero

.something {
margin: 10px 0 1em 0;
padding: 0;
}

zero px/pt/em/% throws some browsers into quirks mode, or may have some browsers discard the style entirely

IE firefox opera safari et al. handle quirks and discards differently
(as well as handling everything else differently) :-/

almostbob 866 Retired: passive income ROCKS

There is always the manual & examples at php.net,

almostbob 866 Retired: passive income ROCKS

Get
notepad++
notepad2
vedit,
any editor that shows syntax highlighting
they show proceedural/syntax errors very well, the text is the 'wrong' color for keywords if any required punctuation, or structures are missing.
from the point where the missing item is,
so it is easy to locate

almostbob 866 Retired: passive income ROCKS

Pixels for images that are pixels wide/high, float:left or float:right to wrap them in the page text
ems or %age for fonts, ::do not set any absolute size for screen fonts, the user may have settings you don't know and your page is illegible, lost customer
%age for all other elements

Set separate styles for @media screen and @media print at minimum, on paper set point sizes for fonts.

pages adjust to screen resolution, window size, users display settings,
layout works in multiple browsers and multiple OS

don't attempt to make the page layout exactly anything, too many browsers render differently
just make it work.
this page gets horizontal scroll bars when the window size is small enough,
but, its looks similar, and it works.

works is the big thing

almostbob 866 Retired: passive income ROCKS

There are a few good tutorials, a few easy tutorials, unfortunately no good easy tutorials,
but,
No Warrant of fitness for any purpose. etc etc

TechRepublic php/flash
IBM Generate Flash on the Fly, with php

Shockwave Flash Functions
Introduction
PHP offers the ability to create Shockwave Flash files via Paul Haeberli's libswf module.
Note:
SWF support was added in PHP 4 RC2.
The libswf does not have support for Windows. The development of that library has been stopped, and the source is not available to port it to another systems.

For up to date SWF support take a look at the MING functions.
Note:
This extension has been moved to the » PECL repository and is no longer bundled with PHP as of PHP 5.0.0.

Requirements
You need the libswf library to compile PHP with support for this extension. You can download libswf at » ftp://ftp.sgi.com/sgi/graphics/grafica/flash/.

Installation
Once you have libswf all you need to do is to configure --with-swf[=DIR] where DIR is a location containing the directories include and lib. The include directory has to contain the swf.h file and the lib directory has to contain the libswf.a file. If you unpack the libswf distribution the two files will be in one directory. Consequently you will have to copy the files to the proper location manually.

Runtime Configuration
This extension has no configuration directives defined in …

almostbob 866 Retired: passive income ROCKS

would it be the same if it was a drop down box?

yes a drop down is a single input, the value is the value of the chosen option, and fits nicely as one item in an array

<select name='man'>
<option value='bill'>bill</option>
<option value='brian'>brian</option>
<option value='barry'>barry</option>
<option selected value='AlmostBob'>Smart Alec</option>
</select>

would give in the $_POST array

$_POST =
array(
[man] => 'AlmostBob'
)
almostbob 866 Retired: passive income ROCKS
#content {
    float : center;    
    font-size : 13px;   
    margin-left: 165px;
    width : 70%;
  }

this text is invisible to me
13 dots in 0.016 inch dot pitch .208 inches hi thats small, its four point paper type.
all font sizes on screen should be in ems
then the font size adjusts around the basefont set by the user for the users preference.
picture your screen being rendered on a cell phone
165 margin on a screen 200 wide ??
all measurements except for actual images and borders should be relative. ems and %ages
what looks good on your desktop may only look good (in any browsers) on your desktop, browsershots.org is good for images of other browsers and other OS and other screens

eyes see dark on light better
than light on dark background

almostbob 866 Retired: passive income ROCKS

It were Gremlins
Gremlins wot dunnit

almostbob 866 Retired: passive income ROCKS

test Just the update file
on your local server run the update.php against a blank(empty) b12.txt and examine the stored data,
then against an edit of the edited file
using the modified $text = stripslashes($_POST['update']);$text = stripslashes($_POST['update']); if that works the bug is elsewhere,

it should work
and the bug should be elsewhere

almostbob 866 Retired: passive income ROCKS
$text = stripslashes($_POST['update']);

Sorry Ardav, in between reading the post and answering

almostbob 866 Retired: passive income ROCKS

does a javascript submit refresh the page?

I ask, I dont use javascript much
'selected' is written by the server
if a javascript submit does not refresh the page selected will not be written,
I think..?

almostbob 866 Retired: passive income ROCKS

google for google webmaster tools
get a webmaster account
read the webmaster helpscreens
optimize your design according to the rules posted
submit your site for indexing
dont use any SEO sites till after you read the google info,
there are some link exchanges that get you delisted