Jump to content
xisto Community

minimcmonkey

Members
  • Content Count

    417
  • Joined

  • Last visited

Posts posted by minimcmonkey


  1. In the case of PHP, you cant use one without the other, the PHP has to output HTML.I always make my sites in PHP, even static ones. i leave some spare variables for headers ect, i can pass data to it if I need to, that way, i can refer people to my site, with a cookie, or information stored in the URL, to do things like, display a link back the referrer site etc.Also, tat way, if I decide I want to add interactivity to it, I can, without having to re-design the site.


  2. There are a couple of ways of stopping people getting your code,1. use PHP to generate a PDF version2. Use scripting to generate an image version of the site, before it is sent to the browser, thus only an IMG tag is needed.Both are impractical, and would waste bandwidth, also, wouldn't work for people without the right software to view, or with images disabled, or with screen readers etc.another way, is a flash site, perfectly practical, but not everyone can use them because they don't have flash player etc.There is no way of stopping people seeing HTML code, for an HTML site, as the browser needs the code to be able to interpret it.Even if you make it so the page cannot be cached, right clicked, downloaded or anything, people would just write browsers which saved the source when it downloaded, like youtube - they tried to stop people downloading, it doesn't work, there not protected so that people can see them, so people can download them when their browser does or with other methods.Stealing people code isn't legal, but people still do it. unfortunately, n one can stop it.accept, that if its on the web, people can use it.A good thing to do, is to put comment tags in, just saying your name, and "please do not remover this comment"of course, some people will, but as its not seen by anyone who doesn't view the source, some people may well leave it in place, that way, if the source is taken, people at least knew who made it and you get some credit.


  3. You don't have to use something greatly impressive, look at Google's logo - its really simple, but everyone recognizes it who has used the internet.You just really need something to identify your site by, as soon as it loads, even just plain text with a couple of effects on it.Another thing is, when it gets more complicated, it tends to get bigger, and the bigger, the longer it takes to download, and the more people leave in frustration at waiting for your site to load.


  4. Allowing people to use HTML on your site is a bad idea, as they could insert scripts to redirect, or key log etc. you should restrict use of anything which could run a script (any client side scripting ie javascript) and get rid of anything which could be very large, like iframes, and anything else where the tag defines its size.You would probably want to restrict use of most tags, just allow things like bold, strike through, underline, link, line break etc.A lot of people think "no one would bother doing that to my site" but people do, web vandals will vandalise anything without tight security.


  5. if you mean they are being sent to your site, from a referrer, the easiest way to sort the problem out, would be to have a user cookie sent to their browser before the referral, then checked by your site, and then the code could query the database accordingly. if the site differentiates users in the URL like "http://forums.xisto.com/no_longer_exists/ could use PHP to detect the referrer, and break down the URL, and query the database accordingly.


  6. I would not suggest using an iframe for displaying adverts, plenty on people use browsers that are incompatible with iframes, and if people dont see the advert, your not getting anything out of it.The best thing o do, is use something like google's advertising programme, they just give you some source code to put on your page and you leave it. there are plenty of advertising companies like that.Of course, if you are putting adverts on for a reason other than making profit, you could just save the image to your sites storage, and insert it as an image.



  7. If you can't afford Microsoft Office, use Openoffice. It opens all Microsoft Docs and lets you save to Microsoft format. The best part is that its free!


    If you download the google pack, you get star office free with that, that is the paying version of open office, made by the same company; Sun. I found a similar type of deal at http://www.rm.com/products/rm-easiteach that seems to be selling adobe software very cheap, as well as MS office. CS4 masters collection is only �420! Of course, you do have to be in full time education.



  8. I looked at the image, and there is no way you can do that with PHP. As the source code for PHP is processed by the server, the browser never gets access to the source code, and it therefore cannot be dragged into an editor.Also, just steeling peoples code isn't legal, you should always just look at the code, and make your own version; it works better for you that way anyway, because know you understand the code, and it exactly fits your needs.


  9. The ideal language to create one, is coldfusion, as it allows you to download and parse a site, so you would just create an input field, which declares its input as a variable in coldfusion, and then downloads that page, and displays it.
    It is possible in PHP and ASP though.

    I have found an alternative to using one of those sites. Ironkey ( http://www.ironkey.com/en-US/ ) I just bought one, and it has a built in version of Firefox, it has a button in the cornet of the screen, and when you click it, your browsing goes through a very secure server. its a great secure flash drive as well.


  10. You shouldn't use javascript for that. Javascript is client side, so the output can be manipulated by the browser.Also, i noticed you put the "winning number" in the source code, which means, if someone wanted, they would just have to write a simple script to submit that number to the processing script.Also, if you are generating a number with javascript, anyone who could be bothered, could just change the random number equation in the browser, so it would output that number.You should use PHP instead.


  11. hi, i have been trying to create a drag and drop menu for my new website, so that the navigation menu can be moved around the site. This is the code i have:

    <html><head><title>Test run - Right click menu</title><script type="text/javascript">function coordinates(event){if (event.button==2)  {var x=event.x;var y=event.y; }document.getElementById("element").style.left=x;document.getElementById("element").style.top=y;document.getElementById("element").style.visibility="visible";var oldx=x;var oldy=y;window.onmouseup=end();window.onmousemove=coordinates(event);}function end(){}</script>  <style type="text/CSS">#element { position: absolute; top: 0px; left: 0px; background-color: 568934; border: 3px dashed; visibility: hidden; z-index: 1;}</style></head><body bgcolor="112233" onmousedown="coordinates(event)" oncontextmenu="return false;"><div id="element">hi<br><table><tr><th onmousedown="coordinatesb(event)">hi</th></tr></table>hi<br>hi<br>hi<br>hi<br>hi<br>hi<br></div> </body></html>

    When i run this (in Internet Explorer) it says
    "out of memory at line 8"
    and there are errors at lines 14 an 51,
    when i remove line 14, the error is seen on line 15 instead (because they do virtually the same thing)
    At the moment, i havent made it work in firefox or any other browsers, and dont intend to until it works with IE. I am aware that it doesnt account for scrolling, but im adding all that stuff later.
    Can anyone help?

    I have tried using a javascript debugger, and syntax chgecker, ect, but i still can fix it...
    any ideas?

  12. I gave this some thought, when i was on a free host with a stupidly long free sub-domain. I didnt want to hide the address, just whatever followed ".co.uk" There is no script for this, but, if you jut want to shorten your web address, then make a frameset, whith one two frames where one takes up 100%, the other takes up 0% (i presume you could do make a frameset with one frame, but i have never tried!) Put your websites rename you sites index file, then save the frameset file, as the index file, with the old index file, as the page in the large frame. And as long as there are no links on your site targetted to _top, your URL bar will always show the URL of the frameset file.

×
×
  • 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.