User Profile

Collapse

Profile Sidebar

Collapse
bobzillaforever
bobzillaforever
Last Activity: Mar 20 '08, 07:26 PM
Joined: Mar 16 '08
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • Issue solved. It ended up having nothing to do with Drupal. I was unaware of the different ways a document root could be delivered. And unaware of how to use fread(), so my method of error-checking was faulty. My main issue was trying to get file_exists() to work.

    I solved by changing:

    [PHP]$fileCheck_url = base_path() . '/files/sundays/' . $yy . '/' . $mm . '/' . $yymmdd;
    //prints /drupal-6/files/sundays/2008/02/20080209[/PHP]To:...
    See more | Go to post

    Leave a comment:


  • Oops. To clarify, I haven't had any resolution yet. I will, however, continue working on this issue in the forums on Drupal's site, as I'm thinking that might be where my error starts. Thanks....
    See more | Go to post

    Leave a comment:


  • Apologies. base_path() is a Drupal function, returning (in this case) "/drupal-6/". I was trying to clean the irrelevant stuff from my code.

    Same problem. I was trying to clean it up, and insodoing erased something important.
    [PHP]$test = '/sundays/files/sundays/' . $yy . '/' . '/' $mm '/' . $yymmdd . '.txt';[/PHP]
    Thank you, Ronald.

    David...
    See more | Go to post

    Leave a comment:


  • error "supplied argument is not a valid stream resource" with fread()

    I'm unable to get the file(s) in question to read with file_exists(), fread(), or probably any similar function. I've tried it with .txt, .flv, .pdf, .mov, .mp3, and .wmv. I've tried removing the following from my .htaccess file to no avail.

    Code:
    <FilesMatch "\.(engine|inc|info|install|module|profile|po|sh|.*sql|theme|tpl(\.php)?|xtmpl)$|^(code-style\.pl|Entries.*|Repository|Root|Tag|Template)$">
      Order allow,deny
    ...
    See more | Go to post
No activity results to display
Show More
Working...