Jump to content

dexhaven

New Members
  • Posts

    7
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

dexhaven's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. I have this xml document root node: <EventData objectID="ca3d3b53-f880-4000-ac2b-616982215a02" defaultOID="92a368c2-d96a-47a9-913a-a688fcab29df" xmlns="urn://www.nowhere.com/events.xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> I want to use the xpath expression: /EventData[@defaultOID] to get the defaultOID. How do I do it? I think I have gotten this far, but don't know where to go from here: $xpath = new DOMXPath($xmlDocEventData); $xpath->registerNamespace("p", "urn://www.nowhere.com/events.xsd"); $query = '/p:EventData[@defaultOID]'; $entries = $xpath->query($query, $xmlDocEventData); What do I do with the $entries?
  2. The very last line of my original posting when like this: "Or would I simply be better off using the IP address considering this is a closed intranet?  I don't know, any  suggestions?" Correct me if I am mistaken, but is not your reply simply an explanation of how to use the IP address?  If I am correct, then I would have to say, yes I did come up with the answer at the very end of my post.  I could have not bothered anyone with it and simply followed through with the thought process that you put in your initial reply. Of course this is *NOT* to take away from your post, I do appreciate it.  Dexter
  3. [quote author=jesirose link=topic=124750.msg517340#msg517340 date=1170186303] The best editor I have ever used is Textpad.[/quote]Is this to day that you never use a debugger to step through your code?  This has always been the way I have worked with PHP in the past, but coming from C/C++ and .Net, things move MUCH faster when I can step through the code.  Which is why I am looking for such a tool. [quote author=jesirose link=topic=124750.msg517340#msg517340 date=1170186303]Not to be rude, but this is your first PHP project, and you're planning on selling it? Okay, but you don't NEED to obfuscate it. Plenty of php programs are sold without being obscured. File for a copyright for $30 instead of wasting your money on those programs.[/quote]I could see where one might say that, but the PHP is only a small part of my kiosk software, but an important part which I would like to keep under wraps.  On the other hand, if there is no good reliable way to obfuscate it, then so be it, I will find other ways to work around things <grin>. Dexter
  4. I am going to be beginning my first real PHP project this evening.  I like the idea of having a development environment that will allow me to step through the PHP code.  What are my options and what do YOU recommend? My am also going to be selling this code as packaged software so I will need to obfuscate it.  I see that there are numerous options from free to about $800.  Are there any major short comings to the free ones which I need keep in mind during development so that they can be a candidate or am I simply better off with a commercial version?  Which do you recommend? Dexter
  5. Du, sometimes I simply need to write it out to see the obvious answer;)  For a second there I was concerned about a viewing station dieing and adding a new system, but the answer there is to simply shutdown the server and fire it back up real fast!  No big deal. 
  6. Anyone have any thoughts on this?
  7. I am developing a kiosk style product to be used at events.  I have many years of professional experience in desktop application development, but only years of hacking here and there with web development. The kiosk operator will start up server that has a GUI front end to populate the system with data.  The viewing stations will be web browsers.  The setup/network will be setup and broken down on at the events by my customer.  I am going to distribute a slimmed down copy of Apache and PHP with the software to use as the engine to get the web site to the client machines and running it on a non-standard port as not to conflict with any pre-existing web server on the system, so I have absolute control over Apache and PHP! In general terms, how would you go about limiting the number of viewing stations that can connect to the apache web server?  My pricing model is going to be based on viewing stations.  The data will originate from the GUI.  Coming from a C/C++ background and having complete control of the web server, I know there are many options!  I am looking for a relatively secure way of controlling how many viewing stations can connect to the server.  Would you do it via PHP or other means?  If by PHP, how exactly would you do it?  In all my playing with PHP, I have never done much with sessions.  My current thought is that the GUI will save a binary file that PHP can pick up that will have the number of connections to allow.  Then I need to do something with sessions to control that.  Or would I simply be better off using the IP address considering this is a closed intranet?  I don't know, any  suggestions? Dexter
×
×
  • 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.