Zymic Forums

Webmaster resources

Zymic IRC Server

Chat in real time at irc.zymic.com - Learn More

Welcome

Welcome to the Zymic webmaster forums. Our forums are here to provide people the free ability to discuss a range of websites related topics such as design, development coding and marketing.

In order to post you will need to register for a zymic account or if you already have one simply login by using the form on the left.

left Zymic Webmaster ForumsZymic Free Web HostingZymic Free Web Hosting - General Discussion & Help right
  Reply to this topic Start new topic
left right
lemoreno
post Jul 9 2012, 06:22 AM
Post #1


Newbie
*

Group: Members
Posts: 13
Joined: 13-January 12
Member No.: 225,500



Hello,

I was playing around with different ideas, methods, etc. to log errors. So I was reading the following tutorial:

http://www.spunkyjones.com/tracking-php-errors/

So I executed this code:

<h3><?php echo $_SERVER['DOCUMENT_ROOT']; ?></h3>

but that seemed to cause a lock on my account because I could upload files but they would not display and the site I was working on isn't updating visually. Also, I try to upload a new directory and got a 404 error.

Apologies sad.gif

Thanks.


QUOTE(lemoreno @ Jul 9 2012, 06:13 AM) *
Hello,

I was playing around with different ideas, methods, etc. to log errors. So I was reading the following tutorial:

http://www.spunkyjones.com/tracking-php-errors/

So I executed this code:

<h3><?php echo $_SERVER['DOCUMENT_ROOT']; ?></h3>

but that seemed to cause a lock on my account because I could upload files but they would not display and the site I was working on isn't updating visually. Also, I try to upload a new directory and got a 404 error.

Apologies sad.gif

Thanks.


Now the site is back up but it doesn't record my error logging.

I'm tying different methods:

error_log($error_details, 3, "./logs/errors.log");

file_put_contents("./logs/my-errors.log", $error_details, FILE_APPEND | LOCK_EX);

both methods work on a different host but I know Zymic has their own rules.

Is file writing not allowed?

Thanks.
Go to the top of the page 
 
  + Quote Post
lemoreno
post Jul 9 2012, 06:54 PM
Post #2


Newbie
*

Group: Members
Posts: 13
Joined: 13-January 12
Member No.: 225,500



Now, I can't connect to the FTP server sad.gif

I get the following error:

There was a problem connecting to your host or proxy. Please check your server settings and try again. If you are sure you have entered the correct information, please contact your network administrator or the server administrator. [7] Additional information: couldn't connect to host.


Thanks
Go to the top of the page 
 
  + Quote Post
lemoreno
post Jul 9 2012, 07:08 PM
Post #3


Newbie
*

Group: Members
Posts: 13
Joined: 13-January 12
Member No.: 225,500



My account: http://iwahwlem.zymichost.com/

Thanks
Go to the top of the page 
 
  + Quote Post
ssfdre38
post Jul 9 2012, 09:29 PM
Post #4


THE SILENT FORUM NINJA
*******

Group: Administrators
Posts: 3,712
Joined: 23-January 10
From: on your screen
Member No.: 127,507



we know we disable it but now its fixed
Go to the top of the page 
 
  + Quote Post
lemoreno
post Jul 9 2012, 10:16 PM
Post #5


Newbie
*

Group: Members
Posts: 13
Joined: 13-January 12
Member No.: 225,500



QUOTE(ssfdre38 @ Jul 9 2012, 09:29 PM) *
we know we disable it but now its fixed



Okay, thank you.

I apologize for any inconvenience I might have cause testing several code snippets.

Is file creation disable on the server?

I'm trying to store my error logs here:

./logs/errors.log

Using:

error_log($error_details, 3, "./logs/errors.log");

But the file isn't being created.

Thanks.
Go to the top of the page 
 
  + Quote Post
ssfdre38
post Jul 10 2012, 02:05 AM
Post #6


THE SILENT FORUM NINJA
*******

Group: Administrators
Posts: 3,712
Joined: 23-January 10
From: on your screen
Member No.: 127,507



its cause we disable custom logs to be made
Go to the top of the page 
 
  + Quote Post
lemoreno
post Jul 10 2012, 03:54 AM
Post #7


Newbie
*

Group: Members
Posts: 13
Joined: 13-January 12
Member No.: 225,500



QUOTE(ssfdre38 @ Jul 10 2012, 02:05 AM) *
its cause we disable custom logs to be made


Okay, thanks.

Is there an alternative for users to keep, browse, etc. the errors occurring on their site?

I understand why code like this is bad:

ini_set('display_errors', 1);
error_reporting(E_ALL);

Which the server throws an error. But it is great for learning/development but bad for a production site.

What I'm trying to say is if the server suppresses some errors from being display and personal error logs are disable. How can people know if their site is working properly or the code they are developing is proper?

From the "echo $_SERVER['DOCUMENT_ROOT'];" incident I assume I was trying to access the server error log and not the one for my account which is why I got a lockdown on my account.

So, comes back to my original question I guess. Is there an alternative for error management for the end user?

Thanks.
Go to the top of the page 
 
  + Quote Post
lemoreno
post Jul 11 2012, 09:41 PM
Post #8


Newbie
*

Group: Members
Posts: 13
Joined: 13-January 12
Member No.: 225,500



QUOTE(lemoreno @ Jul 10 2012, 03:54 AM) *
Okay, thanks.

Is there an alternative for users to keep, browse, etc. the errors occurring on their site?

I understand why code like this is bad:

ini_set('display_errors', 1);
error_reporting(E_ALL);

Which the server throws an error. But it is great for learning/development but bad for a production site.

What I'm trying to say is if the server suppresses some errors from being display and personal error logs are disable. How can people know if their site is working properly or the code they are developing is proper?

From the "echo $_SERVER['DOCUMENT_ROOT'];" incident I assume I was trying to access the server error log and not the one for my account which is why I got a lockdown on my account.

So, comes back to my original question I guess. Is there an alternative for error management for the end user?

Thanks.


I'm guessing that is a "No, we don't"? Or a "we are thinking about it, but not ready to disclose it" situation?

Thanks.
Go to the top of the page 
 
  + Quote Post
ssfdre38
post Jul 11 2012, 10:40 PM
Post #9


THE SILENT FORUM NINJA
*******

Group: Administrators
Posts: 3,712
Joined: 23-January 10
From: on your screen
Member No.: 127,507



its a no we wont cause of the resources needed would take away from the users
Go to the top of the page 
 
  + Quote Post
 Reply to this topic Start new topic
left right
0 Members:
left right
 


Lo-Fi Version Time is now: 26th May 2013 - 01:52 AM