www.webdeveloper.com

Search:

Type: Posts; User: pyro

Page 1 of 20 1 2 3 4

Search: Search took 0.13 seconds.

  1. Replies
    5
    Views
    1,337

    You could do it like this:

    You could do it like this:


    <?PHP
    $str = 'This is a test. This is also a test.';
    $str = preg_replace('/^(.*?)test/i', '$1foo', $str);
    echo $str;
    ?>
  2. Replies
    4
    Views
    1,432

    Try this:

    Try this:


    <?PHP
    $str = '<FRAME NAME="TOP" MARGINHEIGHT=0 MARGINWIDTH=0 SCROLLING=NO NORESIZE SRC="top.htm">';
    preg_match('/<frame(.*?)src="(.*?)"/i', $str, $matches);
    echo $matches[2];
    ?>
  3. Thread: Hall of shame!

    by pyro
    Replies
    4
    Views
    1,788

    These forums are not meant to be money-makers. A...

    These forums are not meant to be money-makers. A job is where you'll make the money, and this is where you can share you knowledge.
  4. Replies
    15
    Views
    2,795

    Poll: I've got an office set up here at home. Do most...

    I've got an office set up here at home. Do most of my work here, with the occasional business trip to do work on-site.
  5. Replies
    17
    Views
    3,072

    Just hung out with The Girl... We were going to...

    Just hung out with The Girl... We were going to go out to eat at a nice restraunt, but she went and got sick, so that will have to wait until she's feeling better. Had a great night, though... Hope...
  6. Replies
    296
    Views
    31,947

    ^^Starts recursion (couldn't resist :D)

    ^^Starts recursion (couldn't resist :D)
  7. Replies
    296
    Views
    31,947

    V V Starts recursion

    V V Starts recursion
  8. But why condone using a bad thing? I think it's...

    But why condone using a bad thing? I think it's good to let them know it's a bad idea and then let them make their own decision. You're not forcing them to do anything, just being a good, responsible...
  9. An even more attractive option would be finding a...

    An even more attractive option would be finding a new host... Having to make usability decisions based on what you host allows shouldn't be the solution.
  10. Thread: Design Magazines

    by pyro
    Replies
    3
    Views
    1,736

    The first issue of this one wasn't bad:...

    The first issue of this one wasn't bad: http://particletree.com/treehouse/
  11. Replies
    4
    Views
    1,142

    If you are on an Apache server, you could look...

    If you are on an Apache server, you could look into mod_rewrite. Take a look at this: http://www.ryanbrill.com/archives/cruft-free-urls/
  12. Thread: Contact PHP

    by pyro
    Replies
    2
    Views
    1,673

    See if this is enough to get you going:...

    See if this is enough to get you going: http://www.webdevfaqs.com/php.php#mailer
  13. Thread: upload

    by pyro
    Replies
    3
    Views
    1,119

    Check out what php.net has to say about handling...

    Check out what php.net has to say about handling file uploads: http://us2.php.net/manual/en/features.file-upload.php
  14. Replies
    17
    Views
    3,235

    Ok, update your query to look like this, and...

    Ok, update your query to look like this, and delete the line below it ($sql = ...):


    $query = "INSERT INTO $database VALUES ('$username', '$password', '$question', '$answer',
    ...
  15. Replies
    17
    Views
    3,235

    lavashark, post your code and I'll show you what...

    lavashark, post your code and I'll show you what needs to be done...
  16. Replies
    6
    Views
    1,390

    Hey, it happens to the best of us... ;)

    Hey, it happens to the best of us... ;)
  17. Replies
    17
    Views
    3,235

    I would highly recommend using a MySQL timestamp,...

    I would highly recommend using a MySQL timestamp, rather than a PHP timestamp, since you are adding it to a database. The reason for this, is if you need to run queries related to the date, you'll...
  18. Replies
    2
    Views
    1,897

    How about this:...

    How about this: http://www.infinitypages.com/research/download.htm
  19. Replies
    6
    Views
    1,390

    You forgot to close you second parenthesis... ...

    You forgot to close you second parenthesis...


    if(isset($_GET['action']))
  20. Replies
    11
    Views
    1,730

    Good question... ;)

    Good question... ;)
  21. Replies
    4
    Views
    1,593

    Run a phpinfo script and make sure GD is...

    Run a phpinfo script and make sure GD is installed...
  22. Replies
    11
    Views
    1,730

    Something like this:

    Something like this:


    <?PHP
    $db_server = 'localhost';
    $db_user = 'username';
    $db_pass = 'password';
    $db_name = 'db_name';

    mysql_connect($db_server, $db_user, $db_pass) or...
  23. Replies
    9
    Views
    1,435

    You are only supposed to use the ternary...

    You are only supposed to use the ternary opperator when you want to return a value. ;)
  24. Thread: PHP vs ASP

    by pyro
    Replies
    22
    Views
    4,324

    First of all, I'll start by stating that I'm a...

    First of all, I'll start by stating that I'm a PHP developer and am not a fan of ASP (or .NET). However, you hardly make a compelling argument.

    A good quality host is going to cost about the same,...
  25. Thread: PHP vs ASP

    by pyro
    Replies
    22
    Views
    4,324

    Actually, get a web host that supports the one...

    Actually, get a web host that supports the one you choose. ;) That's the better option, I'd say.
Results 1 to 25 of 500
Page 1 of 20 1 2 3 4
HTML5 Development Center



Recent Articles