views:

21

answers:

1

I cannot figure out how to connect to the server with php

000webhost doesn't have localhost as their host name I tried to get it by doing one variable

but it did not work when I tried to connect to the server with the code provided

well I am writing an if statement that says if my site cannot connect then "die();"

with the code provided I can't write the if statement

I don't know what to do

A: 

nevermind I got it I just missed some code... sorry

Luck