Jump to content

cjohnweb

New Members
  • Posts

    8
  • Joined

  • Last visited

    Never

Everything posted by cjohnweb

  1. I really like this, I never realized that you could handle errors like that. Worth checking out if you haven't already.
  2. Yesterday my brother came to me with an Open Office Database file. Among everything in the file, he had a few sections that were basically excel looking spread sheet type tables with his inventory in them. I messed with the Open Office program and I can't find a way to export his content into any other file format. I can parse a CSV or the like to get it into MySQL, but I just can't figure out how to get the content into a different file format. Anyone else do this before? suggestions? Alternative programs to OpenOffice that could let me export in other formats? Thanks in advance!
  3. Hey there, My name is John. I have been coding PHP / MySQL for 9 years or so now. I am 23 years old. I play guitar, bass, drums, etc. My hobbies have been between programming and playing music for so long it is basically the core of my spare time. Some of my favorite things to code are things that are automated and collect information; For example I wrote a script to scrape torrents from ThePirateBay. Made a bot for yuwie.com once but it doesn't work anymore. Recently I spend more of my time writing in my blog @ http://iluvjohn.com/. I write whatever I feel like writing but most of it is programming stuff. I have not jumped into the OOP PHP yet, but I have started to with my introduction to XPath. I have also been starting to learn C / C++, and a language called SPIN for an embedded chip known as the Propeller by Parallax. PHP is like my second language though, so I am happy to be here!
  4. Well....yeah! I mean, if that's what the need of the script calls. For instance, I run xampp on my laptop for development, etc. I can't send emails so I suppress them cause they are ugly. ...Not to mention that I was specifically answering one of the original questions: But for most circumstances, yes, you would want to fix the problem and not just cover it up ...otherwise stuff won't work, duh! I actually just noticed that like 17 minutes before I actually posted someone else went in there and mentioned using @ to suppress errors. Damn, I was too late. Oh well.
  5. If you need to suppress errors but don't want to suppress all the error on the whole site / page you can place an "at" sign before the function. Examples: @mail($to,$sub,$msg,$headers); $mail = @mail($to,$sub,$msg,$headers); if($mail){echo "Email sent";}else{echo "email error";} $url = "http://www.google.com/"; $content = @file_get_contents($url); echo $content; Good luck!
×
×
  • 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.