help with the instalation please

Discussion in 'Co-op Advertising Network' started by alfonko, Jan 16, 2008.

  1. #1
    i have uploaded both files (ad_network_138.php and .txt) also i have uploaded the .htaccess with the code line "AddType application/x-httpd-php .php .htm .html" and i have set the .txt to 777.

    My server has php and i have copy pasted the code

    <?php
    	ini_set ("include_path", ini_get ("include_path") . ':../:../../:../../../:../../../../');
    	include ('ad_network_138.php');
    	echo $ad_network;
    ?>
    PHP:
    and nothings happening... check www.foreignnumbers.com

    any clue?

    regards
     
    alfonko, Jan 16, 2008 IP
  2. MammaRose

    MammaRose Banned

    Messages:
    1,060
    Likes Received:
    38
    Best Answers:
    0
    Trophy Points:
    0
    #2
    I see the following on the bottom of your site..

    You must set the ad_network_ads_138.txt file to be writable (check file name as well).

    I think you need to chmod 666 ad_network_ads_138.txt
     
    MammaRose, Jan 16, 2008 IP
  3. alfonko

    alfonko Active Member

    Messages:
    56
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    61
    #3
    well... if works with 666 also it should work with 777, nonetheless i did change it to 666 and still isnt working :(
     
    alfonko, Jan 16, 2008 IP
  4. alfonko

    alfonko Active Member

    Messages:
    56
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    61
    #4
    ok i found my bad... the "ads" part of the txt name was missing... doh...
    but now it seems to be another issue... grrrr
     
    alfonko, Jan 16, 2008 IP
  5. alfonko

    alfonko Active Member

    Messages:
    56
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    61
    #5
    count($ad_network) % 2 == 0
    count() is zero because it seems an empty array.
    0 % 2 .........................................
    IMO a "try and catch" would be fine for this one i think...
    i dont know... anyone?
    regards
     
    alfonko, Jan 16, 2008 IP
  6. MammaRose

    MammaRose Banned

    Messages:
    1,060
    Likes Received:
    38
    Best Answers:
    0
    Trophy Points:
    0
    #6
    I see the ads on your site. Looks like it is working now. Did it validate?
     
    MammaRose, Jan 16, 2008 IP
  7. alfonko

    alfonko Active Member

    Messages:
    56
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    61
    #7
    yes indeed!

    but seems to be showing the same ads :S

    thats not good

    Secured Loans
    Secured Loans
    Credit Counseling
    Credit Counseling
    Secured Loans
     
    alfonko, Jan 16, 2008 IP
  8. sangli1980

    sangli1980 Peon

    Messages:
    401
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #8
    I am having issues with my website i have done everything that I could do as the instruction online but dont seem to understand what is cmod command can you explain to me please.... cheers
     
    sangli1980, Jan 19, 2008 IP
  9. MammaRose

    MammaRose Banned

    Messages:
    1,060
    Likes Received:
    38
    Best Answers:
    0
    Trophy Points:
    0
    #9
    chmod is setting permissions to a file or folder such as read, write or execute.
     
    MammaRose, Jan 19, 2008 IP
  10. sangli1980

    sangli1980 Peon

    Messages:
    401
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #10
    Thanks but do I need to add this as a text or right click my file on server and change the read write access... thanks
     
    sangli1980, Jan 19, 2008 IP
  11. Pampa114

    Pampa114 Banned

    Messages:
    676
    Likes Received:
    12
    Best Answers:
    0
    Trophy Points:
    145
    #11
    Set the file permissions on your web server to 666. Depending on the settings on your admin panel, you might have to right click the file, select it, etc...
     
    Pampa114, Jan 20, 2008 IP