Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
Showing results for
php dont work !!!
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Plusnet Community
- :
- Forum
- :
- Help with my Plusnet services
- :
- Everything else
- :
- php dont work !!!
php dont work !!!
06-10-2013 9:37 PM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
I am told that my simple php files are rendered but I cannot print or echo variables . I must be missing something obvious??!!

Message 1 of 7
(1,646 Views)
6 REPLIES 6
Re: php dont work !!!
06-10-2013 10:19 PM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
can you run this on the site in a phptest.php file
<html>
<head>
<title> PHP Test Script </title>
</head>
<body>
<?php
phpinfo( );
?>
</body>
you should get something like this if not then php could be disable
https://www.365webhost247.co.uk/phptest.php
<html>
<head>
<title> PHP Test Script </title>
</head>
<body>
<?php
phpinfo( );
?>
</body>
you should get something like this if not then php could be disable
https://www.365webhost247.co.uk/phptest.php
Message 2 of 7
(442 Views)
Re: php dont work !!!
07-10-2013 6:25 AM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
Thankyou for that ,365webhost247.co.uk ,but a csc analyst has put that in my cgi-bin and all the php info comes up a treat. I'm sure I've read in more than one place that you dont put your code in cgi-bin , so I put mine in the root directory (I think!) I run the files from the address bar in firefox
(I've tried all the other browsers). should one of these lines print the value of $anum. ?
<?php
$anum=99;
print "$anum";
print '$anum';
print $anum;
?.>
still perplexed !!!
ps. I've tried all variations of file permissions.
(I've tried all the other browsers). should one of these lines print the value of $anum. ?
<?php
$anum=99;
print "$anum";
print '$anum';
print $anum;
?.>
still perplexed !!!
ps. I've tried all variations of file permissions.
Message 3 of 7
(442 Views)
Re: php dont work !!!
07-10-2013 8:46 AM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
Quote from: terrypduff ?.>
Is the dot a typo? That would break it.
The first and third prints should print 99; the second should print $anum.
Gabe
Message 4 of 7
(442 Views)
Re: php dont work !!!
07-10-2013 12:35 PM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
That test file outputs
99$anum99
for me (with the invalid '.' removed). I set file permissions to 0700.
Have Plusnet checked your root directory permissions are correct (1710 or drwx--x--T)?
99$anum99
for me (with the invalid '.' removed). I set file permissions to 0700.
Have Plusnet checked your root directory permissions are correct (1710 or drwx--x--T)?
David
Message 5 of 7
(442 Views)
Re: php dont work !!!
07-10-2013 8:49 PM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
Much appreciate you response Gabe and spayxt...
It was a bit more than a typo! I was stubbornly using wordpad as it works fine for html, javascript and CSS. I thought I was saving files as ASCII
but it seems not , now using notepad and php now works...
Many thanks and standby for my next twattish error...
It was a bit more than a typo! I was stubbornly using wordpad as it works fine for html, javascript and CSS. I thought I was saving files as ASCII
but it seems not , now using notepad and php now works...
Many thanks and standby for my next twattish error...

Message 6 of 7
(442 Views)
Re: php dont work !!!
08-10-2013 2:02 AM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
Oops: 
Glad to hear you got the problem sorted.

Glad to hear you got the problem sorted.

David
Message 7 of 7
(442 Views)
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page