Jump to content

MadTechie

Staff Alumni
  • Posts

    9,409
  • Joined

  • Last visited

  • Days Won

    1

Everything posted by MadTechie

  1. Was probably a good move, including the styling info IN the email to be applied!
  2. I don't see how this could of worked locally either, So did you both write it? as these problems are basic errors, ie "supplied argument is not a valid MySQL-Link resource" means you have supplied an invalid MySQL-Link resource, hence its probably not connected to the database
  3. Well at a guess your need to include your configuration file, When/how did all these problem occur ?
  4. Well they are probably missing the code that sets up the database "mysql_connect()"
  5. Hi Dan, First of all I remember when I had these problems and its a bit of a rocky boat, First off I am going to assume your on a shared host, first thing you can try at the start of the script add set_time_limit (0); // turn off timeout ini_set("memory_limit", "128M"); //set memory allocation to 128Mb Now on a shared host they may block this or send you a email telling you your not allowed to do it (or words to that effect) another option maybe to run it thought Image magick (it the server supports it) ie <?php $image = new Imagick($filename); $image->thumbnailImage($size, $vsize); header("Content-type: image/png"); print $image; ?> only other option i can think of is upgrade the server/package
  6. Okay think about this, you have a page on your site that build a jpeg, the jpeg is a history graph of the companies performance, Now to build this jpeg, it takes some complex maths and 200 SQL queries (just for a this example) and takes 7 seconds to built it, and the data changes daily.. Now when the first user browses the page no charge exists so it needs to be built, BUT if you keep that chart (in cache) then the next visitor can load the page without waiting the extra 7 seconds, (you could do the same thing, even if it changed hourly) but what if its changed every microsecond.. caching would be kinda pointless. Now just say you had a page that said "Well MadTechie" and the only dynamic info was MadTechie, caching that page would also be pointless as your server would end up with welcome page for every user, and the time it takes to find and load the cache file would be longer that the time it took to echo a single variable, also if the welcome page was updated your need to re-process all the welcome cache pages, which will also take up time, I hope that helps clear things up
  7. Do you have any errors that are NOT notices ? (we will deal with notices after)
  8. Caching doesn't always refer to the whole page! also it doesn't always get written to the disk, also bloating the HDD with a ton of cache will decrease performance, if your pages don't have dynamic data then sure why not!, but then again why not just have a HTML page!
  9. No, I am Mad, But I have decided to use what the majority are using 32.4% are using None Does anyone have a URL for that ?
  10. Look in the tmp folder you created
  11. Add <?php ini_set('display_errors',1); error_reporting(E_ALL); ?> to the very start of your page, that should give you a helpful error
  12. Ahh very true, but I believe this wanted limited to just Kaspersky, I believe a few AV's had this problem
  13. IMHO: Antivir's is the free anti-virus software of choice for techies, it has won many tech publications' free antivirus round-ups by providing both the most thorough software protection and the fastest. but it is that it's slightly less user-friendly than Microsoft Security Essentials, with some of the settings requiring some technical knowledge to get right. Yet if you've the know how, it'll do everything you want it to. Norton used to be quite good but they have slipped, I'm a currently Kaspersky fan, but start of 2008 I was a Trend Micro fan, also used Webroot (in fact I have a unopened copy on my shelf) and ESET NOD32, and Prior to that was Norton, Personally I would recommend Kaspersky (or BitDefender Antivirus is supposed to be quite good) If you have online banking check to see if they give away a years free trial to an AV (I only found this out when I was trying to get a cheap copy of Kaspersky), as for free AV's you have a choice of: Microsoft Security Essentials. Avira Antivir. Avast! home edition. AVG Free.
  14. The problem was probably missing a library file for example the libmysql.dll file which is required by php_mysql.dll, your need to update your environment path or copy lib* from php to apache/bin.
  15. 1. Restart apache, 2. Check apache logs, 3. restore php.ini file
  16. check the apache httpd.conf file check you have LoadModule php5_module "C:/Program Files/PHP/php5apache2_2.dll" and AddType application/x-httpd-php .php
  17. also apply the same logic (from Iainzor post) to the actions also LIMIT1 should be LIMIT 1
  18. Who's Mat ? In any case your very welcome, helping other actually helps yourself as your hit more problems and also find out how others fix them. also you get exposed to new functions, Smart people learn from their mistakes, very smart people learn from other peoples mistakes
  19. As the email is NOT HTML, Your need to add a NewLine "\n" ie $text.='date:'.$_REQUEST["date1"] ; $text.='flat rate:'.$_REQUEST["flatrate1"]."\n"; $text.='over nights:'.$_REQUEST["overnights1"]."\n"; $text.='perdiem:'.$_REQUEST["perdiem1"]."\n"; $text.='tail number:'.$_REQUEST["tailnumber1"]."\n";
  20. Erm.. dose that even work ? what does grades.txt look like ?
  21. try adding include("functions.php"); to the start of join.php
  22. everything that's not a " with nothing ie $file001 = array(" <--until that quote
  23. No the code is missing an include() or require, or used be included or required by another script where is the form_get() function ?
  24. untested phpcode $contents = file_get_contents("file.txt"); $result = preg_replace('%^.*?("http://site\.com/file\.php\?url=\d+"\);$)%i', '\1', $contents); file_put_contents($result,"file2.txt");
  25. I think you have forgotten to include a file, as form_get() isn't a PHP command <? $act=form_get("act"); //line 2
×
×
  • 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.