Jump to content


  • Content Count

  • Joined

  • Last visited

Everything posted by tr4nc3

  1. I'm not sure if this is really the correct place to post this, but I'll give it a shot.. I noticed the release of Gallery v2 posted today on /. and decided to give it a go by installing the minimal version. The installation process looks to be very good, but I've paused at step 3. With our reseller account I would like to try and setup a "Multisite installation" of Gallery 2. This is a quote from the install script's step 3... With our reseller account, on a shared server, can we install the codebase at our main website, and host the gallery install for any number of the websites
  2. Can anybody tell me why my "User Defined Mime Types" in cPanel keep on disappearing about once a month????? This has exposed database passwords to the net twice now. I guess I should have the passwords in an included file, but really, my defined types should stay defined and shouldn't just disappear. Btw, I'm setting a type of: "application/x-httpd-php" for "rss"
  3. Thanks Don! It's funny, the same commands that didn't work last night, are working today.
  4. I'm attempting to resize images using Imagemagick and PHP. Anyone know what the path to convert is? Here is a sample of a command I've tried with both system() and exec() convert -geometry 100 x 100 temp/thumb_pic.jpg temp/thumb_pic.jpg I've also tried.. /usr/local/bin/convert -geometry 100 x 100 temp/thumb_pic.jpg temp/thumb_pic.jpg system() returns in error for me. I can't seem to find any information on TCH about the whereabouts of ImageMagick. help? Thanks, mike
  5. your welcome.. Happy to hear you like it. Make sure to look over the sourceForge fourms for this script. It gets really tricky after you process the upload and try to do a header redirect, sessions, or cookies. It's worth it though.. lol cheers
  6. Thanks Don. I actually had tried that program first before setting out on my journey installing mega upload. It has an upload limit of 500k so it won't work very good for my purposes. (I'm having admin users upload clients flash (*.FLA) sites to our server. And they can be up to 10 megs.) I managed to get the 1.35 version of Mega Upload to work with no problems at all. I guess in the most recent 'experimental' version (1.42) the script doesn't POST back data to the PHP script. It instead sends GET variables, but mean time PHP deletes the temporary uploaded POST data.. lol It's actually
  7. HA! Well, if I'd listen to the author... I'm always trying to use the newest version of anything.. It works without a hitch in 1.35. Big thanks to TCH-Robert and dsdemmin because I think they were trying to help me. Here is a link to 1.35 if your still interested in this script. http://easynews.dl.sourceforge.net/sourcef...oad-1.35.tar.gz /smacks self for not trying the 'stable' version before asking for help at TCH.
  8. Ok.. I'm really close to giving up on this one. I've been trying to install what supposedly is a simple script to install for the past 3 hours. It uses a combination of Perl and PHP to show a progress bar during a file upload. The files are being created in the temp directory that I set, but they are not being copied/moved after the upload is complete. I have a strong feeling that the CGI script can't POST form data back to the PHP script. Because I check $_FILES['file'], and 'tmp_name' and they are blank. The progress bar works perfect. If I could only get the rest of the script t
  9. Ohh yeah you wanted just the pages and not all the files. Well this PHP script will give you the count of all the .html, .htm, and .php files in your site. ><? function direcho($path){ global $a; if($dir=opendir($path)){ while(false!==($file=readdir($dir))){ if(is_dir($path.$file)){ if($file!='.'&&$file!='..'){ direcho($path.$file);}}else{ if(strstr($file,".htm") || strstr($file,".php")){ $a++;} }}closedir($dir);} return $a;} echo direcho('./'); ?>
  10. Put this php script in the root dir of your site and run it. It will return the total number of files. ><? function direcho($path){global $a;if($dir=opendir($path)){while(false!==($file=readdir($dir))){if(is_dir($path.$file)){if($file!='.'&&$file!='..'){direcho($path.$file);}}else{$a++;}}closedir($dir);}return $a;} echo direcho('./'); ?>
  11. Wow, I was starting to think I'm the only one using CuteFTP Pro. I've used a lot of others and CFTP PRO is by far the best in my opinion. One of my favorite (and most used features) is the Folder Monitor. (Or transfer engine.) It is a feature that sits in the system tray and monitors a folder for change every 5 or X seconds. Once it detects a change, it's automatically connects to the FTP acct. you have it setup for and uploads the changed files. This allows me to be more productive since I don't ever have to manually upload something. I just wait 5 seconds and it's there. Sometimes
  12. Does it happen to be new memory that you just installed? It might be a sign of faulty memory. http://www.memtest.org Also maybe, "re-seating" the memory might help. (Uninstall/reInstall) That's about all I can suggest..
  13. I looked over that link. So I guess it is just a behavior of HTTP. Which is weird because I hadn't experienced this problem until just recently. But it's good that I found and learned about this now because I'll know not to do the same thing in the future. The code I posted works great. It just appends the PHPSESSID to the end of the URL. So once your in the members area your set.. I guess as long as you don't do anymore header redirection once your inside. Which I just thought of.. and my application happens to do a header redirect after every form is submitted. I checked and I ge
  14. I was using a system of logging on users with sessions. The login form would submit to login.php that would lookup the password in the DB and register a session if the PW matched. If it registered a session it would then preform a header redirect to the homepage of the member area. Well this system worked fine ever since I implemented it 2 months ago. But just today I noticed that it was no longer working. My session variables were not being stored. I ended up bugging the guys at the help desk about it because I thought it must have something to do with the server side of things. (Sin
  15. You might know that probably the only metatag that google will even consider is the description tag. (also obeying robots commands.) Also, I noticed you don't have keywords tag. There are still other search engines that use the keyword tag. The robots tag ALLOW is wrong. Try searching google for the following. name="ROBOTS" content="ALLOW" and name="ROBOTS" content="FOLLOW" The first link has 1 match, the 2nd has 1,050. Considering the search results from google, I'm pretty sure that ROBOTS ALLOW isn't correct. Also, I'm quite positive that you don't have to gi
  16. Well I gave up at first. Since I had a working database on my local machine. But lately the volume of work I have demanded that I design the sites on TCH's servers. So I had to get Dreamweaver to connect to the DBs here. It turns out it's not that bad. Make sure you setup all your UN/PW info in Site Definition. Local Info: --------------- Site Name: ? Local Root Folder: ? etc, etc... Remote Info: --------------- Access: FTP FTP Host: ftp.****** Host Directory: /www/ Login: username Password: ? Testing Server: ----------------- Server Model: PHP MySQL Access: FT
  17. I read your post on OMGN. The first thing I thought about was why didn't you use an automated task to do that? It's really not that hard to update and enable a task once you have it setup. I don't think the task scheduler works with command line switches very good, so create a batch file and run the batch file to shutdown your computer. Hell, that 3rd part app could have just been a nasty lil' ViRii.. who knows.. sleep.bat ---------------- c:\windows\System32\shutdown.exe -s -t 0 or actually you could make a link to this batch file on your desktop and not even use a scheduled task
  18. I use firefox on my local computer for creating thumbnails of URLs via a webinterface from a remote computer. The reason I use FireFox is because of the PopUp blocking. (If my routine get's a popup (with IE), the VBSCRIPT can't close all the windows and then the whole 'process' doesn't work to good after that.)
  19. You can access the logs via FTP ftp://USERNAME_logs:PASSWORD@ftp.YOURDOMA.../YOURDOMAIN.TLD I'm not familiar with StatsNow, but you could setup a cron job to run a PHP script that will download the logs from the FTP and save them in the same directory with your script. (Then you wouldn't even need an absolute path.) I'm sure you'll figure out something if you determined enough. Just know that you can have access to your logs on demand. You just have to get a 'local copy' of them first.
  20. Actually guys... You can forget about having to use PERL for this. You got me all bummed out thinking I wasn't going to be able to get this done! You can access anybodies logs from anywhere. (As long as you have their UN & PW) Just ftp to: ftp://USERNAME_logs:PASSWORD@ftp.YOURDOMA.../YOURDOMAIN.TLD I needed a script that would, as you know, that would keep my database updated with the 'Bandwidth usage' of all of my resold accounts. (So I didn't have to try and make sense out of Cpanel's usage chart.) FYI, this is how I do it... A PHP script, triggered by a CRON
  21. I really needed access to rotated log files. But now I don't.. Someone please delete this message?
  22. Ahhh man! Yeah it's true, dammit. I can get in fine with any mozilla browser. That is just super lame! Ohh well.. Thanks for the info. I might as well right a note to M$ asking them to stick to at least this one standard. Thanks Raul
  23. Yeah same here.. But my upstream is limited at 35kb/sec so that is kinda slow sometimes.. Can never have a connection that's TOO fast.. Thumbs Up Just thought I'd ask to see if it was possible. I've found that many things are possible with TCH, but not this I guess.. Overall.. NOT a big deal. TCH ROCKS!!! Rock Sign
  24. I think I remember seeing a thread here once where you could login to cpanel like so... http://username:password@******/cpanel or http://username:password@******:2082 I try that and I get 'Invalid syntax error'... I would like to setup an easier way to access the cpanel of my accounts. Any ideas? Thanks!
  • Create New...