Jump to content

The Praetorian

Members
  • Posts

    333
  • Joined

  • Last visited

About The Praetorian

  • Birthday 07/06/1985

Contact Methods

  • AIM
    DavidMA20
  • MSN
    iriyn_adiun@hotmail.com
  • Website URL
    http://www.tsrealms.com
  • ICQ
    0

The Praetorian's Achievements

Member

Member (2/7)

0

Reputation

  1. Name: AFMU.comPrice: Shared plans - Free/$3.95/$7.95Server side scripting(s)/database(s): Php 4.x/CGI/Perl/SQL (with phpmyadmin) and a bunch of other stuff.( Feature List ) These features are available in all of the packages, including the free one.Space: 500mb/5gb/10gbBandwidth: 5gb/250gb/500gbAds: None. (Unless you sign up for the affiliates program, which earns credits toward your bill.)Web adress: www.yourdomain.com (I believe they register the domain name for you, since you aren't redirected to another website to do this. Prices range from: 1-year-11.95 to 10-years-119.50)Additional Comments: This is the host I use. It's been great. The tech support always answers quickly and helpfully, I rarely experience downtime, and for a service which has no monthly fees (on my plan at least) it provides a ton of features. There are other packages for Businesses, as well as resellers.
  2. Oi. My server is giving me the run around. This is what they sent me. Now.. I may not understand all of this... but it seems to be on the first read-through that in the same email they say that they have it enabled.. but it won't work....? We have MySQLi enabled in our server.We have uploaded a phpinfo page in to your public_html.Kindly click the link below to access the same.http://tsrealms.com/test.php=========================================================================Details of phpinfo page './configure' '--enable-pic' '--with-apxs=/usr/local/apache/bin/apxs' '--with-libdir=lib64' '--prefix=/usr/local' '--with-xml' '--enable-bcmath' '--enable-calendar' '--with-curl' '--with-dom' '--with-dom-xslt' '--with-dom-exslt' '--enable-exif' '--enable-ftp' '--with-gd' '--with-jpeg-dir=/usr/local' '--with-png-dir=/usr' '--with-xpm-dir=/usr/X11R6' '--with-gettext' '--with-imap=/usr/local/imap-2004g' '--enable-mbstring' '--enable-mbstr-enc-trans' '--enable-mbregex' '--with-mcrypt' '--with-mhash' '--enable-magic-quotes' '--with-mysqli' '--with-mysql=/usr' '--with-openssl' '--enable-discard-path' '--with-pear' '--with-pspell' '--enable-sockets' '--enable-track-vars' '--with-ttf' '--with-freetype-dir=/usr' '--enable-gd-native-ttf' '--enable-wddx' '--with-zlib'==========================================================================MySQLi is not able to connect to host using mysqli_connect() since remote MySQL connection is not allowed.
  3. That's the thing. They keep telling me it is enabled. And yet.. it doesn't work. That's why I question if it's my code.On a side note, thanks for the concern, but the keys.txt file isn't stored in a live directory. It's stored one directory up (thus the ../ before the /include/.) So no one would be able to look at it anyway.
  4. Okay. According to my domain provider, their current version of mysql supports mysqli_connect. And yet... when I try to use it.. I still get this error.Fatal error: Call to undefined function: mysqli_connect() in /home/author/public_html/connect_string.txt on line 3I checked the code ten times and I can't see anything wrong with it. It even works fine on my localhost. I'm stumped. For security I have an external file with the host, username, password and db set as variables. <?phpinclude '../includes/keys.txt';$cxn = mysqli_connect ("$host","$user_name","$password","$db") or die ("I cannot connect to the database because: " . mysql_error());?>
  5. Yes, but is it possible to configure my computer to send mail to myself? Whenever I try to send the form I get this error.Warning: mail() [function.mail]: Failed to connect to mailserver at "localhost" port 25, verify your "SMTP" and "smtp_port" setting in php.ini or use ini_set() in C:\Program Files\xampp\htdocs\mail.php on line 15So to send mail to myself would I just go into php.ini and change localhost to my ip address?
  6. Well, no, not really. I already have an email form. What I'm wondering, is if it's possible to send myself email from that form even if it's hosted on my localhost and not on my server. (I want to test out to make sure I have the line tabs and everything right [the part that someone sees when they actually get the email]) and I was just wondering if there's any other way to do that than uploading the form to my web server.
  7. I'm testing my website on my localhost, and I have a few email forms on my website. I'm wondering if anyone knows if I can configure my localhost (or php) to email stuff to myself...(From my localhost to say... Outlook express). Mainly because I want to see what it's going to output as. Or if the email function will even work with my script.So. Anyone have any ideas? I'm using xampp.
  8. So.... no one has any ideas on this one?
  9. I'm using two scripts on two different forms for the same function. Both scripts are identical except for a few places (which form it points to, and which fields are required). I have both of these scripts in a universal header, and they seem to be canceling each other out. I'm guessing because they have the same function name, but I honestly don't know. I was hoping someone could point out to me which parts of this script I need to change so that they're different enough that they can operate parallel to each other. Thanks. <!-- Copyright 2005 Bontrager Connection, LLC//// Two places need to be customized.////// Place 1:// Between the quotation marks, specify the name of // your form.var FormName = "mail";// Place 2:// Between the quotation marks, specify the field names // that are required. List the field name separated // with a comma.var RequiredFields = "Name,Email,Message";//// No other customization of this JavaScript is required.///////////////////////////////////////////////////////////function ValidateRequiredFields(){var FieldList = RequiredFields.split(",")var BadList = new Array();for(var i = 0; i < FieldList.length; i++) {var s = eval('document.' + FormName + '.' + FieldList[i] + '.value');s = StripSpacesFromEnds(s);if(s.length < 1) { BadList.push(FieldList[i]); }}if(BadList.length < 1) { return true; }var ess = new String();if(BadList.length > 1) { ess = 's'; }var message = new String('\n\nThe following field' + ess + ' are required:\n');for(var i = 0; i < BadList.length; i++) { message += '\n' + BadList[i]; }alert(message);return false;}function StripSpacesFromEnds(s){while((s.indexOf(' ',0) == 0) && (s.length> 1)) { s = s.substring(1,s.length); }while((s.lastIndexOf(' ') == (s.length - 1)) && (s.length> 1)) { s = s.substring(0,(s.length - 1)); }if((s.indexOf(' ',0) == 0) && (s.length == 1)) { s = ''; }return s;}// -->
  10. This is kind of a round about question.Is it possible to get the session data for a user even if they logged in on a page in a different directory of my website?To clarify.. If someone logs in on my forum (phpBB), is it possible to continue that session on my website? I would imagine it would be something along the lines of adding session() to the page I want them to be logged in on, but I'm a little fuzzy on how it would get the information on whether or not they logged in on the previous page...Again, round about question. Any information anyone could provide would be greatly appreciated.
  11. Oh. I actually found a combination that works. if(eregi() && eregi() &&...etc ){email stuff and echo confirmation}elseif(!eregi1){error}elseif(!eregi2){error}....
  12. Ok. Still playing around with that email form.I'm trying to add more comparisons, but I'm not really sure what the context is supposed to be. This is what I have right now (see the code). And it works fine. I tried adding extra if(eregi) in different places, but none of them seemed to work. I want the script to compare and validate several form fields before it sends the mail, just not sure how to construct it. If someone could just fill me in on the syntax that would be very helpful. Don't actually need to write the whole thing for me, just need some idea of what is supposed to come before what. Thanks in advance.Just a guess... Does it need to be ?if(!eregi) {error}if(!eregi) {error}elseif (eregi) {email stuff and echo confirmation} if isset ($email){if(eregi("^[_a-z0-9-]+(\.[_a-z0-9-]+)*@[a-z0-9-]+(\.[a-z0-9-]+)*(\.[a-z]{2,3})$",$Email)) { mail( "author@tsrealms.com", "$Email","$Subject", "From: $Email" ); mail( "$Email", "A copy of your Application", "$Subject", "From: The Shattered Realms" ); echo "<h1>Thank you for your application! One of the admins should be getting back to you via email within 24 hours. If you're accepted, you'll be given the link to register a user name on the message board. A copy of your application has been emailed to you.</h1>"; } elseif(!eregi("^[_a-z0-9-]+(\.[_a-z0-9-]+)*@[a-z0-9-]+(\.[a-z0-9-]+)*(\.[a-z]{2,3})$",$Email)) { echo "<h1>Please Enter a Valid Email Address<br /><a href=\"java script:back()\">Back</a></h1>"; }}
  13. Okay. Friend of mine told me to do this, so I'll post it in case anyone else looks for it. (I used this in an echo, that's why the " are escaped.) <a href=\"java script:back()\">Back</a> Thanks for the help guys.
  14. Stupid wireless. Can delete this one.
  15. Where do I put that? Do I turn it into a variable? Post it as is?
×
×
  • Create New...