473,385 Members | 1,359 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

Should remove comments from a file before hosting?

hsriat
1,654 Expert 1GB
I have a site in PHP, and I am going to host it with IX Web Hosting.

Since I am doing it (uploading a website) for the first time, I was just wondering if its safe to leave the comments along with the PHP code in files?

Is it safe enough?

Any other precautions?
Feb 23 '08 #1
8 1285
NeoPa
32,556 Expert Mod 16PB
The Cafe is for NON-technical questions.
As this seems to be PHP related, I've moved it to the PHP forum.
Feb 23 '08 #2
Markus
6,050 Expert 4TB
I have a site in PHP, and I am going to host it with IX Web Hosting.

Since I am doing it (uploading a website) for the first time, I was just wondering if its safe to leave the comments along with the PHP code in files?

Is it safe enough?

Any other precautions?
Ofcourse it is..
PHP is inaccesible to anyone that doesn't have access to your server.
Imagine what state the net would be in if people did have access to anyones PHP code.
Sheeeeesh!

Yeh, don't worry about it - comment it as much as you can because, in 5 years when you come back to look at the code, you might've forgotten what the hell it's doing!
Feb 23 '08 #3
hsriat
1,654 Expert 1GB
Ofcourse it is..
PHP is inaccesible to anyone that doesn't have access to your server.
Imagine what state the net would be in if people did have access to anyones PHP code.
Sheeeeesh!

Yeh, don't worry about it - comment it as much as you can because, in 5 years when you come back to look at the code, you might've forgotten what the hell it's doing!

Thanks :)

I was actually thinking about the people out there in the hosting company who have access to the server.

But I guess I was worrying for no reason....!



@ neoPa I thought the question was general. Someone using something other than PHP may need to know this.
But, thanks, I got my answer here. :)
Feb 23 '08 #4
Markus
6,050 Expert 4TB
Thanks :)

I was actually thinking about the people out there in the hosting company who have access to the server.

But I guess I was worrying for no reason....!



@ neoPa I thought the question was general. Someone using something other than PHP may need to know this.
But, thanks, I got my answer here. :)
Well, they only have access to their own domains.. so don't worry about it.
People higher up (ie, admins for the hosting company) might have access but they'd sure get fired for messing around.
Feb 23 '08 #5
hsriat
1,654 Expert 1GB
Well, they only have access to their own domains.. so don't worry about it.
People higher up (ie, admins for the hosting company) might have access but they'd sure get fired for messing around.

Yeah, you are right I think.
Feb 23 '08 #6
NeoPa
32,556 Expert Mod 16PB
...
@ neoPa I thought the question was general. Someone using something other than PHP may need to know this.
But, thanks, I got my answer here. :)
Not a big problem, but the Cafe is for questions that aren't technical. Somewhere for members to relax.
You possibly could have used the Misc Questions forum instead. As I say though, no big deal - it's here now.
Feb 23 '08 #7
ronverdonk
4,258 Expert 4TB
Whoever has access, it doesn't really matter. Removing the comments still leaves the code itself. And a clever PHP programmer does not need comments to find out how the script works. So just leave all comments in.

Ronald
Feb 23 '08 #8
hsriat
1,654 Expert 1GB
Not a big problem, but the Cafe is for questions that aren't technical. Somewhere for members to relax.
You possibly could have used the Misc Questions forum instead. As I say though, no big deal - it's here now.

Ok, I got it....... :)
Feb 24 '08 #9

Sign in to post your reply or Sign up for a free account.

Similar topics

2
by: Greg Chapman | last post by:
I am at my wit's end trying to get information out of Streamline.net's support dept about my problem. They reply quickly enough, but seem to try and give out the least possible amount of info each...
1
by: Gregory.Spencer | last post by:
Hi There, Been working in a PHP / MySQL project I took over code development for. Today when testing new changes suddenly started getting "Failed to connect to the database" errors. When...
9
by: Ken | last post by:
I am trying to create one image using JavaScript; then later in the script remove the image - not just remove the src. The following creates the image, but I have been unable to remove it. How...
11
by: James Hu | last post by:
This program is long. I don't really want to bore everyone with the details, but it handles wierd cases like: /\ * this is a comment *\ / #define FOO ??/* this is not a comment */ char...
14
by: David Lozzi | last post by:
Hello, I am in need of some advice. I want to move to .Net 2.0 and Visual Studio 2005 for ASP.NET developement, however I'm hesitant. Here are a few questions I have regarding the upgrade: 1)...
100
by: jacob navia | last post by:
Recently, a heated debate started because of poor mr heathfield was unable to compile a program with // comments. Here is a utility for him, so that he can (at last) compile my programs :-) ...
1
by: michael8 | last post by:
The problem was to write a program that reads a .cpp file containing a C++ program and produces a file with all comments stripped from the program. I finally got the answer. Here it is if...
9
by: Frank Potter | last post by:
I only want to remove the comments which begin with "//". I did like this, but it doesn't work. r=re.compile(ur"//+$", re.UNICODE|re.VERBOSE) f=file.open("mycpp.cpp","r") f=unicode(f,"utf8")...
3
by: Mark C | last post by:
Hi I was in the progress of developing a web site whereby developers can do free online tests on various programming languages. After initial feedback I managed to fix quite a few issues and...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.