almostbob 866 Retired: passive income ROCKS

.torrent traffic is not identifiable to the free wifi provider. 'merkin prisoners are downloading porn in jails

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

doorway pages important, to NOT have
avoid SEblacklisting, by NOT having anything that breaks the terms of inclusion

real content, honest links, clean code, white-hat seo = good ser
poor content, link farms, error-ridden code, any black-hat seo = reduced ser, penalties "removed from index"

it is hugely harder to get back into google, than it is to get into google
(no-other SE matters, 80%+, means google make the rules)

almostbob 866 Retired: passive income ROCKS

Rent an avis car, rob a bank, bank sues avis
steal a car, rob a bank, bank sues theft victim
buy a hammer, break a window, sues hardware store??

beyond sad, pathetic

almostbob 866 Retired: passive income ROCKS

in the form <select name='payment' in the handler if($_POST['Payment'] Case sensitive?? maybe; payment ≠ Payment ;
$_POST == "";//none of the checks return true, default 'else' result Paypal

change either the html form or the php handler, so they both use the same name

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

dont get many UK tv in Aus or Can, but, the byline in old
.Net PC_Direct PC_Pro Computer_Life
magazines
The Times on Sunday (2 weeks late)
3 books on my shelves
awards out the wazoo

guru << happygeek

happygeek commented: Thanks :) +0
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

offtopic to the op, but

$check = mysql_fetch_row($resultX);
if(!$check == "y"){header("Location: main.php");
exit;}
almostbob 866 Retired: passive income ROCKS

How can we create a sitemap for a website ? Do we need a developer for the same task or we can create it ourself ?

http://www.auditmypc.com/free-sitemap-generator.asp
Human readable sitemap, is not a good idea, it is an indication to all that YOU consider your navigation unreliable
xml Machine readable sitemap: can't do without

almostbob 866 Retired: passive income ROCKS

If you are trying to run a php script locally on your pc, in Internet ecplorer, you can't.
PHP Hypertext Preprocessor (php) commands are processed on the server and output as html to the browser

You can install a local php server, WAMP LAMP DevPHP et al, on your pc and use that to develop PHP, or upload the files to a web server for testing

It is NOT true that you need to change the setting at internet option or else

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

<= pacman is eating 2 cookies?

almostbob 866 Retired: passive income ROCKS

changing locations, not opening a window

"","top=0,left=400,width=1000,height=1000,menubar=yes,toolbar=yes,scrollbars=yes,resizable=yes,status=yes";

is bull

karthik_ppts commented: yes +6
almostbob 866 Retired: passive income ROCKS

examine the file:// protocol perhaps, or cascade .. to the root
from /opt/lampp/htdocs/cms/
to root of the drive is
../../../..
so the new url is ../../../../home/arun/PreEncryptor/outputdir/image.png
not so hard in php where anything that repeats or is reused, can be
eg

<?php $path ="../../../../home/arun/PreEncryptor/outputdir/";
//code to get filenames from somewhere
echo $path.$filename;
echo $path.$filename2;
echo $path.$filename3; 
// and some code to do something interesting with them
?>
almostbob 866 Retired: passive income ROCKS

/ in this case refers to the root folder of your lampp installation,
usually /whatever/htdocs, not the root of your current physical drive,
php cannot see any part of the drive outside the http root by drive structure, else / on my .com would be the server root, not my site root
If lampp is installed default the 'dos' equiv path the server expects when you key
/opt/lamp/htdocs/Images/test_01.png
is
/opt/lamp/htdocs/opt/lamp/htdocs/Images/test_01.png

from /opt/lampp/htdocs/cms/
to /opt/lampp/htdocs/Images/test1_01.png
is ../images/test_01.png

hope this makes sense

almostbob 866 Retired: passive income ROCKS

I think I am glad animals are solid muscle, thats the part I like to eat
people
eating
tasty
animals

Roo=YUM and available at most supermarkets, cute cant compete with barbq
Emu=YUM
Australia, the coat of arms is delicious

Hit two roos in 20 minutes, coming back to the highway from ayers rock
not a dent in the roo bar, not too healthy for the roos
muscles? give me steel any day

humans are predators, and have a longer memory than any other predator, if any became a threat, we would systematically go and kill them all.
hell we destroy species by accident

for vegetarians,,, My food sh\-ts on your food, really

almostbob 866 Retired: passive income ROCKS

Ditto purplepixie,
& does it have to be 'onmouseover' css hover may be easier to implement

almostbob 866 Retired: passive income ROCKS

the script is two lines at the start of each file
and 1 line at the end
in this case rename files *.js to *.js.php(so php will process the file, and alter calls in the header to .js.php)
and add the first two lines before and the third line after

<?php header ('content-type:text/javascript');
ob_start("ob_gzhandler"); ?>
<?php ob_flush();?>

for css rename *.css to *.css.php(so php will process the file, and alter calls in the header to .css.php)
and add the first two lines before and the third line after

<?php header ('content-type:text/css');
ob_start("ob_gzhandler"); ?>
<?php ob_flush();?>

Its not a huge edit, since your files are php, they all use includes eg include('menu.php'); for all elements that are identical, the header footer menu etc, so you only need to edit one file to change the calls to *.js *.css to *.js.php *.css.php

almostbob 866 Retired: passive income ROCKS

you can specify filetypes for compression in apache's .htaccess file

<IfModule mod_gzip.c>     
mod_gzip_on       Yes     
mod_gzip_dechunk  Yes     
mod_gzip_item_include file      \.(html?|txt|css|js|php|pl)$   
mod_gzip_item_include handler   ^cgi-script$     
mod_gzip_item_include mime      ^text/.*     
mod_gzip_item_include mime      ^application/x-javascript.*     
mod_gzip_item_exclude mime      ^image/.*     
mod_gzip_item_exclude rspheader ^Content-Encoding:.*gzip.* 
</IfModule>

which acts on all files of the designated extension or mime
the text above is from my .htaccess file
or in php on a per file basis
example style.css renamed to style.css.php

<?php header ('content-type:text/css');
ob_start("ob_gzhandler"); ?>
.rss-box {margin:1em 3%;padding:4px 8px;background-color:#ededed;border:2px dashed #7485CA;}
.rss-title, rss-title a {font-family:"American Typewriter", "Trebuchet MS", Trebuchet, Lucida, sans-serif;font-size:100%;font-weight:bold;margin:5px 0;padding:0;letter-spacing:1px;}
//huge amount of css
<?php ob_flush();?>

it may be more productive to combine the .js files and .css files into 1 if they are small,
other ways to speed up your site
http has limits on simultaneous file transfers from a single domain
create subdomains on your site, I have www pics img, as subdomains so can parallel 2 files from each subdomain (=6) instead of only 2 from www, all subdomsins point to the same root of mydomain.com keep paths constant

almostbob 866 Retired: passive income ROCKS

let me google that for you love that animation,
assuming you want to do more with it than just look, an ide will let you see how it works

almostbob 866 Retired: passive income ROCKS

Its not urgent to me
so I'll make coffee
. . . . .
I'm back, still not urgent

the question is poorly phrased,
the op tells nobody any information,

  • those of malicious intent cant hurt
  • those of good intent cant help

you might consider explaining

  • what you have in place,
  • what you know,
  • whether you are using a database & what type
  • what data structure
  • what date format used

before some person can pull a magic solution out of their [**expletive deleted**]

more politely, Ive had ma cawfee,
would you explain what is already created so that any body who knows an answer may answer
For a pre-written script it is often as simple as checking some boxes, for a self written script it is often as simple as adding some checkboxes

mschroeder commented: Ha! So true and I laughed. +9
almostbob 866 Retired: passive income ROCKS

maybe they could gm the local bananas so they travel, have no seeds, and plant the same thing all over,,
or didnt they already do that, & mess up

banana brandy travels well
so do brandied oranges
the diner/roadhouse, has a substantial bar
send the monkeys over, they'd fit right in

but OffThreadAlert I am really enjoying this holiday,
one sober day,, long wait perhaps
I will get the keys to the local museum from behind the bar, go down and open it up for the day, for me and the other tourists driving the Stuart Highway to Darwin

I went into Tennant Creek, 25km, picked up my stuff shirts oranges, then stopped at the hardware store to pick up a bunch of stuff ordered for the roadhouse
The storekeeper just gave it to me
said, "you wouldn be driving Nigel's truck if you werent goin back"
The keys are left in the truck
love small towns

almostbob 866 Retired: passive income ROCKS

The only thing that knocked off Australian bananas was a cyclone
sitting in a diner, 25km north of Tennant Creek, NT, Aus, now, eating local bananas, oranges and drinking bush plum wine

almostbob 866 Retired: passive income ROCKS

thanks for your response, what password encryption method do you recommend or is not really important?

thanks again

passwords should be <--ideal world alert--< changed over https, via https traffic in both directions is entirely encrypted

via http there is not security
serverside encryption sends the password in clear to the server where it is encoded
clientside encryption sends the algorithm in clear to the client
either choice allows malicious intent

almostbob 866 Retired: passive income ROCKS

any password sent to them is not really secure
one of many possible practices is for the lost password user to identify themselves using a pre-Arranged cipher, all the name DOb, mothers maiden name, challenge-response, set up when opening accounts
a one-shot link is sent to the registered email address
using that link the user logs in and changes their password
& its still not really secure

almostbob 866 Retired: passive income ROCKS

true,
'49 I apologise snide comments are unfair, and mine were snide

I would like you to consider as well, I am your potential employer, the ceo of a below fortune 500 company, we do our 1 thing, and do it very well
assuming the resume submitted was syntactically and grammatically correct enough to not be binned
If you begin any part of your in-person interview with 'like', you are out the door.
my generation are remarkably, as demonstrated by me, intolerant.

asif49 commented: This person is rude, arrogant and unhelpful. -1
almostbob 866 Retired: passive income ROCKS

I did use the intervening time learning how to read,
and think,
a simple search, either of Google or the search box on this site,
would return the consensus, current best practice, and negate the requirment for such a question.
Perhaps the rudeness of the reply is balanced by the ignorance of the question.

dilligaf

almostbob 866 Retired: passive income ROCKS

Dont worry,
use tables for layout, you would not be a potential employee anywhere,
problem solved

almostbob 866 Retired: passive income ROCKS

You cant determine to what I set my header and footer, nor should you be able to access my hardware settings, think for a moment

almostbob 866 Retired: passive income ROCKS

Ignore Morphim, incompetent, anythiing outside of <?php ?> will be another cause of the error given, not a solution
try

<?php obj_start();
// bla bla bla code
obj_flush(); ?>

use a code highlighting editor to highlight missing closing braces etc, not suggesting there are any, havent looked, dont care,
get rid of bs whitespace

if (!	mysql_num_rows($user))		{			echo 'That user doe not exist';		}

looks and functions better as

if(!mysql_num_rows($user)){echo 'That user doe not exist';}

START YOUR OWN THREAD for your own questions
morons(Morph) and obnoxious ba***rds(yours truly) reply to solved threads

almostbob 866 Retired: passive income ROCKS

hence the phrase play-with-able
there are some scripts that make certain areas editable to users with the required passwords, and save a change history, will repost a USEFUL link if I can remember the google search from the last time this was asked, many thousands of threads ago, could be somewhere in the daniweb searchbox

almostbob 866 Retired: passive income ROCKS

this scrap

javascript:document.body.contentEditable='true'; document.designMode='on'; void 0

as the href of a link or saved as a favorite, makes any page play-with-able

almostbob 866 Retired: passive income ROCKS

http://php.net/manual/en/control-structures.switch.php

In a switch statement, the condition is evaluated only once and the result is compared to each case statement. In an elseif statement, the condition is evaluated again. If your condition is more complicated than a simple compare and/or is in a tight loop, a switch may be faster.

almostbob 866 Retired: passive income ROCKS

MS ASP ASP.net are usually larger companies, tied in to support agreements with MS
PHP can be large or small or startup companies
licensing is simpler in php for your own code
php has a far larger market share
but if you get to an ASP site, the contract is longer term
freelance=php
corporate=asp
single dependant languages like GO, not worth it till after you get employed by Google
that being said, my development is Python backend and php frontend, the python backend system is much tighter, faster, less processor intensive to accomplish the same task.
the php frontend means I can recode it without thought, php is idiot resistant(unfortunately not idiot proof, I can still screw it up) and does not require any strong typing, I can add any feature created by any other php user

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

correct the doctype
html version dependent code fails

would likely be better in css than javascript, a large, and growing larger, proportion of users disable javascript as security risk, javascript menu doesnt work
css menus are much easier to code than image maps,
what happens when the user has the auto resize function (ie>7 ff=all saf=all) & the image is not the size you anticipate & coded for

Yeah I know paranoid, but if you plan for the worst, when **expletive** happens its only a pleasant suprise

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

examine mod_rewrite

almostbob 866 Retired: passive income ROCKS

professionally,1972
punched cards on shared VMS servers creting bank software
MonEcs Fortran

age: when everybody else seems so young

almostbob 866 Retired: passive income ROCKS

photoshop, the 80s are long dead, and so should be the ideas from them
pixels, my screen is 2600px wide, and is not large
fied size layouts do not work on anything other than the device used to lay them out, even different browsers at the same resolution render fixed sizes differently

slicing images: is long out of date

current best practice is em and %

the course is far out of date, suggest trying a different course,

almostbob 866 Retired: passive income ROCKS

get rid of the blank lines, they are output

almostbob 866 Retired: passive income ROCKS

Tables are not used as layout, since the 90s. they were the tool then only because there was nothing else
tables as a layout tool are 80% layout 20% content, the page becomes huge, slow, difficult to edit, every page must contain the full table
css layouts are smaller, simpler to maintain, the layout is downloaded once, in the style sheet, the page is 80% smaller = 500% faster to load

even with data from a db, dynamic pages, css layout is easier to construct, maintain, and design, tables to present the information, tables have that ideal use, for tabular data,

there are still sites laid out in tables,
alligators are the remnants of dinosaurs, the same reason, too stupid to die out.

almostbob 866 Retired: passive income ROCKS

the source of this error is the missing closing brace in line 3 as matthew wrote, errors are usually just before the reported line number
the missing quotes (per the OP) $_SERVER[[b]'[/b]variable[b]'[/b]] will cause another set of problems later
format is not optional

good code editors provide code highlighting that will negate this occurring again

the PHP manual is available online, as a downloadable text,chm ,any number of file types

perhaps, get the php manual and as a last resort, and, when nothing else works RTFM

almostbob 866 Retired: passive income ROCKS

With Help of the Robots.txt you can guide the Search Engine which page you want to crawl and not crawl.

Geez Dave,
its more than a year old let the thread DIE

almostbob 866 Retired: passive income ROCKS

no you dont want to remove it,
you want to edit it to ensure it matches your site structure and requirements

User-agent: *
Disallow: /cgi-bin/
Disallow: /other_folder/
Disallow: /another_folder/
Disallow: /pics/

Sitemap: http://www.mysite.com/sitemap.xml
almostbob 866 Retired: passive income ROCKS

redo the css remove all references to 0px, 0 is just zero, the only dimension that is dimensionless 0px=0em=0pt=0cm=0in === 0 browsers often misinterpret dimension errors
not suggesting this is the exact cause, but removing any possible impediment, havent even read all the way through the code yet, only noticed the first 0px