Type: Posts; User: andre4s_y
Search took 0.02 seconds.
What is your definition of mobile users?
- if you mean users with specific device, such as iphone, do User Agent detection and redirect user using header location.
- if you mean users with lower...
There is an alternative for run php on cron:
- call the site page using wget or curl.
0 8 * * * /usr/bin/wget "http://127.0.0.1/cron.php" > /dev/null 2>&1
0 8 * * * /usr/bin/curl -s...
If you are talking about PHP code:
ASP tags can still be enabled via php.ini directive (by default: disable).
Link: ASP tags directive on PHP Manual
Why you need ASP tags on PHP code?...
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.