welshtroll
Programmer
I have a website that has PHP 4.0.1 installed on the server.
To aid in the development I have just installed apache, mysql and PHP locally.
When i try a view existing pages it get problems with the functions unless i place a @ infront of them.
I have searched the tek-tips forum and PHP site trying to find out why this is the case, but i can't find the answer to my question which is:
If i apply the @function_name all of my php pages locally, will my online server versionof PHP be able to handle this.
Also, why have I had to do this @ thing, is it due to the version i'm running or because it's local?
An example of this would be:
$query = "SELECT * FROM my_table";
$result = mysql_query($query) or die("Query failed"
Changes to
$result = @mysql_query($query) or die("Query failed"
Cheers,
'Does my thumb look big in this?'
elshtroll
To aid in the development I have just installed apache, mysql and PHP locally.
When i try a view existing pages it get problems with the functions unless i place a @ infront of them.
I have searched the tek-tips forum and PHP site trying to find out why this is the case, but i can't find the answer to my question which is:
If i apply the @function_name all of my php pages locally, will my online server versionof PHP be able to handle this.
Also, why have I had to do this @ thing, is it due to the version i'm running or because it's local?
An example of this would be:
$query = "SELECT * FROM my_table";
$result = mysql_query($query) or die("Query failed"
Changes to
$result = @mysql_query($query) or die("Query failed"
Cheers,
'Does my thumb look big in this?'