Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
Showing results for
strangely named PHP file in \public
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
- :
- strangely named PHP file in \public
strangely named PHP file in \public
27-02-2014 8:32 PM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
In my new CGI space, in the \public folder there is a file with a name made up of a string of random characters. The name begins and ends as follows:
Y3V..............................=.php
The content of the file starts:
<?php $envVar = array("GATEWAY_INTERFACE","HTTP_ACCEPT","HTTP_ACCEPT_ENCODING","HTTP_ACCEPT_LANGUAGE",...
The date on the file is 22/02/2014, which was the day I first started looking at the new CGI however the time on the file is several hours before I did anything on the platform, which was to upload and begin to set up zenphoto.
What is the purpose of this file, is it something crucial or can it be deleted.
Lest asking such questions reveals my ignorance and indicates I shouldn't be anywhere near a CGI server then I freely confess I am a total novice but I do seem to have got zenphoto working and I am beginning to build a photo gallery so I'm not unteachable.
Thanks,
stuck
Y3V..............................=.php
The content of the file starts:
<?php $envVar = array("GATEWAY_INTERFACE","HTTP_ACCEPT","HTTP_ACCEPT_ENCODING","HTTP_ACCEPT_LANGUAGE",...
The date on the file is 22/02/2014, which was the day I first started looking at the new CGI however the time on the file is several hours before I did anything on the platform, which was to upload and begin to set up zenphoto.
What is the purpose of this file, is it something crucial or can it be deleted.
Lest asking such questions reveals my ignorance and indicates I shouldn't be anywhere near a CGI server then I freely confess I am a total novice but I do seem to have got zenphoto working and I am beginning to build a photo gallery so I'm not unteachable.
Thanks,
stuck
Message 1 of 9
(2,537 Views)
8 REPLIES 8
Re: strangely named PHP file in \public
27-02-2014 8:47 PM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
I seem to recall that phpinfo() won't be available on the new ccgi platform so I would suspect looking at that array of environment variable names that it is supposed to look through the $_SERVER array or something and print ouf the values for new users to see.
As for the file name.. maybe some automated system has gone a bit wonky?
As for the file name.. maybe some automated system has gone a bit wonky?
I need a new signature... i'm bored of the old one!
Message 2 of 9
(682 Views)
Re: strangely named PHP file in \public
27-02-2014 11:06 PM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
That file is mentioned as the script environment on the Control Panel Disk Usage application Setup/Environment tab. If you browse to it you'll find it lists the PHP $_SERVER[…] array values for the keys listed in the $envVar array.
What use users would make of it is a moot point. There are a lot more $_SERVER key/value pairs that users writing code might use.
David
What use users would make of it is a moot point. There are a lot more $_SERVER key/value pairs that users writing code might use.
David
David
Message 3 of 9
(682 Views)
Re: strangely named PHP file in \public
27-02-2014 11:11 PM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
Surely anyone wanting to interrogate $_SERVER variables is capable of writing this script
Having unexpected files is nothing but troubling as people may think they've had their site hacked.
Just my 2p's worth.
A.
<!doctype html>
<html>
<head/>
<body>
<ul>
<?php
foreach ($_SERVER as $k => $v) {
echo "<li>${k} => ${v}</li>";
}
?>
</ul>
</body>
</html>
Having unexpected files is nothing but troubling as people may think they've had their site hacked.
Just my 2p's worth.
A.
Message 4 of 9
(682 Views)
Re: strangely named PHP file in \public
28-02-2014 6:33 PM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
Quote from: spraxyt That file is mentioned as the script environment on the Control Panel Disk Usage application Setup/Environment tab. If you browse to it you'll find it lists the PHP $_SERVER[…] array values for the keys listed in the $envVar array.
/services/webpages/c/c/ccgi.<myusername>.plus.com/public/Y3V..........=.php
stuck
Scratch the above, I've worked out what I should have done and when I go to my CGI space and then add the strange file name to the URL I get a page that displays:
values for:
GATEWAY_INTERFACE
HTTP_ACCEPT
HTTP_ACCEPT_ENCODING
HTTP_ACCEPT_LANGUAGE
HTTP_CONNECTION
HTTP_HOST
HTTP_USER_AGENT
PATH
REMOTE_ADDR
SERVER_ADDR
SERVER_ADMIN
SERVER_NAME
SERVER_PORT
SERVER_PROTOCOL
SERVER_SOFTWARE
Does this file have to have such a bizarre name? Would it break something if I renamed it to something a bit more obvious, like 'serverArrayyValues.php'
stuck
Message 5 of 9
(682 Views)
Re: strangely named PHP file in \public
28-02-2014 7:04 PM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
I assume the awkward name is specific to your instance and makes it unlikely to be discovered and executed by someone else. I can't imagine anything within the system relying on that file being present so it could be renamed to the more memorable name you mentioned if you wished.
However you might find copying the PHP script posted by avatastic, storing it with your suggested name, and browsing to it gives a more comprehensive and useful list.
David
However you might find copying the PHP script posted by avatastic, storing it with your suggested name, and browsing to it gives a more comprehensive and useful list.
David
David
Message 6 of 9
(682 Views)
Re: strangely named PHP file in \public
01-03-2014 3:10 PM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
Quote from: spraxyt ...it could be renamed to the more memorable name you mentioned if you wished.
...you might find copying the PHP script posted by avatastic ... gives a more comprehensive and useful list
Thanks, I will experiment.
I guess though if I do rename this file then it will no longer be listed in the Control Panel Disk Usage application Setup/Environment tab..? I suppose I'll find the answer to that in the course of experimenting.
stuck
Message 7 of 9
(682 Views)
Re: strangely named PHP file in \public
01-03-2014 4:25 PM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
Based on the experiences reported in the other current thread Hostopia will regard having one of these oddly named files as a bonus we shouldn't be without. So if you rename it another one is likely to reappear. 
David

David
David
Message 8 of 9
(682 Views)
Re: strangely named PHP file in \public
02-03-2014 3:43 PM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
Quote from: spraxyt Based on the experiences reported in the other current thread...
I can report that as a consequence my site reverting to it's (useless) fresh out of the migration box state this oddly named file was NOT present. However as soon as I used the Control Panel Disk Usage application Setup/Environment tab it appeared in /public.
Further, having renamed the file and then re-run the Control Panel Disk Usage application a new copy of the file.
Fantastic, just the sort of

stuck
Message 9 of 9
(682 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
- Plusnet Community
- :
- Forum
- :
- Help with my Plusnet services
- :
- Everything else
- :
- strangely named PHP file in \public