Jump to content

Guardian-Mage

Members
  • Posts

    341
  • Joined

  • Last visited

    Never

Everything posted by Guardian-Mage

  1. Yeah, I just thought of it. Stupid I forgot about foreach, but thanks:)
  2. My Current Code $i=0; while ($i < count($array)) { $data[$i][0] = $array[$i][0]; $data[$i][1] = $array[$i][1]; } All is good, but what is the array goes $array[0], $array[1], $array[7]. How can I make sure i get the contents of a full array without checking to see if the array is full. I don't want to check the array if it is $array[11001010100101] or $array[-1] (not sure if this is possible). I am using this for forms. My forms go <input type="text" name="qty[0]" /> <input type="text" name="qty[1]" /> Someone could easily edit this to screw up my script. Any help?
  3. HELLO, can anyone answer my question?
  4. I just installed Horde Webmail, logged into SSH and ran setup.php script, and created the database. I get to the login page and my details dont work. This is for my client, and this is the email: bob@domain.com This is my Horde/imp/config/servers.php file /*Useless Comments */ $servers['_prompt'] = array( 'name' => _("Choose a mail server:") ); /* Example configurations: */ $servers['imap'] = array( 'name' => 'IMAP Server', 'server' => 'imap.domain.com', 'protocol' => 'imap/notls', 'port' => '143', 'hordeauth' => false, 'maildomain' => 'domain.com', 'realm' => '', 'preferred' => '', ); Ok, and during setup I specified admin user of 'bob' Using test page my imap account works, but I can't login in normal. When logging in, do I use 'bob@domain.com' or just 'bob' and during setup, should the admin user be 'bob@domain.com' or just 'bob'?
  5. Ok, I am using the latest version of Zend Studio for Eclipse. My webserver parses xml,css,html, and javascript as php. When I open up one of those files, Zend does use php syntax highlighting, it uses the default for that extension. How can I change this? Oh, and it would be best if it colored the PHP and the normal document correctly
  6. Your thing is down. all I get is many errors Warning: fopen() [function.fopen]: Couldn't resolve host name in /home/purecp/public_html/beta/incs/conf.inc.php on line 51 Warning: fopen(http://www.pure-cp.com/license.php?key=123&ref=http://www.phpfreaks.com/forums/index.php/topic,192516.0.html) [function.fopen]: failed to open stream: Success in /home/purecp/public_html/beta/incs/conf.inc.php on line 51 Warning: fgets(): supplied argument is not a valid stream resource in /home/purecp/public_html/beta/incs/conf.inc.php on line 52 Warning: Cannot modify header information - headers already sent by (output started at /home/purecp/public_html/beta/incs/conf.inc.php:51) in /home/purecp/public_html/beta/incs/conf.inc.php on line 55
  7. if you have a normal variable with the same name as a session variable, it could cause this.
  8. If you want to be able to decrypt it, consider using base64_encode(), maybe with a salt. If you just want to make a permanent encryption, say for a login system, I recommend using md5() with a salt. A salt is just for extra security. #md5 with a salt $salt = "texthere"; $encrypt = md5($salt . $password); #Here is my standard encryption $salt = "12 character salt here"; $encrypt = base64_encode(md5(base64_encode($salt.$password.$salt))) My encryption is overdone, but I would love to see someone crack it
  9. Please don't make useless posts BlueSkyIS. Honestly, how did you post help anyone? Eaglelegend, one step would be looking each function used up on php.net, than you should try making a similar function from scratch. It will be better than copying someone else's work. I can never understand someone else's script as good as my own
  10. an easy solution is this: #This uses inline divs $msg = '<div style="color:#000066;text-align:center;"><a href="http://www.gaf.com/General/GafMain.asp?Silo=RES1&WS=GAF&App=ROOF&Force=shingle-lines.asp">GAF-ELK Shingle Styles & Colors</a></div>'; It will make a new line for the link. I hope it helps, and please mark your topic as solved. W3Schools is a good place to learn css
  11. I am building a PHP Shopping cart and would like to know the best way to process payments, preferably for free. Does paypal do this, and if so, could anyone point me in the right direction on how to do this?
  12. Yes, I had variables with the same name as my session variables. All fixed up now, thanks
  13. No, that was an error when I retyped it here. The host is threeton.com by the way
  14. I have one page. It says session_start(); $_SESSION['limit] = $limit; echo $_SESSION['limit'] //Will write out 50 The page than submits a form with post data to another page session_start(); $limit = $_SESSION['limit']; echo $limit //Will write out "Array" Why isn't my second page printing out 50? I am using PHP 4.4.2 and Apache 1.3.36. It works fine With PHP 5.2.6 and Apache 2.2.8
  15. I am trying to use CNAMES right now, but my host is taking forever. I want darylmahar.com to show the content of dm.northernlightstech.com without using frames/redirects. I don't want anybody to know that their is a domain called dm.northernlightstech.com, only darylmahar.com
  16. How would I address this at the DNS level?
  17. I was asking this for the purpose of setting up a shared hosting account where a user could upload their own php scripts. Thanks for your answer.
  18. Not sure where to put this, but... I have a hosting package with 1&1 which I dislike. I have my main hosting package, and another package just for a domain. I currently have the seperate domain pointing to a subdomain within my main hosting package using iFrames. The only other option I see is using HTTP redirects which I don't want. With iFrames, it messes up my mime type, and it doesn't let me bookmark pages, everytime I press refresh it takes me back to index.html. Is it possible using DNS or CNAME with 1&1 to fix this so it acts normally? Darylmahar.com using iFrames to connect to dm.northernlightstech.com
  19. Is it possible to prevent PHP scripts from transversing backwards out of a specified directory? For example, on my Windows Machine, I have F:/wamp/htdocs/ But I can use a directory listing script with a starting directory of ../../../ and it will list all the files in F: I want to stop that, so PHP can't go outside of htdocs. Preferably with .htaccess, but any solution is O.K.
  20. I am trying to create a login system, but it is failing horribly. Sessions will not work. PHP Version is 4.4.2 URL: http://www.globaltrainingedge.com/login/index.php user: expired pass: expired I have to log in 5 or 6 times before the sessions will hold and let me to log in. I don't know why. Do you have any ideas?
  21. Is it possible to use PHP or anything for that matter to transfer the contents of a local Access 2007 database to a local mysql server? Even if I could do it for each table, as there are only two tables(Each with over 1000 rows) I need to export as the rest were small and I did them manually. The two tables each have data columns that get their data dynamically from other tables so when I export to anything except Access it doesn't work. I had been using a txt file export which PHP would convert into an SQL statement, but It won't work for these. Any suggestions?
  22. Sorry, I apologize. The name attribute has not been depreciated. That fixed my problem. Thank you
  23. the name attribute has been depreciated in XHTML 1.1. ID is used instead
  24. Ever notice how code that should work doesn't, and it only does that at the worst possible times? I am making a simple XHTML 1.1 Form. My PHP script is getting no data, and Firefox addon "Tamper Data" Does not record any post data being sent on my website, but it does for google, etc. I am using Firefox 3. <form action="contact.php" method="post" name="main"> <input type="hidden" id="execute" value="true" /> <input type="text" id="name" value="Your first and last name" maxlength="120" onfocus="javascript:focusMe('name');" onblur="javascript:blurMe('name');" /><br /> <input type="text" id="email" value="Your full email" maxlength="120" onfocus="javascript:focusMe('email');" onblur="javascript:blurMe('email');" /><br /> <input type="text" id="subject" value="Email Subject Here" maxlength="120" onfocus="javascript:focusMe('subject');" onblur="javascript:blurMe('subject');" /><br /> <textarea id="body" onfocus="javascript:focusMe('body');" onblur="javascript:blurMe('body');" >Email Content Here</textarea> <br /> <input type="submit" value="Send" /><br /> </form>
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.