Jump to content

warnings


jagguy

Recommended Posts

1)I am gettin some warnings I want to supress, eg I am going through a dir and deleting files and the file '.' and '..' comes up with warnings when trying to delete.

What is @ and & in regards to error supression.

2)Also when using include statement I sometime sget an error with header files as it thinks this echos to the screen and fails. When i get rid of includes statement it works fine. Can I suppress this statements like with 'warnings'?
Link to comment
https://forums.phpfreaks.com/topic/35894-warnings/
Share on other sites

[quote author=spfoonnewb link=topic=124231.msg514443#msg514443 date=1169854815]
Huh?

What does your include statement look like?

Does the file exist?

Codes would help
[/quote]

i include this
include("dbconnect.php");

-- the file below
<?php

error_reporting(E_ALL);
    // some basic sanity checks

        //connect to the db
        $link = mysql_connect("localhost", "jagguy_root", "")or die("Could not connect: " . mysql_error());
        // select our database
        mysql_select_db("jagguy_formdata") or die(mysql_error());
?>

ps what does the & symbol do again?
Link to comment
https://forums.phpfreaks.com/topic/35894-warnings/#findComment-170282
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.