shared-hosting

CodeIgniter Cron Job on Shared Hosting?

耗尽温柔 提交于 2019-12-03 13:54:40
问题 I am trying to learn how to do my first cron job using CodeIgniter. In the past, it seemed the only way to do this with CI was to use the wget command instead of php . The CodeIgniter User Guide, however, says that now you can do this from the command line, for example by running: $ cd /path/to/project; $ php index.php controller method This works great using Terminal on my local setup. But when I use a similar command in the cron section of cPanel on my shared hosting, the task just returns

Cannot send email in ASP.NET through Godaddy servers

。_饼干妹妹 提交于 2019-12-03 07:52:22
问题 I have an ASP.NET application hosted on Godaddy that I want to send email from. When it runs, I get: Mailbox name not allowed. The server response was: sorry, relaying denied from your location. The important parts of the code and Web.config are below: msg = new MailMessage("accounts@greektools.net", email); msg.Subject = "GreekTools Registration"; msg.Body = "You have been invited by your organization to register for the GreekTools recruitment application.<br/><br/>" + url + "<br/><br/>" +

Supersimple static file based (html) php site cache

对着背影说爱祢 提交于 2019-12-03 07:50:18
I have a website that basically only displays things without any forms and post-gets. This website is PHP based and hosted on shared hosting. It rarely changes. I would like to enable caching for this website. Its shared hosting so i need a solution that: does not use Memcached dont need to move my website to VPS dont use APC or other things So basically what i would like to acomplish is cache every subsite to HTML and tell PHP to get for 5 minutes the HTML cached version of current subsite and display it to user. And after 5 minutes to refresh the cache. I've been looking for some while on

Add GoDaddy naked domain to Heroku app

a 夏天 提交于 2019-12-03 06:23:38
Heroku custom domains I've setup two custom domains for my Heroku app. example.com example.com.herokudns.com *.example.com wildcard.example.com.herokudns.com Domain configuration I configured my domain as follows: I added a CNAME Record for * pointing to wildcard.example.com.herokudns.com . Works fine. I forwarded my URL using GoDaddy's Domain Forwarding tool, because I can only specify IP addresses as A records. Problem The domain forwarding points to example.com.herokudns.com . Unfortunately GoDaddy automatically prepends http:// , so it actually does not open my app and instead shows a

sys_get_temp_dir in shared hosting environment

本秂侑毒 提交于 2019-12-03 03:45:41
问题 Note: This could also fit in superuser. I am setting up PHP 5.3.10 on a shared host with apache2 mpm itk and open_basedir in a way, that each user may not see or change the files of another user. In the apache2 vhost settings, I add the appropriate entries to restrict the user: AssignUserId userA userA php_admin_value open_basedir /home/userA/www/ php_admin_value upload_tmp_dir /home/userA/www/tmp/ php_admin_value session.save_path /home/userA/www/tmp/ SetEnv TMPDIR /home/userA/www/tmp/ Now,

Using Git with shared hosting plan

耗尽温柔 提交于 2019-12-03 01:41:26
问题 So I started using Git together with this workflow to make a personal website (mostly for testing and to learn Git) and I am developing it locally on my laptop using Xampp. But now I would like to make this website public and upload it to my webserver. Problem is, I use a shared hosting plan which means I only have FTP access to my website directory. Can't use SSH or install Git or anything.. I would like to deploy the website and any updates to that webserver, but I was wondering if that was

What are the most common, typical things to AVOID coding into my ASP.NET app in order for it to run under Medium Trust on a shared host?

徘徊边缘 提交于 2019-12-03 00:22:08
What are the things that Medium Trust stops you from doing? For example, I've already learned that Medium Trust stops you from using System.IO.Path.GetTempPath(). What other things like that? Corey Trager Here's how to learn about and resolve trust issues. 1) Search your Windows\Microsoft.NET\Framework[YOUR VERSION]\CONFIG folders for the files: web.config (this is the root config file) web_mediumtrust.config web_hightrust.config 2) Change the web.config to say <trust level="Medium" originUrl="" /> 3) Try your ASP.NET app. Mine failed with a permission error. 4) Diff the web_mediumtrust.config

Using Git with shared hosting plan

倖福魔咒の 提交于 2019-12-02 15:11:35
So I started using Git together with this workflow to make a personal website (mostly for testing and to learn Git) and I am developing it locally on my laptop using Xampp. But now I would like to make this website public and upload it to my webserver. Problem is, I use a shared hosting plan which means I only have FTP access to my website directory. Can't use SSH or install Git or anything.. I would like to deploy the website and any updates to that webserver, but I was wondering if that was possible with Git with only FTP access? And if not, what would be an advisable way to update my

The symbols I should be aware of for SQL injection

限于喜欢 提交于 2019-12-02 13:27:29
I know that you cure all of the stuff with mysql_real_escape_string() (and with htmlspecialchars() ), but I want to know the symbols that cause all this mess everyone wants to get rid of? The thing here is, that we here had to transfer a website not built by us from one host to another. It has been coded from ground up, to utilize php 's now deprecated and never loved one - magic_quotes . After the host change there have been php.ini changes also, we encountered a lot of unexpected results. We don't have access to php.ini , there is no user.ini (5.2.x) and the host is is not responsive enough

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