Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - abdoh2010

Pages: 1 2 [3] 4 5 6 7
31
Installation, Update & Configuration / 4images 1.7.5 ?
« on: March 29, 2007, 06:06:29 AM »
i'm thinking about upgreading my 4images 1.7.1 to 1.7.4
but there is a lot of modification i must do if i will do that
so before i start do that i was wandering if 4images 1.7.5 will show up in next few days or months ?

is it ?

32
Installation, Update & Configuration / watch video from the 4images ?!
« on: March 29, 2007, 06:04:24 AM »
it will be cool if visitors can watch videos at 4images like youtube thing  :mrgreen:

i'm trying to do that but i find out that it's a big thing
it didnt hold me down but it will need a lot of work

33
Discussion & Troubleshooting / Re: uploading to up to 500Mb ?
« on: March 29, 2007, 05:50:38 AM »
also, my max files size at the settings is 200000000000000000

so it's not that also

34
Discussion & Troubleshooting / Re: uploading to up to 500Mb ?
« on: March 29, 2007, 05:45:43 AM »
by the way i did the php.ini modification to make it able to upload up to 600Mb

35
Discussion & Troubleshooting / uploading to up to 500Mb ?
« on: March 29, 2007, 05:41:08 AM »
now i know that some of you will say: do it by ftp.
but that is not the answer that i'm seeking for



my question is:
how and where can i modify the original 4images php code so it could upload files up to 500Mb in the 4images control panel ?


36
Installation, Update & Configuration / upgrading from 1.7.1 to 1.7.4
« on: March 07, 2007, 08:10:07 AM »
i have a question

i have a 1.7.1 custom version from 4images with custom database
i would like to upgrade to 1.7.4 so is it just change the files ? or there is upgrade in the database also ?
if there could anyone tell me what is the upgrade queries ?

37
Discussion & Troubleshooting / Re: download files more than 200 M ?
« on: December 17, 2005, 03:23:29 PM »
Dear V@no

using the MOD 'Files Check' that you made solve the rest of my problems
now every thing is ok with the modification that you made for download.php

so i just want to say

thank you  :)

38
Discussion & Troubleshooting / Re: download files more than 200 M ?
« on: December 17, 2005, 06:35:38 AM »
after rechecking i find out that the problem is not with your code

the problem is that there is some files on the server that 4images can not find, like thery are not exist, but they are there.

i will try to fix this thing by editing database

39
Discussion & Troubleshooting / Re: download files more than 200 M ?
« on: December 16, 2005, 10:48:54 PM »
waiting for you V@no  :)

40
Discussion & Troubleshooting / Re: download files more than 200 M ?
« on: December 16, 2005, 12:00:01 AM »
No

I change the code to the following
Code: [Select]
    elseif (!$file['file_size'] = get_file_data($file['file_path'], 1)) {
      ?>
  <script language="JavaScript" type="text/javascript">
  <!--
  function beginDownload() {
    idl = -1;
    idl = location.search.indexOf("idl=n");
    if (idl < 0) document.write('<iframe height="0" width="0" src="<?php echo $file['file_path']; ?>"></iframe>');
  }
  window.onLoad=beginDownload();
  //-->
  </script>
  <noscript>
  <iframe height="0" width="0" src="<?php echo $file['file_path']; ?>"></iframe>
  </noscript>

      <?php
      
exit;
    }

And its work, but I have two problems

The first one is when I click on download button it move me on new Waite page.

the second problem is when I add
Code: [Select]
<meta http-equiv="Refresh" content="0; URL=<?php echo $site_sess->url($url"&"); ?>"> it give me the same Waite page raptly

I would like when I click on the download button the small download windows come immediately in the same detail page with out moving to Waite page

41
Discussion & Troubleshooting / Re: download files more than 200 M ?
« on: December 15, 2005, 11:08:10 AM »
sorry for lat

i was out of town

the site is back again if you would like to see the link again


the problem is that refresh is come repetly with out stop and the webpage is this

Code: [Select]
      <script language="javascript" type="text/javascript">
      <!--
      window.open('http://www.racing4e.com/data/media/51/Riyadh%20Event.zip','imagewindow','toolbar=yes,location=yes,status=yes,menubar=yes,scrollbars=yes,resizable=yes');
      // -->
      </script>
      <meta http-equiv="Refresh" content="0; URL=">
      Error with download
<!-- NO FILE DATA / FILE NOT FOUND //-->


also the new window is open repetly in visable and with out downloading the file
just open new visable window and close it and opening another window again and again


42
Discussion & Troubleshooting / Re: download files more than 200 M ?
« on: December 13, 2005, 10:06:36 AM »
I tried it and it's technically work but I think that there is something wrong with this code
Code: [Select]
  if (!empty($file['file_path'])) {
    @set_time_limit(120);
    if ($remote_url) {
      header("Location: ".$file['file_path']);
      exit;
    }
    elseif (!$file['file_size'] = get_file_data($file['file_path'], 1)) {
      ?>
      <script language="javascript" type="text/javascript">
      <!--
      window.open('<?php echo $file['file_path']; ?>','imagewindow','toolbar=yes,location=yes,status=yes,menubar=yes,scrollbars=yes,resizable=yes');
      // -->
      </script>
      <meta http-equiv="Refresh" content="0; URL=<?php echo $site_sess->url($url"&"); ?>">
      <?php
      
echo $lang['download_error']."\n<!-- NO FILE DATA / FILE NOT FOUND //-->";
      exit;
    }


You can test it and see by your self

The default code
http://www.racing4e.com/download.php?image_id=1266


After modify the file
http://www.racing4e.com/download1.php?image_id=1266

43
Discussion & Troubleshooting / Re: download files more than 200 M ?
« on: December 13, 2005, 09:23:16 AM »
waw waw waw

you really save the day  :D

for the zip types download i will disable it any way ,, it will save me resource
and for the remote type ,, all my downloadable files are on my website

i will test it and reply to you,

44
Discussion & Troubleshooting / download files more than 200 M ?
« on: December 12, 2005, 06:00:33 PM »
after researching i find out that the problem is start with this code inside download.php witch download by buffering witch will not serve me with files more that 200 M,
Code: [Select]
function get_file_data($file_path) {
  global $script_url;
  ob_start();
  @ob_implicit_flush(0);
  @readfile($file_path);
  $file_data = ob_get_contents();
  ob_end_clean();
  if (!empty($file_data)) {
    return $file_data;
  }
  elseif (is_remote_file($file_path)) {
    $file_data = get_remote_file($file_path);
  }
  else {
    if (!file_exists($file_path)) {
      $file_path = preg_replace("/\/{2,}/", "/", get_document_root()."/".$file_path);
    }
    if (file_exists($file_path)) {
      $file_size = @filesize($file_path);
      $fp = @fopen($file_path, "rb");
      if ($fp) {
        $file_data = @fread($fp, $file_size);
        @fclose($fp);
      }
    }
  }
  if (empty($file_data)) {
    if (ereg("^\/", $file_path)) {
      preg_match("/^(http:\/\/[^\/]+)/i", $script_url, $regs);
      $script_url = $regs[1];
    }
    $file_data = get_remote_file($script_url."/".$file_path);
  }
  return (!empty($file_data)) ? $file_data : 0;
}
so i start a thread on webhostingtalk asking for new code witch may serve me and we finally agrae that the best way is by this code
Code: [Select]
$handle = fopen("http://www.example.com/", "rb");
$contents = '';
while (!feof($handle)) {
    $contents .= fread($handle, 8192);
    // do something else
}
fclose($handle);

i tried to use it on the funcation but i didnt get it right

so can any one help me with it please ?

45
how to insert search.php?search_keywords in the url friendly ?

any one please ?

Pages: 1 2 [3] 4 5 6 7