Jump to content

trq

Staff Alumni
  • Posts

    30,999
  • Joined

  • Last visited

  • Days Won

    26

Everything posted by trq

  1. C# (.net) uses Ajax in the background to make requests between the client and server. PHP won't hold your hand like that. You will need to develop both the client side & server side code to make the Ajax requests yourself. Using a framework like jQuery on the client side makes these things pretty simple though so I'm not sure what the issue is.
  2. PHP executes server-side, so you need to make a request to the server in order to execute PHP. You might look into Ajax.
  3. Can we see it?
  4. Pass the $database into the object using a __construct() method. And please, next time, use tags.
  5. Put your command into a string first and echo it so you can actually see what it looks like.
  6. Where exactly are you stuck?
  7. This topic has been moved to JavaScript Help. http://www.phpfreaks.com/forums/index.php?topic=337876.0
  8. What exactly is the $xmldoc object?
  9. This topic has been moved to PHP Regex. http://www.phpfreaks.com/forums/index.php?topic=337796.0
  10. That is your OS's root, not necessarily your web servers though. You will need to check your Apache config (usually httpd.conf) file (assuming your using Apache).
  11. Do you have a call to session_start() in compose.php?
  12. So, what is the problem exactly?
  13. You could always check property_exists.
  14. What exactly is the problem with your JSON?
  15. The Location header should be passed a url, not a relative path like it appears you are doing.
  16. Calling require_once within a function will bring your template into that functions scope, you need to capture that and return it. This can be easily enough done using output buffering.
  17. Care to at least attempt to help us help you? What error are you getting? You do have error reporting on don't you?
  18. Could be any number of things, you will need to provide more information. Can you execute the script form the command line? Do you even have Perl installed?
  19. No and no. A dot is the concatenation operator in PHP.
  20. That is indeed what you need to do. Your modules directory should be listed in Apache main config file (generally httpd.conf). You may also see the modules them selves being loaded in this same file, or you config might br broken up into multiple files. Either way, digging through your httpd.conf file should get you a pretty good start.
  21. Yes it's a good idea to abstract as much functionality away you can into base classes. Just be aware though that php is only single inheritance, this means you can end up with long chains of relationships.
  22. I'm not overly familiar with freeBSD but most Linux distros would have this as a seperate package, maybe freeBSD does the same?
  23. This topic has been moved to mod_rewrite. http://www.phpfreaks.com/forums/index.php?topic=337461.0
  24. This topic has been moved to Installation & Configuration Issues. http://www.phpfreaks.com/forums/index.php?topic=337462.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.