eskimmer
Aug 16 2007, 09:13 AM
| | Hi, first, sorry about my english.
i am a beginner with php and i have some question about writing files using php in a shared hosting. is a risk?, use database to store data is a better way? i just want make an interface (in php) that write the data in a .html extension file to show to everybody the html page and just the php interface is to the content manager.
thanks in advance
|
Reply
shadowx
Aug 16 2007, 11:25 AM
Well for what you describe, eg writing info to a HTM page for display to a user, it think it would be easier to use variables and ECHO. EG set up a GET variable which is in the URL called PAGE or something eg www.site.com/index.php?$page=one Now in your script simply get this variable back and check it using an IF statement: CODE if($page == "one"){ echo "this is page one!"; } ELSE { echo "this is page two"; } But if you wee dead set on using FWRITE and such then its not really a security risk in itself, the danger is that you have to set full permissions, at least i do anyway, to 777 which means that the file or folder which has those permissions is slightly less secure, its not really a massive issue and ive never had any issues from it. I would usually use a database to store information rather than a file as files can be seen by users whereas a database is usually hidden and secured quite well.
Reply
Similar Topics
Keywords : security, issue, writing, files, security, issue, writing, files
- Linux Issue
on startup (2)
Linux/ Apache /mod_rewrite Issue
Error when accessing a file (4) running on Ubuntu 8.04 with an XAMPP - php5.2.5, Apache 2., etc Getting this error when I try to
access an sNews CMS which requires mod_rewrite and is installed locally: QUOTE Apache/2.2.8
(Unix) DAV/2 mod_ssl/2.2.8 OpenSSL/0.9.8e PHP/5.2.5 mod_apreq2-20051231/2.6.0 mod_perl/2.0.2
Perl/v5.10.0 configured -- resuming normal operations /opt/lampp/htdocs/jim/snews/.htaccess:
RewriteBase: argument is not a valid URL /opt/lampp/htdocs/jim/snews/.htaccess: RewriteBase:
argument is not a valid URL Using this link: http://localhost/jim/snews/snews16_ema....
Deny Or Grant Users Access To Files Of Choice (vista)
Uses Bat Files To Deny Or Grant People Access To Files (3) Deny Or Grant Permission Requires Notepad Vista This Technique Can be Used On Earlier
Versions Of Windows But Uses Different Syntax: To Deny Access Open Notepad and Type @echo off
cls Icacls PATH OF FILE GOES HERE WITHOUT PARENTHESES /deny USERNAME OF PERSON YOU WANT TO DENY:(F)
And To Grant Is The Same Process @echo off cls Icacls PATH OF FILE GOES HERE WITHOUT
PARENTHESES /grant USERNAME OF PERSON YOU WANT TO DENY:(F) And There It Is. Simple Huh!....
[ Aef ] Security Update For Aef Forum Software
Highly recommended (1) For the benefit of any or all AEF Forum Software users, there has been a Security Issue found in the
BBcode handling of the software. A Patch file is available and it is as simple as uploading a
replacement file to overwrite an existing file in the Install. File download and further
details are available here . The Update is highly recommended since the vulnerability is
now public and no telling what mischief could result on your Forums. ....
Memory Card Issue
(5) Hey does anyone know how to photos off a memory card? The photos seem to be stuck on mine, i
can't delete them on the phone and but it will let me delete them while it is plugged into the
computer. When i delete them on the computer they are removed from the "photos" folder on my memory
card, but when i put the memory card back into my phone or the computer they show up there... I
can't add anything to the card either... Anyone know how to fix this The card is not in locked
mode.....
X Files: I Want To Believe!
(2) I am a big fan of X Files (the D drives on both my desktop and my laptop are called X Files in
it's honor /biggrin.gif" style="vertical-align:middle" emoid=":D" border="0" alt="biggrin.gif"
/> ) so there was no way I'd miss it. I know it is a bit late, but the movie had it's
opening a week ago in my country and I didn't want to simply download it. So here we go... X
Files: I Want To Believe is a bit odd for the usual X Files topic - UFO, aliens... Not odd, but
different! I knew that before viewing the movie and I was still disappointed at the end. ....
How To Create Pdf Files Using Free Tool
Introduction to use a free tool to create PDF file (0) Now, that you don't need to have expensive software like Acrobat to create PDF. All you need is
Microsoft Office and a software name doPDF. You can download the freeware from
http://www.dopdf.com/download.php After downloading dopdf.exe, follow the instruction below 1.
Double click to install it, as display at image 1.jpg, choose a language and click OK 2. You will
see 2.jpg click next 3. Click I accept the agreement see 3.jpg, click next 4. Now you will see
4.jpg, select the folder to install it and click next 5. When seeing 5.jpg, This is the folder group
in Star....
Clearing Your Ie Tif
Clear your Temporary Internet Files on IE (0) -Welcome to: Clearing your Internet Explorer Temporary Internet Files Tutorial-!
Attention!: As some of the members on here may know, it is possible to clear your Internet
Explorer Temporary Files. I have searched this entire Tutorials subforum to find a topic already
made, and I have found nothing. This tutorial I did NOT find this on Google, or any other search
engine. I always find this out for myself. Lets start: Ok, first we open up Internet Explorer,
then we click "Tools"...then we click on "Internet Options...". On the Main page "Gener....
How To Download Any Flv Files From Any Sites
(6) Now you can download any flv files from any websites!! People often know how to download
youtubes clip, but not from other sites. In this tutorial you will need a tool name Moyea FLV
Downloader, it is free and you can download it at http://www.flvsoft.com/download_flv/ This is
the best tool i have meet up with to download flv files in any site. Since it can detect flv files,
and list it, you can download it as you want, so no more favourite clips goes away from your sight
and now you have it on your own hard drive! 1. Run moyea flv downloader see 1.jpg 2.....
Panasonic Lumix - Problems With Movie Files
troubles managing (renaming, moving, deleting) movie files from the ca (0) I've recently bought a Panasonic Lumix TZ3, the one with a wideangle to telephoto lens (10x zoom
from 28mm to 280mm equivalent) and I am very satisfied with the overall performance. Obviously I
didn't buy the camera because of the movie features but occasionally I do take some short clip
or use the "picture with audio" to comment on a photo, these functions are pretty easy to use and
the quality of the video is reasonable. The movie files (or the audio attached to a picture) get
saved in Jpeg Motion Picture format, generating a .MOV file which appears on the me....
Firefox Temporary Media Files
Where are they stored? (0) Sometimes when I view video tutorials online and I want get pleased with the flash or mp4 I will be
viewing online. When I try to seach for the temporary file stored by Firefox so that I can save it
in another drive I fail to find it. Does anyone know where these files are stored and which format
they will be in? One day I opened the folder: CODE C:\Documents and
Settings\Rare\Local Settings\Application
Data\Mozilla\Firefox\Profiles6qbhaqp.default\Cache and found a lot of files
without extentions. Could these be the ....
Lan Surfer In Linux
GUI software to view other's shared files (2) I have been using LAN surfer and Network scanner in Windows , These software's are used
to scan the LAN over a given range of IP addresses and then display the folders shared by each
computer available on LAN in the specified range... now i have switched to Linux... Can you tell me
any GUI software which would do this task in Linux ubuntu 7.04. I tried nmap but i did not
find it that useful...i think it does only port scanning and stuff but does not display the files
shared... but i am not sure..tell me if it can be used and how... I also installed s....
Ftp Issue?
Solve? (1) I can not access to my FTP server, and I am sure the data which I am entering. The FTP manager says
that wrong data, password or username. But, I am sure that it is the correct ones, the ones I used
ti access the forum. Please, help me somebody.....
Browse System Files In The Browser...
(2) Hi all Trap 17 people... I am not sure if you are already aware of this fine piece of information,
But definitely a must know feature... Browsing your system files in your browser. For more visit the
below link http://varalu.blogspot.com/2008/07/browsin...in-firefox.html You can use this feature
to do so many stuffs... pretty much useful for addon developers. /smile.gif"
style="vertical-align:middle" emoid=":)" border="0" alt="smile.gif" />....
The Operating System's Security
(5) When it comes to security, which operating system would you think a business would get to keep
everything safe. I know when i get my web design and hosting business going later in my life I will
choose Unix OS. Any busisness or hosting company will choose Unix to base my security on. Most
"Windows Users" will want to use Windows Server. I mean thats an ok OS to start out on but Unix is
basically free and open source and has a better security than Windows does. When i get my own hosing
server set up i will use Unix to base it.....
Auto-upload Files With Filezilla And Autohotkey
(0) If your web host only allows FTP access and not shell access then you have to edit files locally and
then upload them. If you are debugging your website that means making a lot of changes to a file or
files and lots of manual uploads after each change to a file. FileZilla works great to upload and
download files to a remote FTP site and it even allows you to set a default editor so you can right
click on a remote file and click view/edit. It then downloads the file to a temporary directory and
monitors any changes made to the file. When it detects that you have saved the....
Naming Web Page Files
Which way you like- MyPage.html or my-page.html or my_page.html (9) Everybody talks about meta tags, keywords, good title names and how they can increase page rankings,
etc. But I was wondering whether the page name itself holds any value in indexing. Yes, I am
talking about the web page file names (some-thing.html) NOT the one which you put in title tags. I
am going to express my views and want to know what you think is correct. I have seen pages named in
various ways like these: 1) my_web_page.html 2) DoYouLikeMyPage.html 3) hey-see-my-webpage.html (I
think this way is more appropriate) 4) this.is.a.page.html (somewhat confusing) ....
Audio Files?
(5) I need some help. Is it possible to get audio files off of sites? Like IMEEM and YouTube. I know the
whole http://www.file2hd.com thing. It doesn't always work though. Are there other ways? Is
there a way people hack audio files off of sites? NOTE: I DO NOT WANT DO THIS! I merely want to
know so that I can protect my sites from it. Thanks.....
Jar Executable Files
(3) I have been supplied with a digital log book for use this semester and it comes in the form of a
.jar file and a .mdb file. I tried running it on my mac but it crashes every time but it seems to
run perfectly on windows xp. Does anyone have any ideas why? I thought .jar files would be
computable on any platform. ....
I Can && Cannot Acces My Website
Confusing issue. (5) I am a hosted member in trap17 and my domain is www.karunya.cc . I have been not able to access my
website for few days and i had PM'd the admin and he provided me great support,but still i have
some confusion , so please anyone help me . My domain was now accessible using my true IP . On the
other hand if i use a Proxy i am able to access my website , so i had given my true IP's
220.225.140.98, 210.212.244.4 to Xisto to check whether they are in the IP ban List in Xisto
firewall , the internet im using is provided by my college and im sure here there is not ....
1350 Great Free Logos (jpg + Psd)
With both jpg and original psd files to edit (8) 1350 Great Free Logos (With both jpg and psd files)
http://rapidshare.com/files/126291346/1346...Great.Logos.zip This is a great collection of
logos, they are already made logos which you can use like that or just use to create other logos, do
what you want, they are free, they came from free websites that give this logos for free and lot
more, but i just took the good ones mainly. There is also a small collection of 100 logos inside
the compressed file, which you can use to insert those graphics in your logo/design/web design
projects, do what you want with them ....
Overpopulation
Overpopulation a growing issue, how should we deal with it? (19) Overpopulation is a growing issue in our world that must be dealt with. But how? Animals and Humans
are both organisms in this world however the things we do to animals to control their population in
general wouldn't be considered humane; that is if the same methods were used on humans. Our
world is growing exponentially and very quickly, million of people are born each day. Of course many
people die each day too but our population is growing faster than it is declining. As a human
species we have developed many different ways with dealing with overpopulation. For ....
Sharing Files And Printer Between Windows Vista And Xp
Networking Problem (9) I have set up a wireless network between my two computers one vista and one XP I can access the
shared files from the vista machine on the XP PC but I cannot access the shared files or printer
which are on the XP PC via the vista one I don' think it is a firewall issue. Can anyone help
please it is driving me mad?? /biggrin.gif" style="vertical-align:middle" emoid=":D" border="0"
alt="biggrin.gif" />....
How To Disable "show Hidden Files And Folders" In Folder Option
(12) How to disable "Show hidden files and folders" in Folder Option As you know, you can hide files
or folders in Microsoft Windows ( to hide a file or folder , right click on file or folder >select
properties and then select Hide file) But if you open Folder Option and check "Show hidden files
and folders " you can see hidden files. to disable "Show hidden files and folders" feature follow
below steps : 1- Click start > Run > type regedit to run Windows Registry Editor. 2- Go to following
address: QUOTE HKEY_LOCAL_MACHINE/SOFTWARE/Microsoft/Windows/Current Versio....
Eclipse Exporting .jar Files
Could not find main class. Program will exit. (5) I need help! I've been using eclipse for a while making little applets, and now I've
decided to look at some tutorials on how to make simple applications. I've found a pretty good
tutorial that tells you how to make a helloWorld app with swt and jFace, and also has an example
file explorer that you can make. They both work perfectly from inside eclipse, but when I try and
export either one into a .jar file, they don't work anymore. It comes up with a message saying
"Could not find main class. Program will exit." In the little wizard it has for....
Dont Get Norton Internet Security
by sdteam (15) Norton Internet Security This me is venting Today all my programs that uses that uses the internet
Were not working for example the browser wouldn’t pick up on the connection So I rang my internet
provider to see what the problem was there way no problem at there end so they asked me if I had any
anti virus programs I said yes they asked me to disable it so I did and wow the internet was back on
so they internet provider told me to call Norton and tell them what is happening so I did was on
hold for about 30min Got to the operator and was telling them about my issue we....
Study: Tumor Risk From Cell Phones
A real issue, or just myths (14) Researchers at the Swedish National Institute for Working Life issued a report this week disputing
two earlier studies that claimed cell phone use has no correlation to increased brain tumor risk.
The Swedish study found that long-term mobile phone exposure could raise the chance of developing
cancer. In January, a four-year study performed by the London-based Institute of Cancer Research
and three British universities found that talking on a cell phone had no effect on tumor rates. That
research included 966 people with glioma brain tumors and 1,716 healthy respondents....
Forgot Password To Trend Micro Internet Security
Is there a way to remove it? (6) One day I was bored so I set a password for our Web security software, Trend Micro Internet
Security. I turned on the URL filter, and now, whenever my friends send me something funny that has
no porn or anything in it, I get the Blocked error. I am really annoyed by this; I can't change
other setting in the software too. Is there any way to either reset the password or remove it,
without uninstalling Trend Micro?....
The New And Very Good Free Host Server
For upload/share files.www.rapidshare.se (13) Here it is: http://www.rapidshare.se/index.php Go check it out! I've heard good
things about this free upload server.....
Does Anyone Know How To Make Exe Files
(19) Does anyone know any software for making exe files, I want to make simple programs not propper
one's. Thanks.....
Looking for security, issue, writing, files, security, issue, writing, files
|
*RANDOM STUFF*
*SIMILAR VIDEOS*
Searching Video's for security, issue, writing, files, security, issue, writing, files
*MORE FROM TRAP17.COM*
|
advertisement
|
|