Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsGeneralPHPASPPerlColdFusionFlashHTML, CSS, ScriptsBrowsers

Webmaster Forum / Flash / Data Integration / March 2007



Tip: Looking for answers? Try searching our database.

Flash and PHP

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
thahip - 27 Mar 2007 01:46 GMT
Hi,

I am building an application in flash that speaks to a database using PHP. I
know you can remove rows from a database in PHP using a DELETE in the SQL
statement. Does anyone know how to delete a file like a jpeg?, I would press a
button in flash it would then call some PHP script, does anyone know the PHP to
remove a file?

thanks

Gavin
MotionMaker - 27 Mar 2007 12:44 GMT
The permissions need to be set on the file or folder to allow PHP to delete

$fileDeleted = unlink("/home/user/public_html/file.jpg");
// fileDeleted = 1 means success for the Flash side confirmation
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.