Jump to content

Caesar

Members
  • Posts

    1,025
  • Joined

  • Last visited

    Never

Posts posted by Caesar

  1. Can you being up any PHP pages? What happens if you upload a PHP info page?

     

    Throw the following into notepad and save it as "info.php" and upload it to your site & try to open it in your browser:

     

    <?php
    
      phpinfo();
    
    ?>

  2. PHP on Windows sucks....because of Windows. And especially in CGI mode.

     

    Also....

     

    http://youdomain.com/?pid=2&search=12

     

    Simplified example..

    "index.php"

    <?php
    
    function getContent() {
    
      $pageID = $_GET['pid'];
    
      switch($pageID) {
        case 2:
          Search($_GET['search']);
        break;
        
        default:
          mainContent();
      }
    
    }
    
    function mainContent() {
      //Whatever dude. Load a template file or add your HTML here.
    }
    
      getContent();
    
    
    ?>

     

    Instead of using/linking to a million diferent PHP files...just use functions or even include files and add some kind of conditional statement that determines what content to load. Technically, you don't need to have the extension in the url. Apache mod_rewrite would be much nicer than this though.

  3. You would need to simply format the link or form in their email so that it posts/sends them to the right page and the values are passed. Maybe even do it so that it's encrypted.

     

    http://somesite.com/form.php?id=bq5t53tmsnq35qbubhq3t4babrugy98yhuij4ht8g4

     

    You then decrypt the id's value (Or whatever get variable you use) in your form script/file and auto-fill your form accordingly.

  4. So initially...your site/server send an email to someone. You want that email to contain a link that goes back to a script on your site where they see a form that has been filled with the appropriate values?

  5. PLease clarify what you mean by "change....to php". Do you mean reformat a value that was run through cdbl() in another non-PHP script, to something else? If so...then yes. But we would need an example of the value...and what you want it converted to.

  6. `private_messages`

     

    id (INT)    |    userid (INT)    |    author (INT)    |    time_stamp (INT)    |    message (TEXT)    |
    ========================================================================================================
    1                    2                     5                 1128793540               hey you...
    

     

    Would be a simplified way of doing it.

×
×
  • 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.