Click here to Skip to main content
15,890,932 members
Home / Discussions / ASP.NET
   

ASP.NET

 
QuestionProblem with Word component for spell checking Pin
Vsree17-Jun-08 23:03
Vsree17-Jun-08 23:03 
QuestionCheck change in page values during post Pin
imsathy17-Jun-08 21:28
imsathy17-Jun-08 21:28 
AnswerRe: Check change in page values during post Pin
Blue_Boy17-Jun-08 21:43
Blue_Boy17-Jun-08 21:43 
QuestionText to number conversion in crystal report Pin
member2717-Jun-08 21:25
member2717-Jun-08 21:25 
QuestionHelp. Has somebody used the software from microsoft .named :XML_Notepad_2007 Pin
ice-hotty17-Jun-08 21:13
ice-hotty17-Jun-08 21:13 
AnswerRe: Help. Has somebody used the software from microsoft .named :XML_Notepad_2007 Pin
N a v a n e e t h17-Jun-08 22:07
N a v a n e e t h17-Jun-08 22:07 
GeneralRe: Help. Has somebody used the software from microsoft .named :XML_Notepad_2007 Pin
ice-hotty17-Jun-08 22:20
ice-hotty17-Jun-08 22:20 
QuestionHow .php file convert to .aspx Pin
Guvera17-Jun-08 21:13
Guvera17-Jun-08 21:13 
Hi i need to convert .php file to .aspx.

I have this script.php file in my application. I need to change this .php to .aspx on page load.


$result = array();

if (isset($_FILES['photoupload']) )
{
$file = $_FILES['photoupload']['tmp_name'];
$error = false;
$size = false;

if (!is_uploaded_file($file) || ($_FILES['photoupload']['size'] > 2 * 1024 * 1024) )
{
$error = 'Please upload only files smaller than 2Mb!';
}
if (!$error && !($size = @getimagesize($file) ) )
{
$error = 'Please upload only images, no other files are supported.';
}
if (!$error && !in_array($size[2], array(1, 2, 3, 7, 8) ) )
{
$error = 'Please upload only images of type JPEG.';
}
if (!$error && ($size[0] < 25) || ($size[1] < 25))
{
$error = 'Please upload an image bigger than 25px.';
}

$addr = gethostbyaddr($_SERVER['REMOTE_ADDR']);

$log = fopen('script.log', 'a');
fputs($log, ($error ? 'FAILED' : 'SUCCESS') . ' - ' . preg_replace('/^[^.]+/', '***', $addr) . ": {$_FILES['photoupload']['name']} - {$_FILES['photoupload']['size']} byte\n" );
fclose($log);

if ($error)
{
$result['result'] = 'failed';
$result['error'] = $error;
}
else
{
$result['result'] = 'success';
$result['size'] = "Uploaded an image ({$size['mime']}) with {$size[0]}px/{$size[1]}px.";
}

}
else
{
$result['result'] = 'error';
$result['error'] = 'Missing file or internal error!';
}

if (!headers_sent() )
{
header('Content-type: application/json');
}

echo json_encode($result);


I hope ur's reply.

Thanks Smile | :)

Every Successful Person Have A Painful Story

QuestionDataset size and how many rows it take Pin
Satish - Developer17-Jun-08 20:23
Satish - Developer17-Jun-08 20:23 
AnswerRe: Dataset size and how many rows it take Pin
Blue_Boy17-Jun-08 20:32
Blue_Boy17-Jun-08 20:32 
QuestionConfiguring IIS with new type... Pin
M LN Rao17-Jun-08 20:15
M LN Rao17-Jun-08 20:15 
QuestionCustorm Control For regular expression Pin
Malayil alex17-Jun-08 20:14
Malayil alex17-Jun-08 20:14 
AnswerRe: Custorm Control For regular expression Pin
Masood Kochi,SSF17-Jun-08 20:28
Masood Kochi,SSF17-Jun-08 20:28 
QuestionXML parsing Pin
indian14317-Jun-08 18:43
indian14317-Jun-08 18:43 
Questionmail message window of outlook [modified] Pin
Pankaj Garg17-Jun-08 18:24
Pankaj Garg17-Jun-08 18:24 
Questionmodule security Pin
raquidd2217-Jun-08 9:05
raquidd2217-Jun-08 9:05 
AnswerRe: module security Pin
Christian Graus17-Jun-08 18:13
protectorChristian Graus17-Jun-08 18:13 
QuestionToo Easy...GridView and Javascript question....Really?...Help. Pin
Csharp027617-Jun-08 8:55
Csharp027617-Jun-08 8:55 
AnswerRe: Too Easy...GridView and Javascript question....Really?...Help. Pin
Christian Graus17-Jun-08 17:38
protectorChristian Graus17-Jun-08 17:38 
QuestionCalendar Title Clickable Link Pin
kenexcelon17-Jun-08 8:55
kenexcelon17-Jun-08 8:55 
QuestionPassing a value to a formviewlabel [modified] Pin
Dave.Davidsen17-Jun-08 8:34
Dave.Davidsen17-Jun-08 8:34 
AnswerRe: Passing a value to a formviewlabel Pin
Masood Kochi,SSF17-Jun-08 20:30
Masood Kochi,SSF17-Jun-08 20:30 
QuestionHow do change providers in an ASP.net project Pin
Dan Neely17-Jun-08 7:26
Dan Neely17-Jun-08 7:26 
QuestionASP aspx file with multi-tab ajax panel and many controls on each panel. Pin
Steve Holdorf17-Jun-08 6:04
Steve Holdorf17-Jun-08 6:04 
Questionproblem with login control Pin
Ebube17-Jun-08 5:33
Ebube17-Jun-08 5:33 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.