Jump to content

ober

Staff Alumni
  • Posts

    5,327
  • Joined

  • Last visited

Everything posted by ober

  1. You would get that if you output something to the browser before calling the header() function. One other thing I noticed: $_SESSION[valid] = $valid; You don't have any quotes around the key name. $_SESSION['valid'] = $valid;
  2. I suppose... that would be kinda tricky tho.
  3. I don't know for sure if this will fix it, but have you tried running addslashes on the filename before stuffing it in the unlink()?
  4. I don't know for fact, but I'm going to guess that they use Apache's URL ReWrite engine. IIS has a similar extension now, but I don't think it's quite as powerful. Look it up on the web if you're really curious.
  5. [code] if($user == $usernames) {     if($pass == $passwords) {[/code] Remove the "s"s
  6. Have you had your cable company do their setup? They need to identify your cable modem and register it with their network. You MUST do that before they'll let you surf the web.
  7. You don't need to use session_register(). Are you getting any errors? Is there any whitespace before you open the PHP tags before session_start()?
  8. Look for "upload_max_filesize" in your php.ini file.
  9. $count is always going to be zero according to your code. [code]echo '<div class="title">' . $row['cat_name'] . '</div>';             $query2 = 'SELECT * FROM admin_tools ORDER BY tool_num ASC';             if($r=mysql_query($query2)) {                 echo '<table>';                 $count = 0;                 while ($row2 = mysql_fetch_array($r)) {                         if($count == 0) {                              echo '<tr>';                         }                         echo '<td>';                         if($row2['tool_icon']){$a='<a href="' . $row2['tool_link'] . '"><img src="' . $row2['tool_icon'] . '" border="0" /> </a>';}                         else {$a='&nbsp;';}                         echo $a . '<a href="' . $row2['tool_link'] . '"><br />' . $row2['tool_name'] . '</a><br /></td>';                         if(++$count == 3) {                              echo '</tr>';                                                          $count = 0;                         }                                              }                         echo '</table';                 }[/code]
  10. My suggestion would be to use strtotime() to reduce the 2 dates to the unix timestamp and do your calculations based off of that.
  11. My suggestion would be to build it with PHP4, since a lot of hosts are still hesitant to install and support PHP5. This is especially the case if you plan to give the CMS to other people to use on their own hosts.
  12. Yes, you can use arrays in session variables, however I'm not sure that you can use 2 dimensional arrays in sessions. What you should really be doing for something this complicated is setting up temporary database records. It would not only be more reliable, but it would probably be easier to work with than a bunch of multi-dimensional arrays.
  13. I'm going to assume that you deleted the connection info, otherwise that's going to be your biggest problem. Are you getting any errors? What exactly is happening? Have you tried to echo various parts of the script to see if things are coming out how you expect?
  14. 20MB of files or 20MB worth of DB info? My suggestion would be to run an export on the old database and then an import on the new one. I don't think a direct transfer is possible. To cut this down, you can only export certain tables, doing it in chunks. Keep in mind that depending on the options you choose in phpmyadmin, it's going to take a while for the file to be generated and sent to you as a download. I'd suggest doing the zipped version as well, as it'll take about 1/10th of the time.
  15. I'm not 100% on the answer to the question, but if it can be done, it would be done with the headers that you send.
  16. Using one giant table for all mail would be the preferred method. Setting up tables for each user is both inefficient and poor database design.
  17. You need to apply the nl2br() function to the output. echo nl2br($row['stuff']); will display the results with all the "returns" and whatnot put in there like it was entered. Justifying in terms of alignment is all done in your CSS/styling and has nothing to do with the mysql output.
  18. The same can be done with the latest releases of Opera (the preview releases of 9, not the stable 8.53 public release). All you have to do is right-click, go to details in the box that shows up and add the link Eric provided above.
  19. www.vbforums.com (It's not just for VB... that's a programming board with a LOT of languages). www.cprogramming.com/forums is another good one.
  20. The default installation should work with sessions unless you totally screwed up the PHP.ini file. What version are you running?
  21. Did you create the XML file? Have you looked through the PHP manual on XML DOM? Explain "Dynamic" in terms of how you mean it. Do you want a page that updates itself periodically if someone is watching it, or a page that reads from the file automatically?
  22. A quick look at your source reveals that you're not closing the quotation marks after the image path: echo '<img src="images/' . $imgs[$row[3]] . '.png" ' . $attr . '></td> That should work.
  23. Have them do it the first time (hell, store it as an input when they run your initial install script) and then just fill in the form for the update with the details. If the details change, just update the settings. That way, they only have to enter it once, but it gives them access to change it as needed.
  24. AJAX is not new, and it's not a specific language. It is a combination of JavaScript and calls to backend scripts, whether it be Perl, PHP, ColdFusion, etc. www.ajaxfreaks.com is another site that is part of the webfreaks network. Check it out.
  25. Tablenames cannot have spaces, unless I'm mistaken!
×
×
  • 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.