Jump to content

MadTechie

Staff Alumni
  • Posts

    9,409
  • Joined

  • Last visited

  • Days Won

    1

Everything posted by MadTechie

  1. USE IP2LOCATION, and a standard visitor counter
  2. the manual helps mysql-num-rows
  3. OK.. one thats too long for me to read.. and its not in code tags.. so kinda worthless.. also i asked for the setting above.. which you have may not of tried all
  4. can you post the setting you have for the above
  5. Okay.. check the following upload-max-filesize memory-limit max-execution-time max-input-time post-max-size i'm not trying to be rude but it a large topic!
  6. the first code posted will not work.. why add a function to code that will fail!! i have corrected the code posted.. the creating of directorys would be passed via a post command (i assume this from your code) $folder = "./files/".$_POST["clientsName"]."/"; if(!is_dir($folder)) mkdir($folder, 0755);
  7. so you want to deal with the text file! try this.. maybe (boss hoving) <?php $lines = file('theFile.txt'); $GroupsOf = $lines[1]; unset($lines[0]); unset($lines[1]); $N = 0; $C = 0; $Group = array(); foreach($lines as $line) { if($C >= $GroupsOf) { $N++; $C=0; }else{ $C++; } $Group[$N][] = $line; } echo "<pre>"; print_r($Group); ?>
  8. unless functions.swr3 prints something, a white screen would be good! as the only thing you have that prints to the screen are errors! maybe update the end to } else { echo('No inactive online members found.'); exit; } echo "Finished"; ?>
  9. OKay, lets go all out.. <?php $eol="\r\n"; $mime_boundary=md5(time()); # Common Headers $headers = ""; $headers .= "From: ".$Email."<".$Email.">".$eol; $headers .= "Reply-To: ".$Email."<".$Email.">".$eol; $headers .= "Return-Path: ".$Email."<".$Email.">".$eol; // these two to set reply address $headers .= "Message-ID: <".time()."-".$Email.">".$eol; $headers .= "X-Mailer: PHP v".phpversion().$eol; // These two to help avoid spam-filters # Boundry for marking the split & Multitype Headers $headers .= 'MIME-Version: 1.0'.$eol.$eol; $headers .= "Content-Type: multipart/mixed; boundary=\"".$mime_boundary."\"".$eol.$eol; // send email $success = mail($EmailTo, $Subject, $Body, $headers); ?>
  10. try searching google.. this is hardly problomatic code!
  11. assume you wany something like this!.. but will need to know how you want it formatted. <?php ///my flash variables //$_POST["repsName"] . $_POST["clientsName"]. $_POST["clientsPhone"]. $_POST["clientsUrl"]. //$_POST["shortDescroption"]. $_POST["longDescription"]; ///where i started on the directory thing i know this is where i should ///pass my variable i just don't know how. if(!is_dir("./files")) mkdir("./files", 0755); $mode = file_exists('user_input.txt')?'a':'w'; // append if file exists otherwise create it $fp = fopen('user_input.txt',$mode); // open file foreach($_POST as $K => $V) { fwrite($fp,"$K = $V\r\n"); // dump the contents of the $_POST array to the file } fclose($fp); ?>
  12. can you click solved please:)
  13. did i miss a chapter... i have no idea what your talking about!
  14. could try $success = mail($EmailTo, $Subject, $Body, "From: <$Email>"); to $success = mail($EmailTo, $Subject, $Body, "From: $Email");
  15. wrong section but here <?php if (preg_match('/(\(.*?\))/i', $data, $regs)) { $result = $regs[1]; } else { $result = ""; } ?>
  16. <?php $data = "weird weirdo quiteweird nuts crazy mad verycrazy banana bonkers"; $data = str_replace(" ", ",", $data); $NewData = explode(",", $data ); ?> OR JUST, explode with a space delimiter <?php $data = "weird weirdo quiteweird nuts crazy mad verycrazy banana bonkers"; $NewData= explode(" ", $data ); ?>
  17. try rebooting the linux server, so the php.ini is loaded what are the server details (spec)? php version etc
  18. your code is calling pic.gif as a PNG file. thats need correcting and you still have the javascript attached (see my first post) its probably being added by the host, how are you uploading the file ? you should use FTP
  19. Post an example of what you have and what you want!
  20. no you need 2 files first create a file called ip.php use ONLY the code below file 1 <?php $TextFile = "counter.txt"; $Count = trim(file_get_contents($TextFile)); $FP = fopen($TextFile, "r"); $Count=fgets($FP, 4096); fclose ($FP); settype($Count, "integer"); $Count++; if ($FP = fopen ($TextFile, "w")){ fwrite ($FP, $Count); fclose ($FP); } $image = "pic.gif"; $im = imagecreatefrompng($image); $red = ImageColorAllocate ($im, 255, 0, 0); $blue = ImageColorAllocate ($im, 0, 0, 255); $hit = "$Count"; $ip = $_SERVER["REMOTE_ADDR"]; ImageString($im, 2, 18, 1, "random.php", $blue);//will only display "random.php" ImageString($im, 2, 1, 19, " Your ip: $ip", $red); ImageString($im, 2, 1, 30, " Signature viewed $hit times ", $red); header("Content-Type: image/png"); Imagepng($im); ImageDestroy ($im); ?> please note thats you have code for reading from a text file then the second file, your use the above file as an image, see <img src="ip.php"> in the below file, file 2 <p align="center"> <script type="text/javascript"><!-- google_ad_client = "pub-4820636587049265"; google_ad_width = 728; google_ad_height = 90; google_ad_format = "728x90_as"; google_ad_type = "text_image"; //2007-09-15: userpages_top google_ad_channel = "1427674372"; //--> </script> <script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"> </script> </p> <img src="ip.php"> <p align="center"><font size="1"><a href="http://www.tomorrowhosting.com">Get High Quality Hosting Starting For Only One Cent At Tomorrow Hosting</a></font></p> <p align="center"><font size="1">These ZendURL Ads <b>Are Not </b>Forced. Click <a href="http://www.zendurl.com/noads.html" target="_blank">Here</a> To Disable Them Permanently!</font></p> <!-- Start of StatCounter Code --> <script type="text/javascript" language="javascript"> var sc_project=1144755; var sc_invisible=1; var sc_partition=10; var sc_security="d3d7ec5e"; </script> <script type="text/javascript" language="javascript" src="http://www.statcounter.com/counter/counter.js"></script><noscript><a href="http://www.statcounter.com/" target="_blank"><img src="http://c11.statcounter.com/counter.php?sc_project=1144755&java=0&security=d3d7ec5e&invisible=1" alt="hit tracker" border="0"></a> </noscript> <!-- End of StatCounter Code --> <script src="http://www.google-analytics.com/urchin.js" type="text/javascript"> </script> <script type="text/javascript"> _uacct = "UA-835715-1"; urchinTracker(); </script>
  21. full credit to Roopurt18, i was just here, he was the one who did all the work, and would of posted the same thing (maybe better)
  22. Erm.. No.. convert the code in the included file to a Fucntion or Class, then pass the values/array over, if you have problems add a var_dump($var) before calling the function and add it again in the function to compare..
  23. I can't seam to find, any referance to Race or Gender in the code.. can you post the part your having problems with
  24. Yes, it does! otherwise the code would be displayed!... OK problems #1 you can not have anything else at the start of the page, you have this <p align="center"> <script type="text/javascript"><!-- google_ad_client = "pub-4820636587049265"; google_ad_width = 728; google_ad_height = 90; google_ad_format = "728x90_as"; google_ad_type = "text_image"; //2007-09-15: userpages_top google_ad_channel = "1427674372"; //--> </script> <script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"> </script> </p> #2.at the end of the page you have this <p align="center"><font size="1"><a href="http://www.tomorrowhosting.com">Get High Quality Hosting Starting For Only One Cent At Tomorrow Hosting</a></font></p> <p align="center"><font size="1">These ZendURL Ads <b>Are Not </b>Forced. Click <a href="http://www.zendurl.com/noads.html" target="_blank">Here</a> To Disable Them Permanently!</font></p> <!-- Start of StatCounter Code --> <script type="text/javascript" language="javascript"> var sc_project=1144755; var sc_invisible=1; var sc_partition=10; var sc_security="d3d7ec5e"; </script> <script type="text/javascript" language="javascript" src="http://www.statcounter.com/counter/counter.js"></script><noscript><a href="http://www.statcounter.com/" target="_blank"><img src="http://c11.statcounter.com/counter.php?sc_project=1144755&java=0&security=d3d7ec5e&invisible=1" alt="hit tracker" border="0"></a> </noscript> <!-- End of StatCounter Code --> <script src="http://www.google-analytics.com/urchin.js" type="text/javascript"> </script> <script type="text/javascript"> _uacct = "UA-835715-1"; urchinTracker(); </script> #3. < ?php should be <?php #4. line 26 Imagepng($im,'',100);" should be Imagepng($im); save the file as is (with corrections) then add it into some HTML as you would any image ie <img src="balr.php"> EDIT: the file above should be its own file (think of it as an image)
  25. #1, please use code tags #2, define "to be displayed correctly"
×
×
  • 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.