Jump to content

hoopplaya4

Members
  • Posts

    161
  • Joined

  • Last visited

    Never

Everything posted by hoopplaya4

  1. Hi all, Let me do my best to explain the situation. I'm currently on a hosting plan and have a certain folder that users upload files onto through a web form. (For example, /home/users/public_html/uploads) I want to put a "cap" on the amount of disk space on that specific folder (uploads). I've spoken with my provider, and they cannot do it for me. So, my question is, how would I go about creating a script that, right before a user uploads, calculates the current space usage on the folder, compares it to my allowed usage (say 500 MB), and then either allows or disallows the upload based on their quota. Any point in the right direction would be fantastic! Thanks.
  2. Okay, I got it. Set it up in CSS as: position:fixed; margin-left: -70px; margin-top: 8px;
  3. Thanks for the reply. But what if I don't want it at the bottom of the page? I'd like it to display at the top. Kinda like on GMail, when you archive an email, the message displays at the top without moving the entire page down. How would I achieve such a feat?
  4. Hi All, Hopefully I'm asking this in the right place-- this may be more of a CSS/HTML question. I currently have a DIV at the top of my webpage, with it's style as "none." <div id='confirm' style="Display:none;"><p>'.$id.' Has Been Updated</p></div> Anyway, I have a little function that changes the display to "block" when an action occurs with database. Doing so, it display the DIV fine. However, it moves the "entire" page (meaning the rest of my DIVS) downward. This is kind of an eyesore when everything moves like that. Could someone perhaps point me in the right direction on how to have it display in a designated area without adjusting the rest of the elements on the webpage? Thank very much.
  5. Good to know. That's what I was thinking the answer would probably be. Does anyone have any recommendation on how to do this? Any specific tutorial or reference? I don't know much with Ajax.
  6. Hi All, I have a bit of code: <a href="javascript:showaddevent(2,5,2);">Click Here</a> When clicked, it opens up a form for users to fill out. How would I pass those values in the parenthesis to PHP (2,5,2)?
  7. Hi All, I have a variable: <? $number = 1; And, what I am trying to do is 'add' to it. For example, I'd like to have: echo "<a href='redirect.php?num=.$number(+1).'>Add Event</a> Thus, it would display: redirect.php?num=2 Is my syntax correct using it the way it is in an "echo" statement? Thanks!
  8. I have MP4's that I host on my website. I'd like to add an option where users can click on an MP4 to download, and it automatically open iTunes and downloads (and adds) the file to that person's iTunes library. Does anyone know if this is possible without the needs of a Podcast? The reason I want to stay away from podcasting is that the MP4 files are specific to several users. Thus, if I have 70 users on my website, I wouldn't want 70 different podcasts. Let me know if I need to clarify more! Thanks.
  9. Hi All, I have (what I hope is) a quick question. I have two different websites hosted on two entirely different servers. However, I have a link that users will click on one website that takes them to the other site hosted on a different server. For example, user "Johnny" is logged in on Server A and clicks a link (www.serverb.com/session.php) that takes him to Server B. How could I configure session.php on Server B so that it only allows "Johnny" (who clicked the link) to view the webpage. E.g., not just anyone browsing the Internet can simply browse to session.php on Server B. Hope this makes sense! If you need clarification, let me know!
  10. Nevermind, got it figured out! Used "$argv[1];" instead! Thanks again!
  11. Thanks for the reply, flyhoney. That got me further, but now, it's actually passing "myscript.php" as the variable, not $_POST['name'].
  12. Hey All, I'm trying to pass a PHP variable to another PHP script via Exec(). I am using Exec because I want to run the script in the background to do some processing. Here's what I currently have: $id=$_POST['name']; exec("php myscript.php?name=" . $id . " >> completed.php &"); Now, when I manually browse to the PHP script and run it, it works fine, however, it doesn't work when I try to "exec" it. It appears that the $id isn't passing. Is there something I'm doing wrong here? Or is there another way to pass the variable? Thanks!
  13. Hi all, I'm looking for a video player (either open-source or one that can be purchased) that can play Hi-Def videos (widescreen, H.264) on my website using PHP/MySQL. I'd like it to play FLV's and MP4's and preferably have it customizable, with other options such as: slow motion and voice-over as well. Any players out there like this? Thanks!
  14. A somewhat interesting update: Instead of sending the email, I set up the PHP Script to "echo" the variables instead. And, they are showing up as they should: TEST logo.php?subject=Test Email&email=jdoe@gmail.com TEST jdoe@gmail.com logo.php?subject=Test Email&email=jcool@gmail.com Then, in further testing to figure out what the issue is, I have removed the image altogether, and instead, just displayed it as text. Thus, it would display in the email as: logo.php?subject=Test Email&email=jdoe@gmail.com Funny enough, it shows up as: logo.php?subject=Test Email&email=jdoe@gmail.com in both emails. This leads me to believe it has something to do with PHPMailer. Either, I'm placing the $body in the wrong area, or something else. Any ideas?
  15. Thanks for the reply, Premiso. Yes, the image is working. I know this because I have it post to a Database every time it's accessed. They just both have the same "email" name. It doesn't appear to be any HTML or Client issue. It's just weird that it is not creating the name dynamically. Any other ideas? (It's probably something I'm missing or overlooking).
  16. I've got a question, that I hope is easy to answer. Perhaps I'm overlooking something. I have a form where the admin can send an email to multiple users at one time, using PHPMailer. Now, in the PHPMailer script, I would like to dynamically embed an image unique to each user based on their email address. For example, if I'm sending an email to jdoe@gmail.com and jcool@gmail.com, they will both have the following <img> in their email: jdoe would have: <img src='http://www.domain.com/logo.php?&email=jdoe@gmail.com /> jcool would have: <img src='http://www.domain.com/logo.php?&email=jcool@gmail.com /> Now, the emails are sending no problem, but the "img" is not being created dynamically for each email. It shows up as: <img src='http://www.domain.com/logo.php?&email=jdoe@gmail.com /> in both emails!! Here's the Script, I'm currently using: <?php $emails= $_POST['emails']; foreach ($emails as $e) { $body = $html; $body .= "<br><br><br><img src='http://www.domain.com/logo.php?email=". $e ."' />"; #initiate PHPMailer class $mail = new PHPMailer(); $mail->IsSMTP(); // telling the class to use SMTP $mail->Host = "smtp.host.com"; // SMTP server #set the from e-mail address $mail->From = $address; #set the from name $mail->FromName = $fullname; #set the e-mail type to HTML $mail->IsHTML(true); #the subject of the email $mail->Subject = stripslashes($_POST["subjectpost"]); #the HTML content of the email $mail->Body = $body; #the plain text version $mail->AltBody = $plain; $mail->AddAddress('demo@demo.com); $names = $_POST['emails']; foreach ($names as $n) { $mail->AddCC($n); } } } $mail->ClearAddresses(); ?>
  17. Hey All, What's the best way to e-mail from PHP, more specifically bulk e-mail pulled from a database? Currently, I'm using PHPMailer, but it seems to "not send" emails at times. Some moments, the email will go through immediately, and others, it'll never go through. This may be due to my host, GoDaddy (whom I did not chose). Any recommendations? Thanks!
  18. Thanks for the reply. That worked terrific! Now, I have a (hopefully simple) question: 1) Is there any way to display that this video was posted to multiple users?
  19. Thanks for the reply Darkwater. Sorry for not being specific. By "room," I mean 'visually speaking.' I don't want it to take up an entire page. That would be a lot of scrolling.
×
×
  • 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.