Jump to content


  • Posts

  • Joined

  • Last visited

Everything posted by section31

  1. I'm afraid my request would not merit an open port. I simply would like to use another port besides 80...perhaps some misc port. Something above 1024 that isn't associated with any other protocols.
  2. Where can I get a list of open ports to use on tch servers. I'm trying to do something similar. In the meantime I'll use port 80.
  3. Geez, That was it.... Whats this, the 100th time Raul has helped me out. You deserve an award of some kind. Here is the final code for anyone else that ever needs to do something simliar. ><form action="foobar.php" method="post"> <input type="hidden" name="myarr[]" value="5" /> <input type="hidden" name="myarr[]" value="7" /> <input type="submit" /> </form> This will send a post variable ( $_POST['myarr'] ) as an array, indexed like the following. myarr[0] -> 5 myarr[1] -> 7
  4. nope, just to clarify something...it won't be using php. If there is such a thing, It will be something along these lines <input type="hidden" name="myarr" value="serialized_array" />
  5. Oh man, I just wanted to say this is the best looking theme for invision I've ever seen... Good work. Its extremely easy on the eyes.
  6. This isn't really a script question, but here goes. You know the way you can send hidden variables in a form using the <input> tag. Well, I'm trying to send a hidden array variable. Arrays are normally sent through the <select multiple="multiple"> tag and I would like to send one while hidden. Is there any way of doing something like this. I was thinking about a workaround. I could build the form like normal, and use css tags to make it invisible. What do you think? If you need clarification, Just let me know. I can post an example if neccessary.
  7. Look at your Content-Type header. Change it to image/jpeg here, try this, I made slightly easier to run. ><?php $numImages = 3; // Number of images starting with 1 $imageType = "jpeg"; // jpeg || gif $fileExt = ".jpg"; // File Extension $randPic = rand( 1, $numImages ); // open the file in a binary mode $file = $randPic . $fileExt; $fp = fopen($file, 'rb'); // send the right headers header("Content-Type: image/{$imageType}"); header("Content-Length: " . filesize($file)); // dump the picture and stop the script fpassthru($fp); exit(); ?> Use at your own risk.
  8. this was all a very good read. Whats the best way to limit the file size it parses? I wish cpanel would offer that option as a filter, "Size of email" so I could block anything over lets say 512 K. PS: I wrote a little moblog with the help from this thread.
  9. oh geez...thank you so much... that worked... You could've just said escape all metacharacters except . or * you know
  10. hey, does anyone how I could go about using the find utility using a regular expression. I tried something like this and I have no idea why it doesn't work..I know I'm doing something wrong. I'm trying to find only certain file extensions with this. >find . -iregex ".+\.(html|php)" -print I could always use something like this, but as the file extensions increase, it could be quite inefficient. >find . \( -name *.html -o -name *.php \) -print
  11. I have had this exact same problem like 9 months ago.. I found out it was something I did with my OS. Reason I say that is because no matter how many ftp clients I would try, the .htaccess would still not be visible to the client. Even after I set it to -a (to show all hidden files). I could see it through cpanel and other machines, but not on mine. I just did a clean install of the OS and it finally worked. Til this day, I have no idea what the hell I did that caused that problem.
  12. interesting...does that actually work... So we are allowed to change the php ini settings through the .htaccess file but not through ini_set function? http://us2.php.net/manual/en/function.ini-set.php
  13. ahhhh...i figured out the problem.. It appears I needed to add this header...otherwise it will return a 500 error. print "Content-type: text/html\n\n"; thanks rick...
  14. nope, I should've put this on my first post. I tried changing the permissions...that wasn't the prob.
  15. hm, I'm having trouble getting a basic perl script to run on my server. Anyone want to help me out. Never done this before. When i run the following script >#!/usr/bin/perl print "hello, World!\n"; i get this on my error log. [2004-11-08 00:01:03]: error: file is writable by others: (/home/section3/public_html/cgi-bin/test.cgi)
  16. I'm talking about the Online Status Indicator service... Its been going down frequently the past few weeks.
  17. this server goes down quite often doesn't it?
  18. oh i totally forgot about this...it didn't take a few hours like i thought..more like 2 minutes...just looked at the bbcode.php file in the includes directory. Just letting u guys know that the way to do regexp across several lines is by using the s modifier. http://us2.php.net/manual/en/reference.pcr...n.modifiers.php Its that simple...
  19. so, I'm guessing tch doesn't protect cpanel from brute force attacks.
  20. Not that I ever use the basic http authentication...but in case I were to ever use it. Is there anything easy I can do to prevent from brute force attacks. The only thing I can think of is by using either a flat file or mysql database to keep attempts with ips/times. If fact i use a mysql database for one of my sites for login attempts. Is there any other way?
  21. i'm not entirely sure... but it works on firefox... and the width seems to work on ie....
  22. wow i actually remembered his sig...it was the stupid republican elephant. here it is http://www.totalchoicehosting.com/forums/i...p?showuser=1054
  • Create New...