Forum Moderators: coopster

Message Too Old, No Replies

validate for javascript and php from my website

validate for javascript and php from my website

         

xbl01234

10:24 am on Jan 7, 2007 (gmt 0)

10+ Year Member



Hello;
I'd like to ask you some question, please.

I am hosting at the movement.
How i can validate my website which it include javascript and php code?
I can validate the html and css by using some online validators, like w3 or something else.
But how about the javascript and php code, how i can known the code is correct when some things wrong with my code.
I could not find out anything could help me to validate that from server site, i could run my Mysql in server side to see it is allright or not, but not for php and javascript.

Any one could tell me how to solve this problem, please.

Thanks

jatar_k

12:31 pm on Jan 7, 2007 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



There isn't really a way 'validate' it. If it isn't correct then you will get errors.

If you are wondering about best practices then that just takes research/benchmarking/testing.

barns101

2:51 pm on Jan 7, 2007 (gmt 0)

10+ Year Member



If you're just talking about W3C standards, PHP is executed server-side and so your code wont make a difference when validating your HTML. (Of course if PHP is outputting HTML for you, you'll need to make sure that the HTML is valid ;) )

(I don't know about validating JavaScript, but that can always be hidden in external files if it doesn't validate.)

xbl01234

9:41 pm on Jan 7, 2007 (gmt 0)

10+ Year Member



Thanks jatar_k,barns101;

I just wonder how i can have a console to run a website which it include php code, and analysis it, but i guess the suggestion from barns101 may be can solve these problem, i go to have a read it first.

anyway, i find some php testing from
[url]
[download.com...]
[/url]

Thanks again, i need to go through these materials.