Hi u simply use teh same scrip for upload files and you can test teh extention of the file u upload and only allowed type of files will be uploaded. u simply...
Hitesh, Simply use the following <?php echo $_SERVER['HTTP_HOST']; ?> Always check phpinfo() for this kinda stuff though as it has a lot of interesting...
Tom Whitbread
tom@...
Apr 1, 2008 9:41 am
6989
If you do not know the path, put echo `pwd`; in a file and upload to that directory, then visit in a web browser you can also check by file_exists() this will...
Tom Whitbread
tom@...
Apr 1, 2008 9:42 am
6990
hey this is Viraj, I'm working on php for last 8 months. U can use "unlink('../upload/'.file_Name);" to remove any kingd of file from that folder n it's really...
Krishna, Whats wrong with a good old for($array as $key => $value){ echo $key; //returns Krishna echo $value; //returns 23rd March } ? Not sure if spaces are...
Tom Whitbread
tom@...
Apr 1, 2008 9:42 am
6992
Hi, Thank you for reply.....here i m pasting code which i m using to delete file, can u modify ? <?php // Connecting, selecting database require_once...
$uploaddir = "imgfilename1.jpg"; [or] $uploaddir = "imgfilename-$id-1.jpg";//$id - unique no unlink("/admin/" . $uploaddir); "unlink" function is used to...
Hi Try this echo "Welcome to the website".$_SERVER['HTTP_HOST']; or echo "Welcome to the website".$_SERVER[' SERVER_NAME']; Thanks, Muthukumar Selvarasu, ...
I suggest you to perform a step by step test in each instance of foreach, before the if structure and verify its content. Doing so, you can be sure the problem...
Hello, How can a check if the a string is content, like this: <META HTTP-EQUIV="refresh" CONTENT="0; url=http://www.redyam.com/1.html"> and remove that entire...
Hi you need to use preg_replace: $variable is the variable containing the string. preg_replace('<META HTTP-EQUIV=" refresh" CONTENT="0; url=http://www.redyam....
This will not work because starting delimiter < and ending delimiter > are not the same. Better to use: preg_replace('#<META HTTP-EQUIV=" refresh" CONTENT="0; ...
Thanks for the help. What about I don't know exactly the the other string behind <META HTTP-EQUIV= ???????????????????????> Is that possible in preg_replace? ...
Yes of course... Without trying it out, I think it should be something like preg_replace('#<META HTTP-EQUIV=.+>#','',$variable); That would replace any string...
My simple question is that i have made image up loader for website without using MySQL ... upload images in folder display from the folder ... 1)i took folder...
Even i have not tried, but i would have used ? after .+ . so the expression now becomes: preg_replace( '/<META HTTP-EQUIV=. +?>/','',$variable) ; If i am not...
Hello, This is just a reminder to let you know that the following polls are going on the php-objects mailing list that you are a subscriber. Please do not...
php-objects@yahoogrou...
Apr 6, 2008 12:09 pm
7008
Hello, This is just a reminder messages to let you know as subscriber of the php-objects mailing list you may be interested about the new site where you may...
php-objects@yahoogrou...
Apr 6, 2008 12:09 pm
7009
HI Friends, Thanks for your idea's and instructions. Now i have prepare the documentation work going on after i tell this. ThakQ Gopi.P ... Download...
Guys do me a fovour Just give fews clicks on the google adds of this page i will be really thankful to you * http://fakharsherazi.googlepages.com* [Non-text...
I NEED A PHP MAILER LINK TO SEND BULK EMAIL. PLEASE ASSIST ME THE MAILER LINK TO BE ABLE TO SEND BULK EMAIL. I DON'T KNOW HOW TO CREATE THE MAILER LINK, PLEASE...
Hi Friends, I have a requirement. In my site user can raise catering order. There are several steps to order catering Let me explain in detail so that u can...
This is usually achieved with Session variables - http://uk2.php.net/manual/en/function.session-start.php Rob. ... From: php-objects@yahoogroups.com...