Jump to content

firestarapple

Members
  • Posts

    10
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

firestarapple's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. I am having problem with my search engine. It seems to work fine in PHP 4 but not in PHP5. The error was: Warning: unpack() [function.unpack]: Type N: not enough input, need 4, have 1 in /var/www/vhosts/newsweekshowcase.com/httpdocs/newsweekshowcase/site-common-files/index-template-b(59) : eval()'d code on line 174 No fread2 Below are some of the codes:+ for ($j=0; $j<count($query_arr); $j++) { $query = $query_arr[$j]; $allres[$j] = array(); if ($INDEXING_SCHEME == 1) { $substring_length = strlen($query); } else { $substring_length = 4; } $hash_value = abs(hashnew(substr($query,0,$substring_length)) % $HASHSIZE); fseek($fp_HASH,$hash_value*4,0); $dum = fread($fp_HASH,4) or die("No fread"); $dum = unpack("Ndum", $dum); fseek($fp_HASHWORDS,$dum['dum'],0); $dum = fread($fp_HASHWORDS,4); $dum1 = unpack("Ndum", $dum); for ($i=0; $i<$dum1['dum']; $i++) { $dum = fread($fp_HASHWORDS, or die("No fread2"); Why this error appear?Please help!!!
  2. anyway i solve my problem already..thanks
  3. i want to know how to include template from other website, instead of same ip? i use include but it seems it cant access the function in that file. it displays "undefined function" error
  4. i manage to change the group permission, but it seems that it doesn't allow to create files in that new folder that i have created using mkdir. but if i login to ftp and manually create folder, new file can be created in this folder(the one i created manually when i login ftp). why is it like this? both folders contain same group permission and same chmod but why it allows to create file in that folder that i manually create when i login into FTP but not in that folder that i created using script (mkdir)? how to solve?
  5. now i realize the problem is the group permission and not the problem of creating file. i try to create file into other folders and file created successfully.and i check that the group of the file are different. for example, i cant create file in folder 1 but i can create file in folder 2.both are different group file permission. how can i change the group permission?i have try use chown but fail. any other method using php to change the group permission?
  6. touch(ROOTDIR.'/'.$section.'/advertisers/'.$tmpF."/apple.xml") or die("Cant create".ROOTDIR.'/'.$section.'/advertisers/'.$tmpF."/apple.xml");
  7. I have this problem. i use mkdir() to create a folder. after that, i use touch() to create a file but the file somehow cant be created. Why is it like this? The folder has chmod 777, why cant i use touch to create a file in this folder? how can i solve this problem in order to create the file?
  8. im using filezilla, yea..since it has cache. i totally disconnected, close it. then i reconnect again and it helps.
  9. i dont know why when i use mkdir to create a folder name Wine, it indicates that folder has been created, using script but when i use the ftp to see the folder is there, it does not exist. But after some time, when i use ftp again, the folder appears there. why is it like this? what makes it delay to appear in ftp?
  10. I am having problem with my CMS system because it won't update the changes i have done on the file.I dont know why since the CMS system was created by other programmer. When it checks "if (is_writable($filename))", it seems to display error message. What are the reasons behind that the file contents are not able to be rewritable? what are the settings i need to do? anybody, please help me!
×
×
  • 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.