www.webdeveloper.com

Search:

Type: Posts; User: Znupi

Page 1 of 20 1 2 3 4

Search: Search took 0.03 seconds.

  1. Replies
    6
    Views
    1,075

    Maybe mysql_num_rows()...

    Maybe mysql_num_rows() might help?
  2. Replies
    6
    Views
    1,308

    You are. If you already know PHP, learning how to...

    You are. If you already know PHP, learning how to integrate it with MySQL will be a breeze. Here's a handy tutorial I used when learning MySQL: http://w3schools.com/php/php_mysql_intro.asp

    Also, a...
  3. Replies
    6
    Views
    1,308

    Sounds like a job for a database.

    Sounds like a job for a database.
  4. Replies
    9
    Views
    4,821

    My pattern is much more versatile, as it works...

    My pattern is much more versatile, as it works for any chunk of HTML, it works for both kinds of quotes and any amount of space between "style", "=" and the actual style definition. Also, testing for...
  5. Thread: Nasty PHP virus

    by Znupi
    Replies
    23
    Views
    12,680

    Interesting. Maybe it somehow hacks Apache in...

    Interesting. Maybe it somehow hacks Apache in order to add such values, too? People who have this problem should check their $_SERVER variables (either using phpinfo() or just going through $_SERVER...
  6. Replies
    9
    Views
    4,821

    Here's the best that I could come up with, using...

    Here's the best that I could come up with, using regular expressions:

    <?php

    header("Content-Type: text/plain");

    $subject = "<img src = 'my_image.jpg' style='height:50px;width:30px;'/>";...
  7. Replies
    39
    Views
    5,053

    I still think that the tag name is more important...

    I still think that the tag name is more important than any other attributes (after all, the class name is just an attribute as well). The tag name defines what an object is, the attributes defining...
  8. Replies
    39
    Views
    5,053

    I'm sorry, but how does "Attributes can be added...

    I'm sorry, but how does "Attributes can be added to aid pronunciation of words and phrases in foreign languages" mean class names?! Do you really think that we will use class="romanian" to let user...
  9. Replies
    39
    Views
    5,053

    I don't mean to offend, but you speak a lot with...

    I don't mean to offend, but you speak a lot with few facts. Your whole last post talks about things that might happen in the future and how new technologies that we can't currently imagine will come...
  10. Thread: Nasty PHP virus

    by Znupi
    Replies
    23
    Views
    12,680

    I keep wondering what those functions actually...

    I keep wondering what those functions actually do. They're too mangled up to make something out of them.
  11. Replies
    39
    Views
    5,053

    Are you saying that W3C will deprecate all tags...

    Are you saying that W3C will deprecate all tags and leave only <div> and <span>? I beg to differ. The reason why <font> and <i> are deprecated is because they have no semantic meaning. They mean...
  12. Replies
    4
    Views
    689

    You can also use your own error handler, check...

    You can also use your own error handler, check out set_error_handler(). This way you can nicely catch your errors and log them wherever you want (in a file, in a database etc.).
  13. Replies
    39
    Views
    5,053

    I disagree with this. In my opinion, they should...

    I disagree with this. In my opinion, they should still be taught / learned separately, otherwise the concept of separating content from presentation will fade in the novice's mind (as he will live...
  14. Thread: Form Spam

    by Znupi
    Replies
    5
    Views
    1,028

    Try using a captcha...

    Try using a captcha :)
  15. Replies
    39
    Views
    5,053

    This should be moved to the HTML forum. I have...

    This should be moved to the HTML forum.

    I have to take Mindzai / NogDog's part on this. When you write HTML, you write it with the purpose of it being interpreted in a programmatic fashion (by...
  16. Thread: Nasty PHP virus

    by Znupi
    Replies
    23
    Views
    12,680

    Some FTP clients store passwords in plain text....

    Some FTP clients store passwords in plain text. Some viruses search for these files and send them "home". I don't know about WinSCP -- although the protocol (SSH) is a lot safer than FTP, I think it...
  17. Replies
    5
    Views
    4,230

    Well, I think the most important thing is how you...

    Well, I think the most important thing is how you create those $gamex variables. You only posted the way you are reading them, and that is not the source of the problem :).
  18. Replies
    5
    Views
    4,230

    Try this: $x = 1; while($x

    Try this:

    $x = 1;
    while($x <= 10) {
    $game = "game" . $x;
    $game = $$game;

    $string = "<p>Game $x: " . $game[0] . "</p>";
    echo $string;
    $x = $x + 1;
  19. Replies
    2
    Views
    952

    Or, you can use the ...

    Or, you can use the <input type="submit"> element:

    <input type="submit" name="do_what" value="Login">
    Then just check if $_POST['do_what'] is "Login" or "Signup".

    If you use <button>:
    ...
  20. Replies
    2
    Views
    693

    Also note that generating .php files dynamically...

    Also note that generating .php files dynamically can be terribly unsafe, no matter how safe you think it is. On top of that, it uses much more hard drive space than you would use if you'd go with...
  21. Replies
    3
    Views
    816

    Just use string manipulation functions (like...

    Just use string manipulation functions (like substr, strpos, strrpos etc.) and, after you get the desired link, just do this:

    header("Location " . $url);
    to redirect the user to the new location.
  22. Replies
    7
    Views
    1,038

    It's great that you figured Ajax out. Here's a...

    It's great that you figured Ajax out. Here's a small tip: usually, it's not really useful to look at the status code of the request. Usually, people just check that the status is 200 (although most...
  23. Replies
    1
    Views
    944

    AFAIK, it is not right to send multiple headers...

    AFAIK, it is not right to send multiple headers with the same name (at least not for Content-Type). That is why you are getting different results. Try this:


    $filename =...
  24. Replies
    2
    Views
    2,072

    You can: 1) Redirect to the same page using...

    You can:
    1) Redirect to the same page using header("Location: ..."); -- this will clear all POST variables;
    2) When the user submits data, first check if it is not already in the database.
  25. Replies
    7
    Views
    1,038

    1) Developing web pages using HTML, CSS is...

    1) Developing web pages using HTML, CSS is completely different than ActionScript. It's a whole other concept.
    2) Using JavaScript like that is bad and completely not seo-ready. Search engine...
Results 1 to 25 of 500
Page 1 of 20 1 2 3 4
HTML5 Development Center



Recent Articles