Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  • Users: webdev007
  • Order by date
  1. webdev007

    Login page

    Is what I came with in the same area of result? //login session_start(); ////// adding security we create the initial $need to match from here //////// $str=$_SERVER['HTTP_USER_AGENT']; $str .='asasasas'; $need_to_match= md5($str); $_SESSION['need_to_match']=$need_to_match...
  2. webdev007

    Login page

    jpadie do you ref to http://us2.php.net/features.http-auth I am also curious about the nonce thank you
  3. webdev007

    Image Upload Script

    The following is an excerpt from a script allowing multiple upload in one shot it's up to you to adapt but it is related to what evreyone mentionned ... no big deal, really! //////////// Check Caption size /////////////////// $img_caption=$_POST['img_caption']...
  4. webdev007

    Execute a php file via another php file

    Interesting comments from MagicalTux from the manual <<< Forking in an apache module is rather complex, and one of the most important things you should remember is to let your child kill himself with SIGKILL. If you just call exit(), you might end having duplicate headers. Forking from an Apache...
  5. webdev007

    Totaly lost with PHP security

    I have done something similar What you need is (if possible to restrain page content) you might even have a few pages "template" Create your tpl using a content display by chunks something like {INTRO} etc... The admin script copies that page in a pre defined dir it could even write to the page...
  6. webdev007

    Limit Requests per day by IP

    <<< one of which is to block repeated IP hits in a given timescale >>> This is a good idea, in the same spirit I made a flood script that exit() if more than one hit per second it also work against refresh "like a mad man"!
  7. webdev007

    Smarty PHP: sucks for me

    It really depends on how much of a CMS one is ready to deploy I strongly feel that a client could add pages only upon a strict tpl system in order not to mess with the html. I made my own, OOP based, using a tpl system that keeps the “look” separated from the “php engine”. Season the whole thing...
  8. webdev007

    Freeing Up Memory

    if you are finished with DB queries you may use mysql_free_result($result); but this would be almost a done deal, you thought about it didn't you mysql_free_result is only to be used when performing extensive queries thus using a large amount of memory
  9. webdev007

    If or alternative statement?

    You probably need an editor that highlights braces and parentheses Please, show your code up to the end of the "while" brace
  10. webdev007

    If or alternative statement?

    Should we understand that by fields you mean DB field? In order to help you further, please show us the query and how you generate $field Remember to x-out any real db name, user name, password etc...
  11. webdev007

    preg_match and regex require tweaking

    Thank you for your time and explanation This programming area is so important but so "hermetic" that learning it on your own is really a tough call!
  12. webdev007

    preg_match and regex require tweaking

    No needs for appologies, you helped me a great deal this works perfectly! PHP and TEXTAREA, seems to create quite some discussions I searched extensively and even so php reported bugs (in my range of problems) are not acknowledged as real bugs, many coders are hitting a snag with those textarea...
  13. webdev007

    preg_match and regex require tweaking

    jpadie, sorry but still does not work. your statement is correct <<< will match anything that is not alphanumeric, certain punctuation and line breaks? >>> this is very strange what can be the root of the problem knowing that there is nothing more simple that a teaxtarea, and my test is just...
  14. webdev007

    preg_match and regex require tweaking

    Thanks tsuji, Yes the last " ] " was a typo It still does not work if the entered input is one line then it works fine but any user generated "enter" or new line does trigger the filter. I aggree with your statement regarding "Kind of white space" but as is for some reason the new line can not...
  15. webdev007

    preg_match and regex require tweaking

    As part of a user input filter (coming from a text area) I use the following regular expression but it does not allow for text area line breaks <br> or <br /> I cannot figure how to include those line breaks in my regex could you show me the way in such manner I will understand for futur...
  16. webdev007

    Serialize problem

    grtammi, looks like you are spot on! yes, this will uncomplicate the situation and it answers my quest thank you very much
  17. webdev007

    Serialize problem

    What I need to achieve: Out of an Ajax cascade of DD boxes (php MySQL driven) a user may select a unique tag And figure if in a given category something similar exits The existing tags are stored in my table as serialized array Ex: a:3:{i:0;s:6:"asasas";i:1;s:4:"dddd";i:2;s:10:"ddddd mmmm";}...
  18. webdev007

    can not open a text file

    I like to use fopen as follow $fh=fopen("$myFile", "r+") or die("can't open file"); are you sure that the script calling fopen is within the same dir and not located somewhere like ../../ etc... if you need to write to a specific location specify the location using fseek() before fwrite()
  19. webdev007

    Finding duplicate within multiple serialized arrays

    This is what I came with but resulting in no real progress the bottom part is only a test search segment it looks like using or not using array_merge gives the same (non merged) result which is: Array ( [0] => Array ( [0] => dddd [1] => asas ) ) Array ( [0] => Array ( [0] => dddd [1] => ffffff )...
  20. webdev007

    Finding duplicate within multiple serialized arrays

    I am not able to come with a logic for merging multiple serialized arrays Each serialized array contains any num of tags I need to avoid in result any tag/tags duplicate that could possibly exists in each other array (I do not seek removing dupes) I think that starting by merging the...

Part and Inventory Search

Back
Top