Jump to content

oni-kun

Members
  • Posts

    1,984
  • Joined

  • Last visited

  • Days Won

    1

Everything posted by oni-kun

  1. Yep. Just remember variables don't resolve in single quotations. That's why you had to concatenate it after the 'data'.
  2. Not 100% sure if this works, but you added the wrong syntax to your loop. "<" is lessthan, so it'll just not loop. for ($c=0; $c>=130; $c++){ echo $_POST['data'] == $_POST['data'.$c]; } But what is this code for? From the looks of it.. It could be accomplished a much simpler way. You forgot colons and what is the if for?
  3. LOL, Well you have a point there.. Or is he playing 'sappy newbie' and 'nerdy programmer', asking questions so he can answer his own, making himself look smart and a successful programmer?
  4. FTP is a very very distant program from Apache. You cannot. Do you have shell access? It's in /etc/vsftpd.conf. If you're limited than there's not much you can do, Atleast nothing in standard documentation.
  5. Yes, You create a user with access only to the tolder /limitedperson/ and edit vsftpd.conf to reflect their permissions in allowing them to access root. Standard linux config.
  6. I've never actually looked into it, But upon looking at code and tutorials they look overly complex to perform simple tasks. Were they meant to do 'large' scale projects faster? Because a lot of the database framework and whatnot I can easily match by hand.. CodeIgniter I've heard a lot about, But I'm not sure if I should really use it, any thoughts on pros and cons?
  7. It's amazing how much you 'two' have to prove 'you\'re' more than one person. Makes me suspicious..... EDIT: Wow, spot my habit there.
  8. How do you think webhosts disallow you to see the contents of /home/xxxxx/ on your FTP?
  9. I gave you a working example. And this has absolutely nothing to do with PHP, PHP is a serverside language, it doesn't even have styling. If you "see" someone jump off a bridge, should you?
  10. Blah, You can do something simple like so: <img src='image.png' name="hover1" border='0' onMouseOver="document.hover1.src='image_highlight.png';" onMouseOut="document.hover1.src='image.png';" onClick='window.open("http://www.example.com");' /><br/> Basically image.png, when mouseovere'd = image_highlight.png. With onclick to go to an url.. But, You do know, this is the wrong forums and section for this question.
  11. This makes no sense. But yeah, creating a clean and simple infrastructure for your code is essential for later on. If you need any help with whatever just ask.
  12. PHP is a serverside language, meaning anything within the PHP files (save for output) Cannot be viewed by the user. Database passwords can be stored directly or via an include (usually a common practise) but there is no security risk involved with either way. The only possible way to view them is through an exploit on a poorly programmed script (SQL/path injection) or via FTP. I'd recommend you read up on common security practises revolving around sanitizing input from the user. mysql_real_escape_string -- Some security methods, quite handy
  13. a Alias just for my account ? Ask them to set up an MX record for your domain, so you can 'send' messages from your smtp server.
  14. Gmail and anything that can read e-mail headers would see where it is coming from. If your e-mail is physically coming from your shared host's server, than that is what it'll show. You can ask your host to create an alias (so it shows mail.yourdomain.com) or register for another mail service..
  15. The old one had some sort of.. 'raw' ness to it. It was a bit clunky and looked like it's been around forever, I kinda liked it and got used to it. This one is just more modernized, not as indistinguishable from other ones. Although the only thing to do, is move forward, so it indeed is a good move.. [ot]This thread is almost at 1337 views!![/ot]
  16. Horizontal tabs, CRLF's are NOT invalid characters. Hex shows 20 OA OD OD OD 20, Not anything worth noting. Do you even understand whitespace? OP. You're not escaping your string. Just looks at it and you'll see where you went wrong: <a href=\"#\" onclick=\"ajaxpage('backstage_libs/arenas.php?option=3&id=$row['id']', 'content'); return false;\"> $row[]'s if you couldn't spot it.
  17. It should always be an attachment. You could either: 1) Display the image via an external link 'yourdomain.com/image.gif' 2) Attach the image, and display it within the e-mail, not leaving it just as an attachment.
  18. Yes. This should only be used if you have a mission critical PHP project that requires major portability. Imagine 100 people view your web page, over 200+ entries would be made to your database alone just to pull out an image. Slow and choppy. Databases were meant for text, atleast classically with PHP.
  19. :'( Has your code ever worked prior? The mail function relies on an SMTP server, try opening telnet and entering: telnet mail.yourdomain.com 25 or telnet smtp.yourdomain.com 25 and it should return if you can connect or not. Being Yahoo, I believe they should have documenation on how to get this to work, as usually it's not set up by default. Your code looks fine to me. Also.. since you're using Yahoo, your mailserver is shared, so your messages sent may be sent into the spam/bulk e-mail box. Check it there if you haven't.
  20. Use something like 'getfile.php?file=this.pdf' <?php if (isset($_GET['file'])) { $file = $_GET['file']; echo '/home/yourname/pdfs/'.$file }?> I'm not sure if that'd work off the bat but you can use include()'s on sub-root directories.
  21. Yes, they are the same for the purpose you are using it for.
  22. No prob! Try'n hit the 'SOLVED' button on the lower left of this thread if your question is answered.
  23. Do you have root access to your server? I'll assume you have a dedicated one. For the session side, I don't think you can really bind PHP and telnet/SSH like so. What you can do is use a PHP command to parse the telnet server when the user is logged in: such as popen'ing telnet or SSH, dynamically setting up authorization for your assigned users and re-write the config for telnet (Or shut it off with another command) once the session time is over (which'd need CRON jobs.) You may need to write your own CGI gateway.. with popen or exec you can run popen("/usr/bin/telnet --start --user $username --pass $pass").. Or however you set up telnet with user/pass.
  24. Use a form to test the result from 'copycode' first. die as a secondary option if it doesn't send.
×
×
  • 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.