¡@

Home 

php Programming Glossary: is_file

How to delete a folder with contents using PHP

http://stackoverflow.com/questions/1334398/how-to-delete-a-folder-with-contents-using-php

realpath path . ' ' . file return rmdir path else if is_file path true return unlink path return false Or without recursion.. unlink file getPathname return rmdir path else if is_file path true is_link path true return unlink path return false..

How to [recursively] Zip a directory in PHP?

http://stackoverflow.com/questions/1334613/how-to-recursively-zip-a-directory-in-php

as fileLocation time file target . . fileLocation if is_file file buffer file_get_contents file zip addFile buffer fileLocation.. str_replace source . ' ' '' file . ' ' else if is_file file true zip addFromString str_replace source . ' ' '' file.. source . ' ' '' file file_get_contents file else if is_file source true zip addFromString basename source file_get_contents..

PHP: Force file download and IE, yet again

http://stackoverflow.com/questions/1597732/php-force-file-download-and-ie-yet-again

assume you have a full path to file stored in filename if is_file filename die 'The file appears to be invalid.' filepath str_replace..

Best practice: Import mySQL file in PHP; split queries

http://stackoverflow.com/questions/1883079/best-practice-import-mysql-file-in-php-split-queries

function SplitSQL file delimiter ' ' set_time_limit 0 if is_file file true file fopen file 'r' if is_resource file true query..

PHP Remote file streaming with Resume Support

http://stackoverflow.com/questions/1894299/php-remote-file-streaming-with-resume-support

0 private size 0 function __construct file delay 0 if is_file file header HTTP 1.1 400 Invalid Request die h3 File Not Found..

How do i resize and convert an uploaded image to a PNG using GD

http://stackoverflow.com/questions/22259/how-do-i-resize-and-convert-an-uploaded-image-to-a-png-using-gd

newImage destFile Free memory imagedestroy newImage if is_file destFile f fopen destFile 'rb' data fread f fclose f Remove..

Resize image before uploading PHP

http://stackoverflow.com/questions/3786968/resize-image-before-uploading-php

max_height quality 0.75 The original image must exist if is_file im_filename Let's create the directory if needed th_path dirname.. th_path 0777 true If the thumb does not aleady exists if is_file th_filename Get Image size info list width_orig height_orig..

Fatal error: Class 'ZipArchive' not found in

http://stackoverflow.com/questions/3872555/fatal-error-class-ziparchive-not-found-in

if res TRUE echo 'Error Unable to create zip file' exit if is_file src zip addFile src else echo br .dirname __FILE__ . src ' install1'..

Limit download speed using PHP

http://stackoverflow.com/questions/4002106/limit-download-speed-using-php

limit 20 5 kb s download_rate 85 if file_exists local_file is_file local_file send headers header 'Cache control private' header..

PHP readdir() not returning files in alphabetical order

http://stackoverflow.com/questions/541510/php-readdir-not-returning-files-in-alphabetical-order

false szFilename readdir handle if szFilename 0 '.' if is_file path. szFilename do stuff The problem that I am having is..

How to stop GD2 from washing away the colors upon resizing images?

http://stackoverflow.com/questions/5773032/how-to-stop-gd2-from-washing-away-the-colors-upon-resizing-images

'~ImageMagick ^ . ~' ' 1' version 'versionString' if is_file sprintf ' usr share ImageMagick s config sRGB.icm' version true..

Issues porting PHP/GD wrapper to Imagick

http://stackoverflow.com/questions/5818603/issues-porting-php-gd-wrapper-to-imagick

null output null sharp true if isset input output true if is_file input true input new Imagick input if is_object input true.. ^ . ~' ' 1' ph Value image getVersion 'versionString' if is_file profile sprintf ' usr share s config sRGB.icm' str_replace '..

PHP DOMDocument question: how to replace text of a node?

http://stackoverflow.com/questions/6001923/php-domdocument-question-how-to-replace-text-of-a-node

object doc new DOMDocument doc formatOutput true if is_file filePath doc load filePath else doc loadXML ' rss version 2.0..

Using scandir() to find folders in a directory (PHP)

http://stackoverflow.com/questions/608450/using-scandir-to-find-folders-in-a-directory-php

not you have a folder or file use the functions is_dir and is_file For example path 'extracted ' . name 0 results scandir path..

Is this the correct way to send email with PHP?

http://stackoverflow.com/questions/809924/is-this-the-correct-way-to-send-email-with-php

attachments 'array' foreach attachments as key value if is_file value true attachments key array '' ' Mixed' . boundary 'Content..