Jump to content

Knight_Life

Members
  • Posts

    5
  • Joined

  • Last visited

Contact Methods

  • Website URL
    http://www.DunCarraig.net

Profile Information

  • Location
    Southern Maryland
  • Interests
    Historical Reenactment of the Middle Ages.<br><br>In Democracy it is your Vote that Counts,<br>In Feudalism it is your Count that Votes.<br>

Knight_Life's Achievements

Rookie

Rookie (2/14)

  • First Post
  • Conversation Starter
  • Week One Done
  • One Month Later
  • One Year In

Recent Badges

0

Reputation

  1. Andy, Just tried that, still no joy. My connect statement now reads: $K_link_id=mysql_connect ("209.51.158.250:3306", "{user}", "{pass}"); (but with the valid user and password) The error I get is: Warning: mysql_connect(): Can't connect to MySQL server on '209.51.158.250' (110) in {file} on line 3 Line 3 of the file is the connection statement above. Since you are TCH staff you can probably look at the Help Desk tickets, if so look at ticket ZKB-13948, it has my TCH account and password so you can look at the actual CPanel setup. Thanks for the help... Knight_Life
  2. I am developing a page that needs to access one of my DB's on TCH servers. I've tested the page while it was hosted in my TCH webspace, it worked fine. Now that I've moved it to the remote server it doesn't work. Now I know that there are several items that need to change. I've tried a bunch and the page still can not connect to the DB. In Cpanel's "Manage MySQL" I've added the "Access Host" of "%" which as I understand it should allow any remote server access the DB (yes I know this is dumb but at this point I'm just trying to get it to work, and once it does I'll close it back down to the minimum needed). And in the page itself I've changed the mysql_connect statement from "localhost" to "****" as well as "http://****" and finally "209.51.158.250" (which is the IP that TCH helpdesk gave me as the server IP). The page still can not connect to the DB. Does anyone have the name/port that I need to put into the mysql_connect statement to get the remote page to connect to the TCH DB???? Many Thanks Knight_Life
  3. HEY THANKS GUYS!!! Rock Sign Raul, your code gave me the root dir that I needed (I was close, just needed the /home in front). Jim, your bit of code about turning Errors back on is god sent!! Why is that little secret not on the FAQs under something like "Why am I not getting errors?". I actually wrote in an error to try and get one and could not. The only suggestion I would have is instead of using error level 7, push it all the way to 2047 which reports ALL errors (I was surprised at the number of stupid little error I had, OOPS) Thanks Again Guys!! Thumbs Up Knight Life
  4. I tried changing the " to ' made no difference. I also tried using $archivedir."/".$filename, also no difference. You both asked for info on the errors, I'd love to help here but everything I have access to is about supressing errors. The copy statement was in a if statment to suppress its error. I removed it to a line of its own (and //'d the rest of the if) now when I run the upload I end up with a blank page which has the source code of... <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <HTML><HEAD> <META http-equiv=Content-Type content="text/html; charset=windows-1252"></HEAD> <BODY></BODY></HTML> I don't know that that helps much. I there a way that I can force a more useful error??? Also I *think* my biggest question is, do I have the copy to path correct for my TCH website? IE on my old IIS box (ewe evil MS) the path would have been D:\InetPub\wwwroot\files, but I have no clue what the full path should be on the TCH server. I'd like the file to end up in the "files" directory in the root of my TCH space, but really anywhere I have access to would work!! Thanks Again Knight Life
  5. Greetings All! As a ASP convert (yes I finally dumped the evil monopoly), I've been working in PHP for about 9 months and got most of it. That said I'm having a bunch of problems getting a form to upload files to my TCH website. I *think* I've got the actual code right (but I'm not holding my breath), what I think I have wrong is the path to copy the uploaded file to. Here is the core piece of code.... $filename = basename($fileupload_name); $archivedir = "/files"; copy($fileupload, "$archivedir/$filename"); SOOOooooOOooo, can anyone see what I've mucked up??? Thanks Knight Life
×
×
  • Create New...