2,295 Posted Topics
Re: if the file is stored in a blob in the database, print the database field if the filename only is stored in the database, without the directory structure [code=php]readfile('./pathtofolder/'.$file); //or readfile("./pathtofolder/$file");[/code]always forget which one is the right form | |
Re: in html I dunno in php I use a link to a force download script[icode]<a href=download.php?file=filename&type=filetype>[/icode] it does not check for filetypes etc, because i code the link [code=php]<?php if(!$file) return false; header("content-disposition: attachment; filename=$file"); header("content-type: $type;"); readfile("$file"); ?>[/code] there might be need to sanitize the code to prevent someone … | |
Re: [code=css]#navigation:hover { background:url(NavBGHover.png); height:36px; } [/code]Every unstyled link has a hover attribute, the default is underline user browsers have the option to underline links -always -never -onmouseover the part where it becomes very annoying is where the designer removes the default actions when styling the page. changing the background image … | |
Re: type it in notepad or for basic instruction in what the <tags> do [url]http://www.w3schools.com/htmL/[/url] | |
Re: [quote=mysql online manual].REPLACE works exactly like INSERT,..except that if an old row in the table has the same value as a new row for a PRIMARY KEY or a UNIQUE index[/quote] [url]http://dev.mysql.com/doc/refman/5.1/en/replace.html[/url] the primary key ID is not referenced by the replace statement, the replace wont work as you intend, … | |
Re: place the font on your server[code=css]@font-face {font-family: THISFONT; src: url(resolved-path-to-THISFONT.ttf);}[/code] then you can reference the font | |
Re: dont use category names in the posted urls [icode]http://bla.com/?1=something&2=somethingelse[/icode] [code=php]$category = $_GET['cat']; $subcategory = $_GET['subcat']; if iset($1) { $category=$1; } if($category=="") { header("Location: index.php"); } elseif ( iset($2)) { $subcategory=$2; ) if($subcategory=="") $result=mysql_query("SELECT * FROM ".$category." ORDER BY RAND() LIMIT 1"); else $result=mysql_query("SELECT * FROM ".$category." WHERE Category LIKE '".$subcategory."' … | |
Re: [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>bal bla</title> <style type='text/css'> .left { width: 39%; float:left; test-align:left; display:inline; } .right { width: 39%; float:right; text-align:left; display:inline; } .container { width: 80%; margin:auto;} </style> <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" /> <meta http-equiv="pragma" content="no-cache" … | |
Re: asp.net works on MS hosts, limiting the [LIST][*]%age of hosts it can run on [*]and therefore- portability of developed software, [*]potential marketplace should your product be that good [/LIST]php is faster than asp for certain applications, asp is faster than php for certain applications here are 2 million google results … | |
Re: You cant anything that is displayed is downloaded to the client computer before it is displayed, the user has absolute control | |
Re: [code=php]<?php session_start(); require("connect_db.php"); ?> <html> <head> <style type="text/css"> body { margin:0; text-align: center; } /*top & bottom are redundant*/ .body2{ width: 666px; background-color: #e43546; } form { margin:0; } </style> </head> <body> <div class="body2"> <?php echo 'Text, text<br>'; echo '<form method="post"> Name: <input type="text" name="name"> Pass: <input type="password" name="password"> <input … | |
Re: behaviours pallet, a dreamweaver question then ? try the dreamweaver formums at [url]http://forums.adobe.com/community/dreamweaver[/url] | |
Re: Google analytics loads a javascript on the users pc without acknowlegement and sends message home. occupying bandwidth, processor time without permission Classic behaviour of a spyware program. Google analytics is blocked by both the spybot and MS MVP hosts files. Many will not register if google analytics is your analysis … | |
Re: whois 207.46.119.86 _________________ 07/28/09 00:40:11 IP block 207.46.119.86 Trying 207.46.119.86 at ARIN Trying 207.46.119 at ARIN OrgName: Microsoft Corp OrgID: MSFT Address: One Microsoft Way City: Redmond StateProv: WA PostalCode: 98052 Country: US NetRange: 207.46.0.0 - 207.46.255.255 CIDR: 207.46.0.0/16 NetName: MICROSOFT-GLOBAL-NET NetHandle: NET-207-46-0-0-1 Parent: NET-207-0-0-0-0 NetType: Direct Assignment NameServer: NS1.MSFT.NET … | |
What Makes 100%? What does it mean to give MORE than 100%? Ever wonder about those people who say they are giving more than 100%? We have all been to those meetings where someone wants you to give over 100%. How about achieving 103%? What makes up 100% in life? … | |
Re: do not full screen the layout software drag the edges of the window to a 1024*762 size design in the window or better :: Use current W3C recommended best practice: design the screen layout in ems and % and it will not matter what screen resolution or browser window size … | |
Re: [QUOTE=grace.t;933947]I'm using Google analytics to track the traffic sources of 404 pages. Most of them are from images.google.com. How can I correct the broken link from google?[/QUOTE]resubmit your sitemap to google, to update all old links tell google not to index images use apache mod_rewrite to redirect all direct calls … | |
Re: [code=php]header("Content-type: $contenttype"); header("Content-disposition: inline"); [/code] | |
Re: [url]http://www.google.com/search?hl=en&q=free+guestbook+script&meta=[/url] | |
Re: there is a tutorial [url]http://www.bleepingcomputer.com/forums/topic56091.html[/url] this one makes the list 1 2 3 4 5 6 7 8 9 it may not take much rewriting to have ajax count the total number of return values /3 then assign the classes appropriately to produce 1 4 7 2 5 8 3 … | |
Re: [QUOTE=macneato;905165]Honestly, its only four pages, don't think you need to go php.[/QUOTE] please ignore this advice, plan on expansion, plan on 100,000 pages, and the database to support them, and the design features to import a single css and javascript file, and to php/ssi/cgi/asp(your choice) include all the common code. … | |
Re: [code=php]echo "<td> <input type=\"text\" name=\"name$i\" size=\"10\" readonly=\"readonly\" value=\""; echo $row['name']; echo "\" /> </td>";[/code] if you see it this way it should show why, else the value field is not delimited, so breaks,[code=php]echo '<td><input type=\"text\" name=\"name$i\" size=\"10\" readonly=\"readonly\" value=\"'.$row['name'].'\" /> </td>';[/code] | |
Re: Your layout problems may be cause by the tables used for positioning, tables are not meant for layout remove the tables and position the elements with css the css that does the positioning can set the z-index of the element, to an arbitrarily high number (1000), and cause it to … | |
Re: if only the data is important, the structure of the file constant, mysql/php export the data as csv which excel can import and read as data without fussing with .xls format if the structure of the file is important, for calculated fields, a 'blank' .xls for download and then import … | |
Re: if you use [code=html]<form action="process.php" target="#iframe123456" method='get'> <!-- inputs of various types --> </form> <iframe name="iframe123456" width='100%' height='4000px' frameborder='0'></iframe>[/code]get is supposed to retuirn the values, you should get the iframe updated each time you submit | |
Re: [code=html]<a href='..'>Go up one level</a> <a href='.'>reload index on this level</a> <a href='../adjacentfolder/'>Go across to another folder at the same level (up one then down)</a> <a href='./folder'>Go down one level</a> <a href='../..'>Go up two levels</a> <a href='/'>Go up to html_root</a> <a href='/folder'>Go to folder off the html_root</a> [/code] | |
Re: [QUOTE=ksanders;853584]Hi, I noticed the :focus attribute is not supported in Firefox. Anyone have a fix for this? Thanks.[/QUOTE] try :active | |
![]() | Re: dont just remove the <P></p> replace it with a <div></div>[code=xhtml]<div>Our aims are to: <ul> <li>Promote and encourage a practical interest in aviation and the Royal Air Force among young people</li> <li>Provide training which will be useful in the Services and civilian life</li> <li>Encourage the spirit of adventure and develop qualities … |
Re: No Popups and popunders are universally despised, as are those who employ them Browsers are configured by users who universally despise popups popunders and those who employ them, to avoid popups and popunders because they are so despised as are those who employ them. You don't want it [B][U]in[/U][/B] your … | |
Re: current recommended practice is to design a flexible layout[code=css]width: 35%; font-size:1em;[/code]the w3c reccommend screen layouts be in em and %, then regardless of screen size the page is visually the same. and the same layout can be used - blackberry to projection screen. [code=html]<html> <head> <style type='text/css'> <!-- .wrapper {width:98%; … | |
Re: a large proportion of visitors will have disabled popup as a security fault, its not a good plan a visible/invisible over layer within the page would be better | |
Re: > fgetcsv() parses the line it reads for fields in CSV format and returns an array containing the fields read. > . . . . . > length > Must be greater than the longest line (in characters) to be found in the CSV file (allowing for trailing line-end characters). … | |
Re: Try [url]http://www.plus2net.com/asp-tutorial/form-checkbox.php[/url] the proceess for checkbox & multi select may be similar | |
Re: savefile.php[code=php]<?php if(!$file) return false; elseif(!$content) return false; else { header("Content-disposition: attachment; filename=$file"); header('Content-type: $content'); readfile("$file"); } ?>[/code][code=html]<a href='./savefile.php?file=filename&content=contenttype'>download filename</a>[/code] keep a folder full of downloads this script as index.php in that folder lets me dump anything in it and it autoupdates the displayed list line 20 lets you set the … | |
Re: [code=php]<!--doctype must be declared xhtml --> <html> <head> <title>Calorie Calculation</title> </head> <body> <?php if (!$_POST['foodname']) { echo 'No food selected <br /> more error checking is required'; } else { if (!$_POST['calories'] == 0 ){ $calorie = ($_POST['fat'] * 9) / ($_POST['calories'] * 100); } //division by zero errors? echo … | |
Re: just get an rss reader script, rss2php rss2html or any of the [url=http://www.google.ca/search?hl=en&q=rss+reader+script&meta=] thousand others, [/url] and plug the news feed directly into your page then you wont have to try to [i]borrow[/i] the rss off the free site | |
Re: a popup, will get blocked on more browsers every day, and get flagged as malicious, whether it is or not this code scrap creates a link that opens or closes a layer above the current page at the link location, put your contact details in it, and [icode]<?php include('poplayer.inc.php'); ?>[/icode] … | |
Re: An aside, something unrelated to the question radio buttons, label tag makes the radio button title/name clickable as well as the checkbox, matches common user interfaces [code=html]<div> <p class=" p2">Would you like to be informed all the time there is something new? By this we add you in our database: … | |
Re: It depends on the keyword A really obscure keyword/trade/business/target-audience or one is a small geographic region, is easy to keep in the high ranks, there arent many other players on those keywords (fortunately this is me, no competition) A struggle for market share in a larger region, or market, or … | |
Re: where javascript is used, it is the initial script trappping the 3 events separately, more currently use css to change appearance on mouseover(css hover), javascsript is often disabled as a security issue havent seen any generic onEvent handler except in tutorial pages where it is a teaching aid followed up … | |
Re: Portable-apps versions of Firefox, Opera, Avant and several other browsers, made to be installed on thumb drives so do not write to the registry or try to become default browsers, installed to thumb drive or the system drive are a good debug tool [url=http://www.browsershots.org]browsershots[/url] to check what the css-html look … | |
Re: using css styling, Try for more consistent, you are using px(bad) em(good) x-large(ok), in the same css document. the w3c recommendation for display is em and %. Makes the display device independent and allows the user to set the basefont per their vision. [INDENT]particularly 15px is very small on a … | |
Re: I have a phpIDE, DevPHP, off sourceforge, it provides a syntax highlighting editor and runtime browser in one package a one file install like a subset of wamp/lamp ![]() | |
Re: Asking, works quite often. Have sent email, "We found your site useful to our tenants and customers and have placed a link to your site on ours. Is there a logo you prefer us to use in the link ?" gets a positive response | |
Re: [url=https://www.google.com/webmasters/tools/]Google webmaster tools[/url] read and follow the instructions from the only place that matters | |
Re: [QUOTE=seo2005;910478]Does the benefit of alt attribute pass to the linked page.[/QUOTE] Yes, there have been a number of SEO articles where the only instance of a phrase has been in the alt text of a linked image. The tyext appeared in google almost immediately, and hit on searches as highly … | |
Re: In the "not index" pages[code=html]<script type='text/javascript'> if (self.location == top.location) { self.location='/index.html?frame=' + self.location; </script>[/code] in the index page a reference to set the frame src to the 'frame' parameter if set, or to the home page if not set [code=javascript]//my scripting isnt this good if (frame != "") {document.getElementbyID('frame').src= … | |
Re: hate to rain on your parade the form is laid out in tables not css css is only used to set the label colours change the table code [code=html] <table> <tr> <td> <fieldset class="req-set" style="border:0"> <legend class="req-legend"><span>Required</span></legend> <td> <label id="name-error" for="name" class="req-label">Name</label><br /> <input type="text" class="text-med" name="name" value="" size="32" maxlength="60" … | |
Re: [code]<form id="form2" name="Operation" method="post" action="EvVolProcess.php?id_Service=<?php echo '$id_Event'; ?>">[/code]should be[code]<form id="form2" name="Operation" method="post" action="EvVolProcess.php?id_Service=<?php echo $id_Event; ?>">[/code] edit:: Sorry KKeith, you're already there | |
Re: [code=batch file]@echo off if %2=="" goto oops start /w c:\folders\do.exe %1 %2 goto end :oops echo Proper format is %0 parameter1 parameter2 :end[/code] [url=http://windowsitpro.com/article/articleid/13443/how-do-i-pass-parameters-to-a-batch-file.html]how do i pass parameters to a batch file[/url] ![]() |
The End.