vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Beta Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=5)
-   -   Cache Cannon - Search Engine friendly + plus archive tool. (https://vborg.vbsupport.ru/showthread.php?t=36000)

99SIVTEC 03-24-2002 03:53 PM

Please wait... doing page 1

Warning: MkDir failed (Permission denied) in /home/sportcom/public_html/vbulletin/admin/cachecannonfunctions.php on line 44

Warning: MkDir failed (No such file or directory) in /home/sportcom/public_html/vbulletin/admin/cachecannonfunctions.php on line 51

Warning: MkDir failed (No such file or directory) in /home/sportcom/public_html/vbulletin/admin/cachecannonfunctions.php on line 51
Dumping to ../archive/f_19/t_298/p_3335.htm

Warning: fopen("../archive/f_19/t_298/p_3335.htm", "w") - No such file or directory in /home/sportcom/public_html/vbulletin/admin/cachecannonfunctions.php on line 94
error opening file

I got that error after installing and attempting to run. I'm on a linux server and it appears to be permissions problems. What would I do to remedy this?

buro9 03-24-2002 04:13 PM

line 44 is part of the following:

PHP Code:

function dumpFile($dirArray,$fileName,$content) {
  global 
$path;

  
// Path to where ALL dumped files will start
  
$thisPath $path;

  
// Create $path if it does not exist
  
!file_exists($thisPath);
  if (!
file_exists($thisPath)) {
    
mkdir($thisPath,0755);
  }

  
// Create directory structure as per $dirArray
  
foreach ($dirArray as $dir) {
    
$thisPath $thisPath "/" $dir;
    if (!
file_exists($thisPath)) {
      
mkdir($thisPath,0755);
    }
  }

  
// Append .htm if $fileName has no extension
  
if (!strstr($fileName".")) {
    
$fileName $fileName ".htm";
  }

  
// Put togther the full path and file name
  
$fileName $thisPath "/" $fileName;
  
  
// If $content is empty, there's been an error, output
  // <!-- NULL --> to show that the cannon has at least
  // fired successfully and to prevent the creation of
  // zero byte files.
  
if (strlen($content) < 2) {
    
$content "<!-- NULL -->";
  }

  
// Print status
  
echo "Dumping to ".$fileName."<br>";
  
  
// Write file
  
writeFile($fileName,$content);


specifically it's the first mkdir line.
if a directory doesn't exist, it will attempt to create it.
it probably failed on the first iteration of this... that's the 'archive' directory if you kept the defaults.

what this means is that you need to make the 'forum' directory local writeable so that the script can create the directory.

once it's got one created, the others should be fine as it assigns the relevant permissions as it goes.

you can change the permissions on the forum directoy by telneting in and using the chmod command, something like:

chmod 0755 forum

this should solve it

cheers

david k

boatdesign 03-31-2002 10:47 PM

Very nice! I am excited to see how this progresses. Exactly what I was looking for in my attempt to make my forums more search engine friendly yet at the same time not risk overloading the SQL server due to mod rewrite full speed spiders...

fastforward 04-05-2002 09:53 PM

How is this progressing Mr Buro9? I'm waiting patiently. :)

99SIVTEC 04-08-2002 12:16 AM

Awesome job on this hack. I have it installed over at http://www.sportcompactracing.com/vb...hive/index.htm and at www.haiparts.com/vbulletin/archive/index.htm

The only thing I can suggest is for you to allow us to specify the number of posts to INDEX at once. Mine does fine pulling the threads from the forum, but when it comes to indexing it always times out before it finishes.

JackG 04-17-2002 10:00 PM

Hi, I also get the permission error -
But on my Windows IIS the SYSTEM is given
Full Control. Am i missing something?

Thanks in advance.

buro9 04-18-2002 07:04 PM

Bad news for you all I'm afraid, I've been fighting with safe_mode for the past few weeks and I simply cannot code around it.

Believe me I've tried.

safe_mode is on at my host, and the person I was really making this for also has safe_mode on (though I didn't really appreciate the implications of that!).

Without a way to write files, overwrite them, delete from within PHP and without root permissions this is of no use to me.

As such I'm going to stop development.

It's heavily commented and pretty cleanly laid out (not bad for my first php stab) so if anyone else wants to pick it up, please feel free.

It's good enough to work on all non-safe_mode boxes, and with small tweaks you could add the other features that I had intended.

And if you ever need to to splurge files onto a docroot, it's quite neatly in here ;)

Hope this isn't too much of a blow, but you must appreciate that I've been trying to make this hack for myself, someone here and a few other vb users... all of whom this is useless to.

Though I am considering writing the same thing in PERL and ASP so that we can all have it anyway but not get restricted by a silly option in php.ini

Cheers and thanks for the support... not a bad experience for a first hack, so I'll be tempted to try another one equally ambitious soon ;)

Cheers

David K

http://www.buro9.com/forum/

jamesdasher 04-18-2002 07:51 PM

Hey, buro9 I am not all that good at this kind of thing, but I did like where you were going with it and would like to work with it more. Could you email me what you have?

jamesdasher@wwdb.org

Thanks

James

Learner29 05-02-2002 03:44 AM

dommage......

it was great to read you guys all over from the very beginning of overgrow's thread to here...

filburt1 07-08-2002 12:06 AM

It's not working for me:
Quote:

Warning: Unable to jump to row 0 on MySQL result index 6 in d:\web\flatfile\admin\cachecannon.php on line 53
So every single file generated has <!-- NULL --> in it and nothing else.


All times are GMT. The time now is 06:17 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01185 seconds
  • Memory Usage 1,749KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_php_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete