| PHP, MySQL General PHP questions. Or go to our PHPsuexec Forum >> |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread |
|
|
#1 (permalink) |
|
Registered User
Seasoned Poster
Joined in Jun 2003
30 posts
Gave thanks: 0
Thanked 0 times
|
I'm trying to execute a PHP script and it isn't happening. If you view source, the PHP code is visible (which it shouldn't be and isn't on my other server). Is there some switch I need to activate to enable php with surpass hosting?
Thanks in advance. |
|
|
|
|
#2 (permalink) |
|
Surpass Fan
Seasoned Poster
Joined in May 2003
Lives in England
85 posts
Gave thanks: 0
Thanked 0 times
|
just checking here but you have got the extension php and not htm or html on the document containing the php code???
all pages that contain php code must have the php extension. regards
__________________
FREE Mobile Phone Unlocking, Logos, Wallpaper, Themes and much more Click here and see for yourself |
|
|
|
|
#4 (permalink) |
|
Surpass Fan
Seasoned Poster
Joined in May 2003
Lives in England
85 posts
Gave thanks: 0
Thanked 0 times
|
and what exactly am I suposed to be looking at???
all seems to work fine for me??? can you tell me what page you went to for it not to work and let me know what you are seeing on the screen??? A link to a screenshot would be good also. I see hello my at first. if I press home I see testing 1 2 3 and if I press others links from menu on the left I see the following The content you are looking for is not here because we probally haven't finished up the information. So, you may do the following. You use the back arrow above. You can go back where you came from and try again. You can start from the beginning and explore anew! regards
__________________
FREE Mobile Phone Unlocking, Logos, Wallpaper, Themes and much more Click here and see for yourself |
|
|
|
|
#5 (permalink) |
|
Registered User
Fresh Surpasser
Joined in Jul 2003
5 posts
Gave thanks: 0
Thanked 0 times
|
If you are still having this problem I would make sure you have the php tag at the beginning of the page (or where the php code starts) correct.
<?php or <? And if <? is not working I would try using <?php also in case <? doesnt work on this server. |
|
|
|
|
#6 (permalink) |
|
Registered User
Seasoned Poster
Joined in May 2003
74 posts
Gave thanks: 0
Thanked 0 times
|
There is nothing special to activate PHP for our servers as it is part of the default configuration. Just make sure you have your files with a .php extension and make sure you are using the opening and closing tags for PHP. As for the contents, you will have to reference php.net, as all the tags are listed there.
I do see what appears to be your site just fine, not sure where the problem is or how it is suppose to be displayed.
__________________
-Jay AIM: surpasslive2 <A HREF="aim:goim?screenname=surpasslive2"> <IMG SRC="http://cpu2.homedns.org:6969/aim/surpasslive2"border="0" ALT="AIM Online Status Indicator" onerror="this.onerror=null;this.src='nullaim/surpasslive2';"></A> MSN: jay surpasshosting.com <A HREF="http://cpu2.homedns.org:6969/message/msn/jay surpasshosting.com"><IMG SRC="http://cpu2.homedns.org:6969/msn/jay surpasshosting.com" border="0" ALT="MSN Online Status Indicator" onerror="this.onerror=null;this.src='nullmsn/jay surpasshosting.com';"></A> <<--- my butter fly is not working, yet you can try me anyway....www.surpasshosting.com |
|
|
|
|
#7 (permalink) |
|
Registered User
Fresh Surpasser
Joined in Jul 2003
3 posts
Gave thanks: 0
Thanked 0 times
|
i am having the same problem:
http://www.outcastcomics.com/headlines.php?id=1 nothing happens. the php script works fine, ive check it on my testing server on my home box. but on this server nothing ahppens, the script doesnt execute at all. it wont even output html outside of a php echo statement, it wont even echo a simple echo statement in php. |
|
|
|
|
#8 (permalink) |
|
Undercover Genius
Super #1
Joined in May 2003
Lives in Tampa, FL
Hosted on Vanilla
2,997 posts
Gave thanks: 27
Thanked 37 times
|
hrmmm... I dunno, but I went there and in the source code (sorry, I looked) All I see is...
Code:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <HTML><HEAD> <META http-equiv=Content-Type content="text/html; charset=windows-1252"></HEAD> <BODY></BODY></HTML> But honestly I don't know why it's doing that... Is there something in the script that the browser or server wouldn't like? <_< But yeah, I only see a blank page... :ask:
__________________
When one door of happiness closes, another opens; but often we look so long at the closed door that we do not see the one which has been opened for us. - Helen Keller |
|
|
|
|
#9 (permalink) |
|
Registered User
Fresh Surpasser
Joined in Jul 2003
3 posts
Gave thanks: 0
Thanked 0 times
|
that stuff is the default things php sends to the browser when there isnt anything to output.
i dont have a clue what is wrong. every other php page works (well, it did happen to me earlier with anohter script, but it started working for some reason) |
|
|