Jump to content

mjlogan

Members
  • Posts

    122
  • Joined

  • Last visited

    Never

Everything posted by mjlogan

  1. I abandoned php and mysql on vista manual install. could never get the two to communicate, (was fine via command line though) everything was up and running and functioning independently . http://www.wampserver.com/en/ works fine though! its my working solution.
  2. I would also guess you are not storing it as a timestamp. the strtotime function may also be helpful.
  3. are you looking for exit for? for breaking out of a for loop for example, but a GOTO maybe you need to rethink your logic?!
  4. If you are locally mapped to the webserver, is the drive actually called T:/ on the webserver itself? or is it T: on your machine and something else on the webserver.
  5. $variable = "\\'s"; $variable = mysql_real_escape_string($variable); echo $variable."\n"; $variable = stripslashes($variable); echo $variable; Input => mysql_real_escape_string => stripslashes 's => \'s => 's \'s => \\\'s => \'s \\'s = > \\\'s => \'s
  6. stripslashes is the function you are after.
  7. <?php class FilterPage { private $all; private $id; public function getpage() { $this->all = $_GET['all']; $this->id = $_GET['id']; if($this->all == "1") { echo "all right"; } else { echo "all wrong"; } if($this->id == "1") { echo "id right"; } else { echo "id wrong"; } echo "Nothing"; } } $_temp = new FilterPage(); echo $_temp->getpage(); ?>
  8. echo date("d M y", mktime(0, 0, 0, date("m", 1174831470) , date("d", 1174831470)-date("d", 1174831470)+1, date("Y", 1174831470))); echo date("d M y", mktime(0, 0, 0, date("m", 1174831470)+1 , date("d", 1174831470)-date("d", 1174831470), date("Y", 1174831470))); echo date("d M y", mktime(0, 0, 0, date("m", 1163831470) , date("d", 1163831470)-date("d", 1163831470)+1, date("Y", 1163831470))); echo date("d M y", mktime(0, 0, 0, date("m", 1163831470)+1 , date("d", 1163831470)-date("d", 1163831470), date("Y", 1163831470))); that should get you going... you can improve on that.
  9. Are you using the function mysql_real_escape_string?
  10. http://php.invisibleshadow.com/2007/04/21/cutting-out-part-of-a-string/ echo cutBetween('a. Testing <3>','<','>');
  11. You may find that all those details are lost as the file will be recreated on the server after uploading, so the date created and modified will always show the time the file was uploaded. And I personally don't know of a way of reading meta data from a file on a remote computer, as the server will always make a copy of the file to the local machine. But somebody else might....
  12. The last time I was using sleep() I realised that I was using a some terribly inefficient code, rewrote the whole thing, it performed a lot better and no pause was required.
  13. for ($index = 0; $index < count($fruits); $index++) { # sorry, but I hate foreach to for ($index = 0, $count = count($fruits); $index < $count; $index++) { # sorry, but I hate foreach minor optimisation
  14. i use if ($connDatabase->resultsCount($query) > 0) { while($data = $connDatabase->fetchArray($query)){ $array[$i]['field_01'] = $data['field_01']; $array[$i]['field_02'] = $data['field_02']; $array[$i]['field_03'] = $data['field_03']; $i++; } }
  15. Watch out for SQL injection. 1;DROP TABLE business_info in the password field
  16. I was originally using ispell and pspell but then moved over to http://dev.mysql.com/doc/refman/5.0/en/string-functions.html#function_soundex The mysql functions seems to work very well.
  17. Note: There are reserved words which must not be used as keys for ini files. These include: null, yes, no, true, and false. Values null, no and false results in "", yes and true results in "1". Characters {}|&~![()" must not be used anywhere in the key and have a special meaning in the value.
  18. Yeah mysql is set to load in php.ini Restarted it many a time, but it only seems to work through the exe through command line. A web browser using the dll will not work for some reason.
  19. the iframe for me seems to happily be updating itself. Are you sure the problem is not in the javascript used to reload the iframe in the document?
  20. <br /> <b>Warning</b>: imagettfbbox(): Could not find/open font in <b>/users/nngb-evaluation.co.uk/www/acrylic_new/drawplate.php</b> on line <b>164</b><br /> <br /> <b>Warning</b>: imagettftext(): Could not find/open font in <b>/users/nngb-evaluation.co.uk/www/acrylic_new/drawplate.php</b> on line <b>171</b><br /> ‰PNG IHDR?{˜v3VIDATxœíÛ1h”wÇá7ï‘ÄkÈ ÐÔrZä´-"ÃW‡B—B¦ÃéàÒAH¥H†©„+ Ž–‚”㜄.nJépT2HMÑ‚\’A!­×WïrÅP4ÛÛ}žñý¿Ãwûð¾¼o2|U¿ßo·Ûõz½Z­ …òP(ªÕj­Vk·Ûý~S­F†Ãá‹[—––Nž<ùÞärí£íûvW>,Ò‘§ð¿5ØÞþ¥wÿ÷¬uíáýGåK—.MOO¿8}^¯Á`°¸¸xîܹ§w~V{;¿µ°ÙÅ+k³ß¬ÌÏÏÏÍÍ={/ø¼^³³³ƒ?¾Ÿûtgij4ï‘°Ywõéâ·+ÉÔ‘f³™$Iš$I«ÕZ¹ó]ãó]ÒÀSijô»Öî^nµZI’ŒdYV.—/Ÿ8|p2ïmð:×o­ŸøúïåååÂþýûŸ¬\=}ü¼'Àìywüç¥ÕþèžÂ¶mÛ>©®Mï+æ= Þ,{2üá§^Úét˜È{lÉ¡N'ív»>Ö ŠÒÔh·ÛM{½^q<Í{lIq<íõzº@<ê@<ê@<ê@<ê@<ê@<ê@<ê@<ê@<ê@<ê@<ê@<ê@<ê@<ê@<ê@<ê@<ê@<ê@<ê@<ê@<ê@<ê@<ê@<ê@<ê@<ê@<ê@<ê@<ê@<ê@<ê@<ê@<ê@<ê@<ê@<ê@<ê@<ê@<ê@<ê@<ê@<ê@<ê@<ê@<ê@<ê@<ê@<ê@<ê@<ê@<ê@<ê@<ê@<ê@<ê@<ê@<ê@<ê@<ê@<ê@<ê@<ê@<ê@<ê@<ê@<ê@<ê@<ê@<ê@<ê@<ê@<ê@<ê@<ê@<ê@<ê@<ê@<ê@<ê@<ê@<ê@<ê@<ê@<ê@<ê@<ê@<ê@<ê@<ê@<ê@<ê@<ê@<ê@<ê@<ê@<ê@<ê@<ê@<ê@<ê@<ê@<i±XìeyÏ€-éeÅb1-•JÝÕ§y€-é®>-•JiµZ½yçqÞc`KnÞy\­VÓ™™™«7å=¶äêG333#Y–•ËåËg'œÌ{¼Îõ[ëÇ¿úëÞ½{éØØX£Ñ¸xe-ïIð¯¬5±±±4I’z½¾cïÑSç6†y€1Øž:ÿ`ÇÞ£õz=yñ¿W³ÙL¦Žÿòþõ[ë¹Î€Í~¼ýç‰ùß’©#ÍfóÙ•‘áðåóV«Õ:sæÌ¡÷×ëoß·{¼òÁ[9í€äöÝÇ¿>ÈZ×v–'Ž;öòløª,ËÚív­V«T*ù €¤R©Ôjµv»eÙ¦Zýòæ#$,¥ÒêIEND®B`‚ The image “http://www.nngb-evaluation.co.uk/acrylic_new/drawplate.php?plate=NNGB&custom_text=NationalNumbers.co.uk&font=auto3d.ttf?1175699021” cannot be displayed, because it contains errors.
  21. echo date("d-m-Y", strtotime("+180 day", time()));
  22. I have installed php5 on iis7 under a restricted user. I am running php through the dll, and it loads fine and parses php files. I have installed mysql, which is correct and functions fine. But when loading a webpage in firefox, <?php if (function_exists('mysql_connect')) { echo "MySQL functions are available.<br />\n"; } else { echo "MySQL functions are not available.<br />\n"; } ?> I get that the functions are not available. running the same file through command line, throught the exe, I get that the functions are available. I have tried changing as many permissions as possible. IIS7 + PHP exe = Won't work, 500 error, something isn't setup correctly, can't work out what. IIS7 + PHP dll = Works fine. IIS7 + PHP dll + MySQL = nope. cant find mysql. PHP exe (command line) + MySQL = fine, works as expected. Anyone managed to get this setup working on IIS7? Thanks
  23. kinda works for me in FF 2.0.3 just have to click it a few times.
  24. http://www.nngb-evaluation.co.uk/acrylic_new/drawplate_iframe.php?&plate=NNGB&custom_text=NationalNumbers.Co.Uk&badge=none&border=green_normal.png&ghost=none shows up blank to me in firefox and IE7 gives the red cross
  25. Headers already sent, sessions work like cookies, you have to set them before output is sent to the browser
×
×
  • 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.