Jump to content

ProXy_

Members
  • Posts

    67
  • Joined

  • Last visited

    Never

Everything posted by ProXy_

  1. oh, i appologize, i thought it wasn't saving anything at all.. it sounds like in Child.php the variables $argv[1] $argv[2] aren't passing anything through can i see the form source?
  2. I removed the if statement, its not a loop. Basicly your saying if $fp = "blah" then: save information.. But your not previously calling $fp to be anything at all.. therefor its not going to do anything but sit there unless your leaving code out and your calling $fp somewhere down the line to be log.txt
  3. Well, i'm not an expert. but this might help you out. RewriteEngine On RewriteCond %{HTTP_HOST} ^(.*).example.com RewriteRule ^(.*)$ http://example.com [R=301,L]
  4. ok, i would try this then.. Parent <?php error_reporting(E_ALL); // place these two lines at the top of ini_set('display_errors', 1); // the script you are debugging //echo exec('whoami'); $book="god"; exec("child.php testing $book > /dev/null 2>&1 &"); $fp = fopen("log.txt", "a"); fwrite($fp, "Parent process finished at ".date("H:i:s", time())."!\n"); fclose($fp); ?> Child <?php error_reporting(E_ALL); // place these two lines at the top of ini_set('display_errors', 1); // the script you are debugging sleep(5); $fp = fopen("log.txt", "a"); fwrite($fp, "Child process $argv[1] $argv[2] finished at ".date("H:i:s", time())."!\n"); fclose($fp); ?> hopefully this helps.
  5. you could try this: echo "<a href='" . $string . "'><b>" . $string2 . "</b></a>\n"; give that a try, if this don't work reply with errors.
  6. Make sure your log.txt file has 777 Permissions. if log.txt is in a sub folder, the folder need to be 777 aswell. if your getting errors could post the error your recieving?
  7. this is somewhat what your looking for. But this should give you the idea.. <?php /* * This script demonstrates the mathematics of resizing an image to a different * width and height without stretching or squeezing the original image. If the * source image has a different aspect ratio than the destination image, the * source image will be cropped. * * Consider a source image with a width of 320 pixels and a height of 240 * pixels. The destination image is to be 80 pixels by 80 pixels. If these * dimensions were passed directly to imagecopyresampled(), the resized image * would appear to have a squeezed width. To prevent this, the width of the * source image should be cropped to 240 pixels so that the ratio of its width * to its height is 1:1, which is the same as the destination image's ratio. * When the source image is resized, it will not appear squeezed. */ $src = imagecreatefromjpeg('sample.jpg'); // Source image $dw = 80; // Destination image Width $dh = 80; // Destination image Height $sw = imagesx($src); // Source image Width $sh = imagesy($src); // Source image Height $wr = $sw / $dw; // Width Ratio (source:destination) $hr = $sh / $dh; // Height Ratio (source:destination) $cx = 0; // Crop X (source offset left) $cy = 0; // Crop Y (source offset top) if ($hr < $wr) // Height is the limiting dimension; adjust Width { $ow = $sw; // Old Source Width (temp) $sw = $dw * $hr; // New virtual Source Width $cx = ($ow - $sw) / 2; // Crops source width; focus remains centered } if ($wr < $hr) // Width is the limiting dimension; adjust Height { $oh = $sh; // Old Source Height (temp) $sh = $dh * $wr; // New virtual Source Height $cy = ($oh - $sh) / 2; // Crops source height; focus remains centered } // If the width ratio equals the height ratio, the dimensions stay the same. $dst = imagecreatetruecolor($dw, $dh); // Destination image imagecopyresampled($dst, $src, 0, 0, $cx, $cy, $dw, $dh, $sw, $sh); // Previews the resized image (not saved) header('Content-type: image/jpeg'); imagejpeg($dst); ?> Hopefully this Helps
  8. can i see your current php And the error it gives you.
  9. Permission 730 = Admin rights only. public has no access at all. not sure if thats what you want or not if so then if log.txt is in a sub DIR you have to change that to Permission 730 as well
  10. log.txt, is this file 777 ?? chmod("log.txt", 0777);
  11. Well i'm not sure what your HTML file looks like. you could post it in here. i don't download anything from rapidshare. But from the looks of your current code. Maybe try specifying your post? you have: foreach($_POST as $variable => $value) { try this: foreach($_POST['name'] as $variable => $value) { hope this helps.
  12. k, then i know this sounds funny but this happends to be ALOT for some reason. Lets give this a quick try. Sometimes for me when you add a Variable for the POST it won't follow through correctly Example you got: <?php $language = $_GET['lang']; if ( $language == "de" ) include "de.php" else include "en.php" ?> try this. just to see... <?php if ( $_GET['lang'] == "de" ) { include "de.php"; } else { include "en.php"; } ?> See if that works for you. It happends to me on a daily basis while dealing with Forms & the post method. Hopefully this helps you - EDIT - i also added brackets to your if statement. give that a try.
  13. For header you can use the code below: header('Location: http://www.example.com/');
  14. Ok, the only next thing i can think of. Make sure your file is .php extension and not .html If your file is a .php and you still have this issue. Can i have the url of this website? so i can see everything in action.
  15. Can we see your code, this way it will allow us to better understand the situation. As far as i see, it should work correctly, are you using Ajax xmlHttp ??
  16. ah, thank you i will give it a try. I had no idea W3C had a validator Thank You.
  17. Hello, Hopefully someone can help me out with this. I've never had this issue before with firefox. the code is far to big to copy in here so i will paste the parts we're focusing on. function displayMessage() { var xhr_object = null; if(window.XMLHttpRequest) // Firefox xhr_object = new XMLHttpRequest(); else if(window.ActiveXObject) // Internet Explorer xhr_object = new ActiveXObject("Microsoft.XMLHTTP"); else { // XMLHttpRequest non support par le navigateur alert("Votre navigateur ne supporte pas les objets XMLHTTPRequest...utilisez firefox cela ne vous ferra pas de mal"); return; } xhr_object.open("GET", "editpanel.php<?php echo $z; ?>", true); xhr_object.onreadystatechange = function() { if(xhr_object.readyState == 4) { var chaine=xhr_object.responseText; normal.innerHTML=chaine; setTimeout( "displayMessage()",160000); } } xhr_object.send(null); } Now, this code working by itselfs works great. However when i go to include this code into my template. Internet explorer displays the content just fine, however firefox not only doesn't show the content, but seems to trick out the template as well. Here is a piece of the template. Don't mind the missing html I'm only pasting snipplets. <body id="framePage" onload="resizeIframe('editpanel')"> <div id="art-main"> <div class="art-Sheet"> <div class="art-Sheet-cc"></div> <div class="art-Sheet-body"> <div class="art-Header"> <div class="art-Header-jpeg"></div> </div> <div class="art-nav"> <div class="l"></div> <div class="r"></div> <ul class="art-menu"> <li><a href="#"><span class="l"></span><span class="r"></span><span class="t">Home</span></a></li> <li><a href="../docs/about.php"><span class="l"></span><span class="r"></span><span class="t">About</span></a> </li> <li><a href="members.php" class=" active"><span class="l"></span><span class="r"></span><span class="t">My Page</span></a></li> <li><a href="login.php?id=logout"><span class="l"></span><span class="r"></span><span class="t">Logout</span></a></li> </ul> </div> <div class="art-contentLayout"> <div class="art-content"> <div class="art-Block"> <div class="art-Block-tl"></div> <div class="art-Block-tr"></div> <div class="art-Block-bl"></div> <div class="art-Block-br"></div> <div class="art-Block-tc"></div> <div class="art-Block-bc"></div> <div class="art-Block-cl"></div> <div class="art-Block-cr"></div> <div class="art-Block-cc"></div> <div class="art-Block-body"> <div class="art-BlockHeader"> <div class="art-header-tag-icon"> <div class="t">Your domains!</div> </div> </div><div class="art-BlockContent"> <div class="art-BlockContent-body"> <div> <span class="art-button-wrapper"> <span class="l"> </span> <span class="r"> </span> </span> // This is where it displays the XmlHTTPRequest <div id="normal"> <script> displayMessage(); </script> </div> </div> </div> </div> </div> </div> So, with that being said. the Xml function i explained earlier is at the top of the page, in the head section as always. and i just don't understand why firefox is rejecting the ajax httprequest... If anyone has any ideas i would greatly appreciate it.
×
×
  • 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.