TweezerMan
Members-
Posts
1,763 -
Joined
-
Last visited
Everything posted by TweezerMan
-
You can turn off 'register_globals' by adding the following to your .htaccess file: >php_flag register_globals off
-
I've never found ClearType fonts that helpful on my PC, but I have a regular 17" monitor. The quick help on that settings screen (click the "?" then click on the drop-down box where you can select 'ClearType') shows this in the tooltip: Your mileage may vary.
-
Welcome to the forums, aias!
-
I've heard them referred to as 'cyber squatters' and 'domain squatters'. Other than wait for the domain registration to expire and hope the company does not renew it, not really. What keeps you from 'wrestling' a domain name away from such a company is also what keeps someone from wrestling your domain name away from you.
-
Help With Email: Simple Questions From A Beginner
TweezerMan replied to wooly2005's topic in CPanel and Site Maintenance
Welcome to the forums, wooly2005! -
Welcome to the forums, Eloy!
-
The math is a little off here - 223 530 k = 218.29 megabytes (1 MB = 1024KB, not 8192 KB). Each user has their own preferences, but I'd be concerned about e-mail taking up over 200MB of disk space on the server.
-
Welcome to the forums, Chad! The 'browscap' PHP setting can only be modified from the php.ini or the server config file - it cannot be modified from an .htaccess file. This is a limitation imposed by PHP.
-
Welcome to the forums, Greg!
-
I was thinking that maybe it got created when you first tried to run it (the script wasn't uploaded in ASCII mode, and you received the 500 Internal Server Error). I was going to suggest that you delete the file and see if it comes back. Glad to hear that it's working now!
-
Yeah...If MySQL Front works, the problem isn't with the server, and there isn't anything the Help Desk can really do. I guess that would depend on what DreamWeaver does with the page and what's actually in it.
-
I don't understand what you mean. Is the randomlink.inc that is being modified not in your public_html directory? Some more details about what you're seeing would be helpful. Something I thought was a good idea, but is clearly not. You can fix this by editing line 48 of the script from this: > if (!fwrite($fh, $randNum . "\n")) { ...to this, which should remove the extra line break: > if (!fwrite($fh, $randNum)) {
-
Maybe I'm stating the obvious here, but I thought that all Linux firewall apps were front-ends to iptables.
-
The actual error should be noted in the Error Log in CPanel, but my first guess would be that you did not change the permissions on rand.cgi to 0755 before trying to access it in your browser. This is not a good idea. As a .cgi file, the script runs as you (your user ID, your user permissions), so it should be able to easily rename directories and write files in your account. As a .php script, the script runs as the user 'nobody', and will not be able to rename any directories unless they have 0777 permissions, nor modify any files in your account unless they at least 0666 permissions.
-
Have you tried using MySQL Front to connect to your domain on server 63? If you have, and you can connect, that would seem to indicate a problem with the settings in DreamWeaver, not the MySQL server. If you cannot connect, it could indicate a problem with the MySQL server, but it may be that you're still not using the correct settings to connect in MySQL Front or DreamWeaver. The settings I indicated above are the correct ones to use. Unfortunately, that doesn't really prove anything. Since you have to add your CPanel username to the MySQL username and database name to connect to the TCH MySQL server, you should have also had to change the username and database settings in DreamWeaver when switching it to use the localhost MySQL server. The forum moderators do not have access to your CPanel or the TCH servers. If you really believe the problem is with the server, you'd need to submit a ticket to the Help Desk to get the issue resolved.
-
Do We Have Mod_expires? What About Other Mods?
TweezerMan replied to burntelectrons's topic in Looking for......
Welcome to the forums, burntelectrons! -
Welcome to the forums, Zaventh! In your CPanel, in MySQL Databases, I'd suggest checking to see that you've added your MySQL user to the MySQL database (it's a common step that users often forget to do). Again in CPanel / MySQL Databases, Access Hosts (near the bottom of the page), I would not recommend allowing access from anywhere (wildcard of '%'). I usually recommend only allowing access from your PC's IP address - it's more secure. In DreamWeaver, you should use the following settings (just going by the TCH Help page you linked to): MySQL Server: your-TCH-domain.com User Name: cpanelName_mysqlUserName Password: your-mysql-db-password Database: cpanelName_mysqlDatabaseName ('cpanelName' is the username you use to log into CPanel.) Try those settings and see if they work any better for you.
-
Someone I know and respect recommended SmoothWall - http://www.smoothwall.org/. Added note: It appears that SmoothWall requires a dedicated PC to run on to function as the firewall. If you're not looking use a dedicated machine as your firewall, this product may not be right for you.
-
Welcome to the forums, Eric! Unless IPB 2.0 is released under a free license, I doubt TCH would provide it free to users. If you want IPB 2.0, I'd say purchase it yourself. You would need to contact the Help Desk and ask them to add it to your CPanel. Note that the CPanel installer won't install IPB 2.0 on your account - it will install an older version.
-
As Pendragon said, a script to perform the task of renaming the directory and writing that name into the randomlink.inc file is certainly possible - in Perl or PHP. The script by itself won't be automated though - for that, you need to run the script from a cron job. I have two suggestions for changes to Pendragon's code: 1) Since the script needs to run from a cron job, it should output *nothing* unless an error occurs. Printing "Reading $my_file", "Renaming directory", and "Updating $my_file" will cause cron to send an e-mail every time it runs the script. 2) If the directory is successfully renamed, but then the write to randomlink.inc fails, the directory should be renamed back to its old name. Otherwise, the directory name and the name contained in randomlink.inc will no longer match. I've attached a PHP script (rand.cgi) that pretty much does the same thing as Pendragon's script. To use the script, you'll need to do the following: 1) Edit the three variables at the beginning of the script, particularly $wwwDir - it should be the path of whatever directory contains randomlink.inc. 2) The script can be uploaded into any directory you wish - it does not have be placed in your public_html directory. If you want to be able to run it manually, it should be in the public_html directory or a subdirectory under the public_html directory (so it is accessible to your browser). 3) After uploading the script to your server, the script needs to be executable - change its permission to 0755. 4) The "random" directory (such as public_html/23234) needs to already exist, and the randomlinks.inc file (or whatever file name you use in the $randIncFileName variable) also needs to already exist, and contain the name of the "random" directory ("23234"). 5) If you want to test the script, you can do so by going directly to the rand.cgi script in your browser. If it works, you will see only a blank page displayed. You'll need to use CPanel's File Manager or your FTP program to see the directory name and that name in randomlink.inc changed. 6) To automate the script, you'll need to set up a cron job in your CPanel to run it at the interval you want. For the "Command to run", you just need to enter the full path to rand.cgi: >/home/cpanelName/public_html/rand.cgi (You should not need to prefix the file name with 'php -q'.) I think that covers about everything! rand.zip
-
Here's my shot at it: >RewriteEngine On RewriteBase / RewriteCond %{HTTP_HOST} ^www\.oldsite\.biz$ [NC,OR] RewriteCond %{HTTP_HOST} ^oldsite\.biz$ [NC] RewriteRule ^(.*)$ http://www.newsite.com/$1 [R=301,L]
-
Google actually lists the program as "Picasa Photo Organizer", which I would consider to be a program with somewhat of a different purpose than IrfanView.
-
It depends on what you're doing. On a general level, I guess I'd say, no, IrfanView is not better than Adobe PhotoShop or Paint Shop Pro. But IrfanView is free, where as PhotoShop and Paint Shop Pro both cost money. IrfanView is a small program, while the other two applications are much larger. I view IrfanView as a very nice image utility (one that I use fairly often), and PhotoShop and Paint Shop Pro as full-blown image editing applications.
-
IrfanView is a lightweight image editor, viewer, and converter. For a free program, it has impressive capabilities. One feature I like is batch converting a whole directory of images to a different format, or resizing them all with one operation. If you want more info about what IrfanView does, check out IrfanView's web site.
-
You said you received a 500 Internal Server Error using that code in your .htaccess file. I'd suggest looking at the Error Log in your CPanel and see what the error message is - it should indicate what is wrong with the .htaccess file.
