1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

can anyone help me with this?

Discussion in 'PHP' started by Maksa, Feb 8, 2007.

  1. #1
    hi first of all i m sorry i don't know where to post these kind of thread. so Mr. Mod please bare with me

    after searching a lot at last i got free image hosting script from

    http://www.free-php-scripts.net/P/Free_Image_Hosting

    but now while installing it i am getting the following error.


    i know i am getting this error because of ".htaccess" file. if i delete that file installation is working but then getting errors in script. so can any one help me what should i do?


    here is my ".htaccess" file content

    php_flag register_globals off 
    RewriteEngine on 
    RewriteRule ^Terms_Of_Service$ index.php?page=tos [L] 
    RewriteRule ^FAQ$ index.php?page=f_a_q [L] 
    RewriteRule ^Contact_Us$ index.php?page=contact [L] 
    RewriteRule ^Privacy_Policy$ index.php?page=pp [L] 
    RewriteRule ^Login$ index.php?page=login [L] 
    RewriteRule ^Register$ index.php?page=register [L] 
    RewriteRule ^Forgot_Pass$ index.php?page=forgot_pass [L] 
    RewriteRule ^My_Account$ index.php?page=myaccount [L] 
    RewriteRule ^Log_Out$ logoff.php [L] 
    RewriteRule ^view_thumb/(.*)/(.*)$ view_thumb.php?id=$1&name=$2 [L] 
    RewriteRule ^EXPRESS/(.*)/(.*)$ view_comp.php?id=$1&name=$2 [L] 
    RewriteRule ^view_image/(.*)/(.*)$ index.php?page=view&id=$1&name=$2 [L] 
    RewriteRule ^DELIMAGE/(.*)/(.*)$ index.php?page=view&id=$1&action=delete&do=$2 [L] 
    RewriteRule ^DELIMAGE/(.*)$ index.php?page=view&id=$1&action=delete [L] 
    RewriteRule ^Report_File/(.*)$ index.php?page=contact&badname=$1 [L]  
    
    PHP:
    i'll be really happy if some one guide me sorry but i don't have cash to offer u

    if no one reply then Mr. Mod pls delete my stupid thread

    waiting
     
    Maksa, Feb 8, 2007 IP
  2. jwatsonl

    jwatsonl Well-Known Member

    Messages:
    368
    Likes Received:
    11
    Best Answers:
    0
    Trophy Points:
    125
    #2
    Love to help, but this is not my fortee' Might be worth hiring someone?
     
    jwatsonl, Feb 8, 2007 IP
  3. seoocean

    seoocean Well-Known Member

    Messages:
    1,029
    Likes Received:
    46
    Best Answers:
    0
    Trophy Points:
    160
    #3
    I think this is problem with the hosting server - try changing the .htaccess to htaccess.txt while you install and then change it back and see if it works !!
    ( Wont work if server doesnt allow re-write )

    Seo Ocean
     
    seoocean, Feb 8, 2007 IP
  4. mikekileanm

    mikekileanm Peon

    Messages:
    4
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #4
    You are right.
     
    mikekileanm, Feb 8, 2007 IP
  5. Correctus

    Correctus Straight Edge

    Messages:
    3,453
    Likes Received:
    389
    Best Answers:
    0
    Trophy Points:
    195
    #5
    Correctus, Feb 8, 2007 IP
  6. sarahk

    sarahk iTamer Staff

    Messages:
    28,500
    Likes Received:
    4,460
    Best Answers:
    123
    Trophy Points:
    665
    #6
    I'd always put a rewrite base command in. Might be the solution...
     
    sarahk, Feb 8, 2007 IP
  7. Maksa

    Maksa Well-Known Member

    Messages:
    833
    Likes Received:
    21
    Best Answers:
    0
    Trophy Points:
    120
    #7
    i did that installation worked. but you know what after installing it i m getting error like before while uploading image....

    can u check it once please

    and afer that this is wat i get as 2nd error.

     
    Maksa, Feb 8, 2007 IP
  8. Maksa

    Maksa Well-Known Member

    Messages:
    833
    Likes Received:
    21
    Best Answers:
    0
    Trophy Points:
    120
    #8
    Maksa, Feb 8, 2007 IP
  9. krakjoe

    krakjoe Well-Known Member

    Messages:
    1,795
    Likes Received:
    141
    Best Answers:
    0
    Trophy Points:
    135
    #9
    There's nothin wrong with that htaccess the syntax is correct and it should work.

    So upload a .htaccess file with just
    RewriteEngine On
    Code (markup):
    in and see what happens, don't try changing register globals, the chances of it being on are next to none anyway, when you're done, please upload a php script named info.php into the dir with the .htaccess and place
    <? phpinfo(); ?>
    Code (markup):
    in it and post a link so I can have a looky......

    There's a possibility youre using phpsuexec, in which case any script that writes to disks ( or is accessed in a browser ) needs to be executable and chmodded to 755, show me phpinfo and I'll tell you what to do next .....
     
    krakjoe, Feb 9, 2007 IP
    sarahk likes this.
  10. spangle

    spangle Peon

    Messages:
    9
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #10
    there is problem to server.
     
    spangle, Feb 9, 2007 IP
  11. designcode

    designcode Well-Known Member

    Messages:
    738
    Likes Received:
    37
    Best Answers:
    0
    Trophy Points:
    118
    #11
    Seems like mod_rewrite is not enabled on the apache you are using.
     
    designcode, Feb 9, 2007 IP
  12. Maksa

    Maksa Well-Known Member

    Messages:
    833
    Likes Received:
    21
    Best Answers:
    0
    Trophy Points:
    120
    #12

    i did as u said but got the following error.

     
    Maksa, Feb 9, 2007 IP
  13. krakjoe

    krakjoe Well-Known Member

    Messages:
    1,795
    Likes Received:
    141
    Best Answers:
    0
    Trophy Points:
    135
    #13
    You don't have rewrite engine installed.

    Get a new host.
     
    krakjoe, Feb 9, 2007 IP
  14. Maksa

    Maksa Well-Known Member

    Messages:
    833
    Likes Received:
    21
    Best Answers:
    0
    Trophy Points:
    120
    #14
    so how to do make it enabled?
     
    Maksa, Feb 9, 2007 IP
  15. designcode

    designcode Well-Known Member

    Messages:
    738
    Likes Received:
    37
    Best Answers:
    0
    Trophy Points:
    118
    #15
    run info.php after removing .htaccess, and then post its link.
     
    designcode, Feb 9, 2007 IP
  16. Maksa

    Maksa Well-Known Member

    Messages:
    833
    Likes Received:
    21
    Best Answers:
    0
    Trophy Points:
    120
  17. krakjoe

    krakjoe Well-Known Member

    Messages:
    1,795
    Likes Received:
    141
    Best Answers:
    0
    Trophy Points:
    135
    #17
    You don't it's an apache module that your server admin need to install .....

    Heres some 99c hosting with rewrite enabled : http://billing.hozter.info/order.php
     
    krakjoe, Feb 9, 2007 IP
  18. krakjoe

    krakjoe Well-Known Member

    Messages:
    1,795
    Likes Received:
    141
    Best Answers:
    0
    Trophy Points:
    135
    #18
    you're running php in cgi mode so using php_flag in htaccess won't work either.
     
    krakjoe, Feb 9, 2007 IP
  19. Maksa

    Maksa Well-Known Member

    Messages:
    833
    Likes Received:
    21
    Best Answers:
    0
    Trophy Points:
    120
    #19
    really impressed

    just $6 monthly, for your cash you'll be allocated 5GB of top quality space to sell, and 50GB of top quality bandwidth, you'll also be allocated 500mb of disk and 5gb of bandwidth for your personal account at no extra cost.


    but how to trust them :( i already got bad host. lots of down time here.
     
    Maksa, Feb 9, 2007 IP
  20. Maksa

    Maksa Well-Known Member

    Messages:
    833
    Likes Received:
    21
    Best Answers:
    0
    Trophy Points:
    120
    #20
    wat is tat "php runing in CGI mode" ?
     
    Maksa, Feb 9, 2007 IP