2,295 Posted Topics

Member Avatar for lws1976

may not be physical ine 430, logical line 430 included files add lines single logical lines [icode]if(condition) { code } [/icode] may be spread over multiple physical lines makes it harder to find coz it could be before or after line 430search for a @character in the file and then …

Member Avatar for ShawnCplus
0
99
Member Avatar for Dilbert137

prior threads including access logging [url]http://www.daniweb.com/forums/thread228637.html[/url] [url]http://www.daniweb.com/forums/thread213844.html[/url]

Member Avatar for Dilbert137
0
139
Member Avatar for swethakrich

Dont use a popup window, it Will be blocked on more users than not as a potential malware threat using css layers z-index create a layer with width /height of 100% located at 0,0 z-index hugely >0 in css sit on top of all other elements, and containing the form …

Member Avatar for almostbob
0
105
Member Avatar for loll_l

which package the cheapest package says scripting X no scripting, no php [code=php]<html><body> <?php echo date('M-d-Y'); echo '<p>Your IP Address is '.$_SERVER['REMOTE_ADDR'].'</p>'; ?> </body></html>[/code]to close the unfinished <p></p> lowercase tags, xhtml gets specific, might as well use good structure now

Member Avatar for loll_l
0
137
Member Avatar for achiman

I got mine at [url]http://www.barcodephp.com/[/url] self coding was in the too hard basket

Member Avatar for achiman
0
64
Member Avatar for thebluestar

the google search is online hex ascii convertor[code=html]<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <title>beauty salon</title> <style type="text/css"> .row1{ background-image:url(images/banner.jpg); background-repeat:no-repeat; } .rowTC { border-bottom-color:#CD2C44; padding-bottom:5px; border-bottom-width:medium; /* border-bottom-width:thick; */ } .row { padding-bottom:5px; } .rowl { padding-top:5px; } </style> </head> …

Member Avatar for almostbob
0
668
Member Avatar for abrocketman

without looking at the css, zero should have no dimension $0 = 0px = 0 apples = 0em = 0% = 0 zero, as 0(dimension), throws everything into quirks mode, quirks mode causes unreasonable failures examine your css to find any 0px 0em 0% 0pt and change them to just …

Member Avatar for almostbob
0
129
Member Avatar for takeshi
Member Avatar for almostbob
0
71
Member Avatar for dwlamb_001

[code=html]<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <!-- @(#) $Id$ --> <head> <title>HTML Template</title> <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" /> <meta name="Generator" content="AlmostBob" /> <meta name="Keywords" content="keywords" /> <meta name="Description" content="." /> <meta http-equiv="pragma" content="no-cache" /> <meta http-equiv="cache-control" content="no-cache" /> <style type='text/css'> .left {width:40%; text-align:right; float:left; padding-right:1%; border:1px …

Member Avatar for almostbob
0
141
Member Avatar for dlannetts

3*50% = 150% = vanishing elements tables really arent used as a layout tool, they are for displaying tabular data pixels are not recommended as a dimension the W3C recommendation is ems or %, dimensions that scale with different screen sizes or window sizes[code=html]<!-- doctype etc --> <style type='text/css'> .bottombar …

Member Avatar for tranchibinh
0
148
Member Avatar for genieuk

I use 4 includes, and stitch scripts into 1 file enable mod_gzip or mod_deflate on html php asp script and css files and their size becomes about 25%, style.css.php[code=php]<?php header ('content-type:text/css'); ob_start("ob_gzhandler"); ?>/*<style>*/ .rss-box { margin:1em 3%; padding:4px 8px; background-color:#ededed; border:2px dashed #7485CA; } .topmenu { background-color:#f6f6f6; text-align:right; top:1px; left:auto; …

Member Avatar for almostbob
0
163
Member Avatar for Ancient Dragon

we hope there is intelligent life somewhere out in space coz theres bugger all down here on earth Monty Python

Member Avatar for WaltP
1
325
Member Avatar for RicardoE

match an md5 code, not a name {as above} the validation code and name has to [LIST][*]exist in the database [*]match [*]come from the same [icode]$_server['remote_addr'][/icode] as the original registration, stored in the database [*] be received within a certain time of the registration [/LIST]and [LIST][*]include a remote update script …

Member Avatar for RicardoE
0
101
Member Avatar for yssirhc

the maximum size includes whatever management is required by the underlying software 64K may be realistically as little as 45K

Member Avatar for ChrisPadgham
0
804
Member Avatar for MktgRob

BUNG search engine increases its share from 7.8% -> 8.23% =5% Bung CEO "we are giving Google a run for it's money" Google CEO "Who ?" 78.72 - > 78.48% = -0.3% rounded to 1 sgnificant figure = 0, big news for Bung, big deal for google BING is an …

Member Avatar for 4U2NV
0
502
Member Avatar for wieas

[code=css]#CV { position:absolute; left:253px; top:177px; width:704px; z-index:3; padding-left: 20px; padding-right: 20px; background-color: #D4CFBB; color: #252525; font-family: Arial, Helvetica, sans-serif; font-size: 14px; font-weight: bold; } body { background-color: #252525; } a:link { color: #D4CFBB; } a:visited { color: #D4CFBB; } a:hover { color: #D4CFBB; } a:active { color: #D4CFBB; } #cv …

Member Avatar for almostbob
0
115
Member Avatar for muaazhassan

NOT good tables are not used for layout, too much code too little content, the table does not display in any part until the entire table is downloaded, CSS Positioning No margins between elements, light blue text from one element sits on top of light blue text from the adjacent …

Member Avatar for almostbob
0
83
Member Avatar for jreddick82

this code does not validate Xhtml is stricter than html, as well as a doctype xhtml requires [icode]<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> [/icode] revalidate the code You dont align with no break space, it doesnt work, &nbsp; is not a fixed width in comparison to other font elements dont use tables …

Member Avatar for MidiMagic
0
153
Member Avatar for Bolade

[code=php]<?php if($_POST) { // pisspoor validation but this a demo, $old = 25 + $_POST['age']; echo "Your name is ". $_POST['name']."<br />" . "You are ". $_POST['age'] . " years old in ".$_POST['location']."<br />" . "In 25 years you will be " . $old . " years old"; } else …

Member Avatar for almostbob
0
97
Member Avatar for MeTc123

[QUOTE=MeTc123;1093162]Thanks, From the control panel I have many options, one of which is the "File Manager" I assume this is where to manage the files once uploaded how to I make the website "live" Thanks![/QUOTE] the control panel file manager is not the best way to manage files, the descriptive …

Member Avatar for MeTc123
0
172
Member Avatar for mrnutty

01011001 01101111 01110101 00100000 01101011 01101110 01101111 01110111 00100000 01111001 01101111 01110101 00100000 01100001 01110010 01100101 00100000 01100001 00100000 01100111 01100101 01100101 01101011 00101100 00100000 01110111 01101000 01100101 01101110 00100000 01111001 01101111 01110101 00100000 01100010 01101111 01110100 01101000 01100101 01110010 00100000 01110100 01101111 00100000 01110010 01100101 01110000 01101100 01111001

Member Avatar for mrnutty
1
329
Member Avatar for motieno

These ongoing validation problems can be solved using a code highlighting editor missing braces etc show error colors on the singleton the learning curve for a new editor is more than balanced by not having to make this type of call for assistance **edit** so often( there are always other …

Member Avatar for JRM
0
173
Member Avatar for tunde011
Member Avatar for desiguru
Member Avatar for cableguy31

php code for forms the form processor can be in the form it can post to itself, on error output html even AT the precise point in the form that the invalid information is [code=php]<?php //form processing ?> <!doctype><html><head><body><form action='<?php echo $_SERVER['php_self']; ?>' method='post'> <input value='<?php echo $_post['$fieldname']; ?>' name='fieldname'><?php …

Member Avatar for almostbob
0
222
Member Avatar for genieuk

[code=php]while($row = mysql_fetch_array($query)) { /*php */ }[/code]Not sure but is there usually a $row++ at the ned of this section to get the next row

Member Avatar for Atli
0
248
Member Avatar for Erick

[QUOTE=vaultdweller123;1099582]all you need is this query... [/QUOTE]should be[CODE]<?php $sql = mysql_query( "UPDATE price SET prod_price = (prod_price * 1.10)" ); ?>[/CODE] + 10% = 1.1 otherwise yeah

Member Avatar for almostbob
0
212
Member Avatar for sangeeta_ratha

[url]http://www.ehow.com/how_2050575_add-rss-feed-blogger.html[/url] your blgger outputs an rss feed, use feed2html, feed2js feed2php, or any other plugin feed reader script to read the external feed and put it on your web page google has [url=http://desktop.google.com/plugins/search/?query=rss&hl=en] all these [/url] plugins that you can put your rss source in the blogger helpscreens say this …

Member Avatar for almostbob
0
228
Member Avatar for phid2002
Member Avatar for sc0tsman

[code=html]<iframe src="test.html" id="myframe" width="582" height="397" align="top" scrolling="no" frameborder="1"></iframe><br> <input type="button" value="VIP1" onclick="myframe.location.href='test1.html';"> <input type="button" value="VIP2" onclick="myframe.location.href='test2.html';"> <input type="button" value="VIP3" onclick="myframe.location.href='test3.html';">[/code]Is the width height supposed to change the iframe dimesnion?

Member Avatar for sc0tsman
0
92
Member Avatar for kumiyare

try styling the menu, set the z-index of the UL LI whatever to a very high number, it should then sit on top of everything else or set the slideshow to a negative number and it should slide under default z-index 1, higher numbers sit on top lower numbers sit …

Member Avatar for kumiyare
0
308
Member Avatar for rouse

if statement is redundant str_pad does nothing if the string is equal to or longer than the pad_length [code=php]$day = str_pad($day, 2, '0', STR_PAD_LEFT);[/code]

Member Avatar for almostbob
0
113
Member Avatar for azetect

This type of site background is a vertical -narrow*LONG- image repeat-x create the gradient fill you want or download it from a webmaster tools website take a narrow (even 1pixel works) slice vertically [code=css]body {background:url('thispic.href') repeat-x; }[/code] If you take a horizontal slice wider than screen size and repeat-y you …

Member Avatar for azetect
0
102
Member Avatar for xiodus

google gadgets have a bunch of calendar inserts hotscripts etc may have a lot of calendars google search for 'datepicker script' if you want a calendar to fill in forms from if you just want todays date [code=php]<?php echo date('l jS F'); ?>[/code]

Member Avatar for almostbob
0
52
Member Avatar for veledrom

marquee behaves that way, the blank space is equal to the marquee size, it is a microsoft extension so its limited perhaps a prewritten javascript slideshow from hotscripts or any of the other script repositories may provide a better hint on how to accomplish this without the marquee delay I …

Member Avatar for almostbob
0
85
Member Avatar for muralibobby2015

popup windows are a security risk are blocked in browsers using them relegates the site to minimal traffic, most users will not clickover their security software warning everything can be coded on the page without any external files or windows by changing the visibility of a container element example only: …

Member Avatar for almostbob
-1
111
Member Avatar for veledrom

you cant specify a foldername in the download filename naming conventions convert the backslash to underscore, and the file will be placed in the current folder selected on the users disk file not found error, the source is not specified fully to [B]get [/B]the file from the specified folder, Try[code=php]<?php …

Member Avatar for veledrom
0
897
Member Avatar for DavidB

In php $_server['remote_addr'] is the ip address of the user [code]<?php if(!$_server['remote_addr'] ='myip'){ echo "my adwords code"; } else { echo '<img src="filler.jpg" alt="">'; } ?>[/code] in other languages there is similar code

Member Avatar for DavidB
0
94
Member Avatar for jreddick82

[code=html]Win = window.open( page[ page_index ], 'Win', 'resize=yes,toolbar=yes, status=yes,scrollbars=yes, screenX=0,screenY=0, width=1000, height=666' );[/code] says new window, fix the javascript [icode]window.location()[/icode] to keep the history or [icode]window.location.replace()[/icode] to void the history is the current window

Member Avatar for almostbob
0
122
Member Avatar for veledrom

secured files are stored outside the html_root where for example a file for download is accessed by [icode]<a href='download.php?filename=thisfile.doc&type=doc'>download thisfile</a>[/icode][code=php]<?php /* download.php */ if(!session_id) { $hiddenfile="../absolutepath/polkamusic.mp3"; $type='file/mp3'} // I'm too lazy to look up (audio/mpeg)? my site already runs else {$hiddenfile="../absolutepath/$user/$filename"; /* $type=matching mime type and I'm too lazy to …

Member Avatar for almostbob
0
80
Member Avatar for crimgirl

MSN search died because it could not compete with googles market share, replaced by Live search died because it could not compete with googles market share, replaced by Bing search will die because it could not compete with googles market share, replaced by whatever is next Yahoo search died because …

Member Avatar for TravisTrinity
5
445
Member Avatar for dreamzgaurav

the only relevant answer, when one provider has this much of the market, they dictate terms [url]http://www.google.com/support/webmasters/bin/answer.py?answer=35769[/url][quote=Google]When your site is ready:[LIST][*]Submit it to Google at [url]http://www.google.com/addurl.html[/url].[*]Submit a Sitemap using Google Webmaster Tools Google uses your Sitemap to learn about the structure of your site and to increase our coverage of …

Member Avatar for redesignunit
0
161
Member Avatar for samyehftw

[code=php]<form method="GET"> Total: <input type="text" name="a" <?php if (!empty($_GET['a']) echo "value='$_get['a']'"; ?>><br> Add: <input type="text" name="b" <?php if (!empty($_GET['b']) echo "value='$_get['b']'"; ?>><br> Minus: <input type="text" name="c" <?php if (!empty($_GET['c']) echo "value='$_get['c']'"; ?>><br> <input type="submit" value="Calculate"> </form> <?php if (!empty($_GET['a']) echo $_get['a']; && !empty($_GET['b']) && !empty($_GET['c'])) { $result=(int) $_GET['a']+ (int) $_GET['b'] …

Member Avatar for almostbob
0
1K
Member Avatar for jonow

urlencode(); the edited line is 108 [code=php]$page .= "<div class='rss-title'><a target='_blank' href=\"$link\">$title</a></div>"; $page .= "<div class='rss-title'><a target='_blank' href=\"".urlencode($link)."\">$title</a></div>";[/code]

Member Avatar for almostbob
0
254
Member Avatar for maxicube

[code=php]<?php $file = fopen('clients.txt',r); $fp = fopen('client.txt','a'); $ip = $_SERVER['REMOTE_ADDR']; for ($i=0; $i<count($file); $i++) { $list=fgetcsv( $file,1000,'|'); if ($list[0]!=$ip) { fputcsv($fp,$list,'|'); } } fclose($fp); fclose($file); ?>[/code]have not verified syntax this is a thought exercise

Member Avatar for almostbob
0
150
Member Avatar for zeroge

[code=html]<input type='submit' onclick="return confirm('Do you want to make these changes ?');">[/code]or[code=html]<form method='post|get' action='formhandlerurl' onsubmit="return confirm('Do you want to make these changes ?');">[/code] for a prompt

Member Avatar for zeroge
0
2K
Member Avatar for Aamit

[code=html]<!--doctype html head etc--> <style type='text/css'> @media screen { .dontshow { display:none; } } @media print { .dontprint { display:none; } } </style> <head><body> <p>this part gets printed and displayed <span class='dontprint'>this giets displayed</span><span class='dontshow'> this part gets printed</span></p> <div class='dontprint'>bla bla bla bla bla bla</div> <h1 class='dontshow'>header for only …

Member Avatar for almostbob
0
78
Member Avatar for nats01282

one record per line[CODE=php]<?php $name = $_POST['name']; $email = $_POST['email']; $fp = fopen("data.txt","a"); if(!$fp) { echo 'Error: Cannot open file.'; exit; } fwrite($fp, $name."|".$email."|" \n); fclose($fp);[/CODE] perhaps something to locate usernames[code=php]<?php function nameexists($name){ if (($handle = fopen("data.txt", "r")) !== FALSE) { while (($data = fgetcsv($handle, 0, "|")) !== FALSE) { …

Member Avatar for hemgoyal_1990
0
4K
Member Avatar for ytregnn

[code=html]<html><head> <style type='text/css'> .thisclass { text-decoration:none; } .thisclass:hover { background-color: /* url: whatever.image; */ repeat:repeat-y;#66cdaa; text-decoration:none; } </style> </head><body> bla bla bla <element class='thisclass'>bla bla bla</element> bla bla bla </body> <script type="text/javascript"> //<![CDATA[ <!-- image1 = new Image(); image1.src = "whatever.image;"; //--> //]]> </script> </html>[/code]image background for chosen element, and …

Member Avatar for ytregnn
0
98
Member Avatar for oneat

css3 has calculated values eg [icode]#mainContent { width: calc(100% - 20px) }[/icode] newest browsers support [U]some[/U] elements of css3 not sure which browsers support this part of css3 not sure if unsupported browsers degrade gracefully, or fall over and die, so it may not be a useable (yet) feature css2.1, …

Member Avatar for MidiMagic
0
95

The End.