web-hosting

PHP file doesn't write to current directory?

时光毁灭记忆、已成空白 提交于 2019-12-02 06:52:45
问题 I have a PHP file on a web-host that is as follows: <?php file_put_contents('test.txt','TEST'); echo 'OK'; ?> But the file test.txt is not created when I execute the page from a browser. Why not? Is it a permissions issue? 回答1: yes the PHP Doc Says If filename does not exist, the file is created. Otherwise, the existing file is overwritten, unless the FILE_APPEND flag is set. That is only if you write have permission on that folder .... try error_reporting(E_ALL); ini_set("display_errors",

is shared hosting secure?

烈酒焚心 提交于 2019-12-02 06:34:11
问题 I have a question with security point of view, it might sound silly but i'm very interested to know. If someone uploads his code on shared hosting (assuming some general US based web hosting companies where it cost about $5 to 10$ a month), is it secure there? Would the other users hosted on same servers somehow access the code? (and of course the hosting administrators can access?) In that case is it really safe to host on shared hosting companies? 回答1: This depends on how the individual web

What am I not understanding about hosting a Java web app?

心不动则不痛 提交于 2019-12-02 04:18:49
问题 I am new to Java and I am trying to host a Java web app using Firebase. Problem My problem appears to be that my index.html file does not exist in my Java file structure. Therefore, I can not "point to it" in my firebase.json file. Question What am I not understanding about how to host a Java web app? Do java web apps have an index.html file when they are deployed (which, apparently, Firebase requires)? What can I do to successfully host my Java web app? Firebase hosting setup instructions:

Host (iPage) does not allow remote access. So how can I reach/edit my database?

寵の児 提交于 2019-12-02 00:06:23
I have registered a domain in iPage.com. But recently i learnt that they are not allowing remote access to database. i am coding my webpage in php5 kohana framework, so when i use mysql_connect(hostname,username,password) function in PHP, it returns an error and cannot connect to database. Neither via SQLyog (which i use to access remote databases) i can connect. What can i do in my codes to create entries into my iPage database? Do i need any additional application or something? I am not sure but i think they dont allow ssh and html tunneling too. You can use HTTP-tunneling in SQLyog More

is shared hosting secure?

南笙酒味 提交于 2019-12-01 23:13:32
I have a question with security point of view, it might sound silly but i'm very interested to know. If someone uploads his code on shared hosting (assuming some general US based web hosting companies where it cost about $5 to 10$ a month), is it secure there? Would the other users hosted on same servers somehow access the code? (and of course the hosting administrators can access?) In that case is it really safe to host on shared hosting companies? This depends on how the individual web hosting company have setup there systems. You need to trust the company you are hosting with but any half

1&1 web hosting and smtp configuration

ぐ巨炮叔叔 提交于 2019-12-01 14:45:19
Has anyone ever tried sending emails using 1&1 smtp host? I tried the following? SmtpClient mailClient = new SmtpClient("smtp.1and1.com", 587); mailClient.Credentials = new NetworkCredential("admin@permias-tucson.com", "password"); But it always gives me a security exemption error... I tried it using my local host and it works fine.. I tried using gmail's smtp and it worked fine as well.. It says that I need to authenticate in order to use the smtp server, I did that by looking at the code above... Here's the exact error: Security Exception Description: The application attempted to perform an

My .htaccess file is not working

爷,独闯天下 提交于 2019-12-01 14:31:24
i have added my project on free hosting 000webhost and my all files are listed in public_html/ directory. project is built in codeigniter. i have added htaccess file at public_html/.htaccess which contains Options +FollowSymLinks RewriteEngine On RewriteBase / RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^(.*)$ index.php?/$1 [L] but this does not working for me is there any issue in htaccess? I use this (it works for me in both, locally and remotely): DirectoryIndex index.php RewriteEngine on RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST

1&1 web hosting and smtp configuration

丶灬走出姿态 提交于 2019-12-01 13:10:42
问题 Has anyone ever tried sending emails using 1&1 smtp host? I tried the following? SmtpClient mailClient = new SmtpClient("smtp.1and1.com", 587); mailClient.Credentials = new NetworkCredential("admin@permias-tucson.com", "password"); But it always gives me a security exemption error... I tried it using my local host and it works fine.. I tried using gmail's smtp and it worked fine as well.. It says that I need to authenticate in order to use the smtp server, I did that by looking at the code

Where to put robots.txt file? [closed]

廉价感情. 提交于 2019-12-01 04:50:39
Where should put robots.txt? domainname.com/robots.txt or domainname/public_html/robots.txt I placed the file in domainname.com/robots.txt , but it's not opening when I type this in browser. alt text http://shup.com/Shup/358900/11056202047-My-Desktop.png Where the file goes in your filesystem depends on what host you're using, so it's hard for us to give a specific answer about that. The best description is: put it wherever the index.html (or index.php or whatever) file is that represents your homepage. If that's domainname/public_html/index.html , for example, put it in domainname/public_html

Connecting mysql remotely via free host

旧城冷巷雨未停 提交于 2019-12-01 03:27:17
I registered on 000webhost and I can connect to mysql db pages that are uploaded there via: mysql_connect('localhost', 'user', 'pass') or die('Could not connect to database'); mysql_select_db('name') or die('Could not select database'); But it seems it does not allow connecting remotely . Is there any free host which has mysql db and allows remote connections ? try heliohost.org I used it sometime back and they got good service as well.The only problem is the registration get filled too quickly s4p3r_c1n0s 000webhost does not provide MySQL remote access for free accounts, have a look , so