Search results

  1. marshian

    Making a site JavaScript dependent - pros/cons?

    You could do it the other way around: make your index page redirect to page b.php, while you redirect it using javascript to a.php. If the user has no javascript, it will be redirected to b.php, but if he does, he gets redirected to a.php. It's possible but this is not really a great idea.
  2. marshian

    Flushing your DNS in Windows XP

    This dns-flushing thing works on Vista too, as long as you start cmd with administrator privileges.
  3. marshian

    POST without submit

    Why would it be required? Session data is stored on the server, under a session name. The user only has the session name, so he can't really compromise any data... (You can hijack sessions, but you could solve this by storing the users IP with the session information. (If the stored ip and the...
  4. marshian

    POST without submit

    Sessions are more secure than cookies, if that really matters for you. A user can edit/delete cookies, but he can only delete sessions. EDIT: I mean, he can delete the cookie that remembers his session, nothing else
  5. marshian

    Convert a DIV into image

    You can edit images with PHP. Try this: http://forums.x10hosting.com/tutorials/66161-dynamic-images-php.html (Some pics aren't working as I updated my site after I made that tut.)
  6. marshian

    Using External HTML Files

    I mean 'or' as in "I don't think you've made yourself clear enough to a person who has absolutely no idea how these things work, so I'll try to explain it a little better." file_gets_contents just requests the file, just like the user's browser would do, so php gets executed before the file...
  7. marshian

    Ad code

    Ok, thanks a lot! *closed*
  8. marshian

    Ad code

    I'm helping a friend of me with his site, he's has an ad-enchanted plan (on Stoli), but the script that shows the ads slows down the page load a lot, since the script gets executed as soon as the browser sees the <script> tags... My question is, can we not implement the ad code directly into the...
  9. marshian

    Convert a DIV into image

    So what you actually want to do is make a sort of screenshot of the page and show that instead of text? Why would you ever want to do that? Just use images you've already made then.
  10. marshian

    Making a site JavaScript dependent - pros/cons?

    How can this work? <? $javascript = false ?> gets executed before the page is send to the user, so in that page, $javascript is always false... <noscript>-tags only work within the browser. I suggest you use javascript to find out about the javascript... For example, standard give a non-js...
  11. marshian

    Making a site JavaScript dependent - pros/cons?

    In my opinion it is best to use JavaScript if you feel this is the best option for your site, but it's always a good idea to make a backup system in case the browser doesn't support JavaScript or the user disabled it.
  12. marshian

    Using External HTML Files

    Or: the php in that file gets executed first, then only the result is brought into your page, so if you want the 2 pages to be able to exchange variables etc., you should still use include/require.
  13. marshian

    You have to register your domain name and set the NS records to point to "ns1.x10hosting.com"...

    You have to register your domain name and set the NS records to point to "ns1.x10hosting.com". Then go to your control panel and 'park' the domain you registered. The nameservers have to update and once they're done (max. 48 hours), your new domain will work. - Marshian
  14. marshian

    Using External HTML Files

    I'll explain it a bit more then just giving some code and hope he gets it :p There's no way to use html code to insert pages in other pages, but it's possible to do it serverside, using PHP. (If you don't know what php is, try googling for it.) Say you've got the page "index.php" (note the...
  15. marshian

    Validation errors!

    All the margin-attributes you used for the <body>-tag are invalid. They just don't exist in your standard. The solution to this is using CSS: style="margin: 2px;" or body { margin: 2px; } or something like that. <table>-elements are disencouraged (since many browsers render them...
  16. marshian

    [HOW-TO]Install apache, php, mysql, pma

    You can choose what services you want to start, and you can just remove the ftp :p (just don't try to start that service after that :biggrin:)
  17. marshian

    [Game Programming] Highlander

    Why don't you start making work of the forums? It'ld be much easier to communicate on there (no ppl stealing source code etc *looks around with evil eyes*)
  18. marshian

    Speedtest Information

    Looks like the Washington DC server is good...
  19. marshian

    [Game Programming] Highlander

    It's shorter then http://highlanderdev.x10hosting.com ! :p I always keep forgetting a part of that url xD
  20. marshian

    403 Forbidden

    You should check your .htaccess documents, and maybe you deleted the index file, and have index listening off? (If this is the case, uploading an index file solves the problem.)
Top