Jump to content

trq

Staff Alumni
  • Posts

    30,999
  • Joined

  • Last visited

  • Days Won

    26

Everything posted by trq

  1. Yes. Why don't you just try it?
  2. You have misplaced quotes all over the place. $text = "this is just a bunch of random text"; $stext = substr($text, 0, 10); echo $stext;
  3. Most php communities would expect you to at least be a regular member before you could publish these types of things. I know sitepoint.com has blogs, hell, so do we. But yeah, these types of things are normally reserved for members with a decent profile within the community. Just host your own blog or signup to something like wordpress.com.
  4. You might want to elaborate, as I for one have no idea what your talking about.
  5. Depending on what your doing you could also look into traits which are available in 5.4. http://php.net/traits
  6. This topic has been moved to PHP Applications. http://www.phpfreaks.com/forums/index.php?topic=348057.0
  7. Do you really expect people to sift through 800+ lines of code looking for what might be relevant the vague description of your problem? Really?
  8. Given the string: $s = "This is a an appointment reminder for {patient_name}. You have an appointment on {date} with {customer_name}."; You could use a simple str_replace. echo str_replace(array('{patient_name}','{date}','{customer_name}'), array($patient_name, $date, $customer_name), $s);
  9. Either you haven't provided enough information for anyone to be able to help, no one has enough knowledge with simpleTest or your desperation is turning people off wanting to assist you. Either way, constantly bumping your thread will get you nowhere.
  10. You should only have one ServerName directive er vhost. Use: ServerName weblyize.com ServerAlias www.weblyize.com
  11. This topic has been moved to Third Party PHP Scripts. http://www.phpfreaks.com/forums/index.php?topic=347993.0
  12. trq

    mysql to json

    This would be much easier to do if you simply get the data out as normal then use json_encode. this way you'll also be able to reuse your queries.
  13. This topic has been moved to Other. http://www.phpfreaks.com/forums/index.php?topic=347753.0
  14. Take a look at strtotime and date. echo date("d M, Y h:i:s", strtotime('2011-11-16T06:05:15Z'));
  15. This topic has been moved to Other Libraries and Frameworks. http://www.phpfreaks.com/forums/index.php?topic=347639.0
  16. This topic has been moved to Miscellaneous. http://www.phpfreaks.com/forums/index.php?topic=347977.0
  17. You need to include the jQuery library before you can use functionality it provides.
  18. Iv'e not used simpletest, but I would assume that get() expects a url.
  19. You shouldn't be using onClick events in your markup if your using jQuery in the first place but anyway. Post some relevant code, we can't help you much without it.
  20. This topic has been moved to mod_rewrite. http://www.phpfreaks.com/forums/index.php?topic=347966.0
  21. You can use apache's mod_rewrite to rewrite url to look however you like.
  22. This topic has been moved to PHP Installation & Configuration. http://www.phpfreaks.com/forums/index.php?topic=347922.0
  23. This topic has been moved to JavaScript Help. http://www.phpfreaks.com/forums/index.php?topic=347920.0
×
×
  • 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.