1 and the url is [url]http://scpsyco.mdesigns.serverblitz.com/Public%20html/originalpsyco/content/links_content.php[/url] plz help [allowsmilie] => 1 [showsignature] => 0 [ipaddress] => [iconid] => 0 [visible] => 1 [attach] => 0 [infraction] => 0 [reportthreadid] => 0 [isusenetpost] => 1 [msgid] => <57ddf0d9.0407161732.4834ea32@posting.google.com> [ref] => [htmlstate] => on_nl2br [postusername] => jrblast [ip] => jrblast303@yaho [isdeleted] => 0 [usergroupid] => [membergroupids] => [displaygroupid] => [password] => [passworddate] => [email] => [styleid] => [parentemail] => [homepage] => [icq] => [aim] => [yahoo] => [msn] => [skype] => [showvbcode] => [showbirthday] => [usertitle] => [customtitle] => [joindate] => [daysprune] => [lastvisit] => [lastactivity] => [lastpost] => [lastpostid] => [posts] => [reputation] => [reputationlevelid] => [timezoneoffset] => [pmpopup] => [avatarid] => [avatarrevision] => [profilepicrevision] => [sigpicrevision] => [options] => [akvbghsfs_optionsfield] => [birthday] => [birthday_search] => [maxposts] => [startofweek] => [referrerid] => [languageid] => [emailstamp] => [threadedmode] => [autosubscribe] => [pmtotal] => [pmunread] => [salt] => [ipoints] => [infractions] => [warnings] => [infractiongroupids] => [infractiongroupid] => [adminoptions] => [profilevisits] => [friendcount] => [friendreqcount] => [vmunreadcount] => [vmmoderatedcount] => [socgroupinvitecount] => [socgroupreqcount] => [pcunreadcount] => [pcmoderatedcount] => [gmmoderatedcount] => [assetposthash] => [fbuserid] => [fbjoindate] => [fbname] => [logintype] => [fbaccesstoken] => [newrepcount] => [vbseo_likes_in] => [vbseo_likes_out] => [vbseo_likes_unread] => [temp] => [field1] => [field2] => [field3] => [field4] => [field5] => [subfolders] => [pmfolders] => [buddylist] => [ignorelist] => [signature] => [searchprefs] => [rank] => [icontitle] => [iconpath] => [avatarpath] => [hascustomavatar] => 0 [avatardateline] => [avwidth] => [avheight] => [edit_userid] => [edit_username] => [edit_dateline] => [edit_reason] => [hashistory] => [pagetext_html] => [hasimages] => [signatureparsed] => [sighasimages] => [sigpic] => [sigpicdateline] => [sigpicwidth] => [sigpicheight] => [postcount] => 1 [islastshown] => [isfirstshown] => 1 [attachments] => [allattachments] => ) --> open_basedir restriction in effect - PHP Development
Professional Web Applications Themes

open_basedir restriction in effect - PHP Development

i have a website ([url]http://scpsyco.mdesigns.serverbltz.com[/url]) and i have 2 styles (1 is up there another on geocities) and i only wanna update 1 file to uptadet the site i decided to use the readfile (); function from php but when i acces from the root with readfile (tips.txt); (thats the name of a file i used to test it cuz it was already there) i get this error Warning: readfile(): open_basedir restriction in effect. File(/tip.txt) is not within the allowed path(s): (/home/mdesigns/:/usr/lib/php:/usr/local/lib/php:/tmp) in /home/mdesigns/public_html/scpsyco/Public html/originalpsyco/content/links_content.php on line 16 Warning: readfile(/tip.txt): failed to open stream: Operation not permitted in /home/mdesigns/public_html/scpsyco/Public html/originalpsyco/content/links_content.php ...

  1. #1

    Default open_basedir restriction in effect

    i have a website ([url]http://scpsyco.mdesigns.serverbltz.com[/url]) and i have 2
    styles (1 is up there another on geocities) and i only wanna update 1
    file to uptadet the site i decided to use the readfile (); function
    from php but when i acces from the root with readfile (tips.txt);
    (thats the name of a file i used to test it cuz it was already there)
    i get this error


    Warning: readfile(): open_basedir restriction in effect.
    File(/tip.txt) is not within the allowed path(s):
    (/home/mdesigns/:/usr/lib/php:/usr/local/lib/php:/tmp) in
    /home/mdesigns/public_html/scpsyco/Public
    html/originalpsyco/content/links_content.php on line 16

    Warning: readfile(/tip.txt): failed to open stream: Operation not
    permitted in /home/mdesigns/public_html/scpsyco/Public
    html/originalpsyco/content/links_content.php on line 16

    the code of the file i acces is

    <HTML>
    <HEAD>
    <TITLE>index</TITLE>
    <META HTTP-EQUIV="Content-Type" CONTENT="text/html;
    cht=windows-1255">
    <link rel="stylesheet" type="text/css" href="css/css_template_1.css">

    </HEAD>
    <BODY BGCOLOR=#000000 LEFTMARGIN=0 TOPMARGIN=0 MARGINWIDTH=0
    MARGINHEIGHT=0 color="ccffcc">



    <table>
    <tr>
    <td class="center">
    <?php
    readfile ("/tip.txt");

    ?>

    </td>
    <td>

    <script type="text/javascript"><!--
    google_ad_client = "pub-1698169797101894";
    google_ad_width = 120;
    google_ad_height = 600;
    google_ad_format = "120x600_as";
    google_ad_channel ="2744362501";
    google_color_border = "333333";
    google_color_bg = "000000";
    google_color_link = "FFFFFF";
    google_color_url = "999999";
    google_color_text = "CCCCCC";
    //--></script>
    <script type="text/javascript"
    src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
    </script> </td>
    </tr>
    </table>


    </body>

    </html><!-- text below generated by server. PLEASE REMOVE
    --></object></layer></div></span></style></noscript></table></script></applet>
    <script language="JavaScript">var PUpage="76001084"; var
    PUprop="geocities"; </script><script language="JavaScript"
    src="http://www.geocities.com/js_source/pu5geo.js"></script><script
    language="JavaScript"
    src="http://www.geocities.com/js_source/ygIELib9.js?v3"></script><script
    language="JavaScript">var
    yviContents='http://us.toto.geo./toto?s=76001084&l=NE&b=1&t=1089837290';yviR='us';y fiEA(0);</script><script
    language="JavaScript"
    src="http://us.i1.yimg.com/us.yimg.com/i/mc/mc.js"></script><script
    language="JavaScript"
    src="http://geocities.com/js_source/geov2.js"></script><script
    language="javascript">geovisit();</script><noscript><img
    src="http://visit.webhosting./visit.gif?us1089837290"
    alt="setstats" border="0" width="1" height="1"></noscript>
    <IMG SRC="http://geo./serv?s=76001084&t=1089837290" ALT=1
    WIDTH=1 HEIGHT=1>

    and the url is [url]http://scpsyco.mdesigns.serverblitz.com/Public%20html/originalpsyco/content/links_content.php[/url]
    plz help
    jrblast Guest

  2. #2

    Default Re: open_basedir restriction in effect

    You need to keep in mind that '/tips.txt' means the base root of the
    filesystem, which you won't have access to as a user. So the error
    you're getting is correct for how you're using readfile(). You can do
    either 1) Remove the slash and hope that tip.txt is in the directory
    of the calling script, or (My Favorite) 2) do something like
    readfile("/path/to/tips.txt"). I prefer the latter because no matter
    where my calling script is, it reads the file. I think if you try that
    you will have much better luck managing both of your websites. :-)

    On 16 Jul 2004 18:32:42 -0700, [email]jrblast303[/email] (jrblast) wrote:
    >i have a website ([url]http://scpsyco.mdesigns.serverbltz.com[/url]) and i have 2
    >styles (1 is up there another on geocities) and i only wanna update 1
    >file to uptadet the site i decided to use the readfile (); function
    >from php but when i acces from the root with readfile (tips.txt);
    >(thats the name of a file i used to test it cuz it was already there)
    >i get this error
    >
    >
    >Warning: readfile(): open_basedir restriction in effect.
    >File(/tip.txt) is not within the allowed path(s):
    <snip>
    >readfile ("/tip.txt");
    <snip>

    eclipsboi Guest

  3. #3

    Default Re: open_basedir restriction in effect

    nevermind as it turns out since i have a subdomain my root directory
    isnt actually my root directory its the root of serverblitz.com :( o
    well thx to anyone who would have helped (unless while i was typing
    you helped me in which case thanks for helping)
    jrblast Guest

Similar Threads

  1. open_basedir restriction in effect.
    By jpaulb in forum PHP Development
    Replies: 2
    Last Post: February 10th, 09:22 PM
  2. Replies: 0
    Last Post: October 4th, 04:56 AM
  3. Replies: 0
    Last Post: August 21st, 11:22 PM
  4. Replies: 0
    Last Post: August 21st, 10:09 PM
  5. Replies: 0
    Last Post: August 10th, 11:08 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139