Search results

  1. M

    python cgi cannot open file (dbm database)

    If this is still in development, you should do it on your own server; try XAMPP or WampServer. You'll have much greater control over every aspect, including the ability to use an interactive debugger (not all Python interpreters support this for CGI scripts, but some do). Use file...
  2. M

    subdomain redirect

    Do you mean someone going to "http://test.correctsite.com/" gets externally redirected to "http://test.correctsite.com/correctsite/"? What about "http://test.correctsite.com/foo"? From the rewrite rules, it looks like the request won't be rewritten at all. Do you have any other rewrite rules in...
  3. M

    Need Help php error

    It seems you can't fix DOCUMENT_ROOT in .htaccess, but you can set another environment variable (e.g. DOC_ROOT) and use that instead: SetEnv SetEnv DOC_ROOT /home/ddeswal2/public_html That way, if you change hosts, all you need to do is update that one line. You can also add the document root...
  4. M

    Embedding a video with copyrighted material

    If you have permission to use copyrighted material, it's not a violation of copyright law, simple as that. Just make sure you post a notice that it's used with permission of the artist so your site isn't mistakenly suspended. Additionally, the X10 Terms of Service only states that hosting...
  5. M

    WebTop OS name?

    In that case, you could name it after yourself (e.g. shadOSlash) or something else personal. Hee-hee
  6. M

    php gd image didn't show up

    As long as you're dealing with the same problem, stick to the thread. If you don't understand a solution, you should ask for clarification in the same thread. If none of the offered solutions work, post this information in the same thread, along with how you applied the solutions and what the...
  7. M

    PHP/SQL: Increment Integer Value in Database via Form

    There are a few other issues beyond the error. Note: use [php] rather than for PHP code, and it gets colorized. [html] does the same for HTML code. The old mysql driver has been obsoleted twice over, first by mysqli, then PDO. For a tutorial on the latter, read "Writing MySQL Scripts with...
  8. M

    python cgi cannot open file (dbm database)

    A 505 error means the server doesn't support the HTTP version the client is using. Are you sure that's the correct number? Do you have a live test page? Do you have "databases" as a subdirectory of "cgi-bin"? If you did, it's an odd location for it; the best place for a database file is...
  9. M

    Proxy in iFrames

    You can't force a browser to use a proxy; the user must configure the browser. Otherwise, it would be a tremendous security hole. You could set up a script on your own web server to proxy requests, and set the iframe src to use the script. You can't do this on x10, however; it violates the...
  10. M

    php gd image do not displayed properly

    Ask yourself: why are you outputting HTML elements in an image? Remove the <html> and <body> tags. That particular error has been covered many times before on these very forums.
  11. M

    WebTop OS name?

    What are the design goals, guiding principles or reasons behind what you're working on? Without knowing the character of the project, the names are going to be fairly generic. Of course, if you're working on yet another web desktop, you could call it "yawd". "clOS" might be confused with the...
  12. M

    search query help

    Here we go again... That error has been covered quite a few times in these forums. It means the query failed. You'll need to add error handling to discover the MySQL error. Your script is open to SQL injection. The best way to resolve this is to switch to the PDO driver and use prepared...
  13. M

    Image load order

    You could try restructuring your document so the thumbnails come first in the source, or try placing <img> elements referring to the images you want to load first in a hidden element that's the first child of <body>. <body> <div style="visibility:hidden"><img src="…" />...</div> ...
  14. M

    _private folder?

    Won't work on X10, since the server process runs with your user credentials. You could use the Order directive to deny access to specific directories. You'd also better configure Apache to return a 404 response rather than a 403 to hide the directory's existence. In the directory's .htaccess...
  15. M

    .htaccess redirect

    Note that neither has been tested.
  16. M

    Site pages redirected to suspension notice despite not being suspended.

    My site (libertatia.co.cc) was suspended for resource usage. I unsuspended it, but visiting any page still redirects to a suspension notice page. I also can't FTP to my site.
  17. M

    .htaccess redirect

    I thought driveflexfuel wrote he only wanted to redirect a single subdomain. For mapping all subdomains to sub-directories, perhaps something like: # ensure that subdomain refers to an existing sub-directory RewriteCond %{HTTP_HOST} ^([^.]+)\.website\.com$ RewriteCond %{DOCUMENT_ROOT}/%1 -d...
  18. M

    .htaccess redirect

    Are you looking for something like: # redirect host "test" to "/test" internally, unless URL already begins with "test" RewriteCond %{HTTP_HOST} test.website.com RewriteCond $1 !^test(/|$) RewriteRule ^/?(.*) /test/$1
  19. M

    MySQL Table Creation Error

    Try the suggestions in "I can't login to my cPanel on Fris! & Mysql isn't working!". You shouldn't use die in most PHP scripts. The old mysql driver is very outdated. Check out PDO; read "Writing MySQL Scripts with PHP and PDO" for a tutorial.
  20. M

    using cURL to get data

    Do the script and test.txt exist on different hosts? If not, there's no need for cURL. Do you have a live test page we can see? You need to add some error handling. Test whether the result of curl_exec is False. You can use curl_error to get an error messag, but be careful that it doesn't...
Top