Contact Us
Go to ...
Go to ...
Home
Category
Php
Jquery
Sql
WordPress
Laravel
CSS
Ajax
Bootstrap
Magento
Linux
AngularJs
Contact Us
Recent Posts
Upload file in Google Drive using API
Fix specified key was too long issue in laravel
Install Swagger in Laravel 9
Print File From Api in Angular
Download File From Api in Anuglar
Category Php
Find all file in directory
foreach(glob("xmlfile/*xml") as $filename) { echo $filename; if(file_exists($filename)){ echo "done"; } //unlink($filename); $xml_file = file_get_contents($filename, FILE_TEXT); echo $xml_file; }
1
2
3
4
5
6
7
8
9
foreach
(
glob
(
"xmlfile/*xml"
)
as
$
filename
)
{
echo
$
filename
;
if
(
file_exists
(
$
filename
)
)
{
echo
"done"
;
}
//unlink($filename);
$
xml_file
=
file_get_contents
(
$
filename
,
FILE_TEXT
)
;
echo
$
xml_file
;
}
Posted in 
Php
No comments
December 28, 2015
Read More
Replace sql query
update VersionedFields set Value = replace(value,'<iframe','<a>iframe')
1
update
VersionedFields
set
Value
=
replace
(
value
,
'<iframe'
,
'<a>iframe'
)
Posted in 
Php
,
Sql
No comments
December 28, 2015
Read More
Tweet