Jump to content

jpistone

Members
  • Posts

    7
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

jpistone's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. Okay, Ray, it's inside the public_html folder, but now I'm wondering how the system identifies who's accessing the directory/file. This is where I think I'm messing up. When someone uses my upload.html page to browse and upload a file, how does the system know who that is for permission checks? That, from what you're saying is the 777 situation, right? How would I identify that user as a member of "group" instead(so, 775)? (As you can see, I'm new to this-- also, I still don't understand why I got away with this last week up until this Friday). Thanks for your help here.
  2. Thanks, Craygo. If they curtailed 0777s though, wouldn't that preclude me from creating the folder and uploading the file initially? ...something I can do here...this is what's got me perplexed. BTW, What does "bad file descriptor" mean?
  3. Hi all....I'm at wits end with my hosting company (otherwise good) regarding uploading trouble. I'm uploading a file to a directory called "uploads" with permissions set to 0777. The upload checks to see if a directory is created within the "uploads" directory. If it isn't, it creates it: mkdir(<path>,0777) then uploads the file into it. This works fine. The problem however is once done, I can't modify or delete or upload any other files into the same directory as the permissions have been changed from 0777 to 0755. It won't let me alter these either using PHP (chmod) or an ftp client such as SmartFTP. While it sounds like an issue on the hosting company's part I'm at a loss where to go next. The error message I get are as follows: 550 Rename/move failure: Permission denied and 550 Could not delete dec042006.doc: Permission denied and SITE CHMOD 777 dec042006.doc 550 Could not change perms on dec042006.doc: Bad file descriptor I'm unable to track down pertinent information here from searching the board...any pointers in the right direction would be tremendously appreciated...One more thing...I was setting this up last week and had no trouble at all doing any of the above...the problems began last Friday and I can't see any coding changes I've made in PHP that would cause it to begin. Thanks!
  4. Not sure if this belongs in this forum, but I'm trying to format messages to Text Messaging for Cell Phones. As I duplicate the message, it behaves appropriately going to standard email, but I'm having a little trouble getting it to behave as a text message on a cell phone. In the message body, a "\n" at the beginning doesn't get me a new line as it does anywhere else in the body. Also, I can't change the "from" from nobody@myServer to my own email account, although that works fine in the duplicate sent to standard email. Anyone familiar with this or know a forum that might be more appropriate? I've followed the manual on this but it seems Cingular's system works around it. Thanks in advance.
  5. My hosting company recently upgraded to PHP 4.4.2, and I'm now receiving the following message: [b]Warning: Unknown(): Your script possibly relies on a session side-effect which existed until PHP 4.2.3. Please be advised that the session extension does not consider global variables as a source of data, unless register_globals is enabled. You can disable this functionality and this warning by setting session.bug_compat_42 or session.bug_compat_warn to off, respectively. in Unknown on line 0[/b] I've fixed the code to make things work okay, but the message still appears only once at the start of a session, and only when the browser (Firefox's most recent release for XP and Mac OS X) is restarted. If I log out and destroy session variables, I get no message...only when I restart the browser and the php script starts a session. Is this just a general warning regarding deprecaded code or is it pointing to something in my code that it doesn't find compatible? Variables are registered appropriately (I think).... [b]session_start(); $username = $HTTP_POST_VARS['username']; session_register("username"); $HTTP_SESSION_VARS["username"] = $username;[/b] Thanks in advance.
  6. [!--quoteo(post=374109:date=May 15 2006, 07:44 PM:name=ryanlwh)--][div class=\'quotetop\']QUOTE(ryanlwh @ May 15 2006, 07:44 PM) [snapback]374109[/snapback][/div][div class=\'quotemain\'][!--quotec--] add this header to the script [code]header("Cache-Control: no-cache, must-revalidate"); // HTTP/1.1 header("Expires: Mon, 26 Jul 1997 05:00:00 GMT"); // Date in the past[/code] [/quote] Hey, thanks, ryanlwh! I was hoping it would be short 'n sweet!
  7. Is there a way to overwrite a client's cache file? Suppose I have a file called "recent.pdf" and replace it daily., but keep the same name. When someone goes to the site, the browser calls up the cached version (yesterday's) instead of the newer one. Short of redesigning things, is there a quick fix to overwrite the file from the same originating site with the same name? Would a cookie do it? Thanks.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.