Jump to content

scootstah

Staff Alumni
  • Posts

    3,858
  • Joined

  • Last visited

  • Days Won

    29

Everything posted by scootstah

  1. You could use the GD library to create an image with the text from the email.
  2. Sure, but it's not that big of a deal. They probably won't even notice.
  3. You mean like, __set and __get?
  4. Are the modules stored in the database? You could have the users sort them by their ID, and then just gather the modules from the database, and include them in the right order.
  5. That's not generally how MVC works. The class is dynamically instantiated and you don't ever have to deal with return values. If echoing directly in the controller is bothersome then you could use a response class to output the JSON, but it really isn't necessary.
  6. Well how is it stored in the database? And what does the data actually look like?
  7. $order = '4,2,3,1'; foreach(explode(',' $order) as $o) { include 'include' . $o . '.php'; } How's that?
  8. You could send headers to expire the browser cache, which means it should download the new images.
  9. What do the links that are stored in the database actually look like?
  10. So what is this doing or not doing that isn't expected? It looks okay to me.
  11. I like the second method, storing it in one table and selecting the highest revision.
  12. He is using an MVC framework, it doesn't return to anything. I think echo'ing the json in this case is acceptable.
  13. <div class="header"> <div class="logo"></div> </div> .header { background:url(images/topBan.gif) repeat-x; } .logo { background:url(images/logo.gif) no-repeat; } You will need to give the header and logo classes a height and width.
  14. That's correct. What he meant was that instead of saying if (validation passed) bunch of code else error way down here you can do if (validation DIDNT pass) error up here else bunch of code Which you seem to already be doing. And this is really just a preference thing, it's not a rule. It works fine either way.
  15. So is reddit, boingboing, imgur, and a bunch of other sites.
  16. Yeah, I just recently had a WP blog get hacked. Someone managed to upload a shell script and WTFPWN the hosting account. That sucked.
  17. On line 103 you have a stray single quote. value=".$line['english_overall_commnents'].'" Also, you need to close HEREDOC blocks like this, with no whitespace: <<<HTML <form action="gradebook2.php" method="post"> <H4>Thank You, <p> HTML;
  18. What's wrong with that?
  19. If you only want integers then you can simply use is_numeric()
  20. Tell your friends and family, put it on social networking (Facebook, Twitter, LinkedIn, etc), try to advertise it locally with fliers and stuff, buy some Google AdWords credit (and equivalents for Yahoo and Bing if you want), make sure your SEO is in good condition. About the membership thing. What I generally see happen with startups is that it is free initially, but they make it very clear that on X date it will no longer be free, but that legacy accounts will have some sort of discount or benefits. This encourages users to try it out while it is still new and young, and also encourages them to stick around because they think they are getting a good deal.
  21. Are there any errors in the Apache error log? What does "not load" mean? Do they get a 404? A 500? Nothing? Can they ping the website? Does it never work for those people or only some of the time not work?
  22. I much prefer this syntax in templates: <td> <a href="planet_profile.php?planet="<?php echo $address; ?>"> <img src="images/star.jpg" id="<?php echo $cos; ?>" style="position:absolute; left:<?php echo $b_x; ?>px; top:<?php echo $b_y; ?>px;"></a> </td>
  23. Make a log table and write to it when users complete a task.
  24. It outputs What's the problem?
  25. yea but that would still only do $display['0'] im looking for a forloop method to iniative all 4 arrays and go through each one it's fine tho the ternary operator works fine, i just changed $value to $value1 $value2 $value3 then used them on my html return <<<EOF functon But you are writing all the checkboxes anyway, right?
×
×
  • 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.