January 9, 200917 yr Hi all, I have been approached by a client who would like me to do some work on their site. Before I give them a quote I wanted to see what current PHP coding they are using as they rely heavily on MySQL. Understandably they where not happy to give me their FTP login details just for a quote, however they where neither happy to send me a sample of their pages. So, is there anyway I can view raw source code online? E.g. when you go to View -> Page Source. It simply shows you the code as you see the page at that time. I need to see how the site connects to the DB, makes queries etc. If you cant do it online, is there any other way round it? I dont feel confident issuing a quote knowing their could be potential a lot more work involved recoding etc. Thank you in advanced.
January 9, 200917 yr You could possibly try using WinHTTrack, which downloads files from a server, or perhaps you could just use a spider of some description and point it at the URL.
January 9, 200917 yr Charge by the hour and it won't matter. I don't think you'll be able to see the PHP stuff, 'cos it's server-side. Depending on how the server is set up, you may be able to try downloading index.php, and there may even be clues in there as to what the other PHP files are.
January 9, 200917 yr Author Thanks for the replies guys. Charge by the hour and it won't matter. I don't think you'll be able to see the PHP stuff, 'cos it's server-side. Depending on how the server is set up, you may be able to try downloading index.php, and there may even be clues in there as to what the other PHP files are. Generally speaking I don't like charging by the hour. As some people see this as a way of making more money out of you. E.g. make the job last longer then it needs to. Hopefully I can find a way round it Thanks again
January 10, 200917 yr You can't view PHP..... PHP is a server-side programming language. Server-side or client-side doesn't really have anything to do with it. What's important is if/how you can get to it.
January 10, 200917 yr Server-side or client-side doesn't really have anything to do with it. What's important is if/how you can get to it. You can't get the PHP......... Unless you could download it.. But any server would have more security then that.
January 10, 200917 yr You can't view PHP..... PHP is a server-side programming language. There is a way, using a specially written php class. However, to make this work they must allow this to happen in their php.ini file. This is highly unlikey if they won't allow you some of their file to view for reference. You can understand why they would not want to giv you their FTP details - that's GOD like rights to their code, if they didn't give you the job, you could get p1ssed off and go into their FTP area and do some catastrophic damage. can they not set up a read only ftp account for you? They could if they know how! - And also if they don't have a dedicated server the chances of them having the rights to do that is pretty marginal. -- If they are not willing to supply you with their code, then you should simply say"My fee is £XX.XX per hour". Oh but don;t burn your bridges - I mean, if it's an opoutunity of a long-term contract then simple give them a good hourly rate, say £15-£20/hour and dedicate 20 hours per week. Tell them that the first 20 hours will be getting to know their code - if you;re any kind of good PHP programmer, there's no way it will take you that long, so you can spend the other 15 hours of the week building your strategy on what you are going to change.
Create an account or sign in to comment