Web Development • vexiphne@gmail.com
Im kat, 27 years of age, a tinkerer at heart, and obsessed with all things art and computers.
- 23 Followers
- 36 Following
- 24 Favorites
- 9929 Pageviews
- 283 Comments
- Level 5 Strider
- Online Jan 8th, 2009
- Joined Jun 24th, 2007
- Copy Link:
- SN Code:
- FacebookTwitter
LostEagle
come back.
Jan 21st, 2011 Replyvex
awake
Jan 8th, 2009 ReplyStoryoftheRealms
Uhhhhh
Jan 30th, 2008 ReplyOkay, I'm doing the file uploading thing, and it works dandy. Except I want to limit the file to: .rar, .zip, .mp3, .wav, .ogg, .avi, .mov, .wma, .mpeg, .mpeg4, .divx, .jpg, .png, .gif, .bmp
Would I have to use: $_FILES['file']['type'] == "image/jpg"; etc. on all of those in a if else statement?
StoryoftheRealms
Or could I split the file extension from it (since I am renaming the filenames to random names) and use that to check it? (which way would be better?)
Jan 30th, 2008 Replyvex
you need to check the mimetype. anyone can fake a file extension
Jan 30th, 2008 ReplyStoryoftheRealms
Okay, I'll switch my searching to that.
Jan 30th, 2008 ReplyStoryoftheRealms
Actually now that I am looking at it, wouldn't the code work either way. Because using: $_FILES way the browser needs to know the extension, where as using my method of extracting the extension then putting it up against the limiters, then not accepting it would make sure that the extension couldn't be made entirely?
Jan 30th, 2008 ReplyOr am I COMPLETELY and UTTERLY wrong in this situation?
vex
/sigh
Jan 30th, 2008 Replyi have a image.exe , i rename it to image.jpg
you split the name looking for ".jpg", my EXE FILE gets by because it is renamed.
you HAVE to use mimetype if you're only allowing specific filetypes.
vex
http://www.php.net/manual/en/function.mime-content-type.php
Jan 30th, 2008 ReplyStoryoftheRealms
Oh OKAY! Except a .exe file wouldnt be executable as a .jpg, but a virus would. SO NEVER MIND! I seen the mime type before, didnt need a link to it LOL, was just wondering if my method could work.
Jan 30th, 2008 ReplyI owe you more money... GOD DAMN THE WORLD! (Gotta only ask when I absolutely need it now... I shall prevail)
vex
here's another link, seems the other function is being deprecated
Jan 30th, 2008 Replyhttp://www.php.net/manual/en/function.finfo-file.php
StoryoftheRealms
Yeah, UHHH, the other function seems to be in use alot more. Dreamweaver doesn't even know that the heck kinda function that is, neither does my server know what: finfo_open is. Must be a newer PHP version or something?
Jan 30th, 2008 Replyvex
use whatever works then ;)
Jan 30th, 2008 ReplyStoryoftheRealms
Figured out whats missing. PECL, its an extension addon for PHP. I asked my webhost if they add it, or if I do.
Jan 30th, 2008 ReplyThanks for the HELP! Again
vex
you should sign up to pownce.com (my page is pownce.com/vexiphne) and message me there. Shadowness is starting to spam me emails even when you don't comment.
Jan 31st, 2008 ReplyStoryoftheRealms
OKAY! (begins typeing more and more and more things)
Jan 31st, 2008 ReplyStoryoftheRealms
It seems theres alot of spam joining Shadowness now. Wonder if Meng knows, because most of it is being posted on his account. (7shadows)
Jan 29th, 2008 ReplyAlso I asked Meng awhile ago where you get the info. code to get info. from pictures, and I went to check but I couldn't find your reply?
(just need link something in the PHP website)
vex
no, meng doesn't know. he hasn't been on the site in almost a month.
Jan 29th, 2008 Replyand huh?
I emailed you my paypal btw.
StoryoftheRealms
I knwo I sent the money. Hope it went to the right person LOL.
Jan 29th, 2008 ReplyWhat I am talking about is the text on the side of images that tells you what camera took the picture etc. (You gave me a link on Meng's page when I asked him)
Also where is Meng? He's the soul of Shadowness.
vex
dunno where he is ;) do a search for php EXIF data.
Jan 30th, 2008 Replyand yep i got the $ - thank you very much ;)
StoryoftheRealms
No problemo!
Jan 30th, 2008 ReplyHmmm we shall team up and find him. I'll start by spamming his email with porn... I mean.... UHHHH
THANKS for the EXIF data, thats what it was!
vex
-has carpal tunnel from Guitar Hero 3
Jan 19th, 2008 ReplyTricks
// ----> Hacking Database Starting <---
Jan 18th, 2008 Reply Staff - need help? PM me :DXD
http://www.freelancetipster.com/hourlyrate/ <--- you should check this out ;)
// -----> Stop Hack <----
StoryoftheRealms
hacking database? I r confused
Jan 18th, 2008 Replyvex
he's saying i need to charge you an hourly rate lol
Jan 18th, 2008 ReplyStoryoftheRealms
That would makes sense! I would pay ya, but I dunno how? Take Mastercard?
Jan 26th, 2008 Replyvex
rofl if paypal takes mastercard then i take mastercard ;)
Jan 26th, 2008 ReplyStoryoftheRealms
True dat! How much you want?
Jan 26th, 2008 Replyvex
oh god i dunno, however much you think im worth :X
Jan 26th, 2008 ReplyStoryoftheRealms
Over 9000!
Jan 26th, 2008 ReplyYou've helped out quite abit. I shall pay you 50$+ or something. Not sure yet. I don't have much thou. I'd pay you 1000$ if I had 10,000$
vex
Any amount is good for me :D
Jan 26th, 2008 ReplyStoryoftheRealms
Just gotta wait for money to transfer, then buy coda. Then you get 50$ or closes to wats left.
Jan 26th, 2008 Replyvex
sounds good to me :D
Jan 26th, 2008 ReplyStoryoftheRealms
Okay moneys transfered I can give you 50$. LOL, just need ur paypal thinggy majiggy
Jan 28th, 2008 ReplyStoryoftheRealms
Hey vex I'll be on IRC in the morning (7-9hrs from now) Can you meet me there? Just need a question on how to use mysql_num_rows to add the amount of rows together then echo it. Unless you can answer it here?
Jan 17th, 2008 Replyvex
echo mysql_num_rows($result);
Jan 17th, 2008 ReplyStoryoftheRealms
well ya I know that. I mean I have 2 different tables. I need both of their info. from mysql_num_rows to be added together.
Jan 17th, 2008 Replyvex
echo mysql_num_rows($result1) + mysql_num_rows($result2);
Jan 17th, 2008 ReplyStoryoftheRealms
$username = $_SESSION["username"];
Jan 17th, 2008 Reply$idsql = mysql_query("SELECT ID FROM Accounts WHERE Username='$username'");
$id = mysql_result($idsql,0);
$dissql = mysql_query("SELECT ID FROM DevComments WHERE UserIDto='$id' AND Read='No' AND Part='comic'");
$updsql = mysql_query("SELECT ID FROM DevUpdates WHERE UserIDto='$id' AND Read='No' AND Part='comic'");
Whys that not working??
It says my mysql_num_rows are invalid.
??? any help?
vex
well if your myqlnumrows are invalid its because your query has an error in it. try plugging it into phpmyadmin or echo mysql_error to find out why
Jan 18th, 2008 ReplyStoryoftheRealms
WELL that was dumb. I use the phpmyadmin to check it, and what I got was:
Jan 18th, 2008 ReplySELECT `ID` FROM `DevUpdates` WHERE `UserIDto`='$id' AND `Read`='No' AND `Part`='comic'
So I tried it with the ``'s and waddya know it works... WEIRD
vex
good! (......... post paddng ----------- )
Jan 18th, 2008 ReplyStoryoftheRealms
Heya vex,
Jan 10th, 2008 ReplyOkay, now that I am done 1 of the 3 website I am making for my own websites, I need 3 things, one of them probably just needs a link to a resource on how to do it.. Okay here it goes:
1. Uploading media/duplicating files for directories. How do I do this exactly? (this one is the one where I can probably do with a resource)
2. Regarding the duplicating files, once the files are duplicated how can you make it so the php edits the file contents (ex. your making multiple pages but one line of code needs to be changed so that it grabs from a different area?)
3. Okay, this one is probably easiest then all of these. Okay that mysql_fetch_array, it puts them into a list. How could I make it so that every 2nd one is a different color etc.? Kinda like on the eye (on shadowness) how one is black and one is grey then the next is black etc.
Any help with these, even if its just a resource or something would be appreciated. Other then these I can't think of anything else that I would need besides how to render html within a text box to create a WYSIWYQ editor but that can wait for now.
ALSO, since your EXTREMELY helpful, I will put anything on my website (links to your website, or even comments in CSS/PHP/HTML) as long as its okay. LOL no pr0n.
So thats all, THANK YOU VERY MUCH!
vex
im in IRC :P
Jan 10th, 2008 ReplyStoryoftheRealms
WOW 11 days that amazing LOL. ANYWAYS quick question regarding the array thing.
Dec 30th, 2007 ReplyOkay for the links I am using say there were off the site (like a external site) now based off your code it doesnt seem to work.
while ($link = mysql_fetch_array($linkresult)) { echo "<a href="".$link['url'].">".$link['name']."</a><br />"; }
(thats urs) I made it work somewhat (had to fix a few things) but for a website external it doesnt work.
while ($link = mysql_fetch_array($comics)) { echo '<li><a href="http:"'.$link['ComicLink'].'>'.$link['ComicName'].'</a></li>';
I tried that but it doesnt work either. not a thing happens. Any clues?
vex
i need to know what your query looks like, as well as what is echoed when you do $link['ComicName']
Dec 30th, 2007 ReplyStoryoftheRealms
$comics = mysql_query("SELECT * FROM WebComics WHERE ID>'6'");
Dec 30th, 2007 ReplyThats my query. Reason its >6 is because the 1-6 are reserved for other things.
just realized that the code didn't paste properly.
go here: http://www.storyoftherealms.com/query
The html codes in what I pasted came up as links.
vex
what does your table look like ?
Dec 30th, 2007 Replywhat's your error ?
StoryoftheRealms
It doesnt give me any errors whatsoever. LOL I just want it to link to my main page/different page on my website because unfortunately when you use it it can only link to pages that are in your folder.
Dec 30th, 2007 Replyvex
ok wait, what are you trying to do ?
Dec 31st, 2007 ReplyStoryoftheRealms
Well I am just echoing comics which are based in different folders, not on the main page. That I can do easily, its just if a member comes and links it to his OWN site, it doesnt work.
Dec 31st, 2007 Replyvex
im still not sure what you're doing. you want to echo a bunch of links from your db onto your website, but it changes based on the page you're looking at?
Jan 1st, 2008 Replyvex
Im on IRC btw
Jan 1st, 2008 ReplyStoryoftheRealms
hey Vex just wondering: could you point me to a link or something that would show how to embed images into a php email?
Dec 18th, 2007 Replyvex
as an attachment or send as an html email ?
Dec 18th, 2007 Replyhttp://www.goodphptutorials.com/out/Send_an_Email_Attachment_with_PHP
http://www.webcheatsheet.com/PHP/send_email_text_html_attachment.php#html
StoryoftheRealms
HTML was more what I was looking for. Thanks
Dec 18th, 2007 Replyvex
2nd link would do it then ;)
Dec 19th, 2007 ReplyStoryoftheRealms
Yeah I got it working. Works great!
Dec 19th, 2007 ReplyThanks