Go Back   Computer Juice > Computer Software > Web Design & Programming
Register Members New Posts Donate Unanswered Posts Site Spy Search


Reply
 
Thread Tools
  #1  
Old 24-03-2008, 04:00 PM
mbonwick's Avatar
CJ Member
Intel Nvidia
mbonwick is offline
Send a message via MSN to mbonwick
 
Join Date: Oct 2007
Last Online: 17-07-2008 08:16 PM
Age: 15
Posts: 153
iTrader: (0)
mbonwick is on a distinguished road
Default PHP Help for a Beginner

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
Digg this postDel.icio.us this postTechnorati this postNetscape this postStumble this post
Reply With Quote
  #2  
Old 24-03-2008, 04:08 PM
Dave Hybrid's Avatar
CJ Administrator
Intel Nvidia
Dave Hybrid is offline
 
Join Date: Apr 2006
Last Online: Yesterday 10:56 PM
Age: 26
Posts: 6,965
iTrader: (0)
Dave Hybrid has a reputation beyond reputeDave Hybrid has a reputation beyond reputeDave Hybrid has a reputation beyond reputeDave Hybrid has a reputation beyond reputeDave Hybrid has a reputation beyond reputeDave Hybrid has a reputation beyond reputeDave Hybrid has a reputation beyond reputeDave Hybrid has a reputation beyond reputeDave Hybrid has a reputation beyond reputeDave Hybrid has a reputation beyond reputeDave Hybrid has a reputation beyond repute
Default PHP Help for a Beginner

Who do you host with?

Might need to get php enabled on your server.
__________________

Computer Juice raffle
- Win PC hardware of your choice worth £500 / €680 / $1000 - Enter HERE!
__________________

My System: The Hybrid Lappy

CPU(s):
AMD Turion 64 x2 TL-64 2.2GHz
Motherboard:
HP nForce 560
RAM:
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 Vista Home Premium 32 SP1

Want your system info in your signature?
Digg this postDel.icio.us this postTechnorati this postNetscape this postStumble this post
Reply With Quote
  #3  
Old 24-03-2008, 07:34 PM
mbonwick's Avatar
CJ Member
Intel Nvidia
mbonwick is offline
Send a message via MSN to mbonwick
 
Join Date: Oct 2007
Last Online: 17-07-2008 08:16 PM
Age: 15
Posts: 153
iTrader: (0)
mbonwick is on a distinguished road
Default PHP Help for a Beginner

I host with profusehost, and as far as I know, PHP is enabled. I have coppermine gallery and PHPBB3 running successfully.
Digg this postDel.icio.us this postTechnorati this postNetscape this postStumble this post
Reply With Quote
  #4  
Old 25-03-2008, 08:31 AM
spot's Avatar
spot  Wales
CJ Donator
Intel Nvidia
spot is offline
 
Join Date: Feb 2008
Last Online: 15-07-2008 10:10 PM
Posts: 523
iTrader: (0)
spot is on a distinguished road
Default PHP Help for a Beginner

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

CPU(s):
Athlon 64 3500+
Motherboard:
Asus A8N-VM CSM
RAM:
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 sustained
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.24.3) (Fluxbox) (bash)

Want your system info in your signature?
Digg this postDel.icio.us this postTechnorati this postNetscape this postStumble this post
Reply With Quote
  #5  
Old 25-03-2008, 05:12 PM
mbonwick's Avatar
CJ Member
Intel Nvidia
mbonwick is offline
Send a message via MSN to mbonwick
 
Join Date: Oct 2007
Last Online: 17-07-2008 08:16 PM
Age: 15
Posts: 153
iTrader: (0)
mbonwick is on a distinguished road
Default PHP Help for a Beginner

Ahh right, that's probably it. I just copied them straight out of the pdf book which I got.

Cheers
Digg this postDel.icio.us this postTechnorati this postNetscape this postStumble this post
Reply With Quote
  #6  
Old 27-03-2008, 02:11 AM
No Avatar
saminh  United Kingdom
CJ Member
 
saminh is offline
 
Join Date: Dec 2007
Last Online: 29-03-2008 01:31 AM
Posts: 11
iTrader: (0)
saminh is on a distinguished road
Default PHP Help for a Beginner

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?
Digg this postDel.icio.us this postTechnorati this postNetscape this postStumble this post
Reply With Quote
  #7  
Old 27-03-2008, 09:21 AM
spot's Avatar
spot  Wales
CJ Donator
Intel Nvidia
spot is offline
 
Join Date: Feb 2008
Last Online: 15-07-2008 10:10 PM
Posts: 523
iTrader: (0)
spot is on a distinguished road
Default PHP Help for a Beginner

The latter. The echo statement never finishes because it's waiting for quoted text which never appears.
__________________

My System: Tim

CPU(s):
Athlon 64 3500+
Motherboard:
Asus A8N-VM CSM
RAM:
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 sustained
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.24.3) (Fluxbox) (bash)

Want your system info in your signature?
Digg this postDel.icio.us this postTechnorati this postNetscape this postStumble this post
Reply With Quote

Please support this forum, donate towards our running costs.


Reply


Thread Tools

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
i've killed my computer... help (beginner) mikefoster General Software Chat 5 20-03-2008 01:03 PM
Beginner Help - Laptop to wireless network connectivity issue luke1206 Networking, Modems & VoIP 1 22-12-2007 01:44 PM
Help for a beginner..please. missJacquixx Web Design & Programming 9 08-11-2007 10:49 AM
is firefox hard for a beginner to install, i have only practicinglucky4mysake General Hardware Chat 2 17-03-2007 10:25 PM


Copyright ©2006 - 2008 Computer Juice.

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