emediastudios Posted October 24, 2007 Share Posted October 24, 2007 Is there a way of echo'ing a reported error in a selected file, Like if i have a file exists validation can i echo the reported error in my file_exists.php file and place the echo on the page where i want it to show? Thanks Quote Link to comment https://forums.phpfreaks.com/topic/74576-echo-error-in-selected-file/ Share on other sites More sharing options...
emediastudios Posted October 25, 2007 Author Share Posted October 25, 2007 ANYONE? Quote Link to comment https://forums.phpfreaks.com/topic/74576-echo-error-in-selected-file/#findComment-377621 Share on other sites More sharing options...
rajivgonsalves Posted October 25, 2007 Share Posted October 25, 2007 can you explain further your question is not very simple, If you can provide an example maybe I could help Quote Link to comment https://forums.phpfreaks.com/topic/74576-echo-error-in-selected-file/#findComment-377638 Share on other sites More sharing options...
stuffradio Posted October 25, 2007 Share Posted October 25, 2007 Do you mean: <?php if (!file_exists('filename')) { echo "Error, file doesn't exist"; } else { echo "Success"; } ?> ?? Quote Link to comment https://forums.phpfreaks.com/topic/74576-echo-error-in-selected-file/#findComment-377640 Share on other sites More sharing options...
emediastudios Posted October 25, 2007 Author Share Posted October 25, 2007 I want the error to echo in a file of my choice Quote Link to comment https://forums.phpfreaks.com/topic/74576-echo-error-in-selected-file/#findComment-377715 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.