Jump to content

Rochtus

Members
  • Posts

    11
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

Rochtus's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. I use the following script. <form name="pagina1" action="" method="post"> <a href="index.php" onclick="document.pagina1.submit();return false"> But what i need is the script to first submit the form: pagina1 and after that go to index.php How do i have to do this?
  2. Is it possible to put a little PHP code like this <script type="text/javascript> <?php $tester = $_POST['test']; ?> var helloworld = $tester; document.write(helloworld); </script> kweet ni zeker of dit script werkt, heb efkes snel geschreven maar zou dit principe werken?
  3. I don't know what is wrong:s It doesn't give a error it doesn't display anything <?php ob_start(); $filename = "../images/pics/SP_A0002.jpg"; // Set a maximum height and width $width = 200; $height = 200; // Content type header('Content-type: image/jpeg'); // Get new dimensions list($width_orig, $height_orig) = getimagesize($filename); $ratio_orig = $width_orig/$height_orig; if ($width/$height > $ratio_orig) { $width = $height*$ratio_orig; } else { $height = $width/$ratio_orig; } // Resample $image_p = imagecreatetruecolor($width, $height); $image = imagecreatefromjpeg($filename); imagecopyresampled($image_p, $image, 0, 0, 0, 0, $width, $height, $width_orig, $height_orig); // Output imagejpeg($image_p, null, 100); ob_end_clean(); ?>
  4. echo "<table style=\"color: white\" width=\"100%\" border=\"1\"><th width=\"50%\">Thread Name</th><th width=\"30%\">Author</th><th>Replies</th><th>Views</th></tr>";
  5. When i insert the header all he displays is: http://mircscripters.com/simbel/admin.php?action=toevoegen and if i don't insert the header, it gives all those strange marks... Why does it give me the link of the page i am doing it on the header is : header('Content-type: image/jpeg');
  6. Dear, I use a script that resizes a image to the heigth and width i want, But i want to save it with those new Sizes.. How is this possible? I use this script: <?php $filename = "../../images/SP_A0002.jpg"; // Set a maximum height and width $width = 200; $height = 200; // Content type header('Content-type: image/jpeg'); // Get new dimensions list($width_orig, $height_orig) = getimagesize($filename); $ratio_orig = $width_orig/$height_orig; if ($width/$height > $ratio_orig) { $width = $height*$ratio_orig; } else { $height = $width/$ratio_orig; } // Resample $image_p = imagecreatetruecolor($width, $height); $image = imagecreatefromjpeg($filename); imagecopyresampled($image_p, $image, 0, 0, 0, 0, $width, $height, $width_orig, $height_orig); // Output imagejpeg($image_p, null, 100); ?>
  7. Yes i know But i need to know or it is possible to first run it, and then include it
  8. Is there a PHP function that before it includes the file it runs the file?
  9. Is it possible in PHP to first "do" a file in the extern file you include or require And then show the result Because if you include it, it includes the file and then loads it in the file where you included it..
  10. What does these headers mean??? Warning: Cannot modify header information - headers already sent by (output started at /home/mirccom/domains/mircscripters.com/public_html/simbel/lang/langnl.php:210) in /home/mirccom/domains/mircscripters.com/public_html/simbel/files/acties.php on line 83 I went to line 210 in langnl.php and it are meta tags... and line 83 in acties.php is : <b><em><h2><center><?php echo $weergeven .' '.$row_tmp['titel'] ?></center></h2></em></b>
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.