News:

Click here for Toll-Free Service for your business starting at $2.00 per month

Main Menu
Menu

Show posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Show posts Menu

Messages - x

#16
Quote from: sixthcrusifix on January 18, 2006, 11:01:42 PM
Quote from: x on January 18, 2006, 09:53:03 PM
for 1. and 2. use getimagesize. (www.php.net/getimagesize) have them upload the file, do the check, if it's too big or if it's not got the right type, delete it.

but if they upload a massive photo, you could just have the script resize the photo and crop it a bit

oooh I see cool. But what about image type? should I just use preg_match in teh filename?

it's on that page as well. the function returns $width, $height, $type, $attr

QuoteIndex 0 contains the width of the image in pixels. Index 1 contains the height. Index 2 is a flag indicating the type of the image: 1 = GIF, 2 = JPG, 3 = PNG, 4 = SWF, 5 = PSD, 6 = BMP, 7 = TIFF(intel byte order), 8 = TIFF(motorola byte order), 9 = JPC, 10 = JP2, 11 = JPX, 12 = JB2, 13 = SWC, 14 = IFF, 15 = WBMP, 16 = XBM.

so you just do a wee if statement and check for the number above
#17
for 1. and 2. use getimagesize. (www.php.net/getimagesize) have them upload the file, do the check, if it's too big or if it's not got the right type, delete it.

but if they upload a massive photo, you could just have the script resize the photo and crop it a bit
#18
Support Requests / Re: File Priority
January 18, 2006, 09:47:41 PM
in .htacces you can put a line that is something like DirectoryIndex index.html and that should solve your problems.

you'll have to google it to make sure thats the right code
#19
Support Requests / Re: Email goes down every day!
January 13, 2006, 01:28:49 PM
this is slightly on the same subject.

when my mail was moved from the old plesk server to the new one (at least i think that's the cause), all my filters and settings didn't go with the mail.

is there a way to get this back?
#20
Support Requests / Re: Email goes down every day!
January 11, 2006, 06:25:39 PM
i use the same system and i never have problems.

i only ever use webmail tho.
#21
Support Requests / Re: 2 site don't work
January 10, 2006, 09:33:46 PM
do we know the reasons for these reboots yet?
#22
Support Requests / Re: 2 site don't work
January 09, 2006, 09:10:36 PM
if anyone is trying to find the cause of this stuff. the same thing is happening right now.
#23
Support Requests / Re: My Catchall is rejecting mail!
January 07, 2006, 10:57:00 AM
i dont think it's the catchall. i think it could be yahoo but because in the "to" bit of the email is doesn't have yahoo anywhere it is flagging it as spam.

i dont actually use catchall for my mail so i could be off.
#24
Support Requests / Re: 2 site don't work
January 06, 2006, 08:59:47 PM
i did notice that the whole freepgs server was offline for at least a few minutes yesterday. maybe same thing happened today
#25
google tells me it's wordpress (http://codex.wordpress.org/Database_Description)

thats as bout as much as i can help
#26
Support Requests / Re: htaccess redirect not working
January 03, 2006, 05:25:35 PM
if any one else has this problem it was just me being stupid and was simply solved by directing it to a file.

Redirect /xyz.php http://www.domain.com/xyz/index.php
#27
Support Requests / htaccess redirect not working
January 02, 2006, 08:47:26 PM
right, i dont quite understand this because it is so simple.

i have an htaccess file with the following in:

Redirect /xyz.php http://www.domain.com/xyz/

i deleted the xyz.php file and made a folder xyz/ with an index.php file in it.

i get a 404 error everytime i go to xyz.php and it doesnt redirect me to xyz/

any ideas?
#28
Support Requests / Re: forum won't setup!
December 25, 2005, 08:20:26 PM
works for me
#29
Support Requests / Re: htaccess rewrite
December 17, 2005, 01:40:43 AM
thats smashing thanks  :)
#30
Support Requests / htaccess rewrite
December 16, 2005, 11:42:35 PM
i'm trying to create a rewrite rule so that when someone tries to access a file in a directory (say http://www.domain.com/directory/file.html) it does a rewrite and gives them the contents of a specified php file with a that uses a query string (say http://www.domain.com/phpfile.php?file=file.html).

I wrote the following:

RewriteEngine on
RewriteRule ^/directory/(.*)$ phpfile.php?file=$1 [nc]

but i just keep getting a 404 error when i try http://www.domain.com/directory/file.html but it works fine when i try http://www.domain.com/phpfile.php?file=file.html.

any ideas? thanks