• 03-12-2008, 11:54:11
    #1
    Kimlik doğrulama veya yönetimden onay bekliyor.
    arkadaşlar yabancı bir firmadan hosting aldım scripti kurdum görünürde bir problem yok ancak bazen linklere tıkladığımda şu hatayı veriyor.
    A PHP Error was encountered

    Severity: Warning

    Message: imagecolorsforindex() [function.imagecolorsforindex]: Color index -2147483648 out of range

    Filename: scripts/class.upload.php

    Line Number: 3374

    fakat sayfayı yenilediğimde bir sorun yok.
    hostingin forumuna konuyla ilgili yazdım. php sürümü 5 olduğundan .htaccess dosyasında bazı ayarlamalar yapmam gerekiyormuş.
    scriptimin orjinal .htaccess dosyasını aşşağıya koydum.

    Options +FollowSymLinks
    RewriteEngine on
    RewriteBase /
    RewriteRule ^$ /index.php [L]
    RewriteCond $1 !^(index\.php|install|img|smarty|images|scripts|fo nts|uploads|css|js|robots\.txt|sitemap\.xml|favico n\.ico)
    RewriteRule ^(.*)$ /index.php/$1 [L]
    RewriteRule (.*)-(.*)\.html$ wallpapers/show/$2
    RewriteRule (.*)-(.*)/$ categories/show/$2
    RewriteRule (.*)-(.*)\/(.*)$ categories/show/$2/$3

    sorun sanırım limitlerden kaynaklanıyormuş. sayfada çok fazla resim olduğundan sanırım hata veriyor. htaccess i nasıl değiştirmem gerekli? yardımcı olabilirmisiniz?

    hosting firmasının sunduğu çözümde aşşağıda yardımcı oursanız sevinirim

    Hi,

    In order to change your PHP 4 setting, from upload limit to register_globals just do the follow

    1) Create a file called .htaccess inside your public_html
    (Note: if you want to change PHP 5 settings, you need to put these values in a file called php.ini inside the folder of the php files and remove the php_value part)

    2) Edit it and add the line below in this format

    php_value value_name newvalue

    example:

    # to turn off register_globals
    php_value register_globals off

    # to change upload size limit to 100mb (Make sure add both lines below into htaccess)
    php_value upload_max_filesize 100M
    php_value post_max_size 100M

    # to change php script execution time
    php_value max_execution_time 1000

    # to turn mod_rewrite on
    RewriteEngine on

    ***YOUTUBE EXAMPLE FOR .HTACCESS***


    php_value upload_max_filesize 100M
    php_value post_max_size 100M
    php_value output_buffering on
    php_value max_execution_time 1000
    php_value max_input_time 1000
    php_value session.gc_maxlifetime 14400

    RewriteEngine On


    # Turn off mod_security filtering.
    SecFilterEngine Off

    # The below probably isn't needed,
    # but better safe than sorry.
    SecFilterScanPOST Off




    If you need further assistance do let us know.
  • 03-12-2008, 17:13:11
    #2
    ben buraya sorunumu yazdım googlede araken benim yazdığım metin başka bir sitede indexlenmiş bile
    arkadalar script hosting arasında bir problem var yardımcı olabilirmisiniz? | Diğer Sitelerden