lesser-equity

Magazine
Go Back   Computer Juice > Computer Software > Web Design, Hosting & SEO


Register


Reply
 
Thread Tools
  #1  
Old 24th Mar 2008, 10:00
Member Group
 
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>
Any ideas

Thanks,
Michael
  #2  
Old 24th Mar 2008, 10:08
Administrator Group
 
Who do you host with?

Might need to get php enabled on your server.
__________________

My System: Hybr!d

Processor(s):
AMD Turion 64 x2 TL-64 2.2GHz
Motherboard:
HP nForce 560
RAM Memory:
2GB DDR2 PC2-5300
Graphics Card(s):
Nvidia 7150M Onboard Integrated
Sound Card:
5.1 Onboard Integrated
Hard Drive(s):
250GB 5400RPM SATA300
Optical Drive(s):
18x CD/DVDRW-DL ATA
Case / PSU:
Stock HP
Cooling:
Stock HP
Network / Internet:
10/100 Nic / 10MB Virgin Cable
Monitor(s):
17" WXGA+ HD BrightView Widescreen
Operating System(s):
Windows 7 Ultimate 32Bit
  #3  
Old 24th Mar 2008, 13:34
Member Group
 
I host with profusehost, and as far as I know, PHP is enabled. I have coppermine gallery and PHPBB3 running successfully.
  #4  
Old 25th Mar 2008, 02:31
Donor Group
 
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

Processor(s):
Athlon 64 3500+
Motherboard:
Asus A8N-VM CSM
RAM Memory:
Corsair PC3200 CL2 DDR-400 2GB
Graphics Card(s):
nVidia Geforce 6600 512MB
Sound Card:
Cherry RS 6000 M keyboard
Hard Drive(s):
Barracuda.7+ 2x200GB 58MB/s sustain
Optical Drive(s):
Samsung DVD-ROM TS-H352
Case / PSU:
Thermaltake Soprano
Cooling:
Stock
Network / Internet:
Telewest 2x20Mb/sec
Monitor(s):
SXGA flat panel
Operating System(s):
Slackware (2.6.27.7) (Fluxbox)
  #5  
Old 25th Mar 2008, 11:12
Member Group
 
Ahh right, that's probably it. I just copied them straight out of the pdf book which I got.

Cheers
  #6  
Old 26th Mar 2008, 20:11
Member Group
 
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  
Old 27th Mar 2008, 03:21
Donor Group
 
The latter. The echo statement never finishes because it's waiting for quoted text which never appears.
Reply

Register
Thread Tools




Arabic Bulgarian Chinese (Simplified) Chinese (Traditional) Croatian Czech Danish Dutch English Finnish French German Greek Hebrew Hungarian Italian Japanese Korean Latvian Lithuanian Norwegian Polish Portuguese Romanian Russian Serbian Slovak Spanish Swedish Thai Turkish Ukrainian

Copyright ©2006 - 2009 Computer Juice.

Powered by vBulletin® Copyright ©2000 - 2009 Jelsoft Enterprises Ltd. SEO by vBSEO ©2009, Crawlability, Inc.