![]() |
|
|||||||
|
|
|
|
|
|
Hi everyone,
I'm just setting out learning PHP. I've uploaded the follwoing code to http://heritagerailways.profusehost.net/test/test.php
However when I navigae to the file, all I get is a blank screen. What am I doing wrong?
The code is (or should be):
Code:
<html>
<head>
<title>PHP Test</title>
</head>
<body>
<p>This is an ...
|
![]() |
|
|
Thread Tools |
|
#1
|
|||
|
|||
|
Hi everyone,
I'm just setting out learning PHP. I've uploaded the follwoing code to http://heritagerailways.profusehost.net/test/test.php However when I navigae to the file, all I get is a blank screen. What am I doing wrong? The code is (or should be): Code:
<html> <head> <title>PHP Test</title> </head> <body> <p>This is an HTML line <p> <?php echo “This is a PHP line”; phpinfo(); ?> </body></html> Thanks, Michael |
|
#2
|
||||||||||||
|
||||||||||||
|
Who do you host with?
__________________
Might need to get php enabled on your server. My System: Hybr!d
|
|
#3
|
|||
|
|||
|
I host with profusehost, and as far as I know, PHP is enabled. I have coppermine gallery and PHPBB3 running successfully.
|
|
#4
|
||||||||||||
|
||||||||||||
|
Hi Michael,
__________________
You're using the wrong kind of quotes. Those look like something out of Word. Go in with a text editor instead of a word processor and change them to "quotes" instead. Then it'll work. 'quotes' are fine as well. My System: Tim
|
|
#5
|
|||
|
|||
|
Ahh right, that's probably it. I just copied them straight out of the pdf book which I got.
Cheers |
|
#6
|
|||
|
|||
|
but shouldn't the call to phpinfo() execute after it or have the faulty quotes caused an error and stopped any further execution of the script?
|
|
#7
|
|||
|
|||
|
The latter. The echo statement never finishes because it's waiting for quoted text which never appears.
|
![]() |
|
| Bookmarks |
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| In Need Of Some Simple Beginner Computer Guides! | KanoakaVirus | General Software Chat | 6 | 12th Feb 2009 07:17 |
| I've killed my computer... help (beginner) | mikefoster | General Software Chat | 5 | 20th Mar 2008 07:03 |
| Beginner Help - Laptop to wireless network connectivity issue | luke1206 | Networking, Modems & VoIP | 1 | 22nd Dec 2007 07:44 |
| Help for a beginner..please. | missJacquixx | Web Design, Hosting & SEO | 9 | 8th Nov 2007 04:49 |
| Thread Tools | |
|
|