PHWinfo banniere

Titres
PORTAIL ANNUAIRE ARTICLES COMPARATEUR HÉBERGEURS DEVIS FORUMS RÉDUCTEUR D'URL
Précédent   PHWinfo > Autres forums > Forum Programmation & Conception > comp.lang.php > Light at the end of the tunnel - and it's NOT a train !
S'inscrire FAQ Membres Recherche Messages du jour Marquer les forums comme lus
Light at the end of the tunnel - and it's NOT a train !

Réponse
 
LinkBack Outils de la discussion
Vieux 13/06/2008, 17h15   #1
Josiah Jenkins
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Light at the end of the tunnel - and it's NOT a train !

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.

Now if it hadn't been for lots of ful 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 !
  Réponse avec citation
Vieux 13/06/2008, 18h18   #2
Jeff
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut 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 ful 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 !

  Réponse avec citation
Vieux 13/06/2008, 19h29   #3
Josiah Jenkins
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Light at the end of the tunnel - and it's NOT a train !

On Fri, 13 Jun 2008 13:18:08 -0400, Jeff <jeff@spam_me_not.com> wrote:
>Josiah Jenkins wrote:

<snip>
>>
>> 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.


Noted. As I've seen reference to 'Crimson' here,
I've downloaded a copy and I'll try that.
(Freeware is 'a good thing' TM) !!!
>
>Don't use a word editor as it will insert hidden stuff that the
>server doesn't grok. Ditto for writing html.


I still use 'Ace HTML 5' for writing my HTML pages.
http://www.ian-stewart.eu/informer.html

Thanks for the info.
  Réponse avec citation
Vieux 13/06/2008, 19h37   #4
The Natural Philosopher
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Light at the end of the tunnel - and it's NOT a train !

Josiah Jenkins wrote:
> On Fri, 13 Jun 2008 13:18:08 -0400, Jeff <jeff@spam_me_not.com> wrote:
>> Josiah Jenkins wrote:

> <snip>
>>> 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.

>
> Noted. As I've seen reference to 'Crimson' here,
> I've downloaded a copy and I'll try that.
> (Freeware is 'a good thing' TM) !!!
>> Don't use a word editor as it will insert hidden stuff that the
>> server doesn't grok. Ditto for writing html.

>
> I still use 'Ace HTML 5' for writing my HTML pages.
> http://www.ian-stewart.eu/informer.html
>
> Thanks for the info.

I've used 'context' and it works for me. On WINX,. On the MAC I use
Smultron.

  Réponse avec citation
Réponse


Outils de la discussion

Règles de messages
Vous ne pouvez pas créer de nouvelles discussions
Vous ne pouvez pas envoyer des réponses
Vous ne pouvez pas envoyer des pièces jointes
Vous ne pouvez pas modifier vos messages

Les balises BB sont activées : oui
Les smileys sont activés : oui
La balise [IMG] est activée : oui
Le code HTML peut être employé : non
Trackbacks are oui
Pingbacks are oui
Refbacks are oui


Fuseau horaire GMT +1. Il est actuellement 03h10.


Édité par : vBulletin® version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC5 Tous droits réservés.
Version française #16 par l'association vBulletin francophone
PHWinfo est un site Éducation Sans Frontières ©2000-2008
Ad Management by RedTyger
©Tous droits réservés par les parties respectives
Page generated in 0,16159 seconds with 12 queries