-
Content Count
6,070 -
Joined
-
Last visited
-
Days Won
2
Everything posted by jlhaslip
-
No, you can't have html in a css stylesheet. The stylesheet acts upon an html file only. Define the html on a page and then point to the css file using a link tag. You can have several css files act upon a single html page, though. Typically, one for screen output and one for printing are the most common.
-
Largest Triangular Number With Same Digits
jlhaslip replied to rlineker's topic in General Discussion
What is the definition of a Triangular Number? It has been a while since I have studied Math, so there must be a definition I am not aware of. -
Did a phpinfo. Safe mode = off and sockets are enabled.
-
Icemarle, Relax. If you place its cage somewhere near where you think he might be, it will (should) go back to it because that is where it gets fed and watered. Might take some time, though. Don't expect it to happen in 10 minutes. Maybe overnight.I had a pet raccoon once. It got loose while my parents were painting the house and got into the heat ducts. Stayed there for 4 days. Made a terrible racket walking around in there all night, but eventually came out because we didn't place food where he could reach it so easily. He had to climb out and walk across the room to get his food, so we set a trap which didn't catch him, but closed off the heat ducts.Basil will come back, don't worry.
-
I'm pretty sure my future job will be alot like my current job. I am a Carpenter and build things. I quite enjoy it for the most part. Something new every day. And I am too old to re-train, so I'll just hang in there for a bunch more years.
-
Include Funtion Php Problems in xammp and php 5.1.1
jlhaslip replied to sxyloverboy's topic in Programming
But Tyssen's point is work considering. If you can do something without using the Global variables, your site will be more secure. They are set to be off for a reason on most Hosts. -
Include Funtion Php Problems in xammp and php 5.1.1
jlhaslip replied to sxyloverboy's topic in Programming
check out the "extract" function. extract(). -
Include Funtion Php Problems in xammp and php 5.1.1
jlhaslip replied to sxyloverboy's topic in Programming
Here is a version of a script which I use to set the include from a query string. Notice that I check to see if the file exists and it also checks an array of acceptable values otherwise the include is set to index.txt as a default. $submit = $_GET ;if( !isset($_GET ) ) { if (file_exists($data_array[0] . '.txt' )) { include ( $data_array[0] . '.txt' ); } else { include ('index.txt'); } } elseif (in_array($submit , $data_array)) { if (file_exists($submit . '.txt' )) { include ( $submit . '.txt' ); } else { include ('index.txt'); } } else { if (file_exists($data_array[0] . '.txt' )) { include ( $data_array[0] . '.txt' ); } else { include ('index.txt'); } }?> -
Yes, those are all good characteristics of a file manager/sitemap script. One of the issues which determines the scripts I post in the Tutorial Section is their relative in-completeness. This allows users to customize them and develop their own php scripting abilities. This script is in no way complete, I agree, but maybe someone would be able to use it and expand it with their own enhancements to do exactly what they want.
-
Have you checked out the Xisto - Web Hosting plans yet? There are some pretty good ones there, too. Reasonably priced.There seems to be a lot of sellers out there offering lots of space for their accounts, but is it dedicated space? Might want to check on that.Also, try to determine what your actual needs are for Space and Bandwidth. Why hook up to a plan offering 5 gigs storage and a gazillion gigs of Bandwidth if you won't need most of it. Better to find a reasonably priced service that meets your needs and allows for upgrading at a similarly reasonable cost than hook up to a service which promises you the world and might not be there next month.
-
I'm sorry you had such a poor experience on Ebay. At least you got the goods. I have found most sellers are pretty good about communicating, but every once in a while you run into a situation like this.Best advise I can give is to be certain to read the Seller's feedback before you bid and determine the attitude they have towards negative and or neutral Buyers. Also, watch for negatives in their feedback, of course.There is never any guarantee that the seller is legitimate, but their Feedback ratings will give you an indicatioin of how they respond to Buyers and problems. Hope the skirt looks good.
-
I think Yahoo Small Business still has a deal on their domain registrations. $2.99 per year.
-
Well, it has been a while since I have added anything to the Tutorial Sectiion, so here is another script for the members to enjoy.This one creates a list of links from the contents of the directory which it is run from. For instance, if you run it from the public_html folder, then all the files (not the Directores) are listed and linked so when you click on the link, that file is parsed and output to the browser.Here is the code: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd;<html xmlns="w3.org/1999/xhtml/; xml:lang="en" lang="en"><head> <title>An XHTML 1.0 Strict Page to List the files in this directory</title> <meta http-equiv="content-type" content="text/html;charset=utf-8" /> <meta http-equiv="Content-Style-Type" content="text/css" /></head><body> <p>... Your HTML content here ...</p> <?php//dir_list.php$default_dir = "./"; // lists files only for the directory which this script is run fromecho '<div id="link_div"><ul>' . "\r\n\t";if(!($dp = opendir($default_dir))) die("Cannot open $default_dir.");while($file = readdir($dp)) { if(is_dir($file)) { continue; } else if($file != '.' && $file != '..') { echo '<li><a href="' . $file . ' " class="link_li" >' . $file . '</a></li>' . "\r\n\t"; }}closedir($dp);echo '</ul> </div>';?> <p>... Your HTML content here ...</p> <p> <a href="validator.w3.org/check?uri=referer the xhtml</a> </p> </body></html> If you save it as the index.html file for the public_html folder of your account and alter the .htaccess file for the account to parse html as php, then the script will list out all the files in the folder as links. Alternately, if you use it as a page on your site, then it will create a 'sitemap' of all the files in that folder.Use it freely. I hope it helps someone. Enjoy.
-
A Question About Iframes Just a quick one,..hopefully.
jlhaslip replied to wild20's topic in Programming
Found this today. Might work. "<iframe src="place correct url here.html" width="176" height="220" name="inline" scrolling="no" border="0" frameborder="0" marginwidth="0" marginheight="0" allowtransparency="true"></iframe>" -
See Mich, you know more than you like to pretend you do... atta gurlie...
-
Nothing to do with the problem posted, but what's with the tilde at the end of this line? $connection = mysql_ connect('localhost', 'username', 'password') ~or die ('Unable to connect!'); And the spaces in the variable names aren't going to go well with the php parser while($ row = mysql_ fetch_ row($ result))$result = mysql_ query($ query) ~ // another tilde chaacter here???if (mysql_ num_ rows($ result) > 0)
-
A Question About Iframes Just a quick one,..hopefully.
jlhaslip replied to wild20's topic in Programming
Probably we should, yes. I'll issue myself a warning in the morning. Something to look forward to. In the meantime, check this out : http://www.w3schools.com/tags/tag_iframe.asp Look at the frameborders and scollbar attributes. Might answer your question. and Iframes won't work with a 'strict' Doc Type, so use Transitional. -
A Question About Iframes Just a quick one,..hopefully.
jlhaslip replied to wild20's topic in Programming
If he 'includes' a sidebar onto the page, the border (or lack of border) can be controlled using the css for the page, whether embedded or in a stylesheet. ie: div { border: 1px solid #000088;} in the css file would produce a thin Blue border and div { border: 0px} would produce no border. -
A Question About Iframes Just a quick one,..hopefully.
jlhaslip replied to wild20's topic in Programming
Instead of Iframes, consider using php includes to have the file 'included' as a part of your site. That way, the file can be just another page element (ex: div) on the page and use css to style it. -
Yes, somewhere in the script you are referencing a file which is stored at the root folder as indicated by the slash '/' and you do not have permission to do that on the Xisto server. Probably was okay on the local machine used to write and test the script,but the reference will have to be re-written for the trap.Of course, I could be wrong...
-
Here, catch ... <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"><html><head> <meta content="text/html; charset=ISO-8859-1" http-equiv="content-type"> <title>Test</title><script type="text/javascript"><!--window.onload=montre;function montre(id) {var d = document.getElementById(id);for (var i = 1; i<=10; i++) {if (document.getElementById('smenu'+i)) {document.getElementById('smenu'+i).style.display='none';}}if (d) {d.style.display='block';}}//--> </script> <style type="text/css"><!-- body {margin: 0 auto;padding: 0;background: silver;font: 80% verdana, arial, sans-serif;}dl, dt, dd, ul, li {margin: 0;padding: 0;list-style-type: none;}#menu {position: absolute;top: 5;z-index: 100;}#menu dl {float: left;width: 8em;background: #7F7C75;margin: 0 1px;}#menu dt {cursor: pointer;text-align: center;font-weight: bold;background: #7F7C75;border: 1px solid gray;}#menu dd {border: 1px solid gray;}#menu li {text-align: top center;background: #7F7C75;}#menu li a, #menu dt a {color: #FEF2DC;text-decoration: none;display: block;height: 100%;border: 0 none;}#menu li a:hover, #menu dt a:hover {background: #000000;}#site {position: absolute;z-index: 1;top: 70px;left: 10px;color: #000;background-color: #ddd;padding: 5px;border: 1px solid gray; }a {text-decoration: none;color: #222;}--> </style></head><body><div style="margin: 0px auto; text-align: center;" id="menu"><dl><dt onmouseover="java script:montre();"><a title="Home" href="http://forums.xisto.com/no_longer_exists/ onmouseover="java script:montre('smenu1');"><font color="#fef2dc">Programs</font></dt><dd style="display: none;" onmouseout="java script:montre('');" onmouseover="java script:montre('smenu1');" id="smenu1"> <ul> <li><a href="http://forums.xisto.com/no_longer_exists/; <li><a href="http://forums.xisto.com/no_longer_exists/ Men</a></li> <li><a href="http://forums.xisto.com/no_longer_exists/ Women</a></li> <li><a href="http://forums.xisto.com/no_longer_exists/; <li><a href="http://forums.xisto.com/no_longer_exists/; </ul> </dd></dl><dl><dt onmouseover="java script:montre('smenu2');"><font color="#fef2dc">Facilities</font></dt><dd style="display: block;" onmouseout="java script:montre('');" onmouseover="java script:montre('smenu2');" id="smenu2"> <ul> <li><a href="http://forums.xisto.com/no_longer_exists/; <li><a href="http://forums.xisto.com/no_longer_exists/; <li><a href="http://forums.xisto.com/no_longer_exists/; </ul> </dd></dl><dl><dt onmouseover="java script:montre();"><a title="Staff" href="http://forums.xisto.com/no_longer_exists/ onmouseover="java script:montre('smenu3');"><font color="#fef2dc">Activities</font></dt><dd style="display: none;" onmouseout="java script:montre('');" onmouseover="java script:montre('smenu3');" id="smenu3"> <ul> <li><a href="http://forums.xisto.com/no_longer_exists/; <li><a href="http://forums.xisto.com/no_longer_exists/; <li><a href="http://forums.xisto.com/no_longer_exists/; <li><a href="http://forums.xisto.com/no_longer_exists/; </ul> </dd></dl><dl><dt onmouseover="java script:montre();"><a title="History" href="http://forums.xisto.com/no_longer_exists/ onmouseover="java script:montre();"><a title="Contact" href="http://forums.xisto.com/no_longer_exists/ style="position: absolute; top: 0px; " src="test_files/greybar.jpg"><img style="position: absolute; top: 31px;" src="test_files/supportheader.jpg"><img style="position: absolute; top: 244px;" src="test_files/goldbar.jpg"><img style="position: absolute; top: 275px;" src="test_files/backgroundfade.jpg"><img style="position: absolute; top: 539px;" src="test_files/goldbar.jpg"></body></html> There were some pixels in the menu and the images which were side-shifting them. Absolute positioning isn't relly recommended for a beginning site, but what the heck, go for it...Next you will have to work on the Menu drop-downs. They didn't work for me, but I have an old decrepit Browser and nothing fancy like that works in it. it would help if you could post the link where you got the javascript coding from and someone could help sort that out, too. or maybe have a look for a Cascading Style Sheet solution. They work in all Browsers even if the javascript is turned off.
-
Been there, done that, a few times. It won't get any easier to tell them later, only thing about that is you get to carry the weight of the not-telling, and all the guilt and stuff you are feeling, around by yourself. And they won't like to find out later any more than now, so best thing is to knuckle under, bite the bullet and let them know as soon as possible.Remember that these failing grades don't make YOU a failure. It only means that you didn't work hard enough or study the right amount this last term. With a bit of effort, and the knowledge of this experience of a failing term, you should do well in the same courses next semester. Good Luck on it.