Type: Posts; User:
No information on why it does not work?
If you run:
You will get
I never try it, but maybe something like this:
#according wikipedia: The Cyrillic blocks In Unicode extend from U+0400...
Want to try a little regex?
@preg_match("#(\d+)\.png$#",$adImageURL,$adImageURL); #match to digit before .png
Yes.. i did not realized that.. :p
Thank you so much..
Help me please..
Why this code does not works :
var pattern = new RegExp("\s\[x\]$");
var gototext = document.getElementById(index).text.replace(pattern,"");
while this code works :
Yes, suggestion :
why don't you use form, if you have code readable difficulity?
<form action="bookview.php" method="get">
echo '<input type="hidden" name="id"...
Do not forget :
//also do not forget to close mysql connection
//after header('Location: blabla.htm');
Ok, i understand.
It is better not to trust user's input for file name. Any user can rename php file into .doc file and this is not right. In order to append file extension in your new file name...
$_FILES['file']['type'] is Mime Type, not file extension! So, you can not use :
$uniq = gmdate( 'dmYHis' ) . '_' . md5_file( $_FILES['file']['tmp_name'] ) . $_FILES['file']['type'];
something like this, maybe?
if ( is_uploaded_file( $_FILES['file']['tmp_name'] ) && $_FILES['file']['type'] == "application/pdf" )
$uniq = gmdate( 'dmYHis' ) ....
If user's browser provided the file type information, you can access it in $_FILES['type'] (in your example is : $_FILES['file']['type'])when proccessing upload. Or use fileinfo extension. But...
is up one directory (../) from your main script's location.
UncleDirectory is in the same directory (./)...
Very interesting.... Although the problem has been solved, this case is worth for study regex.
One question, how to make it recursive?
For example :
$text = "Hello || ]] test || this [[ab] ||...
Maybe try this code :
if you mind you change your borrowed function from php.net
preg_match_all('/' . preg_quote($start,'/') . '(.+?)'. preg_quote($end, '/').'/si', $string, $m);
Thank you for your response. Okay.. i try to post and explain the part of the file(not all, too big).
Filename = index.php
To make file access this part of file :...
I have a file (for example : play.php). That file has a duty to control an application (OpenOffice Impress->SlideShow). Control means to open(run slideshow) and close the application. When i try to...
I was wrong.
Do not use \W in my first example, because it will match also with : #~!@#$%^&*() and other else(which belong to your message), not only the vertical whitespace.
try this :
preg_match_all('#read\W+(.*?)#is', $tes_string, $matches);
Pattern : read[non-wordcharacter](capture subpattern)
preg_match_all('#read\v+(.*?)#is', $tes_string, $matches);
First : why do you use psexec command to use tool in your own machine? Have try it without psexec?
Second : if you insist use it, have you check the permission? xp or vista permission..
Try to use \v for vertical whitespace character (since PHP 5.2.4).
Or using pattern : read[nonwordcharacter]yourmessage.
Non word character is : \W or you can customize it.
The other solution is : tell php which separator is used to parse input URL into variables.
set arg_separator.input in php.ini.
Array key is integer or string.
Please take a tour to the PHP manual : Arrays.
Try take a look at :
escapeshellarg() and escapeshellcmd().
If still no luck, try to put the command inside autoexec file. (.bat or other) than execute the file.
Oya, if php log...