Jump to content

MadTechie

Staff Alumni
  • Posts

    9,409
  • Joined

  • Last visited

  • Days Won

    1

Everything posted by MadTechie

  1. Your need to do this
  2. change default; header("Content-type: application/octet-stream"); header("Content-Disposition: filename=\"".$fileAlias."\""); to default; header("Content-Type: application/force-download"); header( "Content-Disposition: attachment; filename=\"".$fileAlias."\""); header( "Content-Description: File Transfer");
  3. Have you tried echo iconv("ks_c_5601-1987", "UTF-8", "Scrapped stuff");
  4. I am not 100% sure what you mean but i think your asking for a edit that allows you to display images in a predefined order ie 1,2,3,4,4,4,4,5 means image 1 then image 2 then image 3 then image 4 then image 4 then image 4 then image 4 then image 5 ? if so replace srand((double)microtime()*1000000); // seed for PHP < 4.2 $rand = mt_rand(0, $i); // $i was incremented as we went along $filename = $files[$rand]; with $f_pos = array(1,2,3,4,4,4,4,5); $pos=$f_pos[0]; if(!empty($_COOKIE['f_pos']) { $pos = $_COOKIE['f_pos']+1; } setcookie("f_pos",$pos,time()+600); $filename = $files[$pos];
  5. that has to be a obfuscate script!
  6. upload type ASCII/BINARY have you tried passive, if its not uploading via FTP then i would have to say server, if your not using FTP to upload then are you sure its not just a file size problem.. as WMV are normally larger than AVI etc check PHP.INI upload_max_filesize memory_limit max_execution_time post_max_size
  7. Nope, Infact Zend Optimizer does not contain any code caching. It does contain a code optimizer that will generally speed execution in some cases. While heavily execution encoded scripts may show a measurable speed increase, real world applications may not show any significant performance improvement as the time taken optimizing scripts may exceed the performance gains. It is useful primarily to run scripts protected by Zend Guard. EDIT: however don't get confused with Zend Platform which was Zend Accelerator and caled Zend Cache before that! Zend Platform, has a complete set of performance capabilities that includes more than a simple PHP accelerator. Features include code caching/acceleration, data caching, content (html output) caching, download optimization and off-line (asynchronous) processing capabilities that can result in significant performance improvements for most PHP applications. It also includes detailed PHP monitoring and root cause analysis support to help in tuning and debugging, session fail-over support for HA (High Availability) needs and other integration capabilities including Java integration.
  8. Not really, Zend Guard encodes your files that boosts their performance.. and your need Zend Optimizer to run encoded file.. so if your not using Zend Guard is doesn't do anything
  9. When you say your getting nothing displayed are you getting a blank page or no results ?
  10. are you sure its not a timeout problem (dues it fail after 30,60 , 90 seconds ?) what about a script that resizes an image then uses a HTML Meta tag to redirect to the same page with a parameter that points to the next file ie rotatimg.php?ID=1 rotatimg.php?ID=2 rotatimg.php?ID=3 rotatimg.php?ID=4 ... this should clear the memory used and also stop any timeout issules
  11. try this <?php function libStripInputSlashes($Data) { if (is_array($Data)) { foreach($Data as $var=>$val) { $output[$var] = libStripInputSlashes($val); } }else{ return cleanInput($Data); } return $output; } ?>
  12. try thid <?php require "classes.php"; session_start(); //if not logged in and login check fails display form, else user panel if((!$User->logged_in()) && $User->process_login()) { $User->display_loginform(); }else{ $User->display_userpanel(); } ?>
  13. add exit(); after the readfile
  14. try changing $data = mysql_query("SELECT * FROM busfleet WHERE upper($field) LIKE'%$find%' ORDER BY busno ASC"); to $data = mysql_query("SELECT * FROM busfleet WHERE upper($field) LIKE'%$find%' ORDER BY busno ASC") or die(mysql_error()); any errors ?
  15. untested example <a onclick="javascript:OpenBoth('http://domain1.com','http://domain1.com');">click me</a> function OpenBoth(url1,url2) { myRef1 = window.open(url1,'mywin1', 'left=20,top=20,width=500,height=500'); myRef2 = window.open(url2,'mywin2', 'left=40,top=40,width=500,height=500'); }
  16. check if MySQL is in your phpinfo(); also do you have mysql installed and running ?
  17. Humm..not sure i don't think so
  18. First of all it would be easier if you submitted the form to the same page. So change <form id="form1" name="form1" method="post" action="reg.php"> and <button type="submit">Sign-up</button> to <form id="form1" name="form1" method="post" action="register.php"> and <button type="submit" name="submit">Sign-up</button> then just add a error checking with an array or messages <?php $Error = array("email" => "", "pwd" =>"Passsword must match"); //Default error messages are blank! if(isset($_POST['submit'])){//reg.php code below $email=$_POST['email']; if(empty($email)) $Error['email'] = "No email Entered!"; //err if no email entered! $pwd1=$_POST['pwd1']; $pwd2=$_POST['pwd2']; if(pwd1 != pwd2) $Error['pwd'] = "Passwords muct match"; //err pwd1 is not the same as pwd2 $tgl=$_POST['tgl']; $bln=$_POST['bln']; $thn=$_POST['thn']; $tgl_lahir=$tgl.'-'.$bln.'-'.$thn; $jekel=$_POST['jekel']; $alamat=$_POST['alamat']; $kota=$_POST['kota']; $propinsi=$_POST['propinsi']; }else{ $email=""; $pwd1=""; $pwd2=""; $tgl=0; $bln=0; $thn=0; $tgl_lahir=$tgl.'-'.$bln.'-'.$thn; $jekel=""; $alamat=""; $kota=""; $propinsi=""; } ?> Then update the form to display the values and errors ie <input type="text" name="email" id="email" value="<?php echo $email; ?>"/><?php echo $Error['email']; ?>
  19. So search 'www.imdb.com' for 'tom hanks' in the last Year you could do this: http://www.google.co.uk/search?as_epq=tom+hanks&ft=i&as_sitesearch=www.imdb.com&as_qdr=y to search for a date range, Well Google offers some options regarding the date when a page was updated, but they are pretty fuzzy: you can restrict the results to pages updated in the past 3, 6, or 12 months. There's also a daterange operator, with the syntax daterange:startdate-enddate. Unfortunately, the dates must be entered as Julian dates (the Julian date is calculated as the number of days since January 1, 4713 BC). Hope that helps
  20. $queryacc="select * from groups where name='$search_text' and $q"; //AND ? shouldn't that be OR ?
  21. okay where is $startdatum being set ? and is $end1a being used anywhere else ? the problem is likely due to the fact the script uses explode on the dates eg $suchedat = explode (".", $startdatum); $newdat=$suchedat[1]; //hence this would be Jan instead of 01
  22. the code seams quite old Try this its not a full RSS but you could be able to pull the data you require <?php $feedUrl = 'http://www.metacafe.com/api/item/2348336'; $rawFeed = file_get_contents($feedUrl); $xml = new SimpleXmlElement($rawFeed); $channel['title'] = (string)$xml->channel->title; $channel['link'] = (string)$xml->channel->link; $article = array(); foreach ($xml->channel->item as $item) { $article['title'] = (string)$item->title; $article['link'] = (string)$item->link; } echo $article['title']; ?>
  23. LOL.. not if its going to be painful! Topic solved ? if so please click solved
  24. You could just chec if its empty ie <input type="test" name="udelimiter"> if(get_magic_quotes_gpc()) { if(empty($_POST['udelimiter'])) { $delimiter = stripslashes($_POST['delimiter']); }else{ $delimiter = stripslashes($_POST['udelimiter']); } } else { if(empty($_POST['udelimiter'])) { $delimiter = $_POST['delimiter']; }else{ $delimiter = $_POST['udelimiter']; } }
  25. if its just a form.. then try the CSS section ??? but i guess everyone thought you was talking about sending emails..
×
×
  • 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.