Jump to content

labmixz

Members
  • Posts

    10
  • Joined

  • Last visited

About labmixz

  • Birthday July 18

Profile Information

  • Gender
    Male

labmixz's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. Laravel and Symfony are both good frameworks. Kahuna is an interesting one to look at and fairly simple (or was the last time I played with it, about 3 years ago). Though, these are full-fledged frameworks and may "scare" new people away with information overload. This is of course depending on what type of person you are and how you learn. I would suggest looking at micro frameworks and working your way up, as they are more simplistic, not as large and you can scale them up to the full frameworks as you get more familiar with it. Silex is the micro framework for Symfony, easy to get started on it and figure out what's going on. Lumen is the micro framework for Laravel, also easy to get started on it and figure what's going on. Slim is a micro framework for making APIs fast, it's pretty nice, if you're into making APIs I would check that out. Keeping it simple and scaling up when it comes to learning can be a good way to learn, as then you understand more what each included package does as you install it as needed (i.e. scale up the micro framework with extra packages). Starting off the bat with a full framework, you may have to do a bit of research to find out what each package within the framework does, how it acts, etc. Especially in Laravel, which has crazy names for things that absolutely make no sense at all, half of the time. Again, that can be a great way to learn, but all depends on your learning style.
  2. I decided to play with some of the google maps API earlier today and ran into a snag... One I thought, ok, I don't have this enabled, let me go look at the php.ini The problem with this is, in the php.ini, extension=php_domxml.dll, was uncommented out, ok, so lets run a phpinfo(); Results: DOM/XML enabled DOM/XML API Version 20031129 libxml Version 2.6.22 HTML Support enabled XPath Support enabled XPointer Support enabled Schema Support enabled RelaxNG Support enabled Reading on php.net, I need at least libxml 2.4 or higher, which I have... So I'm kind of stumped as to why this won't work. I read a blurb from a user on php.net saying you needed a set of .dll's installed on windows/system32 but doesn't say which dll's, he said he got them from the php_install_dir/dlls/ (he was also using php 4, which I'm using php5) so I downloaded an older (5.2) .zip of the php install and didn't find that directory. So, anyone have any suggestions for me? I would like to play with this API some
  3. I finally got the information I wanted, I had to create a loop to gather the information and put it into a seperate array when I could easily pull out the names of they elements... $x = 0; foreach($key1 as $key2){ $y = 0; while (list($key, $val) = each($key1)) { $list[$y] = $key; $y++; } echo $list[$x]; $x++; } which lists the name of the element as I'm going through it, which the above is a fairly small portion to what I have and the reasons I needed it are not visable by the above, but I am just glad it's now working. Thanks for the help.
  4. Actually a better way to say this is, I want to know the name of the key I'm currently in, within my loop, since I don't know the name... when I need to output the name.
  5. Maybe I didn't explain what I wanted... I already have a foreach looping through everything, that works fine... Here's the array: $array[$key1][$key2][$x][0] $key1 = random from DB $key2 = another random from DB $x = counter getting the info out with a foreach works just fine but I need to know what the name of $key1 is (NOT THE VALUE, but the name of the ARRAY KEY) before I start my loop to get the values... Granted array_keys would work, but I only want to extract that one array key name at that point, not the whole list... and I don't know what the key name COULD be so I can't search for it... because the name of the key is what I need to know to begin with... So basically I know nothing about the array other than how it's setup... I don't know what the first two key are named, just that they are named, I want to know what $array[$key1] is named (not the value, but what the key name is).... Hope that better explains things.
  6. I need to find the name of the array element, not the value. What's going on is I am pulling data from a db that has to be sorted a certain way... I wanted the array to look like: $array[$key1][$key2][$x][1] Basically $key1 / $key2 are two unique id's for that unit and then that group within that unit.... while $x is just a standard counter... problem is I don't know the names of $key1 / $key2 and I need to know what they are. I'm sure this is a stupid easy question... just can't think of the solution at the moment.
  7. I tried a few methods on there, doesn't seem to work if you open the PDF document, type in the fields, then save the document, even though when you bring the PDF up in say, Adobe Reader, the values don't show up in the pdftotext functions... Likewise within Adobe Reader OR Adobe Acrobat Pro 8, if you take the saved PDF with the values and export it straight from Adobe to a XML document, it also will not show the values... However I did open up the PDF document in notpad and found a lot of garbage, but what I did find is that each field with it's value started like: R/T(field_name) /V(value) Which means, I could open up the file with a simple fopen and parse thruogh the data that way, kind of an annoyance with all of the trash in the file, but would be a way to do it. Just don't understand even exporting it from Adobe Pro 8, it still won't export the values out... kind of stupid... If anyone has a better solution for this please let me know.
  8. I've been trying to find a solution (library) that enables me to open a .pdf document (which is already filled out by personal) and then parse through the fields and reading the values of the fields... However it seems most everything I find is about PDF Generation... PDFLib was something I first looked at and it is 90% about PDF generation, however the PPS product they offer will allow me to add values to the fields of the PDF, which is not really what I'm looking for, I can make this work, but it's not the ideal solution for what I'm working with. I also looked at Adobe LiveCycle Reader Exntensions ES, however that needs a Java Application Server to even run, so in my opinion that's ot of the question... The ideal solution is: Worker will pull up an online library of PDF's, then they will save that PDF to their system, do a series of tasks to complete the checklist on the PDF, then upload the complete PDF via: web interface, from there I want to parse through the data, if the data validates tell them so and save the uploaded PDF in a specified directory pertaining to the ticket ID, if the data doesn't validate then tell them so and reject the document. -- All of the above is easy, except the reading of the PDF, which I can't find out if the built-in PDF functions can actually READ an already filled out PDF document... Right now the only solution I have is to duplicate every PDF form in a web-form, validate the fields server side with business rules on submit, if valid create a .FDF, then from there after all the .FDF's are made (probably will be several PDF's/FDF) merge all the FDF's into PDF's, then merge all the PDF's together as one document in order. Doing it this way is not the ideal solution because the PDF documents can change, rather if I'm just parsing for certain field names and reading the values, that would be ideal. Of course the complete ideal solution is to do away with PDF's and make everything stored into a database, however I can't do that as this is an already on going process, we are just trying to add validation and tracking to an already existing process. I hope someone has an answer for me...
  9. hmm, I tried the sspi mod before and it didn't seem to work at all (tried it about 2 weeks ago), it's such a straight foward mod it's kind of hard to mess up, but now it seems to work fine in my test environment.
  10. I really hate this... Usually when I get someone asking for an auto-login using Active Direction based on the user whom is logged into that computer, I usually make sure their web-server is IIS, because I can never seem to get Apache working with this... Granted, I can get Apache / PHP to do a LDAP query and check for the username / password, all that works fine, however, the user is prompted for the username/password... I tried using the old apache_ntlm mod, which is out-dated for the most recent stable build of apache, so that doesn't help much... but either way I've tried that mod a year ago and it didn't work then and doesn't work now... it allows you to prompt the user for a username / password and then authenticate, but I can do that on my own without an apache mod... Does anyone know how (if possible) to get an Apache mod that will check the currently logged on user of the domain within Windows, then (ie: they are already logged on to the domain) then pass that user variable to the php $_SERVER['REMOTE_USER']; or even the $_SERVER['PHP_AUTH_USER']; -- either will work... I just can't have the user being prompted for a username/password. Right now my other solution is a horrid one... to have one IIS server basically as a "gateway" which the sole purpose of it is to authenticate the logged in user, then pass the variables to the Apache server. I have to do this because they have other things setup that absolutely will not work in IIS... (mods and addons to Apache) Any help would be much appreciated. Thanks, Henry
×
×
  • 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.