Jump to content

N-Bomb(Nerd)

Members
  • Posts

    267
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

N-Bomb(Nerd)'s Achievements

Advanced Member

Advanced Member (4/5)

0

Reputation

  1. I'm not even looking to have users to register. Simply go to the website. Upload. Link.
  2. Hello, I'm aiming to a create a small-sized file hosting website. Of course the main idea for me is security. Would simply changing the chmod to directory to only allow read access prevent from any executions? Are there any exploits for this? Also, what would be the best approach to use to keep file names in tact, but not copy/write over any other files? How do upload websites achieve the (virtual?) directory structures such as: example.com/10t/yourfile.pdf
  3. I followed this and my domain is now pointing to my VPS hosting. Thank you. -- While I have everyone here: Let's say that I want to host multiple domains from the same VPS hosting. How would I achieve this? I'm kind of confused on exactly what a name sever is or exactly how to create or use one. Like I said I have multiple IP addresses that came with my VPS. Is there any decent tutorials explaining this? I've tried googling, but I'm not coming up with any good results..
  4. It's my first VPS. That's kind of harsh. :'( I've always had shared web hosting.
  5. Here's what I'm presented with when I click on edit dns location: Is that what I need?
  6. I can edit my domain and set the name servers myself, but what do I put there? Just the ip address of my vps?
  7. Yes. I own my domain. However, I don't know how to tie it up with my hosting. I don't even know the technical terms here and this is upsetting me quite a bit that I can't even accurately describe what I want to achieve. I have a VPS. There's no control panel (like cpanel). It's running Linux. I have 7 IP addresses. I've looked through the hosting company control panel and there isn't anything about dns. It's just a basic Linux install and I manually put Apache on there.
  8. I've searched through all available options and I'm not seeing anything like this. Could it be because I don't have any Control Panel (cpanel, etc.. etc..)?
  9. Hello, I have recently purchased a linux vps and I would like to setup a domain to use on there. I'm able to install apache/php/mysql without a problem, but I don't know how to set up the dns so I'm able to use my domain on there. How would I do this?
  10. Hello, I mainly work with php and I don't know much about css (I can understand some of the basics), but I need something for a project that I'm working on. I basically have this div that's has the following size: height: 398px; width: 650px; Within that div I'm trying to create an example mockup of a video player.. almost like something you would see if you embedded a YouTube video. Just to show you how bad I am at css -- here's the code I've been trying to get to work now for a few hours (4++ hours): <html> <head> <style type="text/css"> #video_player #background { float: left; position: absolute; } #video_player #title { position: relative; background: url("http://i.imgur.com/ms7ho.png") repeat; height: 35px; width: 100%; } #video_player #title span { float: left; position: absolute; color: white; padding-left: 15px; padding-top: 6px; padding-bottom: 5px; font: 16px arial,sans-serif; } #video_player #spinner { position: absolute; height: 100%; width: 100%; } #video_player #controls { height: 35px; width: 100%; } </style> </head> <body> <div id="video_player" style="border: #d2d2d2 1px solid; width: 650px; height: 398px;"> <div id="background"><img src="http://i.imgur.com/otRCm.jpg" width="630px" height="398px" /></div> <div id="title"><span>Rihanna - Only Girl (In The World)</span></div> <div id="spinner"></div> <div id="controls"><span>the video player controls go here at the bottom</span></div> </div> <script type='text/javascript' src="http://fgnass.github.com/spin.js/spin.js"></script> <script type='text/javascript'> var opts = { lines: 12, // The number of lines to draw length: 7, // The length of each line width: 4, // The line thickness radius: 20, // The radius of the inner circle color: '#000', // #rgb or #rrggbb speed: 1.5, // Rounds per second trail: 60, // Afterglow percentage shadow: true // Whether to render a shadow }; var target = document.getElementById('spinner'); var spinner = new Spinner(opts).spin(target); </script> </body> </html> As you can tell.. I can't quite get everything to align properly in in their correct "layers" (not sure of the correct term.. I think "overlap correctly" might of worked better there). I've been trying to use firefox, chrome, and ie to text cross-compatibility, but it's turning out to be hard. The spinner script is supposed to add the spinner into the middle of the div.. so I royally messed that up. Ideally, at the bottom of the video player I want to have an example set of controls, but I'm just wondering how hard that would be to incorporate. I would really appreciate some help on this. I'm a total noob when it comes to css. :'(
  11. basename() works perfectly! Thanks!.
  12. Hello, I have a string like such: http://logs.coolbeans.net/character/name/QAkHcdcSSjLfus I'm trying to get the content after the last "/" (in this case: QAkHcdcSSjLfus). I tried using this as my expression, but it failed me "~http\://logs\.coolbeans\.net/character/name/(.*?)~". When doing if(preg_match("~http\://logs\.coolbeans\.net/character/name/(.*?)~", $string, $results) the if expression is true, but $results won't contain the value I want. How do I do this? Thanks.
  13. I forgot to mention that I want the generate_structure() function to be recursive so I can pass long directory paths and have it append to the array regardless of the depth. That way I'm able to pass in a directory path like "/images/icons/big/massive/giant/small/" and it would work.
  14. Hello, I have a string that contains a directory path much like: "/images/icons" and I want to take that string through a function and explode it into an array of directories that with add my directory structure array: imagesicons Then if I were to send the string "/data/documents" to the function it would append to the existing array: imagesicons [*]data documents Here's the code that I've got thus far: <?php $global_structure = array(); generate_structure("./images/icons"); generate_structure("./data/documents"); function generate_structure($directory) { if(!is_dir($directory)) return false; $directory_structure = explode("/", $directory); // do something here to iterate over $global_structure and add new directories to equal to current directory path making the value an empty array. } ?>
  15. I've been going at this for quite some time without any success. Ideas?
×
×
  • 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.