Jump to content

trq

Staff Alumni
  • Posts

    30,999
  • Joined

  • Last visited

  • Days Won

    26

Everything posted by trq

  1. There are lot's of ways of doing this but it is generally accepted as common practice to pass such arguments to the __construct.
  2. We heard you the first time.
  3. Is there a particular reason your using a text file instead of a database? Your making allot more work for yourself.
  4. You won't get much help unless you actually describe your problems. to start with, have you defined the AUD constant anywhere?
  5. This is a simple array. See array.
  6. This is why people should learn to think instead of wasting there time copying code from tutorials. What do you need to do? 1) Get the current url. - The $_SERVER array is the place to look. 2) Check to see if it start with the string 'www'. substr will help you do this. I'm not going to provide the code for you because it won't help you.
  7. If you have access to .htaccess you most likely have access to mod_rewrite. This makes your system completely redundant and very inefficient.
  8. AJAX is allot more generic a topic than jQuery. We don't really want to get too specific with topics that aren't our main focus (PHP). Also, because Ajax involves both client & server side code, a jQuery board could never replace it.
  9. If your trying to add an actual array to the $eventarray array your still going about it wrong. For example. $eventarray[]= array("month" => dated["2"] . $dated["3"], "day" => $dated["0"] . $dated["1"]); Sorry for the confusion but your code was so far off track I assumed you where trying to insert a string.
  10. Of course it's possible.
  11. Several have been mentioned already.
  12. This topic has been moved to Third Party PHP Scripts. http://www.phpfreaks.com/forums/index.php?topic=339312.0
  13. You really should find some jQuery tutorials. It's very easy to use once you get the hang of it. One easy thing you could do would be to embed the name of the page you want to include within a rel tag, then grap it from there. <!DOCTYPE html> <html> <head> <script src="http://code.jquery.com/jquery-latest.js"></script> </head> <body> <a href=#" class="link" rel="about">about</a> <a href=#" class="link" rel="whatever">whatever</a> <a href=#" class="link" rel="whateverelse">whatever else</a> <div id="bar"></div> </body> <script> $(document).ready(function() { $('.link').click(function() { $('#bar').load('/' + $(this).attr('rel') + '.php'); }); }); </script> </html>
  14. Looks like your calling echo within echo.
  15. That is nothing to be too concerned about. Just add a SERVERNAME directive within your httpd.conf file (or ignore the error).
  16. You'll want to look at jQuery events too then. In particular the click event. Also, be aware that jQuery code generally needs to be loaded after the DOM is finnished loading. It has a special event you attach to the document to do just that. So, a complete example might look like: <!DOCTYPE html> <html> <head> <script src="http://code.jquery.com/jquery-latest.js"></script> </head> <body> <span id="foo">click here</span> <div id="bar"></div> </body> <script> $(document).ready(function() { $('#foo').click(function() { $('#bar').load("/somefile.php"); }); }); </script> </html>
  17. Look at the string your are creating. Single quotes within a single quotes string need to be ascaped.
  18. The error is pretty self explanitory. It looks however like the error is actually in the Exception.php file which is odd. Has this Zend istall been hacked on much? What is on and around lines 35?
  19. This topic has been moved to JavaScript Help. http://www.phpfreaks.com/forums/index.php?topic=339235.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.