Jump to content

freelance84

Members
  • Posts

    975
  • Joined

  • Last visited

Everything posted by freelance84

  1. floor will remove the decimal places in this case.
  2. I have started a new thread specific and in the correct board.... i really need some help if any one is knowledgeable in setting up mail() on their own server http://www.phpfreaks.com/forums/index.php?topic=345838.0
  3. never mind. ssmtp removed it all on its own. Thanks for the tip i'll start hunting for a guide on ssmtp now
  4. Ah, ok. Cool. I've already installed postfix onto my server now. I'm guessing it would be best to remove it before using ssmtp?
  5. Ok, i've been trying for what feels like an eternity now to get any kind of mta setup on my ubuntu 11.04 srever. All i need to be able to do is send simple emails out (no batches, but single emails) when someone registers to my site, but i just cant get the php mail function working properly. I first found a site which said it is easiest to use sendmail. Then one that said exim, then post fix.... (I've just tried following this guide, the author is clearly is pretty flippin good, but i got to a stage which said 'telnet localhost 25', but i just got 'bash: incorrect command' in return. I can only assume i missed a step somewhere along the lines, but i think what this guide is trying to setup up something which may be a little excessive for my needs. For one i do not need squirel mail, nor do i have multiple sites on the server) Does anyone know of a really really basic and novice guide which I could follow that will enable me to get the php mail function working on ubuntu 11.04... pllleeeeaaaassee (if there was a little begging smiley face i would use it here) PS/ This (i think) is the last hurdle for me in getting this server up and running correctly... any help would be absolutely amazing
  6. I'm currently trying to set up postfix on ubuntu 11.04, but it is pretty tricky! Which are peoples favourite email programs on their servers?
  7. ooo, right, that makes sense too... thanks a lot
  8. Would you be able to give an example of when you would want to change a php.ini setting for apache2 and one for cli ?? I'm not too sure i've grasped the difference between the two yet...
  9. Which of these two, apache2/php.ini & cli/php.ini should be changed? It seems on my ubuntu 11.04 server that only changes in the apache2/php.ini seem to reflect the config changes when running phpinfo(); Would anyone be able to help me figure out whats going on?
  10. Yup. After several calls it would appear with cloud hosting you have a lot more freedom too. E.g: fsockopen is banned on std shared hosting (i am told this is because if the host says ok to one client they are forced to say yes to all the other clients of theirs on that same server) but not on any of the cloud hosts i have contacted. I have been juggling around with the decision for a while and i think i will be going for a shared host for a while with a new site im gonna launch, see how it goes. Another bonus with the some of the cloud hosting is that it is essentially 'pay as you go' hosting. Cloud Vs Dedicated server... i'll answer that one in half a year to a years time.
  11. What is the difference between 'shared hosting' and 'cloud'? Would i be correct in assuming the following are true for running a website. You can either: 1) Buy your own server in your own office (lots of work) 2) Hire the use of server of someone else (dedicated server) 3) Share a dedicated server (shared hosting / cloud / VPS)
  12. I'm looking for a good fast and reliable dedicated server in the UK. Anyone got any recommendations?
  13. http://docs.moodle.org/en/Password_salting#Changing_the_salt
  14. ahhhhhh, pennies dropped. Thanks a lot! Very much appreciated. (i just did a search in the source earlier for the tags which of course returned nothing. Of course i forgot the link that was the browsers print special characters differently! Pretty dumb as i use them all the time!)
  15. I think this would work for new members to the site... Members table has "password" field and "password_type" field. Password_type contains a reference to the salting file to be used. Therefore changing the salting can be achived for new members, as new salting is linked to new file via the ref in the members table. Still can't change the old members salting though?
  16. Salting passwords... How can you update the salting without getting all the users to change their password? Is the salting set in stone once created?
  17. Hmm, ok. But how am i able to print here on this thread > or < or " '". Shouldn't htmlentities be removing them? Or does it just remove actual html tags? popup message js: <script language="JavaScript" type="text/javascript">alert("does this popup?")</script> The above js popup message isn't popping up here but the page has printed it directly into the thread... Also it's not even in the source? Is there another way... does this page have a seperate js which handles stuff like this?
  18. So what if you want the user to be able to use > or < or quotes. How do you get them into the html without any risk. Surely the decode version of htmlentities (html_entity_decode) would just print the dangerous script?
  19. fortnox007: Haha! I see I thought you might be talking about something to do with HTML 5 or something PFMaBiSmAd: Those are two pretty good reasons! Thanks a lot (for this site in question the user inputs text that only he or she will read in the future, site admin.. will never read it. Although i suppose future development may result in admin or different users seeing other users input.) <table>
  20. Yea I am trying to proceed with this ethos, I was just wondering. I mean if the input is only ever seen by the user who inputs it... if they input some dodgy js surely it's only funny that it would affect them? What did you mean with ?
  21. Think i've got my self a little confused here. htmlentities This function is designed to try and keep clients safe. If the comment the user inputs can only ever be seen by him or her, then in theory is there no need to use htmlentities as any dodgy script would only affect them. Is this correct thinking?
  22. Ok a few days ago i had an issue (http://www.phpfreaks.com/forums/index.php/topic,310561.0.html) with text being rendered in bold only on macs. I seem to have resolved this issue mostly by reducing the general font size through my site. It's starting to look a lot better. Only i cant get certain bits to the way they look on a pc. The bits of text in question are links in my header and footer. The header has a blue gradient repeat-x as the background and all text ontop of it is in white bold. I like the look on a pc, but when a mac opens the page the bold becomes super bold. Below is all the CSS which effects the header: html, body { height: 100%; font-family: verdana; font-weight: normal; font-size: 10pt; } #header { width: 700px; height: 62px; margin-right:auto; margin-left:auto; background-image: url(png/top-gradient.png); background-repeat: repeat-x; position: relative; } #header-inner{ float: right; width: 400px; font-weight: bold; color: #FFFFFF; text-align: right; padding-right: 15px; padding-top: 5px; vertical-align: middle; } A:link { text-decoration: none; color: #FFFFFF; } A:visited { text-decoration: none; color: #FFFFFF; } A:active { text-decoration: none; color: #FF6600; } A:hover { color: red; text-decoration: none; } And bloew here is the html for the header. <div id="header"> <span id="header-inner"> Logged in as: john -<br/> <a href="accountDetails.php">Account Details -</a><br/> <a href="logout.php">Log Out</a> - </span> <a href="http://www.mysite.net"><img style="padding-left:5px;padding-top:2px;" src="png/logo.png" alt="logo" /></a> </div> Should i be using a different font to be able to use bold but keeping it looking the same on moth pc's and macs?
×
×
  • 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.