JeBu Posted July 29, 2007 Share Posted July 29, 2007 For example, when some link is clicked and it should now include somefile.php, but when the file is not found, I should echo "Error"; not those warnings, without changing PHP settings Second problem----------- Not PHP (css) How to do so, that I have page, i.e "index.php" and a stylesheet named "style.css". I have input fields in "index.php" which gets his style from "style.css". But there is a link also in my index and when I click on that link, it includes a page, where are also input fields, but I want to add different style to them. At the moment it is taking style from style.css to my included page also. Quote Link to comment https://forums.phpfreaks.com/topic/62299-handling-php-warnings/ Share on other sites More sharing options...
hitman6003 Posted July 31, 2007 Share Posted July 31, 2007 To supress the warning from a failed include use the @ symbol... @include("some_nonexistant_file.php"); Your second question, either include a different css file, or use the same file, but give the fields on the other page a different class name. Quote Link to comment https://forums.phpfreaks.com/topic/62299-handling-php-warnings/#findComment-311548 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.