Click here to Skip to main content
15,913,467 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: connection to database using asp.net with vb Pin
Imran Khan Pathan18-Jun-08 1:13
Imran Khan Pathan18-Jun-08 1:13 
QuestionAJAX Modal Popup Extender Pin
immu517-Jun-08 23:36
immu517-Jun-08 23:36 
AnswerRe: AJAX Modal Popup Extender Pin
Imran Khan Pathan18-Jun-08 1:09
Imran Khan Pathan18-Jun-08 1:09 
QuestionMOSS / Reporting Services integrated - object model [modified] Pin
6o'clock17-Jun-08 23:25
6o'clock17-Jun-08 23:25 
QuestionWindow Positioning in webpage? Pin
Masood Kochi,SSF17-Jun-08 23:11
Masood Kochi,SSF17-Jun-08 23:11 
AnswerRe: Window Positioning in webpage? Pin
Sam Xavier18-Jun-08 9:13
Sam Xavier18-Jun-08 9:13 
Questionreading a file Pin
Ebube17-Jun-08 23:10
Ebube17-Jun-08 23:10 
AnswerRe: reading a file Pin
J a a n s18-Jun-08 1:27
professionalJ a a n s18-Jun-08 1:27 
QuestionhOW TO WRITE IN EXCEL Pin
Raghvendra Kumar Roy17-Jun-08 23:10
Raghvendra Kumar Roy17-Jun-08 23:10 
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 

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.