Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
  Advanced Search
  HOME    TRACKER    PHP


SuperbHosting.net have generously sponsored dedicated servers to ensure a reliable and scalable dedicated hosting solution for BigResource.com.





CHMOD 777 - Page Cannot Be Displayed. Why?


I have placed a CHMOD 777 on a folder and now all of the files inside that folder return 'page cannot be displayed' error, an internal server error (500).

I have tried on individual files as well.. the same thing happens. Anyone know what is going on?




View Complete Forum Thread with Replies

Related Forum Messages:
Page Not Displayed!
I have a site in PHP with a page 'approveMembers.php' within 'approve' directory under the site directory. This site has been hosted on net. Now the problem is when i access this page from my machine that uses a proxy server to connect to the internet, the contents get displayed properly.

However, when i use a machine that connects to the internet directly (without using a proxy), the contents do not appear in the page even though the status bar read 'Done' after loading the page. Code:

View Replies !
Page Cannot Be Displayed
OS: Windows 2003 Server
Program: EasyPHP1.8

Changed port to 81 in httpd.conf, rebooted and everything....

127.0.0.1:80 still connects to the index page
127.0.0.1:81 doesnt connect (Page cannot be displayed)
192.168.1.181:80 & 192.168.1.181:81 doesnt connect either (192.168.1.181 is the computers IP)

Is there any configuration I have to do with Windows Server 2003? This is all after a clean install of the OS. Firewall is off (default) or anyone have any advice what the problem could be?

View Replies !
The Page Cannot Be Displayed!
I have a problem when try to upload a quite BIG file (more than ~600K, less than 600K is OK). My browser said : "The page can not be displayed" - in IE and "The connection was reset" - in Mozilla Firefox.

Have someone found the problem like this before? And how can I solve it?? My very very simple code is:

View Replies !
PhpMyAdmin - Page Cannot Be Displayed
I programmed my config.inc.php file with the codes below. But i cant go to the website.. It shows an error msg, "page cannot be displayed"

What haf i done wrong.. N i m actually not sure about my local host.. Cos i m using my school wireless network..

$cfg['PmaAbsoluteUri'] = 'http://www.example.com/phpMyAdmin-2.5.7-pl1/'

$i = 0;

$cfg['Servers'][$i]['host'] = 'example.com' // MySQL hostname

$cfg['Servers'][$i]['port'] = ''

$cfg['Servers'][$i]['socket'] = ''

$cfg['Servers'][$i]['connect_type'] = 'tcp'

$cfg['Servers'][$i]['controluser'] = ''

$cfg['Servers'][$i]['controlpass'] = ''

$cfg['Servers'][$i]['auth_type'] = 'config' // Authentication method (config, http or cookie based)?
$cfg['Servers'][$i]['user'] = 'username' // MySQL user
$cfg['Servers'][$i]['password'] = 'my_pass' // MySQL password (only needed
// with 'config' auth_type)

View Replies !
Page Cannot Be Displayed Using Php.exe On Win2k
Im using php.exe on win2k. When I visit a php page i get page cannot be
displayed. Other pages work fine. Any ideas? the php dll wont work at all,
it refuses to read the ini file at all.

Really anonying, cant figure this out.

View Replies !
SQL Statements Displayed On Every Page
Every php page that queries my MySQL db outputs the SQL string on the result page. I just want to output the results. Code:

View Replies !
&JAVA - Page Cannot Be Displayed
I have installed j2sdk1.4.2_14 to work with my php-4.3.9-3.15. And i have follow all the step from head to tail.

Now, i suppose to just create a simple php coding on java function. When i exec the page...it did not show any error but just 'The page cannot be displayed'.

I hava added a line of : export LD_LIBRARY_PATH=/usr/java/j2sdk1.4.2_14/jre/lib/i386/server:/usr/java/j2sdk1.4.2_14/jre/lib/i386 to etc/init.d/httpd. Seems not working as well.

View Replies !
Hiding Hyperlinks For Page Displayed
Can anyone point me in a direction to find a tutorial on writing a script that will hide, (not show) The text link for the home page if my vistor is on the home page. i have read a book and they have on th4ere but it only deals with changing the type of image not disabling it and hiding it from veiw.

View Replies !
Pagination Displayed In One Long Page
My site is a virtual pet style site where there are user shops and at the moment all items are displayed in one long page, not so great when theres over 100 products in one store.

Below is a copy of the code. If anyone could please give me some pointers, Id really appreciate it. I've gone through tutorials but they seems to be to advaced for what I need and I simply get lost. Code:

View Replies !
Page Blank But No Errors Displayed
I have a script that's just returning a blank page. So I'm guessing I've got an error somewhere.

In fact I know I have because if I comment out one or two classes, I get an error message coming up. But why do I get a blank page at first? How come it's not giving me an error message for my obviously faulty class? Code:

View Replies !
Flip Flop The Displayed Page
I want to test different content on a landing page to see which my visitors like the most. Version A is to be shown 50% of the time, Version B to be shown 50% of the time.

So, visitor #1 gets shown Version A, visitor #2 is shown Version B, visitor #3 shown Version A and so on.

My idea is that I would have some code that would say include(content-a.php) or include(content-b.php) depending on which is due to be shown next.

View Replies !
Upload Something To Gets Displayed On The Pagination Page
I coded an upload system, and a pagination script. These 2 things are linked together so when you upload something it gets displayed on the pagination page. Now I want to make it so if the upload page is executed, then refresh the pagination page.

View Replies !
I Can't Get Info.php Working On PWS Win98 The Page Cannot Be Displayed
Can someone help me?
I have tried php-4.3.4-installer
I have tried php-4.3.4-Win32
If someone has PWS running PHP4 on windows 98
I would appreciate any help. thank-you

View Replies !
How To Limit Number Of Lines Displayed On The Page?
I just wrote this script to read information from a TXT file that contains list of JPEG files, and the list is rather huge. So I want to limit the number of displayed files to like 20 per page (with NEXT/PREVIOUS links to the next or previous 20), but I have no clue how to do it. Code:

View Replies !
Phone Number Is Not Displayed In The Paypal Page
I am using Paypal in my site. The problem is the phone number is not
displayed in the paypal page, but am sending the phone number in a
hidden value with the name "H_PhoneNumber".

Can anyone tell what could be the problem? Why am not getting Phone
number in the paypal page.

View Replies !
Linking Functions To Data Displayed On Page
I have a text input box, in which you can enter a user ID. You click 'find user' and this populates a table with this users details. So far pretty straight forward.

What I want, is a set of functions relating to this user, such as a simple button: 'Delete User' (the functionality of which is self explanatory). Code:

View Replies !
Page Cannot Be Displayed While Post Or Reply To A Topic
I can send emails through my forum can access Admin and change etc. for the first time ever the other night tried to post or reply to a topic and I get the below message I have tried everything I can think of. Code:

View Replies !
Page Cannot Be Displayed While Attach Images To Posts
i am including the ability for users to attach images to their posts. Now they can attach more than one image. First time round. the image gets uploaded and everything works fine. second time round though. i get a 'page cannot be displayed' error. The address in the address bar is correct. i just cant see why its working first time and not second. Anyone experienced this before or myt know why its happening?

View Replies !
Editor To Be Displayed On A Page Giving To The User
I want an editor to be displayed on a page giving to the user the chance to write anything he likes, and then save those contents and display then into an html page, which is exactly what i'm doing now, posting this new thread. How can i do that?

View Replies !
How To Control The Number Of Page Links Displayed With Pagination?
Does anybody know how to control the number of page links displayed with pagination?  I mean like, with the tutorial on this site, if I had, say 50 pages of results, it actually creates individual links for page 1-50.  How could I make it truncate say 1-5, and then an arrow to goto 6-11 and vice versa? Here is the code the tutorial uses

    for($i = 1; $i <= $numofpages; $i++){
        if($i == $page){
            echo($i." ");
        }else{
            echo("<a href="$PHP_SELF?page=$i">$i</a> ");
        }
    }

View Replies !
Session :: Problems With This Web Page Might Prevent It From Being Displayed Properly
when i add php session

<?
session_start();
header("Cache-control: private"); // IE 6 Fix.
?>

I just get this error "Problems with this web page might prevent it from being displayed properly bla bla". Of course am adding those lines just the first thing in each page b4 anything else. so am getting that error in pages that have template applied to it.

and when i delete the session lines it just back to normal. So i dont get whats the problem with the session.. there is no other way of writing it. and the session is working already properly in another project on same computer. am using php & IIS.

View Replies !
PHP Pages Getting 404 Error, "Page Cannot Be Displayed"...
I tried putting this into the PHP Installation forum but don't get any answers or suggestions there so I'm going to try it here and hope it doesn't get moved.

I'm on a Windows 2003/PHP 5.22 setup.  I'm TRYING to upgrade from PHP 5.02 which did work on my server and quite well.  I followed the upgrading and installation instructions layed out on the PHP.net set -- I still can't get it to work.

The install dumped all the PHP related files under "c:program filesphp".  I've ensured that path is in my windows PATH statement for my env vars.  I've also verified that "c:program filesphpphp-cgi.exe" is in my Web Service Extensions listing in IIS and the status is set to "Allowed". 

From the command-line, I can execute my "test.php" file that has the phpinfo(); info function in it and it works fine.  It's only when I try to use my web browser to access the php file that I get the 404 error, "page cannot be displayed".  I know that IIS in general is working ok because I can point it to the default http://servername/iisstart.htm and it resolves to that page just fine.  It's only when I change it to http://servername/test.php (which has my phpinfo()) function in it when I get the 404 error.

My web server just doesn't seem to be interpretting PHP files anymore and I can't figure out why.

View Replies !
Size The Page Displayed To The Size Of The Persons Browser.
I would like to know if there is some code in php that will size the page displayed to the size of the persons browser.

View Replies !
No PHP Error. Just "Page Cannot Be Displayed"
I was wondering if someone could explain why I'm receiving this error. It's
like a 404 error but I think it might be something else.

Basically, I have a page where a user inputs his email address. The system
is supposed to look up the email address and send the associated password to
that email address. It worked up until a few months ago. Note that the
validation works. So, if the user tries to submit a blank text box, it
returns an error. If the email address is not found, it returns an error
"Email not found." But if the email is valid, it just dies. This code
worked a few months ago when I initially wrote it....

View Replies !
Chmod And Php
been looking around and can't find out how to chmod a file in php

how do i do this and thanks

View Replies !
Use Of Chmod
I have problem with:
$ff=dirname(__FILE__);
chmod("$ff/uus", 777);
chmod("uus", 777);

which can I not change the directories? I work on a site on a place, where I cannot upload files to the main dir, therefore I create subdirectories for that... and set them using this. At least, that is what they say I should do. Still the code above...

View Replies !
What Is CHMOD 777
I am trying to add an upload section to a website ... so users can upload / download files such as newsletters etc, i have found a couple of php sites offering the files for use to do this, but all say 'CHMOD it 777'. What is this? How and where do i set this? They all seem to say 'its so simple'.

View Replies !
Php Chmod?
say i have a php script that i access via the web and that creates a
file whose permissions are changed to 600 (ie. only the owner can read
or write the file). when i try to download the file with the
webbrowser... i can. what i want is to not be able to download the
file, itself. i only want the php script i wrote to download the
file... how could i do this? is it simply a matter of changing the
permissions?

anyways, here's my code:

<?
system("ls -l > test.txt");
chmod("test.txt", 0600);
?>

View Replies !
CHMOD 777
In order to install this, certain files need to be set to CHMOD 777, but due to the host, we cannot edit this. We contacted them and they told us to create a php.ini file with mod_rewrite enabled, they told us to do this, but not how to do it....
If I were to unzip the files on my website, change the CHMOD to 777 on the required files, compress them again, and unzip them on my friends website, will the files still be on CHMOD 777? Or, is their another way to change the CHMOD?

View Replies !
Chmod()
Quote:

Warning: chmod(): Operation not permitted in /home/*****/public_html/test.php on line 73

Safe Mode is off. Not sure what else to check?

View Replies !
CHMOD
I'm creating a script that will work in many servers, and there's this part,
where you can update a list, so the script goes from the client's machine to
the central server, opens the file, and in adda line by line in the client
server, it's all working fine, but there's a problem, this list, can't be
available to others, because if I do this: Code:

View Replies !
Want Only 100 Words Displayed
I want to display data collected from mysql in a table-cell but I want no more than 100 words to be displayed, there will be a link to the full story in the cell.

View Replies !
Incorrect Id Value Being Displayed
Can anyone tell me why the $list_id variable is passing the last value in the DB and not the list_id associated with that row?

When $featured == 'true' the list_id displays correctly but when i try to submit it it displays the last $last_id in the DB. PHP Code:

View Replies !
PHP File GETS DISPLAYED And Nothing Happens
When i try linking an html form to a php file for further work, just the CODE of the PHP file GETS DISPLAYED and nothing happens!!...what could it be?...im using internet explorer to test the scripts.

View Replies !
Everything After ' Character Is Not Displayed
I have been getting strange behaviour when using ' in by textboxes.

eg inputting the following
this is some test text ' and so is this

is saved to the mysql database ok as

this is some test text /' and so is this (with add slashes)
or
this is some test text ' and so is this (without add slashes)

mysql field is VARCHAR(255)

but when I retreive the data and display in textboxes on my web page, text
area type (below) is ok
<textarea class='BodyText' style='WIDTH: 85%' name="textarea"><?php echo
$opta; ?></textarea>

but input type (below) cuts everything off after the ' character. However
this does not happen with other characters such as " or /
<input type='text' class='BodyText' style='WIDTH: 85%' name='test'
value='<?php echo $opta; ?>'>

can anyone explain this behaviour and have a solution so that text with any
' characters in it is fully displayed?

View Replies !
No PHP Displayed In Browser?
I am new to setting up servers and am tring to set up a server to test my websites so I do not have to rent web space anymore.

I have Apache 2.0.55 running on my machine now. I used the windows install version because I do not know how to build it from the source. I have configured PHP 5.1.1 like the install files explained. the service starts without any errors that I can see.

My problem is when I try to test a simple PHP script I get nothing in my browser. The browser will display regular html though. If from a command prompt window I type php -i I get the list of settings I am suppost to see in my php script with phpinfo(); .

Can anyone tell me what I missed or something to try and help?

View Replies !
Blank Row Displayed
The code for the page displayed below functions correctly, except for one thing; a blank row appears at the very top of the page, ahead of all of the rows that contain actual data that is contained in the database table that that I am trying to display. Code:

View Replies !
No Errors Displayed
I've just completed an install of PHP5 on Apache 2.2 and alls working fine (remarkably) but I'm getting no PHP errors displayed on faulty pages, i.e. on a 'proper' web server, when I screw up (frequently) I get a page describing the problem but with my local installation I just get a blank page. I'm sure this will be a setting in Apache and/or PHP but thought I'd got them right. can anyone suggest where I might be going wrong?
This is PHP5, Apache 2.2 on Windows XP.

PHP and Apache are the very latest versions (downloaded this morning). I've already editing the php.ini file to show 'on' for both error reporting and error display but it doesn't seem to make any difference (and rebooted). Errors *are* being logged properly to the Apache error.log.

View Replies !
Source Displayed
I have just installed Apache 2.2 and PHP 5.1.4 on my Win XP Pro machine. If I run phpinfo(), it displays everything correctly. However, on a page where I have included a file that contains some functions, it merely shows the contents of the included file instead of running the function. For instance, I have a function called do_html_header() that
does just what the name suggests, and I've used it for quite a while. The top of my page looks like this:

<?php
include_once("functions.php");

do_html_header("Terms");
?>

However, when I view the page source, the actual PHP code is displayed, not just the HTML that it is supposed to display. It would seem that PHP is installed correctly since phpinfo() works fine. Is there something else I'm missing?

View Replies !
Mysql_error() Not Being Displayed
I have developed an error page which I want to include a MySQL error message from another page from: I use the header function to transfer to another page if there is an error:

$link = mysql_connect ('localhost',"root","wrong password")
or header("Location: http://localhost/cd/complaint_management_system_error.php");

I have 'echo mysql_error();' on my error page, but nothing is displayed.

View Replies !
Chmod, Chgrp, Ch-help
Here are the facts:
Host: www.hostrocket.com
Issue: can't chmod a directory through php code.
Facts:
I set up a subdomain using my hosts tool. This creates the folder and a cgi-bin subfolder. The owner and group are set to my user id for my host.

I have existing information in another folder that is copied over into the new subdomain folder. The old folder was created in code and owner/group was "99" - I think that represents "nobody."

If I want to alter the data in the subdomain folder via code, I can't. I have to chmod to 0777 via my ftp program first.

What I have tried:
1.) chgrp ("../subdomainname", "nobody");
2.) chgrp ("../subdomainname", "99");

Trying number 1 got me "chgrp failed: Operation not permitted. " Number 2 got me "can't find gid for 99," I think.
I also tried the normal:
chmod ("../subdomainname" , 0777);

Question (I guess). How do I change my owner/group from my user ID to "nobody?" If I can't do it in code, can I do it in ftp? I've trie with no luck. Other options?

View Replies !
CHMOD A Folder To 777
I've currently set up my home computer to run as a server(Apache, PHP3 etc etc) and have been downloading a lot of scripts.

In the install instruction for a lot of these scripts it says to CHMOD a folder to 777. Now I'm very inexperienced in php. I do know you can do this from your ftp program. But how can i do this when the folder is on my computer.

View Replies !
Chmod A Directory
How can I chmod a directory to 0777. I tried chmod ($myDirectory, 0777); but nothing happens.

View Replies !
Chmod() Problem!
Warning: chmod failed: Operation not permitted in /home/dualsoft/public_html/admin/admin.php on line 1029.

Warning: Cannot add header information - headers already sent by (output started at /home/dualsoft/public_html/admin/admin.php:1029) in /home/dualsoft/public_html/admin/admin.php on line 1030.
Well, everytime I try changing the chmod of a file using chmod() I get this error.
The file have to all ready be in a certain mode before it can be changed externally.

View Replies !
CHMOD In Windows?
I need to change the attributes of a file from 700 to 777. But Windows no likee CHMOD (UNIX command).

View Replies !
Chmod Functions
I'm currenty developing a CMS library in PHP and MySQL. The thing I
wan't is a chmod like system on the forum; the categories and forums
work like *nix directories and threads as files. Does anyone have any
ideas on how I should construct the methods for read and write the octal
value.

An idea is the "chmod_read($int_octal)" returns an array;
array(read => true, write => false);

View Replies !
Bug With Chmod() Function In PHP V4.1.2?
Does anyone know a specific bug with the chmod() function in PHP v4.1.2?

For example: chmod("somefile", 0700) will result in the file somefile having very odd permissions that do not reflect the second function parameter. PHP owns the file, so it shouldn't be a problem with permissions.

View Replies !
What CHMOD Do INC Files Need ?
I'm hosted on a Cobalt RAQ3 server and I'm going mad trying to make work (create, edit or delete) my INC files. I believe it depends maybe on the wrong CHMOD (664 as default also for my PHP4 files). What CHMOD do they need? And the related directories?

View Replies !
Chmod Access
I have root access to my LINUX server and I want to know what I need to set up on the server to allow me use PHP coding to perform chmod functions via the web Can some one point me in the right direction with either some samples or URL describing this.

View Replies !
Chmod() (diabled?)
I get a disabled error when attempting to use the chmod() function on a unix/apache server... In additon, I get an access denied when attempting to you use the touch() function. In short, they don't seem to work? How do I get around this?

The only time I seem to be able to set a mod, is when I'm actually creating a directory, what's more.. it seems that I'm unable to write to a directory, unless that directory has a 0777 mod applied.

(which shouldn't be the case, I should actually be able to set a directory mod to 666, or 766, etc.. but, any setting other than 777, and I can hang up trying to write, copy, delete, etc..)

View Replies !
Upload And Chmod
I have been here before a few days ago with a similar problem, but have changed this upload script in the mean time. I'm using WS_FTP LE and have "Read" and "Write" permissions as "Owner" to the directory where the file should be placed.

When I try to upload a correct file, I get the "Could not upload the file"-error message and nothing is uploaded. When I try to upload a file that is e.g. too big I get the right error message and the file is rejected as it should.

I guess problem has something to do with permissions to the file, something to do with changing the files chmod to something (777?) and back (to what?), but how can I do that in the script? I know very little about using chmod (the manual does not help very much on that point, I think). PHP Code:

View Replies !
Can't CHMOD 775 A File!
I'm using Windows XP Professional and have no FTP installed. Instead, I use Command Promt. I need to CHMOD a PHP file, so I type "CHMOD 775 file-path",but get "'CHMOD'is not recognized as an internal or external command,operable program or batch file"!Is this because I spelled it wrong?Or is it the computer's problem?

View Replies !

Copyright © 2005-08 www.BigResource.com, All rights reserved