icon Get the most out of Surmunity, read our tips here! Need an interesting blog to read? You've got to read the Surpass Blog! | Welcome! Please register to access all of our features.

» Surpass Web Hosting Forums » Discussions » PHP, MySQL » PHP code not executing

PHP, MySQL General PHP questions. Or go to our PHPsuexec Forum >>

Closed Thread
 
LinkBack Thread Tools Search this Thread Rate Thread
Old June 29th, 2003, 4:07 PM   #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.
specht is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Old June 29th, 2003, 4:21 PM   #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
bigboy is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Old June 29th, 2003, 4:41 PM   #3 (permalink)
Registered User
Seasoned Poster
 
Joined in Jun 2003
30 posts
Gave thanks: 0
Thanked 0 times
Yeah, you can take a look for yourself .

http://wedding.ra-specht.com/main.php

My significant other would appreciate it if I could solve this soon..
specht is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Old June 29th, 2003, 5:28 PM   #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
bigboy is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Old July 7th, 2003, 11:00 AM   #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.
Jared555 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Old July 7th, 2003, 5:06 PM   #6 (permalink)
Jay
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: jaysurpasshosting.com <A HREF="http://cpu2.homedns.org:6969/message/msn/jaysurpasshosting.com">
<IMG SRC="http://cpu2.homedns.org:6969/msn/jaysurpasshosting.com" border="0" ALT="MSN Online Status Indicator" onerror="this.onerror=null;this.src='nullmsn/jaysurpasshosting.com';"></A> <<--- my butter fly is not working, yet you can try me anyway....

www.surpasshosting.com
Jay is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Old July 12th, 2003, 5:22 PM   #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.
n8thegreat is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Old July 12th, 2003, 8:28 PM   #8 (permalink)
Undercover Genius
Super #1
 
FyreFox's Avatar
 
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>
So I'm assuming that the php is somewhere in there.
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
FyreFox is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Old July 12th, 2003, 9:52 PM   #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)
n8thegreat is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Closed Thread


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On