Re: [PHP] Trouble with sin()

2004-07-22 Thread Ashwin Purohit
If you want it in degrees, use sin(deg2rad(20); > On Thu, 22 Jul 2004 12:17:19 -0400, Ashwin Purohit <[EMAIL PROTECTED]> wrote: > > It's giving you sin(20) in radians, not in degrees (which is what you > > seem to want). It's not a bug. >> > > On Thu

Re: [PHP] Trouble with sin()

2004-07-22 Thread Ashwin Purohit
It's giving you sin(20) in radians, not in degrees (which is what you seem to want). It's not a bug. On Thu, 22 Jul 2004 12:17:19 -0400, Ashwin Purohit <[EMAIL PROTECTED]> wrote: > It's giving you sin(20) in radians, not in degrees (which is what you > seem to want). It

Re: [PHP] a stupid question

2004-06-24 Thread Ashwin Purohit
please help > > echo "Some text".aFunction()."some more text"; > > The function is not working. > > Thanks > > -B > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > &

Re: [PHP] Can I detect size of files which are too large to upload?

2004-06-18 Thread Ashwin Purohit
gt; > It would seem logical to me that I would not be able to do this, since > > if the file exceeds the limit set by upload_max_filesize then the upload > > should not continue past that point. > > > > Is this an accurate assumption? > > > > Cheers and TIA. >

Re: [PHP] Can I detect size of files which are too large to upload?

2004-06-18 Thread Ashwin Purohit
ho 'File exceeded maximum file size'; break; case 3: echo 'File only partially uploaded'; break; case 4: echo 'No file uploaded'; break; }exit;} You can use a switch format like I have done previously shown above. Each file error is mentioned in a different case. -- Ashwi

Re: [PHP] Problem with mail()

2004-06-17 Thread Ashwin Purohit
d"; } > else { echo "Failed"; } > ?> -- Ashwin Purohit -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Read Last Lines of a Text File

2004-06-16 Thread Ashwin Purohit
Or maybe execution time limit. [snip] I've created the code below, but since this file is so large (currently 8 MB) it won't work. [/snip] I would guess you are running into your php memory_limit. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Converting Hex to RGB

2004-06-09 Thread Ashwin Purohit
Chris, I think that maybe the function imagecreatetruecolor() is the problem; I'll try just imagecreate instead when I get home. Thanks, Ashwin Purohit. _ MSN 9 Dial-up Internet Access fights spam and pop-ups – now 3 months

Re: [PHP] Converting Hex to RGB

2004-06-08 Thread Ashwin Purohit
Sorry Please view the script here (I didn't know it would convert to HTML): http://www.thegarlic.homeip.net/graphics/button.txt Thanks. _ Is your PC infected? Get a FREE online computer virus scan from McAfee® Security. http://clinic.

Re: [PHP] Converting Hex to RGB

2004-06-08 Thread Ashwin Purohit
$dy+(int)($ypad/2)-1, $txtcolor, $font, $text); imagejpeg($im, '1.jpeg', 60); echo ''; ImageDestroy($im); echo ''.$R.''.$G.''.$B.''; // ---------- ?> END CODE--

[PHP] Converting Hex to RGB

2004-06-08 Thread Ashwin Purohit
Hello Everyone, I would like to know if there is some way to write a script so that I can input a Hex color code and have it output to RGB coordinates so as to prevent users from having to search for the color codes? I will use that feature so that I can create dynamic images. Thanks in advance

Re: [PHP] Text file wont' have newlines?

2004-05-29 Thread Ashwin Purohit
Ok, thanks much! It works now. Needs a new line and return. fwrite($fp, ($credit . "\n\r") ); >>Hi everybody, >> >>I have this script in a file that allows users to upload files, and I want >>to know who submitted what so I write $userfile_name and $credit1(their >>name) to CREDIT.txt in the same

[PHP] Text file wont' have newlines?

2004-05-29 Thread Ashwin Purohit
Hi everybody, I have this script in a file that allows users to upload files, and I want to know who submitted what so I write $userfile_name and $credit1(their name) to CREDIT.txt in the same directory like so : $credit = $userfile_name.': '.$credit1."\n"; $fp = fopen('CREDIT.txt','a'); fwr

[PHP] Comments beneath Images

2004-04-22 Thread Ashwin Purohit
Hi all, I have a website where I have uploaded a few of my drawings, etc. I want to know how to write a simple php script so that people can post comments beneath the pictures for all to view. If somebody could point me to some tutorial or run me through real quick, it'd be much appreciated. Th

[PHP] Making comments on website items, etc...

2004-04-22 Thread Ashwin Purohit
Hi all, I have a website where I have uploaded a few of my drawings, etc. I want to know how to write a simple php script so that people can post comments beneath the pictures for all to view. If somebody could point me to some tutorial or run me through real quick, it'd be much appreciated. Th