www.webdeveloper.com

Search:

Type: Posts; User: gavshouse

Page 1 of 4 1 2 3 4

Search: Search took 0.01 seconds.

  1. Replies
    1
    Views
    2,125

    foreign character domain issue

    Ive just bought Ádn.com since i wanted a CDN for a few sites and thought i'd be clever but ive just noticed in some browsers to redirects to the ASCII set version and in others it doesn't.

    Im...
  2. Replies
    9
    Views
    2,597

    Yeah that will offer some protection but is not...

    Yeah that will offer some protection but is not 100%. I would look at using PDO with prepared statements much more secure.

    One thing to note with mysql_real.. it doesn't escape % or _. Also for...
  3. Arh right i guess i will wrap it all in try &...

    Arh right i guess i will wrap it all in try & catch then if execute does it then no real big deal but php.net should be clear.
  4. Hmm the php.net docs doesn't seem to follow that...

    Hmm the php.net docs doesn't seem to follow that train on thought though. My full code is below i see nothing wrong dont understand why the docs would say that then it not be the case.


    <?php
    ...
  5. Nope, my thoughts were it was being added in PHP6...

    Nope, my thoughts were it was being added in PHP6 but read somewhere its in PHP 5.3.5 and it works. Any thoughts on the issue though ? you think its a bug ?
  6. Replies
    1
    Views
    1,653

    Seems like you can just use the SimpleXML class,...

    Seems like you can just use the SimpleXML class, unless i dont understand the question ive used it in the past pretty simple to work with

    http://php.net/manual/en/book.simplexml.php

    The second...
  7. The code you have posted does seem to have some...

    The code you have posted does seem to have some major issues.

    Firstly the IF function seems to have no ELSE statement yet it seems you wish to have it.

    Second you are doing a foreach() loop yet...
  8. Replies
    9
    Views
    2,597

    Cant really see what would cause the issue is it...

    Cant really see what would cause the issue is it Line 89 where the query is done ? whats the field name.

    Also just to point out all these queries are open to SQL injection attacks :)

    Have you...
  9. Replies
    2
    Views
    1,943

    You cant just ask someone to make something for...

    You cant just ask someone to make something for you. Most people on either are either students and developers both of which dont have spare time to just write a piece of code for you and create...
  10. Where is this image ? Legend of Zelda, The -...

    Where is this image ? Legend of Zelda, The - Ocarina of Time (U) (V1.0) snap0003.jpg

    Its saying it cant find it, not only that but im unsure if you can pass a directory path with a file that has...
  11. [RESOLVED] PDO Exceptions Handler...Not Working

    Hi, im just rewriting my database abstraction class and im wanting to turn on PDO Exceptions upon errors such as


    $stmt = static::$_pdo->$prepare('SEL * FR foo');

    This should throw yet it...
  12. Replies
    3
    Views
    2,598

    PHP Socket Server

    Okay i created a HTTP Ajax chat a while back and its really hitting my web server hard, its created using memcache to store the data in but still hits the server hard.

    Im wanting to create a php...
  13. Replies
    12
    Views
    2,439

    Why have you switched around the code ? its now...

    Why have you switched around the code ? its now not going to work as you want, also this is cookies not sessions.

    I would look at this http://w3schools.com/php/php_mysql_insert.asp

    You want to...
  14. Arh right no problem ive learned to never use...

    Arh right no problem ive learned to never use button now lol
  15. Replies
    3
    Views
    1,753

    You will maybe want to look at preg_match and...

    You will maybe want to look at preg_match and preg_match_all

    http://php.net/manual/en/function.preg-match.php
    http://www.php.net/manual/en/function.preg-match-all.php
  16. You will need Javascript for that, check out the...

    You will need Javascript for that, check out the w3schools stuff on javascript and forms
  17. Replies
    61
    Views
    10,688

    So whats the issue now ? or is it all ok

    So whats the issue now ? or is it all ok
  18. Well its ment to be that way you cant use

    Well its ment to be that way you cant use <?php within echo you use '.$foo.'

    anyway just double check and change the input type to submit and not button
  19. Replies
    12
    Views
    2,439

    You dont need session_start() for the cookie to...

    You dont need session_start() for the cookie to work.

    Okay just put this together quickly, this will keep writing the current date/time they visited and if 5 days or greater will write to the DB...
  20. Your error is because you are using echo then...

    Your error is because you are using echo then trying to do <?php echo within which is just treated as a string and rendered in HTML



    echo("<form action='" . $_SERVER['PHP_SELF'] . "'...
  21. Replies
    61
    Views
    10,688

    Why is the modify.php posting to itself ? ...

    Why is the modify.php posting to itself ?


    <form action="<?php echo $_SERVER['PHP_SELF']; ?>" method="post">

    You dont have any code in modify.php to handle this post data, im guessing you want...
  22. http://i54.tinypic.com/1zyaf0j.jpg Using my...

    http://i54.tinypic.com/1zyaf0j.jpg

    Using my example above, do you want the Main Page to get the Iframe URL ? if so my understanding is this can only be done with Javascript
  23. Line 163 is missing a end brace

    Line 163 is missing a end brace
  24. Replies
    12
    Views
    2,439

    Well since an IP address doesn't mean one person...

    Well since an IP address doesn't mean one person then no, for example if im surfing at my college all our computers use the same IP address therefore you dont really know.

    Best way is to have a...
  25. Replies
    6
    Views
    1,978

    Yeah when i build a login system when Mr X...

    Yeah when i build a login system when Mr X authentication is done i create a random hash salted with there usename, password, time, IP, user_agent, etc then store it within a cooike and my database....
Results 1 to 25 of 87
Page 1 of 4 1 2 3 4
HTML5 Development Center



Recent Articles