Jump to content

clbassett03

New Members
  • Posts

    3
  • Joined

  • Last visited

clbassett03's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. Is there a way that I can prevent a PHP script that is part of an AJAX app from outputting text? Right now, at the end of the script, I have it ECHO the result back so that the calling script can retrieve the result from the PHP script. Is there an alternative? Can I use "return" or something, as opposed to "echo" to get the results back from the PHP script to the calling function (which in many cases the calling function is a Javascript function). The other thing is that the way I have my HTML form set up is that it doesn't submit or anything. The three lists I have changed automatically when one or more lists are changed, so there is no form submit happening. The AJAX scripts are simply triggered by events tied to the HTML elements, such as onChange and onBlur, etc. Right now, as I have it, if you browse to the page that the request object sends the request to for proessing, in some cases, the PHP script will display the results from the database based on the query embedded in the script, and I sort of don't want people to be able to just run the script and see the results directly,,,,
  2. So, when the PHP scripting engine, for example, is parsing a filename, does it treat everything after the last period in the filename as the extension? I just wanted to make sure it wasn't the other way around, where it would treat everything after the first period it finds, as the file extension. Again, I'm running on a Linux web server.
  3. Is there any potential problem for putting multiple periods in a filename for PHP. My server is a Linux-based server (running Apache), and I'd like to be able to do something like this: ajax.request.js common.textfunctions.js etc...
×
×
  • 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.