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?
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.
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!
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. :)
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.
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.
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.
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
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....... :)
Sign in to post your reply or Sign up for a free account.
Similar topics
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...
|
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...
|
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...
|
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...
|
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)...
|
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 :-)
...
|
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...
|
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")...
|
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...
|
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...
|
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...
|
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,...
|
by: Charles Arthur |
last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
|
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...
|
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
|
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...
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
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...
| |