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...
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']...
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...
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...
<<<
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"!
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...
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
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...
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...
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...
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...
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...
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";}...
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()
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 )...
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...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.