Jump to content
xisto Community

jlhaslip

Members
  • Content Count

    6,070
  • Joined

  • Last visited

  • Days Won

    2

Everything posted by jlhaslip

  1. Those look like "BOM" markers.You will need to find out which off those files you modded which contains them and change the characterset of the file. It is frequently caused by reading a mac/linux file on a windows machine, or vice versa, and / or saving the file with the incorrect file delimiters.At least you know what they are called now... :)I've had them before, they can be a bother to find and delete. Have fun.
  2. Google "Larry Ullman sticky form redux php" to see the process in action. The form's action needs to be the same page as what sends the form. At the top of the form, check for a value which is 'hidden' and process the data, or if there is no value hidden, then display the form. http://forums.xisto.com/no_longer_exists/ Sample of the Redux method here: include ('./includes/header.html'); // Check if the form has been submitted. if (isset($_POST['submitted'])) { // Minimal form validation. if ( is_numeric($_POST['quantity']) && is_numeric($_POST['price']) && is_numeric($_POST['tax']) ) { // Calculate the results. $taxrate = $_POST['tax'] / 100; // Turn 5% into .05. $total = ($_POST['quantity'] * $_POST['price']) * ($taxrate + 1); // Print the results. echo '<h1 id="mainhead">Total Cost</h1> <p>The total cost of purchasing ' . $_POST['quantity'] . ' widget(s) at $' . number_format ($_POST['price'], 2) . ' each, including a tax rate of ' . $_POST['tax'] . '%, is $' . number_format ($total, 2) . '.</p><p><br /></p>'; } else { // Invalid submitted values. echo '<h1 id="mainhead">Error!</h1> <p class="error">Please enter a valid quantity, price, and tax.</p><p><br /></p>'; } } // End of main isset() IF. // Leave the PHP section and create the HTML form. ?> <h2>Widget Cost Calculator</h2> <form action="calculator.php" method="post"> <p>Quantity linenums:0'><?php # Script 3.5 - calculator.php$page_title = 'Widget Cost Calculator';include ('./includes/header.html');// Check if the form has been submitted.if (isset($_POST['submitted'])) { // Minimal form validation. if ( is_numeric($_POST['quantity']) && is_numeric($_POST['price']) && is_numeric($_POST['tax']) ) { // Calculate the results. $taxrate = $_POST['tax'] / 100; // Turn 5% into .05. $total = ($_POST['quantity'] * $_POST['price']) * ($taxrate + 1); // Print the results. echo '<h1 id="mainhead">Total Cost</h1> <p>The total cost of purchasing ' . $_POST['quantity'] . ' widget(s) at $' . number_format ($_POST['price'], 2) . ' each, including a tax rate of ' . $_POST['tax'] . '%, is $' . number_format ($total, 2) . '.</p><p><br /></p>'; } else { // Invalid submitted values. echo '<h1 id="mainhead">Error!</h1> <p class="error">Please enter a valid quantity, price, and tax.</p><p><br /></p>'; } } // End of main isset() IF.// Leave the PHP section and create the HTML form.?><h2>Widget Cost Calculator</h2><form action="calculator.php" method="post"> <p>Quantity: <input type="text" name="quantity" size="5" maxlength="10" /></p> <p>Price: <input type="text" name="price" size="5" maxlength="10" /></p> <p>Tax (%): <input type="text" name="tax" size="5" maxlength="10" /></p> <p><input type="submit" name="submit" value="Calculate!" /></p> <input type="hidden" name="submitted" value="TRUE" /></form><?phpinclude ('./includes/footer.html');?> Now you only need to make them "sticky".
  3. If you need to, then okay... Also, have a look at the AEF Forum software. It works faster than phpbb2, so it will out perform the bloated phpbb3, too. http://www.anelectron.com/board/index.php And they are working on an integration for the AEF/MK Portal system right now, too... Check with elwizard at either of those sites.
  4. Add the prefix to both the db-name and the db-user-name.
  5. Got working on something the other day and came up with this small demonstration on the differences between several techniques using the same html code, but different CSS to position a block of four thumbnail images approximately the same ( well, similar at least ) onto a page and the resultant differences in the effect of the techniques. Have a look: http://forums.xisto.com/no_longer_exists/ The first one uses floats to group the images into a fixed width block and then uses absolute positioning of the wrapper div to space them off the left hand side and down a little from the top of the page. That last paragraph actually follows the code for the Image block if you do a view > source, but the absolute positioning of the group of pictures removes the block from the normal flow of the page, which allows the paragraph to slide up. Might be what you want, but re-sizing the viewport will alter things . Try it. The second one uses absolute positioning of each image and a percentage of the viewport to place the same four images into pretty much the same place on the display... well, my display at least... and therein lies a problem with position:absolute and percentages for layout. Resizing the Browser viewport changes stuff, majorly... Oh, and because the Image Blocks are declared to be 100% width of the viewport, and because of the manner in which the browser places the absolutely positioned div's onto the page {after} positioning the rest of the page, the image block is effectively a 'layer' over top of the third and fourth links, so you can't click them because the Browser ties to click the Image block layer, but there are no links there. The links are under the transparent Image block. Click the first link to access links three and four. The next page uses Floats to group the Image and margins to space the grouped images off the left hand side approximately the same as the previous pages. notice how the trailing paragraph is displayed beside the group of Images? This is a result of using Float to position the grouped pictures. The paragraph will 'wrap' the images, taking up the next available spot on the display, next to the images. This is a common technique used in layouts. Lastly, if you don't want the 'wrapped' look, then 'clear' the block of images by using 'clear:both' on the trailing paragraph. Options for the clear are left : right and both, depending on the presentation you want to provide for the page. Hope this helps you understand that css is a handy tool for laying out your pages, and does a good job of it, but be careful how you go about it. There is usually more than one method that you have available to create the same/similar look to a page, and each of them has various side effects. The method you choose might be the right one, but it might not be...
  6. I have a new Demo site in place and need a security check done on it. I need to know if a "hacker" can break in and be malicious, so I would ask that if you have a sense of "challenge" for that sort of thing, please go to the site and see if you can cause a little insight into this software's security. I'd be interested in seeing if there can be the usual tricks played against it, like DB injections, or a cross-site scripting done to it, the usual checks to see how the security is on the package. BUT NOT IN A DAMAGING WAY, please and thanks. I only need an indications to the Forums security, so I will actually lower some settings such that there will be posting allowed for guests for most of the Forums, and you don't need to register to get in... Simply test "all the usual things", stuff that the script kiddies will try..., please. The site is at http://forums.xisto.com/no_longer_exists/. *** Credits if you can get in and prove a cross-site scripting event, or a DB injection, and prove it was you that did it.... *** *** Bonus credits for providing a solution to the attack you performed ***
  7. Multiple Windows would be like having multiple Internet Explorers on your machine... technically possible... but why would you do it? Like owning a Goat... Don't have enough problems yet?
  8. Given the choice, such as you have because of the way your page is being developed, I would place the Content first, followed by the navigation. On a small(er) site, i don't think it is critical, but the larger your page becomes, the less likely it is that the bot will travel deep into your page to find the h1 tags, etc. Earlier in the page is better than later.Even more important is the use of div's and external CSS instead of tables. It will reduce the bandwidth, sped up delivery, speed rendering, and make it easier to update. All kinds of good reasons to avoid tables for layout, size being one of themThe most important and most effective method to generate good SEO is Content. The three most important features of a site are content, content, content. Good content will work on a bad page. Bad content on a good page will fail.
  9. No-one here can help you, except to suggest that you check, and confirm with the Hosting company, that you are using the correct user-name and password, and that you are attempting to open the correctly named database.That is what the error suggests. Answer these questions so we an be of more service to you:What script are you installing? Are you allowed databases on that service? Do they add a prefix to our DB name when you create the DB?Did you include the prefix?
  10. An sql file is basically a text file, but the problem is that if the Database gets large, and you do a full data dump, the file gets too big to load into the editor. I've had that before, so what I do on a large database is use phpmyadmin to dump one table at a time for the large tables, and a couple of smaller ones together in the dump.Then you can load the resulting file into the text Editor.I use ConText Editor for many Web tasks because you can open an entire site all at the same time as a 'Project' and do multiple search and replaces at the same time. I've had up to 60 files open at once, and once I loaded an full Database sql file which was huge, and it worked great.Wordpad is not the best editor for large files. It has a small file size limit.
  11. I adjusted the Topic title as per your request, then realized that the original title is exactly how I first heard of the concept of knowing that your friends, (true friends) you can be separated from and not have a concern about because 'true friends' will always support you. Enemies, on the other hand, need to be watched closely, so they should be kept closer in order to do that better.I once had a job where the Sales Manager practiced this quite a bit. He took competing Salesmen out Golfing, etc, in order to get to know them better and to understand their thinking. Once he knew their patterns and methods, he would direct his efforts to take advantage of the information he had acquired. Small things, like the other sales guys once said he hated going on the North loop, so Dave spent the next three weeks traveling around the North territory, gaining a tremendous part of the market.So, keeping the Enemy close is a method to watch their efforts and act/react according to what your goals are. True friends don't need to be close to be friends. they will always be close in spirit, if nothing else.
  12. The Tutorial at cssplay was pretty clear about what to do, I thought, but here is your page back. have (literally) 'fixed' the problem... heeheeheeee! <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd;<html xmlns="https://w3.org/1999/xhtml/; <head> <script language="Javascript" src="ajax_begin.js" type="text/javascript"></script> <title> DB CMS V O.O1 </title> <style type="text/css">/*<![CDATA[*/ body {border:0; height:100%; overflow-y:auto;} #submit.submit {display: block; border-width: 3; border-style: Solid; border-color: blue; background-color: #55AAFF; width: 555; position: fixed; top:25%; Left: 25%; padding: 5;} div.reset {border-width: 1; border-style: solid; font-style: underlined; width: 155; padding: 2; text-align: center;} /*]]>*/ </style> </head> <body> <div id="submit" class="submit" width="255"> <br /> The details you specified are now being checked and saved to the database. Please stand by for further instructions or confirmation.<br /> <br /> </div> <form action="add_page.php" method="get" name="details" id="details"> <br /> <br /> Page Title: <input type="text" id="title" /><br /> <br /> Module Name: <input type="text" id="module_name" /><br /> <hr /> <br /> HTML Content<br /> <textarea id="content" rows="35" cols="95"></textarea> </form><br /> <br /> <button onclick="ajaxdelay();">Save</button><br /> <br /> <br /> <br /> </body></html>I included the css with the page so I didn't need to post both of them. Might want to separate them again. Cleaned it up a little, too. Notice that I have added a Doctype at the top, too. VERY IMPORTANT that you have a proper Doc Type on your page. Make the Browsers behave, not the same, but predictably.If you want to use this code again, use a "named" div submit, of the "class" submit. The Named div is the hash sign (#) and a class is the period *, so this css code will 'freeze' anything that is selected as id="submit" and class="submit" on your page.You can benefit from this sample code by learning to use Floats, Margins and padding to position elements on your page instead of position:absolute. It works, but is difficult to deal with across the different browsers. Until you understand the w3c Box Model, try to avoid position:absolute.
  13. maybe attach the entire page code to a posting for review.
  14. Stu Nicholls / cssplay.co.uk to the rescue (again)... http://forums.xisto.com/no_longer_exists/ Enjoy!
  15. Topic is resolved.Please PM any moderator to continue this discussion. Until then, this topic is closed.
  16. It is for that very reason that you are recommended to leave a single blank line at the bottom of the .htaccess file on an Apache server.I'll bet it would work to do this if you have the blank trailing line.
  17. Windows Task manager includes a Task Scheduler under Start > Programs > Accessories > System Tools, but it only allows 'daily' events. Perhaps you can schedule multiple events per day on a regular (ie: hourly) schedule. I am not sure what it is capable of doing, I have never used it.
  18. The trap takes security quite seriously and you need to be just as concerned about it.Do you have any details about this event that the Server Admins need to know about? Was there a breach through the server defenses? Or was it a couple of buddies that guessed your password?What makes you think it was a "hacker" and not a friend who knew the password?
  19. do you mean this? $_SERVER['DOCUMENT_ROOT'] http://ca3.php.net/reserved.variables
  20. In today's Web environment, (x)Html is used to provide the "content" for a site, and CSS is used to "style" the content. The two go hand-in-hand, you need both to work your site properly. Current Web Standards promote the use of generic containers (div's and spans, etc) rather than Tables to structure the page layout. Tables are for presenting "tabled Data", not to be used for Page Layout. There is a place for Tables, so you need to know how to use them, but properly, for the display, usually, of repetitive data on a page. Div's are to be used in conjunction with CSS Style sheets to make things pretty... and to layout the page. The advantages are that (x)html/CSS pages are typically smaller, the external CSS files are cached so you only need to serve them once to a client, the CSS affects many pages on a site where tables need to be loaded and sent each time, the Browser usually needs to assemble the entire table before determining the page layout, so it is slower at the client end as well, using html/css ensures that your site will continue to operate on the Web for a longer time since "doing it right" will be supported in the future Standards for a longer period of time ... the list goes on...Summary: use html/css for your site.
  21. I agree with rvalkass. The trap is now running php 5.2.0 and Mysql 5.0.27, both of which have had serious changes from 2 years ago. Get ready for php6 coming out soon. Very serious changes coming with that one. the option of running Safe Mode 'ON' is completely removed, apparently, which will do serious damage to older scripts which are programmed to be run under that.
  22. Topic is resolved.Please PM any moderator to continue this discussion. Until then, this topic is closed.
×
×
  • Create New...

Important Information

Terms of Use | Privacy Policy | Guidelines | We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.