Re: Light at the end of the tunnel - and it's NOT a train !



Josiah Jenkins wrote:
This was sitting in draft mode and, seeing it's the weekend,
rather than delete it, I've just altered it slightly . . .
Basically it's now a long . . . Thanks to All on clp !

I ploughed thro' about 2,000 post on this ng but didn't see anything
applicable to my problem.

I've just re-done my website (after 10 years of 'straight' HTML)
using CSS. At the same time I've changed to an ISP who doesn't
offer webspace as "normal", so I now have 'my own' domain and
am furiously studying for my entry-level qualification on :
"The Black Art of Servers and All That Which Is Held In Them".

Problem :
I want to use, as someone here phrased it, "some canned PHP
scripts <which> you download, modify and send up to the server"

Initially, I want to post some genealogy / family history stuff but
restrict the access to family and friends. I've used 'Locked Area' on
a website in the past for a similar purpose but there's no PERL
support on this server. It does support PHP(5) so I went snooping and
I've found 'SAS' (a freebie) at http://www.zann-marketing.com/sas/
which would appear to be just what I need.

But before I started, I tried what someone recommended :
Create a page with just the following:
<?php
phpinfo();
?>
Place it in your web server's home directory with the name phpinfo.php and see if your browser displays the information correctly . . .

I uploaded that by FTP but it only threw a blank page at first.
So I found out how to get 'PHP Error Messages' turned on . . .

Warning: Unexpected character in input: '\' (ASCII=92) state=1 in
/customers/ian-stewart.eu/ian-stewart.eu/httpd.www/phpinfo.php
on line 2

Parse error: syntax error, unexpected T_STRING in
/customers/ian-stewart.eu/ian-stewart.eu/httpd.www/phpinfo.php
on line 2

Also trying :
<?php
print "Hello World";
?>

Warning: Unexpected character in input: '\' (ASCII=92) state=1 in
/customers/ian-stewart.eu/ian-stewart.eu/httpd.www/world.php
on line 2

Parse error: syntax error, unexpected T_STRING in
/customers/ian-stewart.eu/ian-stewart.eu/httpd.www/world.php
on line 2

Oh dear, wotzit all mean ???

Ooops. I used Wordpad rather than Notepad to create the file.
Do it again and "Hello World" and more "Info" than I need.

Use a text editor. There are many fine cheap to free text editors around. Notepad is clumsy to use. Google "text editor" and you'll probably get more opinions than you can read. Don't use a word editor as it will insert hidden stuff that the server doesn't grok. Ditto for writing html.

Jeff

Now if it hadn't been for lots of helpful answers to others on here
I'd never have got that far and solved the problem.

So it's a big thanks to all from this particular (PHP) noobie
Enjoy your wekend !
.



Relevant Pages

  • Light at the end of the tunnel - and its NOT a train !
    ... I want to use, as someone here phrased it, "some canned PHP ... support on this server. ... Parse error: syntax error, unexpected T_STRING in ...
    (comp.lang.php)
  • Re: Totally blank page served up when any major PHP errors occur
    ... This is our in-house server used for testing, so I have all error reporting turned on full. ... Also - are you running PHP as an Apache module or a CGI? ...
    (comp.lang.php)
  • Re: Totally blank page served up when any major PHP errors occur
    ... This is our in-house server used for testing, so I have all error reporting turned on full. ... Also - are you running PHP as an Apache module or a CGI? ...
    (comp.lang.php)
  • Help opening a php file
    ... newsfeeds and need some help with getting this to work. ... to it I d/l it and upload it to my server and rename ... (Yes my server can run php scripts) ... everytime it gives me a Parse error: ...
    (php.general)
  • Re: Stuck on Tutorial
    ... Wyngs wrote: ... lines in a page called study.php, uploaded it to my server, and changed ... Parse error: parse error, unexpected T_LNUMBER, expecting T_VARIABLE or ... PHP is case sensitive in variable names, and fopen's second parameter is case sensitive. ...
    (alt.php)