Search results

  1. M

    Internal Server Error

    Also: turn on autoflush. You also might want to try CGI::Carp's fatalsToBrowser option. You should never give any file a permission of 777. This gives everyone write access.
  2. M

    Can others access my application files?

    On most filesystems directories can be thought of as special files that hold a list of file records. With a permission mode of --x (no read, no write, execute), a user can access files within a directory but not the directory itself (the directory contents, or list of files in a directory, will...
  3. M

    Can others access my application files?

    What you're missing is that Java applets are executed on the client, not the server. How is a client supposed to run an applet if the computer can't download it?
  4. M

    Ideas Required for Image Hosting!!!

    There's nothing that says the gallery and the images need to be on the same site. You could use another site (such as ImageShack) to host the images.
  5. M

    PHP Error

    Where's "there"? Is it "~/public_html/data/display/data/"? Remember that relative paths are relative to the current script. If mode 777 (everyone can read, write & execute) doesn't work, neither will 755. You probably don't want the execute bits set; 644 is the most appropriate permission...
  6. M

    help with login system

    You could put the login form handler in its own script ("/login.php"), put a hidden field (here named "redirect") with the URL of the page in which the form is embedded, set the form action to the login form handler. Upon successful login, login.php will redirect to $_Request['redirect']...
  7. M

    Do I need the preexisting files on my site?

    Check what each file/folder is for. Leave the (e.g.) cPanel ones. If they're for FrontPage, they might be safe to remove. Just be sure to back up any files & folders before deletion Be warned that this is rather like cleaning out %SystemRoot% on MS OSes. If you shoot yourself in the foot...
  8. M

    Am i really this stupid? Or is it just not possible on x10?

    Opening http://www.jarir.nl/2009/05/the-state-of-things/ stays on www.jarir.nl. It's only the links on pages that point to neomotion.x10hosting.com. Thus, TechAsh is probably right that it's a WordPress configuration problem as opposed to a DNS or Apache configuration problem.
  9. M

    Javascript

    Prototypes provide an inheritance mechanism, like parent classes in other OO languages. When you access a property that isn't defined on an object, it checks that object's prototype, and then the prototype's prototype &c, just like checking base instances in other languages. Numerous pages...
  10. M

    Internal Server Error

    Are you sure? For example, how do you know your script doesn't rely on a package that isn't installed? Error messages will be printed before any header, resulting in a malformed header section and a 500 error. Check your error logs.
  11. M

    I Need Help Centering An Script On My Intro Page

    Just make sure you're learning from reliable sources. They should discuss the difference between document structure (HTML) and presentation (style sheets). Avoid anything that uses tables for layout. Semantic HTML is the way to go.
  12. M

    I Need Help Centering An Script On My Intro Page

    The align attribute is deprecated. If you had searched the forum (or the web), you would have found that the proper way to align an element is to set its left and right margins to "auto" using CSS. For IE6, you need to set "text-align" on the element's parent to "center". <html> <head>...
  13. M

    PHP Issue

    The cause is that files with extension ".html" are not processed by PHP under default settings. If you examine the source of "home.html", you'll see your PHP code. In my opinion, the best solution not involving radical site redesign is to rename the file "home.php", turn on content negotiation...
  14. M

    Extentionless URLs

    Expanding on a point is appreciated. The purpose of content negotiation is to let the browser and server pick from among multiple content representations, differentiated by file extensions. mod_rewrite lets you use a non-identity mapping from URIs to content. Neither is targeted towards a...
  15. M

    Extentionless URLs

    All of that is covered under my statement about different URI and file hierarchies. We're in complete agreement here. By "set up", are you referring to configuration? Or do you refer to site layout (the URI & filesystem hierarchies)? For both cases, it's because you have to set the site up...
  16. M

    Extentionless URLs

    Each does what it was designed to do fairly well. mod_rewrite and content negotiation have some overlap of function, but each for a different purpose. When it comes to type-via-file-extension agnosticism (which is the Right Thing to Do© in URIs), only content negotiation cuts the mustard...
  17. M

    Extentionless URLs

    Content negotiation is designed to do exactly what you want. Add:Options +MultiViews to your .htaccess (the "+" means merge the options rather than replace them; read about the Options directive for details).
  18. M

    Internet Explorer 8 HTML Issue

    Only inline elements are allowed in <a> elements, and <p> is a block element. Any reason you put the <p> in the <a>? Run your pages through W3C's valdator to catch other structural errors. While you're at it, replace the table based layout with CSS and add a <noframes> element for browsers...
  19. M

    Ajax link checker

    Main task in debugging: break it down, see how the parts work. Check the output of checklinks.php. The final "/" in any url is stripped out, while the first link has a trailing "/". Either leave trailing "/" off of links in your HTML or always have a trailing "/" and change checklinks.php...
  20. M

    Ajax link checker

    checklinks.php returns "inactive" for the nonexistant page, so the problem's not there. (It actually returns "inactive" for all but the first page, but we'll get back to that later.) Examine the links in a DOM inspector and you'll discover that all but the first teensweb links have both an...
Top