Current location: Hot Scripts Forums » Programming Languages » PHP » Weird Problem


Weird Problem

Reply
  #1 (permalink)  
Old 12-31-03, 11:38 AM
Dazza203 Dazza203 is offline
Newbie Coder
 
Join Date: Dec 2003
Posts: 21
Thanks: 0
Thanked 0 Times in 0 Posts
Weird Problem

On my website located here: http://www.nitrohackz.host.sk/mian.html I have a very weird problem. I have 3 iframes running on that page containing PHP code, but I have just added a 4th iframe near the top, but it is not treating the PHP page it contains as PHP, and nothing happens in the iframe. It is just displaying the PHP Page as a normal page, also with PHP you shoudn't be able to view PHP code with a web browser, but you can when you right click on the iframe and click on source. The other iframes on the same page work fine so I don't see any reason why this one shouldn't. I'd appreciate it if anyone could look at this and try and help me figure it out this problem because I've been trying to fix it for hours now. You can save the source of main.html and the PHP page the iframe contains if you need to test it out yourself. In case you don't guess the iframe that isn't working is the big white area on main.html.

Thanks,
Darren
Reply With Quote
  #2 (permalink)  
Old 12-31-03, 11:39 AM
Dazza203 Dazza203 is offline
Newbie Coder
 
Join Date: Dec 2003
Posts: 21
Thanks: 0
Thanked 0 Times in 0 Posts
Opps I made an error in the web address in my post above its http://www.nitrohackz.host.sk/main.html.

Thanks,
Darren
Reply With Quote
  #3 (permalink)  
Old 12-31-03, 01:05 PM
NeverMind's Avatar
NeverMind NeverMind is offline
Community VIP
 
Join Date: Aug 2003
Location: K.S.A
Posts: 2,257
Thanks: 0
Thanked 2 Times in 1 Post
double check the iframe proprties ..
but I have a suggestion .. since PHP support includes why are you using frames ? some browser don't support them and some mess them up ..
so you could just use tables and use include_once('file.php'); in it .. it would be cleaner and faster to load ..
__________________
PHPSimplicity
We don't need a reason to help people - Zidane [FF9]
Reply With Quote
  #4 (permalink)  
Old 12-31-03, 06:04 PM
Dazza203 Dazza203 is offline
Newbie Coder
 
Join Date: Dec 2003
Posts: 21
Thanks: 0
Thanked 0 Times in 0 Posts
Yes but the main page is a HTML file so would I be able to do that? If so what code would I need to use? Try running the PHP file on its own: http://www.nitrohackz.host.sk/mainlogin.php and you will see that it only displays the PHP code rather than executing it.

Thanks,
Darren
Reply With Quote
  #5 (permalink)  
Old 12-31-03, 06:58 PM
coolblu coolblu is offline
Newbie Coder
 
Join Date: Dec 2003
Location: UK
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
When I view that page al I see is a blank screen but when I view the source it is all PHP. :S What do you have in the connect.php file and are you sure that you have php enabled web space?
Reply With Quote
  #6 (permalink)  
Old 01-01-04, 02:08 AM
NeverMind's Avatar
NeverMind NeverMind is offline
Community VIP
 
Join Date: Aug 2003
Location: K.S.A
Posts: 2,257
Thanks: 0
Thanked 2 Times in 1 Post
Quote:
Originally Posted by coolblu
When I view that page al I see is a blank screen but when I view the source it is all PHP. :S What do you have in the connect.php file and are you sure that you have php enabled web space?
the page just prints every thing in it even php functions !
are you sure that your server support php ?
__________________
PHPSimplicity
We don't need a reason to help people - Zidane [FF9]
Reply With Quote
  #7 (permalink)  
Old 01-01-04, 02:16 AM
Dazza203 Dazza203 is offline
Newbie Coder
 
Join Date: Dec 2003
Posts: 21
Thanks: 0
Thanked 0 Times in 0 Posts
Yes I am running 3 other iframes containing php on the main page. Host.sk also supports mySQL. The news system I have written for the front page is written in PHP, so is the voting poll, so is the message board. Any other ideas?

Thanks,
Darren
Reply With Quote
  #8 (permalink)  
Old 01-01-04, 03:08 AM
Dazza203 Dazza203 is offline
Newbie Coder
 
Join Date: Dec 2003
Posts: 21
Thanks: 0
Thanked 0 Times in 0 Posts
It OK I fixed it now. It was because I has saved the file as Unicode in Notepad when you have to save it as ANSI. I didn't know that.

Thanks,
Darren
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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

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

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Include Problem DAL Perl 3 11-20-04 07:45 AM
Small problem for a pro, but for novice like me... argh! ntek Perl 3 11-19-03 01:45 PM
shopping cart problem darton520 PHP 2 11-03-03 11:20 AM
file download problem ukyankee Perl 6 10-04-03 10:39 PM
jpGraph axis labeling problem Squeezer PHP 2 08-20-03 07:53 AM


All times are GMT -5. The time now is 07:50 AM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.