TweezerMan
Members-
Posts
1,763 -
Joined
-
Last visited
Everything posted by TweezerMan
-
Welcome to the forums, fleng!
-
They are different, because they're doing two different things. The code I suggested was for redirecting pages requested from links that were clicked on another site. It looks at the referer - if the referer is a link from the "bad-domain", the server will serve the alternate page instead. The code that was already in the .htaccess file is to prevent hotlinking. It looks at the referer, and if it is not blank or a link from 'your' domain, *and* it is a request for an image file (file has an extension of jpg, jpeg, gif, png, or bmp), it returns a "403 Forbidden" error message. (Now I have an idea about what might be wrong with the code I suggested...off to do some more testing...)
-
If I try to change the drive letter of the system volume on my computer, the following message pops up in a message box: I found this article at the MS Knowledge Base: How to restore the system/boot drive letter in Windows The article contains a number of warnings - read the article thoroughly and use extreme caution if you decide you want to try the steps described in the article.
-
Welcome to the forums, alastair!
-
Welcome to the forums, Ivette!
-
If you're going to put the mod_rewrite lines in the .htaccess file that's in your /public_html directory, you'd need to modify your rule so it's working with the full URL that mod_rewrite is going to see. You probably should also have a RewriteBase directive to tell mod_rewrite what directory its working in: >RewriteEngine On RewriteBase / RewriteRule blog/entry/(.+)/(.+)(/?)$ blog/entry.php?id=$1&view=$2 You don't have to use this, but this rule is a little more specific and perhaps perform a bit better matching: >RewriteRule blog/entry/([0-9]+)/([^/]+)/?$ blog/entry.php?id=$1&view=$2 You could also put the mod_rewrite directives in an .htaccess file in your /public_html/blog directory, changing the RewriteBase and RewriteRule to reflect the directory they're operating in: >RewriteEngine On RewriteBase /blog RewriteRule entry/(.+)/(.+)(/?)$ entry.php?id=$1&view=$2 You shouldn't need a /public_html/blog/entry directory at all. Hope this helps...
-
You didn't edit the actual form that I was referring to in my last post. That form is in the file /public_html/forms/use/MembershipApplication/form1.html, and within that file are the input box fields you need to edit to match the PHP script's variable names.
-
Add the following to the .htaccess file in your public_html directory: >RewriteEngine on RewriteBase / RewriteCond %{HTTP_REFERER} bad-domain.com [NC] RewriteRule .* alt-file.html If a visitor comes to your site by clicking a link on the 'bad-domain.com' site (so the domain name appears somewhere in the referer string), then the visitor will be redirected to alt-file.html (in your public_html directory), no matter what page the link was trying to go to. Replace 'bad-domain.com' with the actual domain name, create an alternate page to display and upload it to your public_html directory, and whatever name you use for the alternate page, replace 'alt-file.html' with the name of that page.
-
There's been some issues with the latest CPanel update and MT that appears to be causing problems like what you're seeing. I'd suggest updating your Help Desk ticket (add another post) and include the link I posted above. FWIW, there's also posts on the MT Forums where the same issue is occurring at other hosts.
-
Rather than renaming files on my own site and break my own permalinks, I'd probably set up something with mod_rewrite that would be triggered when the referer is from the other site.
-
I'm not really clear on what is actually happening, and what you would like to do about it. You can't prevent anyone from merely linking to your site. I'm not sure what this means. Is this person doing something in addition to linking to your site?
-
I don't know about the WordPress side of the instructions, but the MT side is just a straight export of the entries from mt.cgi. MT 3.15 exports in the same format as MT 2.63, so that shouldn't cause you any problems.
-
Welcome to the forums, infocen!
-
On the actual form, the input boxes have names that correspond to the variables in your PHP script, and you need to change the names on those input boxes to match the variable names you changed. Example: ><font face="Verdana"><input type=text name='2ndBestSkill'>*</td></tr><tr><td height="30" width="55" bgcolor="#EFF3F7" bordercolor="#FFFFFF"> You need to change the name='2ndBestSkill' so that it matches the PHP variable name - 'Skill2ndBest'. Repeat for the other 3 form fields.
-
The variable names $2ndBestSkill and $3rdBestSkill (as well as $4thBestSkill and $5thBestSkill) are invalid - variable names can't start with a number. PHP variable names can have numbers in them, but they must start with a letter or underscore character. I'd suggest renaming them as $Skill2ndBest, $Skill3rdBest, $Skill4thBest, $Skill5thBest.
-
Sorry - I don't have any experience with 'dynamic PDF creation'.
-
There are certain characters that need to be encoded if they appear within XML data. You have one of those characters in your <link> element data and it's not encoded, which is why your browser complains about your feed being 'malformed'. These are the characters that need to be encoded (replaced with its corresponding HTML entity) in XML data, and what they need to be encoded as: >& - & < - < > - > ' - ' " - " In your case, you have an unencoded '&' in the URL. If you replace the '&' with '&' in your <link> elements: ><link>....../blog/entry.php?id=23&view=simple</link> ...your browser should accept your feed as 'well-formed'. Hope this helps...
-
The PHP functions you're referring to rely on the PDFlib library, which 1) is not a part of the official PHP distribution, so it can't be installed "by default", 2) it requires compilation on the server, 3) it has a hefty price tag on its license. There are some alternatives to PDFlib listed in the answer to this PHP FAQ:
-
Your example is basically a script located here: /home/cpanelName/public_html/exampledir/myscript.php ...with include '../../myconnections.php' The error message is indicating that your script is looking for myconnections three directories above your script, not two: Three directories above /home/cpanelName/public_html/exampledir is the /home directory, which outside of PHP's open_basedir() restrictions, not to mention that /home is a directory that you don't have permission to access nor should be trying to access. You need to locate the line in your script that is trying to include the myconnections.php file by going up 3 directories and change it so that it is only going up 2 directories, like what you posted in your "example".
-
I agree that the problem is most likely related to your video card. But I'm not sure that it is the hardware - it could also be due to some problem with the video card's driver (software). If the driver is pretty old, I'd probably try updating the driver first and see if that might fix the problem. Since Dell is replacing everything though, you're going to get a new video driver to go along with your new video hardware. As to why you only see the effect on your homepage: The browser is doing something unique to trigger the effect when it renders your homepage that it does not do on any other page you've looked at.
-
The first one (target="new") causes links to be opened in a window named "new". If there currently is no open window named "new", the window is created. Subsequently clicking on links with target="new" causes them to be opened in that window. The second one (target="_blank") cause links to always be opened in a new window. Note that this is not the same as opening links in a window named "new".
-
Galleon contacted me via IM about his problem. He was able to successfully connect to his database once he had the correct port (3306) and the correct database and username (cpanelName_database and cpanelName_username). Welcome to the forums, Galleon!
-
Yes, that is the correct meta tag.
-
It looks to me like you almost have it sorted out. You shouldn't have a <div> tag inside of an <a> tag though - I'd suggest re-arranging the tags like this: ><td><div align="center"><a href="http://www.queenpictoria.com/CP/CP1.html" target="_blank"> <font face="Arial" size="1" color="#ffff00">CAMERAS<br>ACCESSORIES</font></a></div></td>
-
If you want to search for words instead of a phrase, separate the words with 'AND'. Searching for 'phpbb AND 2.0.16' would have located the prior thread.
