Guardian-Mage
Members-
Posts
341 -
Joined
-
Last visited
Never
Everything posted by Guardian-Mage
-
Yeah, I just thought of it. Stupid I forgot about foreach, but thanks:)
-
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?
-
HELLO, can anyone answer my question?
-
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'?
-
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
-
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
-
PHP Session Variable Getting Unset
Guardian-Mage replied to southofsomewhere's topic in PHP Coding Help
if you have a normal variable with the same name as a session variable, it could cause this. -
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
-
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
-
Link won't center when using variable to store
Guardian-Mage replied to ndjustin20's topic in PHP Coding Help
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 -
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?
-
[SOLVED] Data disappearing in my sessions
Guardian-Mage replied to Guardian-Mage's topic in PHP Coding Help
Yes, I had variables with the same name as my session variables. All fixed up now, thanks -
[SOLVED] Data disappearing in my sessions
Guardian-Mage replied to Guardian-Mage's topic in PHP Coding Help
same result -
[SOLVED] Data disappearing in my sessions
Guardian-Mage replied to Guardian-Mage's topic in PHP Coding Help
No, that was an error when I retyped it here. The host is threeton.com by the way -
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
-
[SOLVED] Options other than iframes?
Guardian-Mage replied to Guardian-Mage's topic in Miscellaneous
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 -
[SOLVED] Options other than iframes?
Guardian-Mage replied to Guardian-Mage's topic in Miscellaneous
How would I address this at the DNS level? -
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.
-
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
-
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.
-
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?
-
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?
-
Sorry, I apologize. The name attribute has not been depreciated. That fixed my problem. Thank you
-
the name attribute has been depreciated in XHTML 1.1. ID is used instead
-
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>