rsf
Jan 17 2007, 11:09 PM
| | I'm pretty sure this is a problem with the server, not my code. But I'm open for interpretations.
Randomly I'll be uploading php files, and when I try and view them it takes a little longer to load and then asks me if I want to download the php file or not. Of course, I don't want people to download my php files.
This just happens sporadically, I won't get it for a few days, and then one day I'll get it several times.
Anyone had this problem before, or is there anything I can do with chmod or htaccess to allow people to view the file, but not download it? |
Reply
BuffaloHELP
Jan 17 2007, 11:51 PM
Please give an example of URL and perhaps you can post the file as well? PHP is server side ran script. So if it's downloading it's usually because the format was not compliant with PHP scripting--so it's interpreted as other file type.
Reply
rsf
Jan 18 2007, 12:16 AM
Ok thanks. I got the message again when I was writing some new code which I expected to still be buggy. I downloaded it just to see and the file it downloaded didn't have any contents. So I guess it's not a security issue, I just need to not release buggy pages so I don't annoy my users
Reply
QuickSilva
Jan 18 2007, 03:18 PM
This happens to me when the server goes laggy for a few minutes. I write all my PHP scripts in PHP 4, which I believe Trap 17 and Computing Host has. This sometimes happens as well if you have an iframe which keeps refreshing. ExampleCODE <iframe src="page.php" name="mainframe"></iframe> If there is a propper reason, please tell it here. I would love to know. And until then, I personaly believe it's just the server been laggy. Also if the script uses MySQL this sometimes happens to me. Have a great day! -Tom
Reply
caos dreamer
Jan 18 2007, 03:45 PM
had this on different hosters so i dont think its a serious problem... not very common aswell. i think it happens if the server needs too long to interprete the script and the browser just tries to download the file instead of displaying the phrazed code. shouldnīt happen too often i think (happened 3 times in my life xD)
Reply
hts
Jan 18 2007, 09:00 PM
it has nothing to do with the fact that the server is "laggy". php is a server-side scripting language, therefore the content of a .php is parsed (interpreted) by the server. You cannot download a php file (the content of it). What you (should) get (called "output"  ) is generally html files (but it can be an image, a pdf file etc.). This means that your files are not "seen" by the server as php files. First of all, be sure that your php files start with <?php (or<?) and end with ?> (the only quick tip that came into my mind  )...
Reply
Similar Topics
Keywords : php files acting- Css Problem On Website
- I've uploaded the html/css files but the css isn't working/ (8)
- Where Do I Upload My Ftp Files? [resolved]
- As in, which directory? (1)
I recently got approved for hosting. I have an account right now, but I don't know which
directory to post my FTP stuff in. (I don't know if this is in support or not; the search
results didn't return anything.) I remember with my last host that had CPanel that you had to
upload it into the "public_html" folder. So I do that, or do I just upload it into the root
directory? Thanks in advance! (EDIT: Oh, never mind, it is /public_html.)...
Upload Script To Transfer Files From Laptop To Desktop
- (3)
Would it be allowed to have an upload script to transfer text files (homework) from laptop to
desktop? Because my printer is set up from my desktop, and most of my homework is done on my laptop.
So would this be allowed? Thanks....
Transferring Files From One Host To Another
- Take my site to trap17 (8)
As I said, I had to move my web site away from Trap17 temporarily because I had ran out of disk
space. Now, when my upgrade is finalised, I would like to ask for a little assistance. The provider
I will be moving my site from, back to Trap17 also uses Cpanel, and the admin let me know to do a
backup and that backup could be simply transferred via FTP to my new provider. The backup includes
all my files and MySQL data, in other words, the whole web site. It is in a .tar.gz format. How do I
get all this across? Do I 'unzip' the file and then transfer them bit by bi...
Ftp Trap17 Account Help Please
- cPanel issues and can't upload files (14)
A few days ago I tried to log into cPanel on my site ( www.liamssite.trap17.com ) and it didnt work.
Also, whenever I try to upload a file (I use filezilla) I get this: QUOTE Status: Resolving
IP-Address for liamssite.trap17.com Status: Connecting to 64.69.46.210:21... Status: Connection
established, waiting for welcome message... Response: 220---------- Welcome to Pure-FTPd ----------
Response: 220-You are user number 2 of 50 allowed. Response: 220-Local time is now 11:31. Server
port: 21. Response: 220-This is a private system - No anonymous login Response: 220-...
Uploading Files And Connecting To Ftp
- using WsFtppro (27)
The fastest, most reliable way to upload or download files is through FTP. If you don't already
have your own Web page, read our reviews of over 80 free Webhost. If you don't have an FTP
client, Download WS_FTP Pro now. Step 1 - Connect your computer to the Internet. Step 2 - Launch
WS_FTP Pro by clicking on the WS_FTP Pro icon that's on your desktop. If you do not have a
WS_FTP Pro icon on your desktop, click on the Start button and then select Programs, then WS_FTP,
and then WS_FTP Pro. Step 3 - Connecting to an FTP site: When you open WS_FTP Pro, you...
Can't Find My Fantastico Installation!
- Where is the files I installed (2)
Before anyone points it out, I searched this forum for similar topics and couldn't find any, I
checked the FAQ's and couldn't find any one of them that addresses my problem: I just
installed joomla in a sub directory (public_html/Joomla) and I wanted to change some stuff so I went
into my FTP program and connected to my account, I checked, doubled checked and triple checked all
the public html/FTP/WWW folders and I couldn't find the joomla installation, the site come up
fine in browser but I can't seem to find the directory of where it is located, t...
Help! I Deleted All My Files!
- (5)
Hi guys, i got hosted yesterday and i loged on to my file manager and deleted all the files in there
i replaced them with my site including the index.htm page and now when i try to view it it says no
page found!!! i dont no why this is as with my site when i payed for hosting from
one.net it was as simple as using the run program and typing in mt ftp:\\ account copy the
index.htm file and i was up and running! Can anyone help with what i have done wrong please
thank you. /sad.gif" style="vertical-align:middle" emoid=":(" border="0" alt="sa...
Need Help Installing Smf
- It's not finding the files I upload. (5)
I downloaded the zip version of the SMF, from www.simplemachines.org I am using SmartFTP, to upload
the files. I created a folder, named Forum, and uploaded all the SMF files there. On the
simplemachines site, it tells me to type my site url followed by /forum/install.php, or whatever the
directory I installed it on is called. I tried that, and I come up with this on the page. Not
Found The requested URL /forum/smf1.1/install.php was not found on this server. Additionally, a 404
Not Found error was encountered while trying to use an ErrorDocument to handle the re...
Accidentally Deleted Pre-set Files
- (3)
I made a bo-bo lol I've accidentally deleted those pre-set files that are in the file manager
when you first register, you know those _vti thingy magiggers, well i accidentally deleted them, so
i was wondering if an admin can re-insert them for me /biggrin.gif" style="vertical-align:middle"
emoid=":D" border="0" alt="biggrin.gif" /> or re-set my hosting whatever you have to do.... thanks
/biggrin.gif" style="vertical-align:middle" emoid=":D" border="0" alt="biggrin.gif" />...
Problems With Deleting Files In My Account
- blendergalactica.com (3)
Suddenly all my file permission aren't writable in the Joomla directory. Furthermore, when I go
to delete old files or overwrite them, I get a varity of errors both in my FTP programs and using
the Cpanel flie manager. When I checked the needed directories file permission they read 777
(which is needed for installing components) yet when I got to access them they are unwritable. This
has just happened in the last day or so and the not being able to delete files mannual in the past
week. I get this error on changing file permissions: QUOTE FTP Error: Could ...
I Need Help Uploading The Install Files
- (3)
QUOTE Obtaining SMF You can download the latest beta from the download page on the
official Simple Machines website. There are a number of packages available, as this guide covers
fresh installs, you should download one of the "install" packages as these contain all the files
needed to get up and running. We suggest you download the zip option as this is most common and
therefore you are more likely to have the tools required to unzip it already installed on your
computer. Unzip the package, ensuring you keep the directory structure, if you are using Windows ...
Making The Files In File Manager Invisible
- (8)
i was wondering if there was a way, any way in the world, to make the files that were allready in
the file manager when we first signed up meaning these QUOTE _private _vti_bin _vti_cnf _vti_log
_vti_pvt _vti_txt cgi-bin dissaper.... because on my site, we made a sitemap
(http://hogwartsmagic.net/map/ezmap.php) and it shows those folders, and to make it less cluttered
we want to get rid of them, or make them invisible to the public.. is this possible? Topic closed
as requested ...
Question About Uploading Files
- im sorry if someone already has a thread on this (3)
I have been using Frontpage 2003 to make a website, it is basically complete but I need to know how
to upload the files. I have been playing around with the file manager and it seems like I have the
site there but in a very inefficient manner. Is there any way I can just use Frontpage to upload
the files and type in my password and username in Frontpage? If so, can you lead me to a thread that
explains it or tell me? If not, is there an easier way to upload files into the File Manager
other than picking them one-by-one? Thank you very much for your time.... I f...
Unzipping (untar) Tar Files
- (5)
How do I unzip TAR files on the server? Is there a specific program that does this? I don't want
to upload the little "module" packages one by one to the server because that will consume more
bandwidth. If there is a program that does this and it is freeware, please tell me where to get it
and what it generally does. I use ZipGenius 6 to open most of my compressed files, including TAR
files. If there is a better way to do this, tell me how to. Thanks...
What Do 1st Files In Ftp Do?
- Is this right place to ask? (1)
Hello, Im new to this "creating a web site" thing... And I just got hosted by trap17... My
question is, is it possible to reset the ftp? I mean the ftp came with somethings in it; such as
public_html. To return the way it came to me... I dont have a problem right now, but Im just
curious. And by the way, the files that are existed at first place... What do they do? Rather then
providing intro page... Or those files are codes of cPanel ? *edited* thank you BuffaloHELP...
Problems With Ftp
- Can't upload files with ftp protocol (10)
I have a big problem uploading my website with the ftp protocol. I usually don't allow my ftp
client to act as a server, and most importantly, i don't let my ftp client to act as a server to
receive connections from the internet. But when i try to upload my files to my trap17 ftp account,
part of my free hosting account, my firewall is allways asking me if i want to allow my ftp client
to act as a server and if i allow it to receive connections from the internet. I don't think
that is normal, i use other free hosting servers and none of them ask to turn my...
Problem With Opening And Reading Files In Php
- access denied error using fopen etc... (4)
Hi all I'm having a problem when using php to read from a text file the error is this: CODE
failed to open stream: Permission denied in /home/shadyx/public_html/index.php And this
obviously stops fread and fwrite from working. the code i used for this is... CODE $handle
= fopen("ipstuffs/iplog.htm", "a"); fwrite($handle, "date:
$date <BR> $ip <BR>Referrer:
$refer_url<BR><HR><BR>"); fclose($handle); It
runs nicely on my x...
Cgi Files?
- where does this script belong? (6)
hello guys, it's been a couple of days that i dont know where this script must be placed and in
which format...i know it is from perl but what format should i use .pl or .cgi, yep i am a newbie
/rolleyes.gif" style="vertical-align:middle" emoid=":rolleyes:" border="0" alt="rolleyes.gif" />
i also saw that there is a folder in my directory called cgi-bin, do i have tu put it there?
QUOTE #!/usr/bin/perl $recipient = "me@somemail.com"; # watch out for backslash
$mail = "/usr/sbin/sendmail"; if($ENV{REQUEST_METHOD} eq 'POST') { re...
Files For Downloading
- The downlaod crashes! (3)
hello guys!, i uploaded a 8 MB zip and every tie i try to download it, the download crashes and
doesnt let me to download it complete. Any ideas of this behavior? o what happens? do i need a
dedicated server? did i miss some kind of configuration?...
How To Upload Zip Files?
- (4)
Hello.. I want to upload MSN emoticons packs on my site.they are in zip file... I want to upload
that zip file , ,and i made an index page and made the gif file of the emoticon pack and then i put
hyperlink of that gif file to zip file , but when i uploaded the site , and it doesnt work , when i
click on the gif image , instead of the zip file start to download , i get this page
website.com/emoticons.zip/ Index of /emoticons.zip Name Last modified
Size Description -------------------------------------------------------------------------------...
How To Add Files In Subdomain
- (5)
Hello.. I have created a subdomain , now i want to upload files in it , i have all files in a folder
in my computer.I want that they look something like http://subdomain.domain.com
http://subdomain.domain.com/folder1 http://subdomain.domain.com/folder1/file1.html Can you
please tell me how i can do it , if i have folder in my computer , and there are all files in that
folder , can i upload that folder ? or i will have to upload different folders?...
Public_html Or Www Folder?
- Where to put web files? (5)
heh..im kind of new to this..but where to i put my pages that i want to show up? like in...
public_html www ??? plz help hehe Naming your topic title carefully would and will help
other members in the future. Please take topic title and description seriously. ...
How To Upload Files In File Manage
- (2)
Hello... I've got hosting by trap 17, and now im trying to upload pages to the site.for example
i have added one page in Public_html , and i can see that messege in file manager ------------------
QUOTE index.html File Type: HTML document text Show File Delete File Edit File Change
Permissions Rename File Copy File Move File Html Editor File Url:
http://www.faisalabad.be/index.html --------- But when i open that page
(http://www.faisalabad.be/index.html ) the page doesnt open? I get this messege _---------------
The page cannot be found The p...
Help Moving Mysql Files To A New Host
- IPB files (1)
Well, my partners on my forum has decided to move our site to a newer host. A paid one to be exact.
And we did that already. Now all we need to do is move our forum over to the new host. We want to
do this without losing all of our posts and other data. I know it has something to do with the MySQL
files but I don't really understand it. Some help would be appreciated. We are running Invision
Power Board 1.3.1 final Also, we're thinking about upgrading our board to a newer version of
IPB because we heard that its better in more ways than one. But then again, it...
Restoring Backup Files?
- (4)
hey, guys i have a quick question. If i'm planning on to restart my account and lose everything,
but i made a backup of my FTP and SQL. If i reupload the FTP back to the way it was, will i get my
site (forum, portal, gallery, etc) back the way it was without reinstalling the forum, portal,
gallery, etc? Or do i have to start everything over again. =P...
Directory Questions Using Cuteftp
- what are these files/directories for? (4)
i cant seem to ftp to my site proporly, i can access my domain through cute ftp but a bunch of files
show up, some of them are non existant and have "/" in them etc and their are no such folders in
reality... i really need to upload new phpnuke themes and cant seem to do it... someone plz help
me! Renamed title and description to reflect the topic. ...
Adding Files
- Wether Allowed OR Not (8)
Hi, just wondering if we are allowed to have files on our website for people to be able to download?
I havent been able to find anywhere else on the Forums that give me an answer to this. Thanking
you in advance for your help fellow Trap 17 Members /smile.gif' border='0'
style='vertical-align:middle' alt='smile.gif' /> ...
Error Uploading Files From Joomla Script.
- (1)
i have seen the other post but i donīt understand very well, i have joomla in fantastico and when i
want to upload file i see: Invalid checksum for file " Upload language - Upload Failed for
example.i upload with the ftp integrated in joomla online and see this anunncement.How i do?i upload
the files when i unzipped files and upload from C directory....
Account Suspended But Are My Files Safe?
- i have -4.85 Credits (1)
Hi man, this is really bad, i havent' posted in a while and now i have -4.85 credits. Can i
stil save my entire site and preferences??? please help. i want to have my service back, please give
me time to post and get credits back again. that may take awhile, becdaus i will post god posts and
not just everywhre. please let my site live again. jman jerry /ph34r.gif' border='0'
style='vertical-align:middle' alt='ph34r.gif' /> Edited topic title to meet TOS. ...
Looking for Php, Files, Acting, Up
|
|
Searching Video's for Php, Files, Acting, Up
|
advertisement
|
|