Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Recent content by Geee

  1. Geee

    Return the number of rows of a sub query in a stored procedure

    Hi folks, I have the following query that returns the unique rows from a couple of tables... SELECT DISTINCT GameOptionsMap.Value, GameOptionsMap.PositionID FROM playergamepositionmap INNER JOIN GameOptionsMap ON (playergamepositionmap.GameID = GameOptionsMap.GameID) WHERE...
  2. Geee

    Object as an array HELP!

    Thanks for the reply, I have used a work-around for now with a view to reviewing the data structure. The data is indeed for an EPG, but not for Sky ;). -Geeeeeeeeeeeeeeeeeeeeeeee-
  3. Geee

    Object as an array HELP!

    Hi there, I am using an array of objects to simulate an associative array, it is declared as follows: nan12h = { "0": { "count": "24", "name": "Cash in the Attic", "starttime": "11:30", "startstamp": "1218108600", "endtime": "12:15", "endstamp": "1218111300", "description": "Sheila Long\'s...
  4. Geee

    Merging an Array and an Object

    I have an array of data that contains a key [id], and also a list of extended information relating to the data stored in an object that contains the key [chanid]. What I would like to do is loop through one or the other and output all the information from both data sources. The only way I can...
  5. Geee

    PHP Try..Catch and exceptions help.

    Hi there, I am trying to build some error handling into my current application. I have read around try..catch and exceptions but I am struggling to get the examples I see to work in my real world environment. Users are allowed to enter the IP address of a second server on the network which has...
  6. Geee

    Running a function on creation of a class

    Cheers both been googling but couldn't find what I wanted. -Geeeeeeeeeeeeeeeeeeeeeeee-
  7. Geee

    Running a function on creation of a class

    Hi, I am currently using a db class to handle my database functions, but I want to connect to the DB every time an instance of that class is created. I am currently doing this: class db { // class for handling db access var $dbc = array('host' => 'localhost', 'user' => 'root', 'pass' =>...
  8. Geee

    No output from EXEC command.

    Sorry, you are completely correct my question is very badly worded. I am working on linux and the -c 1 tells ping only to send one ping. The EXEC command returns the last line, but I have also used the exec command that stores the output as an array to no avail (although the script works fine...
  9. Geee

    No output from EXEC command.

    If you read my post above, you would notice that I KNOW it's not the exec command that is failing... I appreciate your help but obviously reading my post saves everyone time and effort! -Geeeeeeeeeeeeeeeeeeeeeeee-
  10. Geee

    No output from EXEC command.

    Hi all... I am trying to use the exec command to ping a server on the local network through PHP. The problem I have is that the result of the ping is not being passed back to the PHP when the script is executed from a browser. The command I am using is simply: <?php echo exec('ping bbc.co.uk...
  11. Geee

    Apache (.htaccess) securing of folder with database

    Is it possible to serve pages to the user through file system calls? Something akin to an iframe would be fine, I just thought the php scripts would not be run this way. If you have more information on this method it would be greatly appreciated! -Geeeeeeeeeeeeeeeeeeeeeeee-
  12. Geee

    Apache (.htaccess) securing of folder with database

    I am hoping to allow users access to certain parts of our main corporate server by using a basic PHP login to generate a menu of items they can access. On our server is a variety of PHP applications some open source, and some home written. At the moment we have our webmail, a wiki, a bug...
  13. Geee

    Cross Domain Scripting... AGAIN

    Hi guys. Firstly, I know that AJAX does not allow async page requests to a different domain, and I understand why. My question relates to which domain is classed as the original domain. Is it the domain the pages is loaded from, or is it the page the JAVASCRIPT is loaded from. This may seem...
  14. Geee

    Javascript event listeners in frames

    Thanks for taking the time to reply. Specifically what more information do you want? I guess the crux of the question is - is it possible to still listen for onkeypress when the user is messing about in an iframe? -Geeeeeeeeeeeeeeeeeeeeeeee-
  15. Geee

    Listing lines twice on MySql Query

    As the lazy man that I am, I would use "SELECT DISTINCT" if I knew there were no duplicates in the db ;). -Geeeeeeeeeeeeeeeeeeeeeeee-

Part and Inventory Search

Back
Top