User Profile

Collapse

Profile Sidebar

Collapse
tbb9216
tbb9216
Last Activity: Jul 18 '07, 08:19 AM
Joined: Sep 22 '06
Location: Seattle
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • tbb9216
    replied to Why my search engine function are limited
    in PHP
    now im pretty new here, but i dont think you should keep posting this question in different ways, it just hogs the forum
    See more | Go to post

    Leave a comment:


  • tbb9216
    replied to Hide Url
    in PHP
    http://php.net/htaccess to learn about this in php
    http://us2.php.net/reserved.variables and find info on REQUEST_URI

    since you are using windows, you cant create a .htaccess file because windows wont allow a file starting with a period. so you need to edit your apache.conf file to look for a different file name than .htaccess.

    now that that is ready, creat that file with the info i put in my last post. if...
    See more | Go to post

    Leave a comment:


  • tbb9216
    replied to how to built a search engine
    in PHP
    2 things i need to know.

    1) what is this a search for, if i understand the language i can help more

    2) what do you want the radio buttons to do?

    let me know this and i can tell you how to do it
    See more | Go to post

    Leave a comment:


  • im pretty sure this will only work in IE and when you click on a submit button that uses an image.

    let me know if im wrong, best of luck to you

    -tim
    See more | Go to post

    Leave a comment:


  • tbb9216
    replied to Hide Url
    in PHP
    here is the code for an .htaccess file to do what youre asking:
    Code:
    RewriteEngine On
    RewriteBase /
    RewriteCond    %{REQUEST_FILENAME}  !-f
    RewriteCond    %{REQUEST_FILENAME}  !-d
    RewriteRule . /index.php [L]
    this turns on the mod_rewrite engine in apache, tells what base directory to look in, checks the files to see if they exist, and if they dont, it will default to /index.php and you can use...
    See more | Go to post

    Leave a comment:


  • i really need more information of what you are trying, but really, to put a media file of any kind in a webpage wouldnt require php.

    just use the <object> tag in html, where for the src you can use php to generate that.
    See more | Go to post

    Leave a comment:


  • tbb9216
    replied to What is the Maximum limit using POST Method
    in PHP
    you set the max for a file upload in your php.ini file

    -tim
    See more | Go to post

    Leave a comment:


  • tbb9216
    replied to Create variable for deletion
    in PHP
    [php]
    $d1 = 'dropdown 1';
    // example: d1 = 2
    $d2 = 'dropdown 2';
    // example: d2 = 5

    for ( $i = $d1; $i <= $d2; $i++ ) { // 2 <= $i <= 5 in other words, from 2 to 5
    $que = "DELETE
    FROM table
    WHERE id = '$i'";
    $res = mysql_query($qu e);
    }
    [/php]

    this will cycle through the selected number range and delete rows...
    See more | Go to post

    Leave a comment:


  • you have a few options:

    1) AJAX!!! this is your best option, it will dynamically reload the section of the script you want updated and nothing more. if you are clueless on it, hit up google or get friendly with prototype.js.

    2) <object> tags. this is if you are using strict dtds, i HIGHLY doubt you are...

    3) iframes - an early form of ajax. works like framesets, but embeded in a non frameset....
    See more | Go to post

    Leave a comment:


  • tbb9216
    replied to clear cache tag in PHP?
    in PHP
    why dont you try making it expire a LONG time ago, perhaps at the unix epoch?

    -tim
    See more | Go to post

    Leave a comment:


  • tbb9216
    replied to Start with php
    in PHP
    you have to have a plan before you make anything. figure out what you want it to do, then read http://php.net like crazy to find info on dealing with form vars and manipulating them.

    look up $HTTP_POST_VARS , $HTTP_GET_VARS, $HTTP_SESSION_V ARS and $HTTP_SERVER_VA RS to get started.

    then come back and ask questions

    good luck

    -tim
    See more | Go to post

    Leave a comment:


  • tbb9216
    replied to simpler version for incryption
    in PHP
    AES is the new defacto standard. it is in both PHP and mysql by default, i find the mysql method a LOT easier to use. its the same enc type that the US govt uses, there are only 2 HYPOTHETICAL breaks to it in existence. in php it is part of the mcrypt library, and it goes as rhijndahl or something like that, after the 2 people who created it, and make sure to use the 128bit version, as that is the AES version.

    in mysql its just:...
    See more | Go to post

    Leave a comment:


  • tbb9216
    replied to if pathname query
    in PHP
    substr ( string, start point, end point )

    where the first available start point is 0.
    so that means:

    [PHP]
    echo substr('hello', 0, 1);
    // echos h
    echo substr('hello', 1, 1);
    // echos e
    echo substr('hello', 0, 3);
    // echos hel
    echo substr('hello', 1, 3);
    // echos ell
    [/PHP]

    for the EXACT info, check out http://php.net/substr
    See more | Go to post

    Leave a comment:


  • tbb9216
    replied to Purpose of Enctype attribute in Form tag
    in PHP
    enctype tells the server recieving the form how to handle it. when you get into a lot of ajax you will start to really use this. also, when uploading files you have to set the enctype to multipart/form-data

    basically, if you are doing something that requires enctype to be set or changed, you know what you are doing with it.
    See more | Go to post

    Leave a comment:


  • tbb9216
    replied to Add forum feature php application
    in PHP
    i would approach this pretty much as you would a shopping cart.

    instead of storing mass amounts of info in the db, store references to threads in the db.

    example:

    CREATE TABLE `thread`
    (`threadId` int(11) NOT NULL PRIMARY KEY auto_increment,
    `threadTitle` varchar(255) not null,
    `threadDate` date());

    CREATE TABLE `thread_message s`
    (`messageId` int(11) NOT NULL...
    See more | Go to post

    Leave a comment:


  • tbb9216
    replied to how to built a search engine
    in PHP
    it all depends on the type of search you want to do. are you having customers search a product, users, or are you trying to take on google?

    say you are searching a product, your SQL would look something like:

    $product = 'web dev book'

    SELECT prodId, prodPrice,
    prodDesc, prodTitle
    FROM products
    WHERE prodTitle LIKE '%$product%'

    this is the most basic...
    See more | Go to post

    Leave a comment:

No activity results to display
Show More
Working...