326

(1,382 replies, posted in General discussion)

Concord    - Agreement of opinions

327

(1 replies, posted in PunBB 1.2 discussion)

Hi Rickard,

     I tired to logon to www.punbb.org but its always showing "Redirecting to punbb.org ..." and keep on refreshing the page.

Since i couldnt remember the forum home page, I tried this way... somehow I enter in to this forum.. is there any problem with the main site?

328

(1,382 replies, posted in General discussion)

tranquilly

329

(24 replies, posted in Programming)

Its nothing to ashame about ... Hope you may not know, most of them are using 56K

330

(6 replies, posted in Programming)

Sorry sad

331

(19 replies, posted in Programming)

Dear... Instead the ("/home/newera/www/xyz/sites/htdocs/users/ameen/upload/ ")
You have to specify your server path name...files where you want to store..

I have given my address there... you have to specify yours...

332

(5 replies, posted in Feature requests)

Exactly!.. its also bit easy to know whether the post is replied or not after our posts...

333

(10 replies, posted in Programming)

There are small javascript programs too to identify the pixel position of the given image with the mouse pointer.

else you can use any photo editing tools to knwo the pixel position

334

(10 replies, posted in Programming)

Ooops!! Manuals means, Guide or help(notes) regarding the subject(or thing)

else go for Online tutorials

335

(19 replies, posted in Programming)

here is the script which is working...
just edited your own script..

admin.php

<?
$upload_time=date("F d Y H:i:s");
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>Admin Uploader</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css">
a.linkcolor:hover {font-family: Geneva, Arial, Helvetica, sans-serif; }
</style>
</head>
<body bgcolor="#dedede">
<div align="center">
  <table width="699" border="1" bordercolor="#6699FF" bordercolorlight="#000000" bordercolordark="#000000" bgcolor="#6699FF">
<table width='389' border='1' align='center' bordercolor='#6699FF' bordercolorlight='#000000' bordercolordark='#000000' bgcolor='#6699FF'>
  <tr align='center' valign='top'> 
    <td width='379' bgcolor='#6699FF'><div align='center'><strong>[File Uploader]</strong></div></td>
  </tr>
  <tr align='center' valign='top'> 
<td height='71' bgcolor='#6699FF'>
<form name="uploader" action="scripts.php" method="post" enctype="multipart/form-data">
<input type="hidden" name="MAX_FILE_SIZE" value="102400">
<input type="file" name="user_selected_file" size="30">
<input type="hidden" name="uptime" value="<?=$upload_time?>" size="30">
<br>
<input type="submit" value="Upload File">
</form>
</td>
  </tr></table>
</div>
</body>
</html>

scripts.php

<?php
$time_uploaded=$HTTP_POST_VARS['uptime'];
$file_name=$HTTP_POST_FILES ['user_selected_file']['name'];
$file_type=$HTTP_POST_FILES ['user_selected_file']['type'];
$file_size=$HTTP_POST_FILES ['user_selected_file']['size'];
//$file_temp=$HTTP_POST_FILES ['user_selected_file']['tmp_name'];

// Just to check the uploading file format is valid format or not.
//        like (gif, txt, png, jpg, jpeg, etc;)
$ext=explode('.',$file_name);
$ext=strtolower($ext[count($ext)-1]);
if (preg_match('/^(gif|txt|png|jpe?g)$/',$ext)){
    $correct_format=1;
}

// If the file format is valid then proceed
if($correct_format==1){
    $path_to_upload="/home/www/xyz/sites/htdocs/users/ameen/upload";    //Destination Folder
    if(is_uploaded_file($user_selected_file)){
        move_uploaded_file($user_selected_file, "$path_to_upload/$file_name"); 
        if (!file_exists("$path_to_upload/$file_name")) {
            echo "<b>Uploaded File doesn't exist...</b><br><br>";
        }
        else{
            echo "<br>Uploaded file is in : $path_to_upload/<b>$file_name</b><br><br>";
        }
    }
    else{
        echo "No files copied";
    }
}
else{
    echo "Invalid file format";    
}
?>

<html>
<head>
<title>Uploader</title>
<style>
BODY{font-family:verdana,arial; font-size:11px;}
TD{font-family:verdana,arial; font-size:11px;}
</style>
</head>
<body bgcolor="#cecece">
<div align="center">
  <table width="699" border="1" bordercolor="#FFFFFF" bordercolorlight="#FFFFFF" bordercolordark="#FFFFFF" bgcolor="#777777">
    <tr>
      <td align="center" valign="top" bgcolor="#777777"><div align="center"><strong>Scripts</strong></div></td>
    </tr>
    <tr>
      <td height="54" align="center" valign="top" bgcolor="#777777"><br> <table width="628" border="1" bordercolor="#FFFFFFF" bordercolorlight="#FFFFFF" bordercolordark="#FFFFFF" bgcolor="#777777">
          <tr align="center" valign="top">
            <td width="48" bgcolor="#777777"><div align="center"><strong>[No]</strong></div></td>
            <td width="273" bgcolor="#777777"><strong>[File Name]</strong></td>
            <td width="119" bgcolor="#777777"><strong>[Size]</strong></td>
            <td width="160" bgcolor="#777777"><strong>[Uploaded On]</strong></td>
          </tr>
        </table>
    <table width="628" border="1" bordercolor="#FFFFFF" bordercolorlight="#FFFFFF" bordercolordark="#FFFFFF" bgcolor="#777777">
          <td width='48' bgcolor='#777777'><?=$i?></td>
          <td width='273' bgcolor='#777777'><a href="<?php echo "$file_name" ?>"><font color='#000000'></font></a><?php echo "$file_name"; ?></td>
          <td width='119' bgcolor='#777777'><?php echo "$file_size"; ?> bytes</td>
          <td width='160' bgcolor='#777777'><?php echo "
        <b>File Uploaded</b> :<br> $time_uploaded <br>
        <b>File Last modified</b> :<br> ".date( "F d Y H:i:s.", getlastmod() ); ?>
</td>

          </tr></td>
    </tr>
      </table><br>
      <table width='400'>
    <tr>
</td>
    </tr>
  </table>
</div>
</body>
</html>

336

(6 replies, posted in Programming)

Actually I dont know what you gonna do with all the codes(PHP, FLASHMX, PASCAL, C++, JAVA, JS, HTML etc.,).. just fun learning or want to learn everything(which is not quite possible) anyway keep enjoying(youre own way)...

337

(5 replies, posted in Feature requests)

I feel simple is best. If everyone keep adding different colors, the content may look odd..(right?). Why should we change the look of punbb with multiple colors..?

Sorry if I am wrong..

338

(5 replies, posted in Feature requests)

Yes! I too thought of the same before, but now i am used to it. so its no more an important feature I feel...

if someone is using under proxy then which ip address will be logged in?
whether it will display only one IP address or many (if more than one user is using unders the same network)?

340

(24 replies, posted in Programming)

newera... as he(hcgtv) suggested, http://www.devside.net/ is really good. Try to spend few minutes atleast to read before you raise your questions.

341

(1,382 replies, posted in General discussion)

translate

342

(10 replies, posted in Programming)

also you can get source files for flash in flashkit.com

343

(10 replies, posted in Programming)

I dont have much IDEA about FLASH.. regarding HTML I can help you

I would like to suggest you to go thru the manual first for any help, then start asking question only if you wont understand.

      Co-ordinates are nothing-but pixel position of that image

here is an HTML example for map

<IMG SRC="images/shapes.gif" WIDTH=100 HEIGHT=100    ALT="shapes" USEMAP="#mainmap" 
<MAP NAME="mainmap">
<AREA SHAPE=CIRCLE COORDS="50,50,25" HREF="http://home.netscape.com">
<AREA SHAPE=RECT COORDS="50,50,100,100" HREF="http://developer.netscape.com">
<AREA SHAPE=RECT COORDS="0,0,100,100" HREF="http://developer.netscape.com/docs">
<AREA href="http://www.htmlhelp.com/tools/" ALT="Carz" SHAPE="poly"
 COORDS="12,38,75,125,7,100">
</MAP>

For CIRCLE coorinates are like (x,y,r) x,and y are pixel positon for that image and r is radius

for RECTANGLE - (x,y,x1,y1) where x and y are left top(again pixel values) position of the rectangle and x1,y1 for right bottom cornor of the rectangle.
for polygan you can define your own..

depend on the Map position it will go to the particular URL specified in 'href' tag.


I would like you to visit http://www.flashkit.com for help and tutorial for FLASHMX

344

(19 replies, posted in Programming)

First .. Apology for the delay..
we have shifted our workplace and faced some problem in the new place to use internet.. thats why..

It seems you are desperately need this upload script..

345

(3 replies, posted in Programming)

Thank you!!

346

(1,382 replies, posted in General discussion)

assuredness

347

(3 replies, posted in Programming)

Can anyone explain or give me the link for mysql error list, where i can get the solution.

I am getting the following error nos while executing my forum..

mysql error : Got error 28 from table handler
mysql error number : 1030

348

(1,382 replies, posted in General discussion)

tweak

349

(4 replies, posted in Programming)

Well, only porgrammers can program smile

why and to whom they will program? its left them.

350

(19 replies, posted in Programming)

Hi newera,
Have you got the solution for your request?

Well i would like to suggest you something here,

Which operating system you are using.. I tried with linux+apache+php

I tried something for you.. I will post the code later tomorrow

Do you know that , First you are using file-upload, it will copy to a temp dir, with all the parameters(name,type,tempname,size). you can copy the file to server, if the file size is zero, you just read the temp file from the temp path and write it to new file...

If it is too confusing... then pls wait for the code..