Jump to content

shaggycap

Members
  • Posts

    21
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

shaggycap's Achievements

Member

Member (2/5)

0

Reputation

  1. Hi businessman332211 ( you have a long username! ) Will the PDF still be a image though in the final output? As really it would need to be a true pdf.
  2. I was wondering if anyone had any experience of splitting & appending PDF's? A client has a huge pdf, and he wants to give the user the ability to mix and match the chapters that they want to download. The final final will be 1 pdf, but may consist of various different chapters chosen from a list. The chapters will be ripped from 1 master pdf. Oh, and the PDF is not just text it contains all manner of images,links & the like! And that is what is required. I was wondering if anyone had any pointers regarding this? I'm thinking PDFLib, but I haven't fully looked into it yet. Thanks guys.
  3. I need to remove everything up to and inlcuding the -, ie the following string 15e-6812 needs to be converted to 6812. [code]$string  = '15e-6812'; preg_replace($reg_expression_goes_here, '', $string);[/code] And the number of characters before the minus sign varies, so is it possible to match 'to the left of and including' the minus sign? Thanks.
  4. I have searched high and low and wondered if anyone knew of any examples of the following: I want to build a navigation category/subcategory system, for a content management system. I want to be able to add categories and sub categories into a database structure, and from this I want to be able to create nested <ul> 's. I am at a loss as I just cannot seem to get my head around how I should create the database structure, as I want to be able to have a potentially unlimited number of sub categories. Has anyone ever done anything like this? Many thanks
  5. kc9ddi, check this out: It rocks! [url=http://www.codeigniter.com]www.codeigniter.com[/url]
  6. I'm building a user admin section on my CMS, and have a page showing the details of a user that you can edit. I can't just display the password field as its an MD5 hash, so what would be the best approach here? Obviously I can't decode it so I wondered how you dealt with something like this?
  7. I am about to upgrade the version of PHP on a server and need some good advice. The company linux server hosts websites for about 60 clients, and I need to make the right choice so I don't break anything. The version at the moment is 4.1.2 (OLD!!) and the link to the phpinfo is: http://www.cms.istl.com/phpinfo.php But this is too old for the new framework I am using (codeigniter) as this requires a minimum of 4.3 to run. I am trying to decide on which version is best to upgrade to, ideally it would be v5.2, which is the very latest official release, but I am thinking that could potentially cause problems with old code? I have no idea exactly what php code is on the server, but I do know that there is a complex invoice application running. Would it be safe to upgrade to v4.4.4, which is the latest of the 'fours', or would it be wise to make the jump to the 'fives'? I hold my breath and await your words of wisdom :) Chris.
  8. Thanks fenway, much appreciated. Looks like I am a little closer to becoming a Jedi than I first anticipated.
  9. Well its almost there, its just that there will be a lot of duplicate entries in the task field, and I thought it would be possible to improve this table. I'm now thinking that it would be less code to just have individual fields for the C,R,U,D part. ???
  10. I am working on a basic permissions system. I don't see the need the groups for this application, so I'm using something vaguely resembling the 'CRUD' method. However I'm struggling to arrive at a decent database structure. I have a table for the details of the user: -------------------------------------------- | Username(pk) | Password | Email Address| -------------------------------------------- and a table for the permissions: --------------------------------- | Username | Task | CRUD | --------------------------------- | Billybob | Content| 1011 | | Sammyjoe | Product| 1100 | I'm simply using a true/false for (c)reate (r)ead (u)pdate & (d) to assign permissions. However, as you can see I havn't really normalised my table here, and I'm at a loss as to the next step. At present I will end up with a load of duplicate entries for the tasks, ie both Billybob and Sammyjoe will have content permissions, and both have Product permissions etc. Would anyone be able to advise me how would I improve this further? Or even scratch it if theres a better way. Note- I don't want it to be too complex
  11. A client has an internal system at his office, that is based on Microsoft Access 2002. This is used as a customer database, order processing etc. He wants an online portal to this database, whereby Engineers with PDA's can view outstanding jobs assigned to them, and interact in real time with the internal system. I have done something similar using PDA's in the past, but it involved an onsite webserver and middleware, in order to protect the internal database. This is what I want: The web portal will be hosted elsewhere, and the access DB will remain on the customers site. Is there a way of accessing this database from the outside world and performing SQL queries on it? I assume it will need some sort of server setting up onsite? Thanks.
  12. Thanks Shoz [size=14pt][color=green][font=Verdana]YOU THE MAN[/font][/color][/size]
  13. I am struggling with a SQL statement and hoped someone would be able to help :) I have 2 tables: customer_depots contacts Each table contain fields called 'customer_depot_id' and 'address_id'. What I want to do is update the address_id in the contacts table, with the value of the address_id in the customer_depots table, only where the customer_id values match in each table, AND the address_id in the contacts table is equal to zero. Does this make sense? So, update address_id in contacts, where address_id in contacts = address_id in customer_depots and address id in contacts = zero. This is because a number of address_id's are missing from the contacts table, and I want to replace them with the correspondingvalue from the other table. I have got as far as a SELECT statement, which goes someway to explain things, but I need an UPDATE statement like I have explained above. [code]SELECT cd.ADDRESS_ID FROM customer_depots cd, contacts con WHERE con.CUSTOMER_DEPOT_ID = cd.CUSTOMER_DEPOT_ID AND con.ADDRESS_ID = 0 [/code] Hope someone can help :-* thanks.
  14. I'm very sorry but I'm afraid I've just been told it is actually a PDF and NOT a word document I want, so all the files will be PDFS, including the source document. Thanks for your help though
  15. A customer has an annual report that they have on their website, which is quite a large word document. However most people who download it are only interested in a section of the document, and not all of it. I know the easy answer is to make 2 documents and give them the choice, but different folk want different parts, so I have been asked if it is possible to manipulate the document with PHP, and somehow pull chunks out and glue them back together? The way I see it working is something like this. Each chapter is a separate .doc and then have some sort of contents page whereby people can download selective chapters of the document, and say if they choose to download the first & second chapter, then I want to append the 2 documents together as one. Is this possible?
×
×
  • 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.