Jump to content

TweezerMan

Members
  • Posts

    1,763
  • Joined

  • Last visited

Everything posted by TweezerMan

  1. Welcome to the forums, Gary!
  2. Welcome to the forums, CoFFeeMoNsTeR!
  3. You could also configure the web server to just deny access to that directory with the following .htaccess file: >Order Allow,Deny Deny from all People trying to browse that directory or any files in it would receive a "403 Forbidden" error page.
  4. Outside of a string, the "." is the string concatenation operator (it joins strings together). For example: >echo 'This ' . 'is ' . 'a ' . 'test.'; ...is equivalent to: >echo 'This is a test.'; Inside of a string, the "." is just a plain dot character. Because of the way your original query was written, the "." was a part of the string instead of outside of it, so it was behaving as an ordinary character.
  5. I think you have the single and double quotes reversed, and I'm not sure why you have the dots on each side of the variable. I would try the following: >$result = @mysql_query("SELECT * FROM tblproducts WHERE price <= '$maxprice'"); I don't know if your script code already handles this or not, but you should not trust what a user enters and directly include it in a MySQL query. This can leave your script vulnerable to MySQL injection attacks. I would modify the above query to the following to prevent this: >$result = @mysql_query("SELECT * FROM tblproducts WHERE price <= '" . mysql_real_escape_string($maxprice) . "'");
  6. Welcome to the forums, Xantith!
  7. Welcome to the forums, neurogeek!
  8. Welcome to the forums, impleri!
  9. Welcome to the forums, elzee!
  10. Welcome to the forums, AcidStealth!
  11. I don't believe there's anything you can do yourself. When Google re-indexes your web site, it should update what it has in its index and eventually, the text that is no longer in your site will fall out of Google's cache. It may take some time for that to happen though.
  12. TCH servers do not run the "Flash Communication Server MX", nor can you install it, so you would not be able to use your script on a TCH account.
  13. All of those links are working for me on Firefox 1.0.4. Most (if not all) of the links you're having trouble with have a domain of 'us.rd.yahoo.com' in the URL. You might see if you have that domain blocked for some reason, such as by ad-blocking software (like the Adblock extension for Firefox).
  14. I was able to login successfully with the username and password provided but I had to lower-case both of them, and not use a dash at the beginning of either of them. I never saw a "403 Forbidden" page during the time I browsed the site, so I wonder if the 403 error you saw were possibly due to invalid logins...? The thumbnails on the "My Photos" page are dynamically generated by a php script every time the page is requested. The page loads *very* slowly as a result, because there are currently 126 thumbnails the script tries to generate at the same time. Also, the original images are retrieved via a URL instead of a local file system path, putting additional unnecessary load on the web server to retrieve the original images. Where the thumbnails do not appear, an error is occuring in the thumbnail script. From what I could tell, there are two causes of the errors: 1) Most of the thumbnails that do not display reference an original file name that has a space in it. File names with spaces in them are really not a good idea - they just cause too many problems. When the thumbnail script tries to retrieve the original image from a file name with a space in it, the following error is occurring in the script: I suspect this is a problem with the thumbnail script - that it is not expecting URLs to have file names containing spaces in them. I would highly recommend renaming the original jpgs so the file names do not have space in them, by deleting the spaces, or replacing them with "_" or "-", for example. 2) A few of the images uploaded are jpgs that PHP's imagecreatefromjpeg() function does not like. I believe there is something in the format of the .jpg that PHP does not understand. This is the error returned by PHP with such an image: I don't know what you can do with such images, other than perhaps opening them in an image editor and re-saving the jpg file, so the format of the file may be subtly changed to something that PHP's jpg functions can read. Hope this helps...
  15. Welcome to the forums, Deanna! From what I can tell, you are not seeing your photos because the img tags that display them are using bad src links. For example, one of the photos that is not displaying is trying to retrieve the image from this URL: >..\screenshots\fantasy2.jpg If the backslahses in the URL ("\") are replaced with forward slashes ("/"): >../screenshots/fantasy11.jpg ...then the browser will display the picture. You really haven't provided enough information to know why you get a 403 error when you try to upload pictures.
  16. Welcome to the forums, Matthew!
  17. Welcome to the forums, Dirk! The "parameters" part of a URL is known as the "query string", and yes, AWStats is not using the query string when reporting referer links. I don't know if this will work or not (I have not personally tested it), but the following is listed as an AWStats configuration directive: You could try adding the above code to your AWStats configuration file, which should be located at tmp/awstats/awstats.your-TCH-domain.conf on the server. Set URLReferrerWithQuery=1, save the .conf file, then set its permissions to 0444 so that it cannot be overwritten with a default .conf file. Wait for the next run of AWStats and see if the referers now show the query string in the URLs. Hope this helps...
  18. I haven't noticed anything like that, but I don't visit the Yahoo site very often. Can you provide a link to a page where the "yahoo tools links" are dead, and say which ones are not working for you in Firefox?
  19. I don't believe it matters what directory you put the python script in. You could put in your /public_html directory, or even a subdirectory of /public_html. Yes, you need to use an absolute file path to the config.xml file, as well as to the sitemap_gen.py file. Your cron command should look something like this: >python /home/cpanelName/public_html/sitemap_gen.py --config=/home/cpanelName/public_html/config.xml ...assuming config.xml and sitemap_gen.py are in your /public_html directory. Replace 'cpanelName' with your actual CPanel username. Hope this helps...
  20. Welcome to the forums, Katrina!
  21. "Connecting to the server via command line" is what's known as a shell, and shell access is not allowed on TCH servers. You'd need to follow the next suggestion ("Setting up a recurring script") by setting up the script to run as a cron job.
  22. Welcome to the forums, cbkihong!
  23. Welcome to the forums, antandsons!
  24. Add-on domains are not allowed on virtual hosting ("$4/month") accounts. Account usernames (the "log-in" name) cannot be changed. You can request a CPanel-to-Cpanel transfer by submitting a ticket to the Help Desk.
  25. Movable Type 3.17 has been released today:
×
×
  • Create New...