Jump to content

eisdrache

New Members
  • Posts

    3
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

eisdrache's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. Alright, let me try and set the scene here: I am working with 3 servers: a database server (MSSQL) and two webservers (call them web1 and web2). Web2 needs to pull data from the database server, however, it does not have the mssql extension installed. Web1 does have the extension installed and can therefore query info from the database server. So, web2 calls a script on web1 (in an include statement) which querys the database and returns the info to web2. I know this is quite a convoluted approach but it works. (I know that it would make much more sense to install the mssql extension on web2, but for the sake of argument lets prentend thats not possible). Now, the problem is: if the database server has a problem (e.g. web1 cannot connect to it) it delays the entire page load on web2 so that just a blank screen shows until the script craps out. So is there a way to load all of the html and then run that query script, or some other approach that wont leave web2 at the mercy of the database server? Thanks in advance (if this doesnt make any sense let me know and I will try and clarify)
  2. great, thanks for the help. I can't believe how many times I actually looked at that article at php.net and still couldn't figure out the answer (my ADD must have been kickin in really bad). Anyway, thanks again.
  3. I have been writing PHP5 for quite some time now without any problems. So, I know how to pass variables via url. However, I recently began doing some work on an older server that is running PHP 4.0.4pl1 and it will not recogize any of my variables that I pass via the url. Here is an example of some code that works perfectly on the server running PHP5 but does not work on the server running PHP 4.0.4pl1: ------------- www.example.com/index.php?data=nodata $data = "confused"; if ( $_GET['data'] ) { if ( $_GET['data'] == "nodata" ) $data = "nodata"; else if ( $_GET['data'] == "all" ) $data = "all"; } echo $data; // returns "confused" ------------- Is this a known issue with PHP 4.0.4pl1 or is there something amiss in my php.ini file? Thanks in advance for any help.
×
×
  • 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.