Jump to content

scootstah

Staff Alumni
  • Posts

    3,858
  • Joined

  • Last visited

  • Days Won

    29

Everything posted by scootstah

  1. Why not point the domain to a different directory? For example instead of root/public_html, make it point to root/seconddomain (or whatever). If your host uses cPanel this should be trivial.
  2. I know this site is mostly for programming, but I think a forum for graphic design would be cool.
  3. I agree on principle but in reality, most of the popular CMS can do pretty much anything with plugins. Wordpress and Drupal have both been around a long time, and both have a pretty huge plugin repository. I bet you'd be hard pressed to think of functionality that isn't there in some form.
  4. Just think what things will be like in another 30 odd years. If my internet is anywhere near as fast as Japan and S.Korea's is now, I'll be happy enough.
  5. I still don't know what you are trying to do with $this->object.
  6. No, it would probably appear as two sites sharing the same content. Why do you have two domains pointing at the same public_html?
  7. With a direct comparison to MySQL it's really not any faster. But it still has a lot more useful features. If you really want support for a lot of vendors then I would go with PDO. Either way, I definitely recommend a wrapper. The syntax is just ugly and cumbersome in my opinion. I don't want to type 10 lines of code every time I want a simple INSERT.
  8. Yeah, pretty much all of the most popular PHP applications are utter spaghetti code. That's both a great and a terrible feature of PHP.
  9. PHP6 won't be out for quite a while. Now is a good a time as any to learn MySQLi. It's not even a big difference at all if you don't take advantage of any of the new features. In most cases just stick an i at the end of the function and you're good to go.
  10. I hope so. There's really zero reason you should be using it anymore.
  11. No. Errors are still errors when hidden.
  12. $pattern = '/<div id="power-push2">(.*)<\/div>/i'; $str = '<div id="power-push2"><a href="../?id=11" class="imghover"><img src="../1.jpg" alt="abc" width="160" height="213" /></a><p><span class="p-w15">username</span></p></div> <div id="power-push2"><a href="../?id=22" class="imghover"><img src="../1.jpg" alt="abc" width="160" height="213" /></a><p><span class="p-w15">username</span></p></div> <div id="power-push2"><a href="../?id=33" class="imghover"><img src="../1.jpg" alt="abc" width="160" height="213" /></a><p><span class="p-w15">username</span></p></div> <div id="power-push2"><a href="../?id=44" class="imghover"><img src="../1.jpg" alt="abc" width="160" height="213" /></a><p><span class="p-w15">username</span></p></div> <div id="power-push2"><a href="../?id=55" class="imghover"><img src="../1.jpg" alt="abc" width="160" height="213" /></a><p><span class="p-w15">username</span></p></div>'; preg_match_all($pattern, $str, $matches); echo '<pre>'.htmlspecialchars(print_r($matches, true)).'</pre>'; EDIT: Oops, misread your question. Give me a minute. EDIT: Is this data static or dynamic?
  13. Of course you do. Just because you're a super badass developer doesn't mean you write everything from scratch. Smart developers pick the right tool for the job and go with that.
  14. Did you read the documentation?
  15. Try floating the label instead of the input.
  16. No, just refresh the AJAX call.
  17. Post more than 3 lines so I can see what is going on.
  18. JSON can't be an array... it is a string. It looks like this: {"one":1,"two":2,"three":3} Using json_decode, you convert the JSON into an array.
  19. Seems to work: /^<div id="power-push2">(.*)<\/div>$/i
  20. I already showed you how to retrieve a value from an object. Post your actual code.
  21. Are you using an AJAX response? If so, you need to only be outputting the specific message from the PHP script and not the entire HTML layout.
  22. Working jQuery example here: http://jsfiddle.net/CGJcq/
  23. $this is only usable in classes. And you are trying to access the object as if it were an array, which it isn't.
  24. Most CMS are designed for people that don't know programming. In reality, most CMS are just a bunch of forms and settings - there's never a time that you need to know how to program unless you want to modify it.
  25. Post the file with the session_start in it.
×
×
  • 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.