spadin
Members-
Posts
30 -
Joined
-
Last visited
Everything posted by spadin
-
Hi, Is the web disk the same as WebDAV? Also, the web disk application that I'm downloading doesn't run on my Mac. Thanks, Sandro
-
Thanks, I sent them a message. I usually try to post in the forums beforehand, just in case, so I don't bombard the help desk with too many questions. Sandro
-
Hi, I'm wondering how many concurrent connections are allowed via FTP. I'm teaching high school kids how to design websites and I wanted to give them some space on my server until the semester ends so they can learn how to add content to the internet. The problem is, there are about 15 kids in the class. Chances are they are all going to connect to FTP around the same time. Any help would be appreciated. Thanks, Sandro
-
I decided to redo the permissions and it seems to be working now.. Sandro
-
Hi, I'm trying to connect remotely to my database with GUI program called Navicat, I have also tried others... I can succesfully connect to MySQL, however I am unable to select a database. I have made sure that my IP is not blocked, and I have made sure that I am connecting with a username that is allowed access to the database. Please help... thanks, Sandro
-
I had the same thoughts nortk. I was extremely excited when they first announced it, but as time has gone, I've figured Rails will come when it comes.
-
This is a late response, and it seems like you have an answer already, but you could have added a subdomain, such as members. Then members.example.com would redirect to www.example.com/members yet the domain name would stay as members.example.com This could be done from cPanel under, subdomains. In the "members" directory you could have added an .htaccess file, or any other files that you might have needed. Sandro PS. As to your question about: >RewriteRule ^(.*)$ [L] This looks like a catch-all, pretty much any URL that you enter will match this regular expression. Apache loads these rewrites from top to bottom, so if you put any more conditions under this one it will not run because the condition before was already true. If you need to add another condition you would add it before the condition above.
-
I have been working on a site for my friend which does what you are trying to do. http://www.digitalpadin.com/spurgeon/ Click on the "Version 1.0" star to login, username: demo, password: demo The star will only work from the homepage, but you will be able to edit a few of the pages. I can send you a copy of the files if you'd like. However, I have to warn you that it's not simple by any means. I noticed you wrote that you needed an urgent solution, so this might not be it, but you might get some ideas. If anyone else is interested let me know. You're all welcome to go and play around with the site since it's not live yet, but please do not erase everything or deface the site. Thanks, Sandro
-
So I came upon a different problem. The timestamp column that I setup which is called "Created_At" keeps updating everytime I update the record which is not very useful I wanted that column to have the date and time of when it was created and no more changes thereafter. A workaround to this problem is to create two TIMESTAMP fields. I called mine "Update_At" and "Created_At". The trick is to have the "Updated_At" column before the "Created_At" column and set the default of both to NULL. What MySQL will do is update the "Updated_At" column everytime the record is updated, but it will only add a timestamp to "Created_At" when the record is first created. Which is exactly what I need. You need this workaround for MySQL servers that are pre-4.1.2 and TCH currently has version 4.1.18 Now I understand when the server techs say updating the servers can get tricky... I believe if I use this workaround and then MySQL is upgraded then my data can become unreliable. Hope this serves well for future reference, Sandro EDIT: More information can be found here: http://dev.mysql.com/doc/refman/4.1/en/timestamp-4-1.html
-
Okay, I decided to play around a little more with the database and was able to make it set a default timestamp. I had to make the field a TIMESTAMP, instead of DATETIME. Then erase everything from the DEFAULT clause. It now automatically enters the current time when creating a new record.
-
Hi, I'm designing a new table and I would like for MySQL to set a default timestamp everytime a record is created. Normally you can use DEFAULT NOW() but I keep getting all zeroes when I use this. Is there something wrong with my sql? Or do the TCH servers not support this feature? Here is my sql. >CREATE TABLE `[edited_out]`.`users` ( `id` VARCHAR(20) NOT NULL DEFAULT '', `password` VARCHAR(20) NOT NULL DEFAULT '', `date_created` DATETIME NOT NULL DEFAULT 'CURRENT_TIMESTAMP', `tolerance` INT(1) NOT NULL DEFAULT 4, `real_name` VARCHAR(40) DEFAULT NULL, PRIMARY KEY(`id`) ) ENGINE = MYISAM CHARACTER SET utf8; I tried the above with and without the quotations, nothing seems to work.
-
Actually check out these screencasts: http://www.rubyonrails.com/screencasts You'll notice that something like a simple blog (programming your own that is) which might take four or five hours with PHP. Could take as little as thirty minutes with Ruby on Rails. The learning curve for Ruby on Rails is high, I personally am no expert, but once you know what you're doing your productivity skyrockets. I've been programming with PHP for more than 4 years and it still feels like I'm as slow as a turtle. Sandro
-
Cron Job - Running A Php File From A Password Protected Folder
spadin replied to msdan's topic in CPanel and Site Maintenance
Well, the script just loads another site. The reason being that the server where I have the other site doesn't have a cron tab. I put phpCron on the other site, but that still requires that the page be loaded in order for that cron to run. The solution I am using is really sloppy, but until the other site is moved to a server, like Total Choice which allows cron tabs, this is the only solution I have. The phpCron on the other site works, and what it does is check which users have something scheduled for that day and sends them an email reminder in the middle of the night. -
Cron Job - Running A Php File From A Password Protected Folder
spadin replied to msdan's topic in CPanel and Site Maintenance
I went ahead and added: > /dev/null to the end of the command that would run, I don't get an email anymore, however, I don't know if it is working or not. -
Cron Job - Running A Php File From A Password Protected Folder
spadin replied to msdan's topic in CPanel and Site Maintenance
I am trying to do the exact same thing, I set it to email me the output and this is what I receive in the email. >Status: 404 Content-type: text/html No input file specified. This is what the file I'm trying to run does: ><?php // Load Site. $page = fopen("http://www.itrytoloadawebsite.com/", "r"); fclose($page); ?> Could the output I am receiving be the output from this script or is it an error with the cron tab? -
I understand, I was just wishing The new features of MySQL 5 seem very nice and I was hoping to play around with them, but I can always just install in on my own computer. Sandro
-
With the release of MySQL 5, I was wondering if Total Choice is considering upgrading to MySQL 5? Thanks, Sandro
-
Hi, I currently have hosting service with Total Choice and I'm about to add a new plan for a new domain. My new project is small at the moment, but hopefully, it will become a medium to large-sized project. I am just wondering if I choose or need to upgrade my plan in the future, will I still have the same account information, such as login, passwords, databases, etc? I want to start with the silver plan and then depending on the success of the project, maybe move to a higher virtual hosting or even a dedicated hosting plan.
-
Sometimes you figure things out after you ask people questions. This is one of those times. I needed to add the [L] flag instead of the [R] flag. Sandro
-
Ok, so I got it to work by changing the directory and adding [R] to the end, but now the url changes to the old format. I would like the url to stay like /test/thisis/atest.php instead of /test.php?var1=thisis&var2=atest >RewriteEngine On RewriteRule ^test/(.*)/(.*).php /polidiggs/testbed/test.php?var1=$1&var2=$2 [R]
-
Hi, I'm trying to make a rule on an .htaccess file, but for some reason the rule is not working. First the rule is: >RewriteEngine On RewriteRule ^test/(.*)/(.*).php /test.php?var1=$1&var2=$2 The script is called test.php and it is: ><?php echo "var1 is: "; echo $_GET['var1']; echo "<br />"; echo "var2 is: "; echo $_GET['var2']; ?> I chmod the .htaccess to 644 (-rw-r--r--) because some tutorial on the web suggested it. The .htaccess file is in a subdirectory. Does it have to be in the home directory? The htaccess file and the test.php and in the same directory and when I call the the file I call it relative to where the .htaccess file is. I'm confused. Can anyone help? Thanks, Sandro
-
Thanks, I submitted a help ticket and I got the answer I was looking for. Here is the response if anyone has the same problem.
-
Hi, I've been running a cron job from my account for about 2-3 months now with no problems. But as of yesterday without doing anything the cron job sends me an email everytime it tries to run it. I get an email with this error: /bin/sh: line 1: /usr/bin/GET: Permission denied I haven't changed anything, specifically any permissions. The cron job is supposed to run this command: GET http://jpfe:jpfepass@www.digitalpadin.com/jpfe/loadjpfe.php I know it includes a password in there but it doesn't really matter, I am actually going to make this a normal directory eventually. Has Total Choice changed some permission that might not allow me to run a php script as a cron job anymore? Thanks, Sandro
-
Sorry to bring up such an old topic, but it actually helped me. I was wondering, however, can I leave the email field blank so the script will not email me everytime it runs? Thanks, Sandro
-
Hi Everyone, I am wondering what I have to do to delete movable type from my account. I wan't to try a different blogging software and I just want to remove everything from the movable type that I currently have. Should I just delete all the files from the MT folder? I know there are some database tables too and I wouldn't want any leftover junk from a sloppy uninstall. Thank you, Sandro P. ------ EDIT: I'm sorry I just realized this is the wrong forum. I the moderator can move to a more suitable forum I would greatly appreciate it.
