almostbob 866 Retired: passive income ROCKS
<a href='*' onclick="JAVASCRIPT:window.location.href='list_upload.php?reqid=<?php echo $row['reqid']; ?>';" title="View" >View</a>
almostbob 866 Retired: passive income ROCKS

hosts file

almostbob 866 Retired: passive income ROCKS

<form method="post" action="exists.php"><input type="text" name="dl" value=""><input type="submit"></form> depending on the html version you are writing to, proper form is important
without the quotes $_post may not contain anything

almostbob 866 Retired: passive income ROCKS

pixels are not a layout tool, the size of a pixel is dependant on screen resolution
current best practice is to use em or % as dimensions for layout, these are scalar quantities that automatically adjust to window size screen resolution and user preference
a page laid out (example) as

body { width:100%; margin:1%; padding:1%;}
.menu { width:98%; margin:auto; padding:1%;}

always looks the same

added benefits of scalar dimensions;
content remains onscreen in partscreen windows, without horizontal scroll bars (Which absolutely P__ off users), on a large range of devices from phones(200px screen) to my laptop, plugged into a wall projector (3072px screen),,
and text auto adjusts to visual impairment font settings, making the site disability friendly

varoluscu_prens commented: Thank you almostbob. +1
almostbob 866 Retired: passive income ROCKS

how are you accessing the file
it appears a localhost error

almostbob 866 Retired: passive income ROCKS

arrays are quoted if ($_POST['Payment'] many servers in the path between your server and the client do not handle spaces well, the $_post-ed value would be better as Bank_Transfer javascript redirects when using a server language ??
why send anything but the correct page to the client

<?php 
if($_POST['Payment'] == 'Bank_Transfer') {header("Location: banktransfer.php");
elseif($_POST['Payment'] == 'Credit_Card') {header("Location: creditcard.php");
else {header("Location: paypal.php");

or switch / case

edited '==' :(

almostbob 866 Retired: passive income ROCKS

what ^he^ said

validation solely at the client is useless, information can be spoofed too easily
validation solely at the server is useless, too many reloads for incomplete forms, large amounts of data transfer for no real purpose
combination of clientside, so the form is completely filled, the data is appropriateley formed;, then at the server to validate the data and complete the submission

almostbob 866 Retired: passive income ROCKS

the code supplied is in error
the html inside the <?php ?> will not be parsed, it is not echo heredoc or php is not dropped back to html
eample

<?php
echo '<form action="verxbh738hxzge2d8a.php?nav=zjxpmovdtzjd" method="post" enctype="multipart/form-data" ';

the rest of the file is wrong as well, dont just wrap a html file in <?php ?> and expect it to work
get, and use, an editor with code highlighting
read the php manual
clean up your code <font color="#666666" class="bodyTxt"><font color="#000000">Arrival Date :</font></font> is stupid,

almostbob 866 Retired: passive income ROCKS

why not start with this

<?php
<form action="verxbh738hxzge2d8a.php?nav=zjxpmovdtzjd" method="post" enctype="multipart/form-data"

php is not html

almostbob 866 Retired: passive income ROCKS

try it, type in
http://www.MyMiXeDcAsENaMe.com http://www.mymixedcasename.com http://www.MYMIXEDCASENAME.com
just DONT do it again, there are still some seven-bit servers out there to cause problems if they end up in the path

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

examine mod_rewrite

almostbob 866 Retired: passive income ROCKS
echo '<select name="name"><option value="">Select your manager</option>';
while($row2=mysql_fetch_assoc($result1)) {
 echo '<option value="'.$row2['mid'].'"'; //line broken in the middle of the option declaration
 if($row2['mid']= $_POST['name']) echo 'selected="selected"'; //select the appropriate value only
 echo '>'.$row2['mngname'].'</option>'; }//option declaration completed
echo "</select>";

echo is infinitessimally faster than print :)

almostbob 866 Retired: passive income ROCKS

on fcreate the filesize is zero
reading zero bytes gives the error
as you are reading the entire file,

Note:

If you just want to get the contents of a file into a string, use file_get_contents() as it has much better performance

replace else {$newfile = fopen($filelocation,"r");$content = fread($newfile, filesize($filelocation));fclose($newfile);} with else { $content = filegetcontents($filelocation);} far less overhead

almostbob 866 Retired: passive income ROCKS

wrapping the code in [code=language] bla bla bla [/code] tags to enable highlighting,
and fixed a few html errors, red is not a 'good' color for code, values must be quoted

<form name="order_of_products_by_values" id="order_of_products_by_values" method="post" action="">
<select id="order_of_products_by_values" name="order_of_products_by_values" onChange="this.form.submit();"> 
<option value=1 >Pret crescator</option>
<option value=2 >Pret descrescator</option>
<option value=3 >Test</option>
<option value=4 >Test</option>
</select>
</form>

becomes

<form name="order_of_products_by_values" id="order_of_products_by_values" method="post" action="<?php echo $_server['php_self']; ?>">
<select id="order_of_products_by_values1" name="order_of_products_by_values1" onChange="this.form.submit();"> 
<option value='1' <?php if($_POST['order_of_products_by_values1']=='1') echo 'selected="selected"';?> >Pret crescator</option>
<option value='2' <?php if($_POST['order_of_products_by_values1']=='2') echo 'selected="selected"';?>>Pret descrescator</option>
<option value='3' <?php if($_POST['order_of_products_by_values1']=='3') echo 'selected="selected"';?>>Test</option>
<option value='4' <?php if($_POST['order_of_products_by_values1']=='4') echo 'selected="selected"';?>>Test</option>
</select>
</form>

not clean code but effective,
and didnt bother to code out possible errors at the initial form state where no value has been submitted
eg: <option value='3' <?php if($_post) {if($_POST['order_of_products_by_values1']=='3') echo 'selected="selected"';} ?> >Test</option> leaving you something to do :)

almostbob 866 Retired: passive income ROCKS

try

document.getElementById('subm1').style.display='hidden' <!-- instead of line disabled-->
document.getElementById('subm1').style.display='block'

but .. disabled='disabled' is cross-browser friendly uses one line of code for all browsers
IE uses one dom, FF moz safari use a different dom so the show hide values are different, often requires complex scripts

<script type='text/javascript'><!--
function hideIt(elem) {
if(document.getElementById) { document.getElementById(elem).style.visibility='hidden';}
if(document.layers) {document.layers[elem].visibility='hide';} }
function showIt(elem) {
if(document.getElementById) {document.getElementById(elem).style.visibility='visible';}
if(document.layers) {document.layers[elem].visibility='show';} }
--></script>

more complicated <input value='' id='textin' onchange="showIt('subm1');showit('subm2');"> still no guarantees untested code

almostbob 866 Retired: passive income ROCKS

It is possible in javscript so here is a small sample, probably not the best sample but a sample nonetheless

<script type="text/javascript">
function theChecker() { if(document.getElementById('textin').value=="") 
{ document.getElementById('subm1').disabled=true;document.getElementById('subm2').disabled=true; } 
else 
{ document.getElementById('subm1').disabled=false;document.getElementById('subm2').disabled=false; } }
</script>
<input id='textin' type='text' onkeyup='theChecker();'><br>
<input id='subm1' type='submit' disabled='disabled' value='submit1'> &nbsp; <input id='subm2' type='submit' disabled='disabled' value='submit2'>

see also string.length to ensure the correct number of digits for a postcode

almostbob 866 Retired: passive income ROCKS

I have a 2600px monitor, 980px central column looks ridiculous
I have also a 200px phone, 980px pushes content offscreen and makes it difficult to access the page
at least consider making the page to current standards, a page in em and % self adjusts to window size and does not need nearly so much 'tweaking' to make it look acceptable

almostbob 866 Retired: passive income ROCKS

CSS

@media print { .dontprint { display:none;}
@media screen { .dontshow { display:none; }
<div class='menu dontprint'> this represents the onscreen menu, which you dont want to print</div>
<div class='dontprint'>This is onscreen instructions for the form</div>
<div class='dontshow'>this is different on-paper instructions for the form</div>
<form>bla bla bla this is the form
What is your choice <select class='dontprint' onchange='self.className="";'>
<option>1</option>
<option>2</option>
<option>3</option>
</select><input type='text' class='dontshow'>
<!-- this creates a select box onscreen, but a fill in textbox on paper unless the user has set the value of the select box -->
</form>
<div class='dontprint'> this is anything else you dont want to print</div>
<div class='dontshow'> this is anything else you want to print but dont want to show onscreen</div>
<div class='dontshow dontprint'> this is spambot killer 
<a rel='nofollow'  href='http://www.auditmypc.com/freescan/antispam.html'>I hate spambots</a>
well behaved bots don't follow the link</div>
almostbob 866 Retired: passive income ROCKS

Why not use Print button on the browser or keyboard?

the number of helpdesk req there are for 'how do I print this'
If you program a print button right in the middle of the page there is less chance of somebody assuming you CAN'T print because there is no print button
unfortunately not 'no chance' just less chance

without a button you almost have to put detailed instructions on the page how to access 'print'

almostbob 866 Retired: passive income ROCKS

restricted private pilots check
Bike check
Car check
Truck check
Bus check
marine Oocean going check

18 was a good year for licenses

almostbob 866 Retired: passive income ROCKS

means the program has not found the javascript to replace the innertext of the div
likely causes

wrong filename the script is unlikely to be called jsapi, more often jsapi.js

the path is wrong ../../Documents is not the path to the script from the file that is including, try absolute references <script src='http://yoursite/documents/jsapi.js'> or <script src='<?php echo $_SERVER['DOCUMENT_ROOT'].'/documents/jsapi.js'; ?>' type='text/javascript'>

almostbob 866 Retired: passive income ROCKS

check to see if thsomeone hasntcoded the menu in the page instead of including the nebu

almostbob 866 Retired: passive income ROCKS

examine the lines in each file and ensure they are both including the same file

almostbob 866 Retired: passive income ROCKS

post code between [code=language]code [/code] tags, adds highlights, makes errors visible,, eg [code=php]<?php echo phpinfo(); ?> [/code] creates this

<?php echo phpinfo(); ?>

the page is refreshed, its just the code used does not display the $_post values anywhere

echo "<form method="post" action=$php_self>";
echo "<br>$dispayed_colname:<BR><INPUT TYPE="TEXT" NAME="hey"
SIZE="40">";

echo "<p><input type="submit" name="submit_the_values"
value="$submit">
</form>";

if($submit_the_values){
$sql=mysql_query("INSERT INTO $tabname($cols_to_insert)". "VALUES
($hey)");

wrong use of quotes breaks echo at the first value
corrected some

echo "<form method='post' action='$_SERVER['PHP_SELF']'>"; 
// quotes corrected, action value quoted, php_self is deprecated correct form used
.if(isset($_POST['hey'])) {echo "<br>$dispayed_colname:<br><input type='text' name='hey' value='$_POST{'hey']' size='40'>";}
else echo "<br>$dispayed_colname:<br><input type='text' name='hey' value='' size='40'>";} 
// corrected case, quotes, displayed updated value in input (there are shorter this is the one I thought first)
echo "<p><input type='submit' name='submit' value='submit'></form>";
if($_POST['submit']){ $sql=mysql_query("INSERT INTO $tabname cols_to_insert) VALUES ($_post['hey'])"; } 
//closed the braces, removed deprecated variable

I just got sick of making changes,
suggest get a code highlighting editor like notepad2 notepad++ (hundreds of them) and errors like these will be evident in the code as you write it
and easily corrected

almostbob 866 Retired: passive income ROCKS

18th birthday+1 day, too drunk to do the test on the day
everything happens at 18

almostbob 866 Retired: passive income ROCKS

When authoring document is HTML or XHTML, it is important to Add a Doctype declaration. The doctype declaration must be exact (both in spelling and in case) to have the desired effect, which makes it sometimes difficult. To ease the work, below is a list of recommended doctype declarations that you can use in your Web documents.

(X)HTML Doctype Declarations List
HTML 4.01
Strict <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
Transitional <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
Frameset <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN" "http://www.w3.org/TR/html4/frameset.dtd">
XHTML 1.0
Strict (quick reference) <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
Transitional <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
Frameset <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd">
XHTML 1.1 - DTD: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
XHTML Basic 1.1 (quick reference): <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML Basic 1.1//EN" "http://www.w3.org/TR/xhtml-basic/xhtml-basic11.dtd">
HTML 5 [NOT a standard yet] <!DOCTYPE HTML>
MathML Doctype Declarations
MathML 2.0 - DTD: <!DOCTYPE math PUBLIC "-//W3C//DTD MathML 2.0//EN" "http://www.w3.org/TR/MathML2/dtd/mathml2.dtd">
MathML 1.01 - DTD: <!DOCTYPE math SYSTEM "http://www.w3.org/Math/DTD/mathml1/mathml.dtd">
Compound documents doctype declarations
XHTML + MathML + SVG - DTD: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1 plus MathML 2.0 plus SVG 1.1//EN" "http://www.w3.org/2002/04/xhtml-math-svg/xhtml-math-svg.dtd">
XHTML + MathML + SVG Profile (XHTML as the host language) - DTD: …

almostbob 866 Retired: passive income ROCKS

doctype defines the document type
the appropriate doctype for the code of the files ensures the page displays and functions as intended
upper case
precisely as written

almostbob 866 Retired: passive income ROCKS

zoom is not an appropriate or useful test
users set the basefont to their specifications/requirements and expect that websites are current enough in code compliance to adjust around them
current best practice it to use em or % as layout tools
cease using px, the problem will disappear

800px columnn looks ridiculous on this 2600px monitor
800px pushes offscreen in small displays/portable devices

AngelicOne commented: very helpful +3
almostbob 866 Retired: passive income ROCKS

what is the source of the data in the table, there may be a different approach that works,

almostbob 866 Retired: passive income ROCKS

"does that change anything"
validation errors in xhtml code, and
some browsers may fail to display the tag/page (depending on the number of code errors)

xhtml has strict structure rules
must use self closed tags, period

stuff we use a lotthese standard test beds may assist you

http://analyze.websiteoptimization.com/authenticate.php?url=http://www.yoursite.com&/ Speed tweaks

http://validator.w3.org/check?uri=http%3A%2F%2Fwww.yoursite.com&charset=%28detect+automatically%29&doctype=Inline&group=0 html check

http://jigsaw.w3.org/css-validator/validator?uri=http%3A%2F%2Fwww.yoursite.com&profile=css21&usermedium=all&warning=1&lang=en CSS2 check http://jigsaw.w3.org/css-validator/validator?uri=http%3A%2F%2Fwww.yoursite.com&profile=css3&usermedium=all&warning=1&lang=en CSS3 check

http://demo.opera-mini.net/demo.html?www.yoursite.com handheld

http://www.browsershots.org other browsers
many problems (if present) will show
serious code errors in the w3c validator sites will produce blankscreens in browsershots

Valid code does not ensure the site will work ...
Invalid code ensures the site will not work ...
.. in all browser OS combinations

not all layouts work in handheld devices
strictly code based,

Hani1991 commented: Thank you for wasting your time to help me. +2
almostbob 866 Retired: passive income ROCKS

html is fairly flexible in its structure, incomplete code is accepted by the parser
the xhtml specification is much more strict
in xhtml all tags must close
eg <a></a>
singleton tags such as <img><br> must self close as <img /> <br />

almostbob 866 Retired: passive income ROCKS

these standard test beds may assist you

http://analyze.websiteoptimization.com/authenticate.php?url=http://www.yoursite.com&/ Speed

http://validator.w3.org/check?uri=http%3A%2F%2Fwww.yoursite.com&charset=%28detect+automatically%29&doctype=Inline&group=0 html check

http://jigsaw.w3.org/css-validator/validator?uri=http%3A%2F%2Fwww.yoursite.com&profile=css21&usermedium=all&warning=1&lang=en CSS2 check http://jigsaw.w3.org/css-validator/validator?uri=http%3A%2F%2Fwww.yoursite.com&profile=css3&usermedium=all&warning=1&lang=en CSS3 check

http://demo.opera-mini.net/demo.html?www.yoursite.com handheld

http://www.browsershots.org other browsers
many problems (if present) will show
serious code errors in the w3c validator sites will produce blankscreens in browsershots

Valid code does not ensure the site will work ...
Invalid code ensures the site will not work ...
.. in all browser OS combinations

not all layouts work in handheld devices
strictly code based, you understand your content more than I would

almostbob 866 Retired: passive income ROCKS

>> "oh shit, not another gung-ho ..."

Alright ardav, I give up. I know you're thinking of someone in particular, but I'm drawing a blank. At least give us a hint.


P.S. What happened to the bad word filter?

"drawing a blank" is definitely a hint

almostbob 866 Retired: passive income ROCKS

iframe code for no problem

<html></html>

iframe code for problem condition

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html><head><script type='text/javascript'>
<!-- 
top.location = 'location of selected problem page'
//--></script></head><body></bopdy></html>
almostbob 866 Retired: passive income ROCKS

this set of links will help

http://analyze.websiteoptimization.com/authenticate.php?url=http://www.yoursite.com&/ Speed tweaks

http://validator.w3.org/check?uri=http%3A%2F%2Fwww.yoursite.com&charset=%28detect+automatically%29&doctype=Inline&group=0 html check

http://jigsaw.w3.org/css-validator/validator?uri=http%3A%2F%2Fwww.yoursite.com&profile=css21&usermedium=all&warning=1&lang=en CSS2 check http://jigsaw.w3.org/css-validator/validator?uri=http%3A%2F%2Fwww.yoursite.com&profile=css3&usermedium=all&warning=1&lang=en CSS3 check

http://demo.opera-mini.net/demo.html?www.yoursite.com handheld

http://www.browsershots.org other browsers
many problems (if present) will show
serious code errors in the w3c validator sites will produce blankscreens in browsershots

Valid code does not ensure the site will work ...
Invalid code ensures the site will not work ...
.. in all browser OS combinations

not all layouts work in handheld devices
set it up in em & %, not px or pt, makes auto adjusting pages that fit most screen and window sizes in most devices
DosVdanye

almostbob 866 Retired: passive income ROCKS

Changed domain name makes it really simple, you can throw away everything, and use a single redirect in the old domain name for a few months to the new menuing system
Your OP said nothing about new domain, sorry all my prior stuff is unneeded

just ask them to keep the old domain name for long enough for google & other se to update links, expired domains are a big business among spammers etc
rewrite code to new domain name

RewriteCond %{REQUEST_URI} ^$
RewriteCond %{HTTP_HOST} ^olddomain.com$
RewriteRule ^$ http://www.newdomain.com/[L,R=301]
almostbob 866 Retired: passive income ROCKS

This has little to do with your NEW site, and much to do with preservation of the old site bookmarks
IF a significant number of customers, google, other search engines, backlinks, paid advertising, link to those old file names, the customer will be substantially annoyed if all their existing links fail, with loss of sales, and SER reduction
they will blame you
building from scratch and erasing all current pages is often not an option,
without implementing a system of remapping.
this is what the prior person did with that single .htaccess entry when the client moved from static pages to php
given the above, a 'did you mean new file chosen from a php function of likely candidates please update your bookmarks' is often sufficient,
as is a .htaccess entry that redirects all old files to the new menu system with 301 moved

but is something you should discuss with the client before implementing any alterationwhich also makes it appear you have a tight grasp on the concepts behind seoto cover your behind from later recriminations
and something you should not ignore

almostbob 866 Retired: passive income ROCKS

This .htaccess code allows any uri posted to the html filename in the folder given, to work transparently with the new php system
everything before the extension .html gets posted as $1 to $1.php
old links old bookmarks still work

almostbob 866 Retired: passive income ROCKS

Sitemaps for SEO are not human readable
the sitemap is a machine readable file detailing the file structure, in its simplest form, a Sitemap is an XML file that lists URLs for a site along with additional metadata about change frequency, relative importance, useful sitemaps can be generated at many freeware sites, I use the one at auditmypc.com
a human readable 'sitemap' is just the site developer stating that their navigation system does not work

IF the provider has added a sitemap it is possible that the link table at the bottom is only a human readable extension of the xml machine sitemap
search the site for a 'sitemap.xml' file
if there is not one, create and install one, ensure the navigation system is logical, and remove the links added by the provider
The google webmaster tools pages give relevant instruction on sitemap provenance, suggest to your friend, that they sign up to google webmaster tools, read and follow all the instructions, >>--humor-->and get the benefit of google's wisdom about SEbots

If using flash, try to enable textreader extensions in flash (exactly how depends on which software is being used to make the flash)
text reader extensions are a disability aid, that embeds descriptive text in the flash files, like closed captioning. SE Bots can index that text, removing much of the zero ranking that flash sites receive as un-indexable

almostbob 866 Retired: passive income ROCKS

<td><input type="text" name="uname" value="<?php if(!$_post){echo $records['name'];} ?>"></td>

almostbob 866 Retired: passive income ROCKS
<form onsubmit='document.getElementById("textbox").value="";'>
<!-- or -->
<input type='submit' onclick='document.getElementById("textbox").value="";'>

or any other combination of form/input & onanything

almostbob 866 Retired: passive income ROCKS

No, reiterated, SE bots have no access to the part of the server that records the number of visits
SE do record the number of links in search results that are clicked, but they have little or no weight
All information on google's and by extension everybody else's, is explained in the google webmaster guide, suggest you sign up as a webmaster and read the guide, there will be a fewer things you need to ask, accurate answers, and you will be less likely to be caught up in questionable practices recommended by some optimisers that get sites blacklisted

almostbob 866 Retired: passive income ROCKS

No
SE bots dont have access to the server logs that actually record visits

data not part of the server log can be faked tricked abused, or is simply wrong

almostbob 866 Retired: passive income ROCKS

possible causesgoogle bug: contact google
the other site has embedded the wrong key code: contact google and/or other sitegoogle analytics doesnt work as expected all the time, nothing does,
it could be a random event that doesnt recur

google analytics does not work, does not find anybody with antimalware apps installed, not as good as server logging, but better than nothing

almostbob 866 Retired: passive income ROCKS

assuming a data structure where the user table has a unique autoincrement id number apart from name address etc

database table lastmessage
1 column 'last_message_id'

each machine in the sending messsages group in this example is sending 500 emails before repolling the server

select last_message_id as TEMP from lastmessage limit 1 
update lastmessage last_message_id=last_message_id+500 
select * from user_table order by id limit TEMP, 500

then process the 500 records before polling the server and getting the next group of 500, no matter how many are sending emails

you can add

if last_message_id >= max user_table.id die() somewhere in the handling if you wish

almostbob 866 Retired: passive income ROCKS

changing the file name is easy, php does STUFF

<?php 
///Posted in Phpadda.in/// 

// the directory  './' - is the current directory  '../' - is the parent directory 
// case sensitive 
// e.x.: /home/user or c:\files 
$dir='../images/'; 

// 1 - uppercase all files 
// 2 - lowercase all files 
// 3 - do not uppercase or lowercase 
$up=3; 

//rename files that have $w in their filename 
//case sensitive 
//set to '' if you want to rename all files 
$w='.jpg'; 

//do not rename files having $n in their filename 
$n=''; 

//add prefix to files 
$prefix=''; 

//add postfix 
$postfix=''; 

//replace 
// space with underscore
$replace=' '; 
$replace_with='_'; 

//true - traverse subdirectories 
//false - do not traverse subdirectories 
$tr=false; 

////// do NOT change anything below this ///////// 
set_time_limit(120); 
$files=array(); 
error_reporting(E_ERROR | E_PARSE); 
function prep($f,$dir) 
{ 
        global $up,$prefix,$postfix,$w,$replace_with,$replace,$n,$files; 
        if(strpos($f,$n)!==false) 
        return $f; 
        $f=str_replace($replace,$replace_with,$f); 
        if($up==1) 
        $f=strtoupper($f); 
        elseif($up==2) 
        $f=strtolower($f); 
        $f=$prefix.$f.$postfix; 
        $files[]=$dir.$f; 
        return $f; 
} 
$i=0; 
function dir_tr($dir) 
{ 
        global $i,$w,$tr,$files; 
        $dir=rtrim(trim($dir,'\\'),'/') . '/'; 
        $d=@opendir($dir); 
        if(!$d)die('The directory ' .$dir .' does not exists or PHP have no access to it<br><a target="_blank" href="http://phpadda.in">Need help?</a>'); 

        while(false!==($file=@readdir($d))) 
     { 
        if ($file!='.' && $file!='..' && $file!='renamer.php') 
        { 
            if(is_file($dir.$file)) 
            { 
                if($w=='' || (strpos($file,$w)!==false)) 
                { 
                    if(!in_array($dir.$file,$files)) 
                    { 
                        rename($dir.$file,$dir.(prep($file,$dir))); 
                        $i++; 
                    } 
                } 
            } 
            else 
            { 
                if(is_dir($dir.$file)) 
                { 
                    if($tr) 
                    dir_tr($dir.$file); 
                } 
            } 
        } 
    } 
    @closedir($d); 
} 
dir_tr($dir); 
echo '<br>Renamed ' . $i . ' files in directory ' . $dir; 
echo "<br>You can now delete renamer.php"; 
?>

lines above the
///// dont change anything below this ///
are config lines & basic instructions

almostbob 866 Retired: passive income ROCKS

the file containing the php commands must be named with the .php extension
so the file index.html becomes index.php
the included file can be named ralph, .*html, *.inc, *.txt anything you want
the extension .php alerts the php interpreter, the same way as .html .htm alerts the html parser

the php 'hello world' http://php.net/manual/en/tutorial.php

almostbob 866 Retired: passive income ROCKS

given a host that allows any server scripting, most do either php or asp, for ease this is a php scrap

one line in each file affected by the change

<?php include('pathto/filename'); ?>

where filename is the file containing the html of the changed information

incidentally ALL repeated content can be done similarly
a page is

<?php include{'pathto/header');
include{'pathto/menu');
include{'pathto/leftcolumn');
include('pathto/filename'); ?>
<div> content unique to this page</div>
<?php include{'pathto/footer'); ?>

a heck of a lot less typing

everything in the header,,,

<doctype>
<html>
<head>
<link rel stylesheet>
<script type='text/javascript'>
</head><body>

everything in the menu,,,

><ul class'menu'><li><li><li></ul>

everything in the left column
everything in the changeable file
everything in the footer

is common to all the pages of the site

almostbob 866 Retired: passive income ROCKS

the search would be something like why not get off your lazy but and look