mag00 Posted April 8, 2013 Share Posted April 8, 2013 Yeah, godaddy skewed me. I got upgraded from php 4 to 5 and the external include will no longer work. Well I tried/put the include file into the root folder and still nothing. The errors are at thefastesthorse.com I don't know much about php coding, and just trying to get this back up and running *********************** Warning: include() [function.include]: URL file-access is disabled in the server configuration in /home/content/88/10840488/html/thefastesthorse/index.php on line 96Warning: include(http://www.thefastesthorse.com/syndication/folder1/top1.html) [function.include]: failed to open stream: no suitable wrapper could be found in/home/content/88/10840488/html/thefastesthorse/index.php on line 96Warning: include() [function.include]: Failed opening 'http://www.thefastesthorse.com/syndication/folder1/top1.html' for inclusion (include_path='.:/usr/local/php5/lib/php') in/home/content/88/10840488/html/thefastesthorse/index.php on line 96 ***************************** Any help will be greatly appreciated. Thanks, Dave Quote Link to comment https://forums.phpfreaks.com/topic/276671-php-include-workaround-need-for-toughrough-coded-site/ Share on other sites More sharing options...
requinix Posted April 8, 2013 Share Posted April 8, 2013 (edited) Reconfiguring their servers to make them more secure is not "screwing you". Warning: include() [function.include]: URL file-access is disabled in the server configuration in /home/content/88/10840488/html/thefastesthorse/index.php on line 96 Warning: include(http://www.thefastes...lder1/top1.html) [function.include]: failed to open stream: no suitable wrapper could be found in/home/content/88/10840488/html/thefastesthorse/index.php on line 96 You have code likeinclude("http://www.thefastesthorse.com/syndication/folder1/top1.html");That's incorrect. Never, ever include() URLs. Especially when they only contain HTML. Instead doreadfile($_SERVER["DOCUMENT_ROOT"] . "/syndication/folder1/top1.html");That will output a] the file as it exists on the machine, rather than as a location on the Internet and b] without trying to treat the file as PHP code, which it is not. Edited April 8, 2013 by requinix Quote Link to comment https://forums.phpfreaks.com/topic/276671-php-include-workaround-need-for-toughrough-coded-site/#findComment-1423484 Share on other sites More sharing options...
mag00 Posted April 12, 2013 Author Share Posted April 12, 2013 I'll give that a try. I assume I use the readfile command in place of the include. I'll get back with results. Thanks Quote Link to comment https://forums.phpfreaks.com/topic/276671-php-include-workaround-need-for-toughrough-coded-site/#findComment-1424255 Share on other sites More sharing options...
mag00 Posted April 12, 2013 Author Share Posted April 12, 2013 Nope, didn't work. Parse error: syntax error, unexpected T_STRING, expecting T_PAAMAYIM_NEKUDOTAYIM in /home/content/88/10840488/html/thefastesthorse/index.php on line 98 The include function did work in php 4, and the website it referred to was axhole.com/syndication etc. That is where the syndication folder was so other sites of mine could grab the advertising. When I upgraded, it quit working, godaddy said it was a security issue getting external links in php5 so they disabled it. They did not have any workarounds for the ini file. Quote Link to comment https://forums.phpfreaks.com/topic/276671-php-include-workaround-need-for-toughrough-coded-site/#findComment-1424258 Share on other sites More sharing options...
requinix Posted April 12, 2013 Share Posted April 12, 2013 What's your full code? Quote Link to comment https://forums.phpfreaks.com/topic/276671-php-include-workaround-need-for-toughrough-coded-site/#findComment-1424261 Share on other sites More sharing options...
jazzman1 Posted April 12, 2013 Share Posted April 12, 2013 When I upgraded, it quit working, godaddy said it was a security issue getting external links in php5 so they disabled it. They did not have any workarounds for the ini file. Why don't you create a custom php.ini file if you're thinking that the problem is there? Quote Link to comment https://forums.phpfreaks.com/topic/276671-php-include-workaround-need-for-toughrough-coded-site/#findComment-1424299 Share on other sites More sharing options...
mag00 Posted April 14, 2013 Author Share Posted April 14, 2013 @Jazzman, When this happened I asked godaddy for the work around and because of security, my understanding is the ini file will not work. I do not know much if any about coding. @ requinix, Attached is the page. There are three spots that use the include for the advertising. This is really just the google adsense code. I tried just eliminating the include command and running the code in that spot and that did not work either. I was going to set it up on 1and1, and may try at a later date. I may have broke it real bad changing things up, I need to find the original files, which I may or may not still have.\ These files seem to be messing with dreamweaver and simple text. I now have to open and edit using xcode. I really dislike OZX10.6 for some of these, "we think we know what you want features". AARGH Quote Link to comment https://forums.phpfreaks.com/topic/276671-php-include-workaround-need-for-toughrough-coded-site/#findComment-1424646 Share on other sites More sharing options...
requinix Posted April 14, 2013 Share Posted April 14, 2013 ...Attached? Inline would be better. Quote Link to comment https://forums.phpfreaks.com/topic/276671-php-include-workaround-need-for-toughrough-coded-site/#findComment-1424647 Share on other sites More sharing options...
mag00 Posted April 14, 2013 Author Share Posted April 14, 2013 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html><head> <!-- InstanceBegin template="/Templates/default.dwt" codeOutsideHTMLIsLocked="false" --><!-- InstanceBeginEditable name="doctitle" --> <title>The Fastest Horse Index - The Fastest Horse home</title> <!-- InstanceEndEditable --> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> <!-- InstanceBeginEditable name="head" --><!-- InstanceEndEditable --> <link href="style.css" rel="stylesheet" type="text/css"> </head><body style="background-color: rgb(255, 255, 255);"> <table align="center" border="0" cellpadding="0" cellspacing="0" width="779"> <!--DWLayoutTable--><!-- fwtable fwsrc="members_template.png" fwbase="img.gif" fwstyle="Dreamweaver" fwdocid = "224947957" fwnested="0" --> <tbody> <tr> <td width="11"><img src="images/spacer.gif" alt="" border="0" height="1" width="11"></td> <td width="12"><img src="images/spacer.gif" alt="" border="0" height="1" width="12"></td> <td width="84"><img src="images/spacer.gif" alt="" border="0" height="1" width="84"></td> <td width="275"><img src="images/spacer.gif" alt="" border="0" height="1" width="275"></td> <td width="86"><img src="images/spacer.gif" alt="" border="0" height="1" width="86"></td> <td width="69"><img src="images/spacer.gif" alt="" border="0" height="1" width="69"></td> <td width="11"><img src="images/spacer.gif" alt="" border="0" height="1" width="11"></td> <td width="10"><img src="images/spacer.gif" alt="" border="0" height="1" width="10"></td> <td width="85"><img src="images/spacer.gif" alt="" border="0" height="1" width="85"></td> <td width="109"><img src="images/spacer.gif" alt="" border="0" height="1" width="109"></td> <td width="27"><img src="images/spacer.gif" alt="" border="0" height="1" width="27"></td> <td width="4"><img src="images/spacer.gif" alt="" border="0" height="1" width="1"></td> </tr> <tr> <td colspan="11"><img name="img_r1_c1" src="images/img_r1_c1.gif" alt="" border="0" height="14" width="779"></td> <td><img src="images/spacer.gif" alt="" border="0" height="14" width="1"></td> </tr> <tr> <td><img name="img_r2_c1" src="images/img_r2_c1.gif" alt="" border="0" height="27" width="11"></td> <td colspan="3"><!-- InstanceBeginEditable name="top" -->welcome to thefastesthorse.com<!-- InstanceEndEditable --></td> <td><a href="index.php"><img name="img_r2_c5" src="images/img_r2_c5.gif" alt="" border="0" height="27" width="86"></a></td> <td colspan="3"><a href="blog/index.php"><img name="img_r2_c6" src="images/img_r2_c6.gif" alt="" border="0" height="27" width="90"></a></td> <td><a href="articles/index.php"><img name="img_r2_c9" src="images/img_r2_c9.gif" alt="" border="0" height="27" width="85"></a></td> <td><a href="fasthorse/index.php"><img name="img_r2_c10" src="images/img_r2_c10.gif" alt="" border="0" height="27" width="109"></a></td> <td><img name="img_r2_c11" src="images/img_r2_c11.gif" alt="" border="0" height="27" width="27"></td> <td><img src="images/spacer.gif" alt="" border="0" height="27" width="1"></td> </tr> <tr> <td rowspan="3"><img name="img_r3_c1" src="images/img_r3_c1.gif" alt="" border="0" height="85" width="11"></td> <td rowspan="3" colspan="2"><img name="img_r3_c2" src="images/image.jpg" alt="The Fastest Horse Photo" border="0" height="85" width="96"></td> <td colspan="7"><img name="img_r3_c4" src="images/img_r3_c4.gif" alt="" border="0" height="2" width="645"></td> <td rowspan="2"><img name="img_r3_c11" src="images/img_r3_c11.gif" alt="" border="0" height="77" width="27"></td> <td><img src="images/spacer.gif" alt="" border="0" height="2" width="1"></td> </tr> <tr> <td colspan="7" bgcolor="#8da3b7"><!-- InstanceBeginEditable name="heading" --> <h3>The Fastest Horse Home </h3> <p>The Fastest Horse Information </p> <!-- InstanceEndEditable --></td> <td><img src="images/spacer.gif" alt="" border="0" height="75" width="1"></td> </tr> <tr> <td colspan="8"><img name="img_r5_c4" src="images/img_r5_c4.gif" alt="" border="0" height="8" width="672"></td> <td><img src="images/spacer.gif" alt="" border="0" height="8" width="1"></td> </tr> <tr> <td background="images/img_r6_c1.gif" height="343"><img name="img_r6_c1" src="images/img_r6_c1.gif" alt="" border="0" height="343" width="11"></td> <td colspan="5" align="left" bgcolor="#ffffff" valign="top"><br> <table bgcolor="#ffffff" border="0" cellpadding="0" cellspacing="0" width="523"> <!-- fwtable fwsrc="Untitled" fwbase="title.gif" fwstyle="Dreamweaver" fwdocid = "694633094" fwnested="0" --> <tbody> <tr> <td><img src="images/spacer.gif" alt="" border="0" height="1" width="12"></td> <td><img src="images/spacer.gif" alt="" border="0" height="1" width="492"></td> <td><img src="images/spacer.gif" alt="" border="0" height="1" width="19"></td> <td><img src="images/spacer.gif" alt="" border="0" height="1" width="1"></td> </tr> <tr> <td colspan="3"><img name="title_r1_c1" src="images/title_r1_c1.gif" alt="" border="0" height="4" width="523"></td> <td><img src="images/spacer.gif" alt="" border="0" height="4" width="1"></td> </tr> <tr> <td><img name="title_r2_c1" src="images/title_r2_c1.gif" alt="" border="0" height="19" width="12"></td> <td bgcolor="#ffff99">Top<!-- InstanceBeginEditable name="title1" --> <strong>The Fastest Horse</strong><!-- InstanceEndEditable --> Sites</td> <td><img name="title_r2_c3" src="images/title_r2_c3.gif" alt="" border="0" height="19" width="19"></td> <td><img src="images/spacer.gif" alt="" border="0" height="19" width="1"></td> </tr> <tr> <td colspan="3"><img name="title_r3_c1" src="images/title_r3_c1.gif" alt="" border="0" height="10" width="523"></td> <td><img src="images/spacer.gif" alt="" border="0" height="10" width="1"></td> </tr> </tbody> </table> <p><script type="text/javascript"><!-- google_ad_client = "pub-7192235415383725"; google_alternate_color = "FFFFFF"; google_ad_width = 336; google_ad_height = 280; google_ad_format = "336x280_as"; google_ad_type = "text_image"; google_ad_channel =""; google_color_border = "FFFFFF"; google_color_bg = "FFFFFF"; google_color_link = "0000FF"; google_color_text = "000000"; google_color_url = "0000FF"; //--></script> <script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"> </script></p> <table bgcolor="#ffffff" border="0" cellpadding="0" cellspacing="0" width="523"> <!-- fwtable fwsrc="Untitled" fwbase="title.gif" fwstyle="Dreamweaver" fwdocid = "694633094" fwnested="0" --> <tbody> <tr> <td><img src="images/spacer.gif" alt="" border="0" height="1" width="12"></td> <td><img src="images/spacer.gif" alt="" border="0" height="1" width="492"></td> <td><img src="images/spacer.gif" alt="" border="0" height="1" width="19"></td> <td><img src="images/spacer.gif" alt="" border="0" height="1" width="1"></td> </tr> <tr> <td colspan="3"><img name="title_r1_c1" src="images/title_r1_c1.gif" alt="" border="0" height="4" width="523"></td> <td><img src="images/spacer.gif" alt="" border="0" height="4" width="1"></td> </tr> <tr> <td><img name="title_r2_c1" src="images/title_r2_c1.gif" alt="" border="0" height="19" width="12"></td> <td bgcolor="#ffff99"><!-- InstanceBeginEditable name="title" --><strong>The Fastest Horse</strong> Index<!-- InstanceEndEditable --> </td> <td><img name="title_r2_c3" src="images/title_r2_c3.gif" alt="" border="0" height="19" width="19"></td> <td><img src="images/spacer.gif" alt="" border="0" height="19" width="1"></td> </tr> <tr> <td colspan="3"><img name="title_r3_c1" src="images/title_r3_c1.gif" alt="" border="0" height="10" width="523"></td> <td><img src="images/spacer.gif" alt="" border="0" height="10" width="1"></td> </tr> </tbody> </table> <!-- InstanceBeginEditable name="body" --> <p>Welcome to my <strong>The Fastest Horse</strong> site. You will find many The Fastest Horse resources, The Fastest Horse articles, and The Fastest Horse blog posts.</p> <p>Please browse around this The Fastest Horse web site and let me know if want any The Fastest Horse information added.</p> <p><strong><a href="articles/index.php">The Fastest Horse articles:</a></strong> Add your The Fastest Horse related articles to this site.</p> <p><strong><a href="blog/">The Fastest Horse blog:</a></strong> Send your The Fastest Horse blog posts to me.</p> <p><strong><a href="fasthorse/index.php">The Fastest Horse resources:</a></strong> Find all the The Fastest Horse resources you will need. </p> <hr> <p>More <strong>The Fastest Horse</strong> resources: </p> <table id="table17" border="0" bordercolor="#000000" cellpadding="4" cellspacing="4" width="100%"> <tbody> <tr align="left" valign="top"> <td><a href="http://www.thefastesthorse.com/fastesthorse/alamedafairhorseracing.php">Alameda Fair Horse Racing</a><br> <a href="http://www.thefastesthorse.com/fastesthorse/belmonthorseracing.php">Belmont Horse Racing</a><br> <a href="http://www.thefastesthorse.com/fastesthorse/bettinghorseracing.php">Betting Horse Racing</a><br> <a href="http://www.thefastesthorse.com/fastesthorse/bettingonlinehorseracing.php">Betting Online Horse Racing</a><br> <a href="http://www.thefastesthorse.com/fastesthorse/casinogamblinginternetonline.php">Casino Gambling Internet</a><br> <a href="http://www.thefastesthorse.com/fastesthorse/casinogamblingonline.php">Casino Gambling Online</a><br> <a href="http://www.thefastesthorse.com/fastesthorse/dailyhorseracingform.php">Daily Horse Racing Form</a><br> <a href="http://www.thefastesthorse.com/fastesthorse/floridahorseracing.php">Florida Horse Racing</a><br> <a href="http://www.thefastesthorse.com/fastesthorse/handicappinghorseracing.php">Handicapping Horse Racing</a><br> <a href="http://www.thefastesthorse.com/fastesthorse/horseracing.php">Horse Racing</a><br> <a href="http://www.thefastesthorse.com/fastesthorse/horseracingbetting.php">Horse Racing Betting</a><br> <a href="http://www.thefastesthorse.com/fastesthorse/horseracingbettingtip.php">Horse Racing Betting Tip</a><br> <a href="http://www.thefastesthorse.com/fastesthorse/horseracinggamedownloadhorseracingvideogame.php">Horse Racing Game</a><br> <a href="http://www.thefastesthorse.com/fastesthorse/horseracingtoday.php">Horse Racing Today</a><br> <a href="http://www.thefastesthorse.com/fastesthorse/horseracingtrackresult.php">Horse Racing Track Result</a><br> </td> <td><a href="http://www.thefastesthorse.com/fastesthorse/horsetrackracing.php">Horse Track Racing</a><br> <a href="http://www.thefastesthorse.com/fastesthorse/internetonlinegambling.php">Internet Online Gambling</a><br> <a href="http://www.thefastesthorse.com/fastesthorse/kentuckyhorseracing.php">Kentucky Horse Racing</a><br> <a href="http://www.thefastesthorse.com/fastesthorse/onlinecasinoandonlinegambling.php">Online Casino And Online</a><br> <a href="http://www.thefastesthorse.com/fastesthorse/onlinecasinogamblingsite.php">Online Casino Gambling Site</a><br> <a href="http://www.thefastesthorse.com/fastesthorse/onlinegamblingcraps.php">Online Gambling Craps</a><br> <a href="http://www.thefastesthorse.com/fastesthorse/onlinegamblingdirectory.php">Online Gambling Directory</a><br> <a href="http://www.thefastesthorse.com/fastesthorse/onlinehorseracing.php">Online Horse Racing</a><br> <a href="http://www.thefastesthorse.com/fastesthorse/onlineroulettegambling.php">Online Roulette Gambling</a><br> <a href="http://www.thefastesthorse.com/fastesthorse/quarterhorseracing.php">Quarter Horse Racing</a><br> <a href="http://www.thefastesthorse.com/fastesthorse/racinghorse.php">Racing Horse</a><br> <a href="http://www.thefastesthorse.com/fastesthorse/royalascothorseracing.php">Royal Ascot Horse Racing</a><br> <a href="http://www.thefastesthorse.com/fastesthorse/sporthorseracing.php">Sport Horse Racing</a><br> <a href="http://www.thefastesthorse.com/fastesthorse/thoroughbredhorseracing.php">Thoroughbred Horse Racing</a><br> <a href="http://www.thefastesthorse.com/fastesthorse/woodbinehorseracing.php">Woodbine Horse Racing</a><br> </td> </tr> </tbody> </table> <!-- InstanceEndEditable --></td> <td colspan="4" background="images/img_r9_c7.gif" valign="top"> <table border="0" cellpadding="0" cellspacing="0" width="100%"> <tbody> <tr> <td colspan="2" height="9"><img name="box_r1_c1" src="images/box_r1_c1.gif" alt="" border="0" height="9" width="215"></td> </tr> <tr> <td height="182" width="5%"><img name="box_r2_c1" src="images/box_r2_c1.gif" alt="" border="0" height="182" width="11"></td> <td align="left" bgcolor="#ffff99" valign="top" width="95%"><iframe src="http://www.thefastesthorse.com/frame.php" frameborder="0" height="182" scrolling="no" width="204"></iframe><br> </td> </tr> <tr> <td colspan="2"><img name="box_r3_c1" src="images/box_r3_c1.gif" alt="" border="0" height="10" width="215"></td> </tr> </tbody> </table> <table border="0" cellpadding="0" cellspacing="0" width="208"> <tbody> <tr> <td width="8%"> </td> <td align="center" valign="top" width="92%"> <script type="text/javascript"><!-- google_ad_client = "pub-7192235415383725"; google_alternate_color = "c1ced9"; google_ad_width = 160; google_ad_height = 600; google_ad_format = "160x600_as"; google_ad_type = "text_image"; google_ad_channel =""; google_color_border = "C1CED9"; google_color_bg = "C1CED9"; google_color_link = "0000FF"; google_color_text = "000000"; google_color_url = "0000FF"; //--></script> <script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"> </script> <br> <br> <!-- InstanceBeginEditable name="nav" --><!-- InstanceEndEditable --></td> </tr> </tbody> </table> </td> <td background="images/img_r9_c11.gif" valign="top"><img name="box_r1_c3" src="images/box_r1_c3.gif" alt="" border="0" height="201" width="27"></td> <td valign="top"><img src="images/spacer.gif" alt="" border="0" height="142" width="1"></td> </tr> <tr> <td><img name="img_r10_c1" src="images/img_r10_c1.gif" alt="" border="0" height="25" width="11"></td> <td colspan="5"><img name="img_r10_c2" src="images/img_r10_c2.gif" alt="" border="0" height="25" width="526"></td> <td colspan="5"><img name="img_r10_c7" src="images/img_r10_c7.gif" alt="" border="0" height="25" width="242"></td> <td><img src="images/spacer.gif" alt="" border="0" height="25" width="1"></td> </tr> <tr> <td colspan="2" background="images/bg-bot1.gif" valign="bottom"><img name="img_r11_c1" src="images/img_r11_c1.gif" alt="" border="0" height="24" width="23"></td> <td colspan="8" bgcolor="#ffff99"> <div align="center"><a href="index.php">The Fastest Horse</a> : <a href="blog">The Fastest Horse Blog</a> : <a href="articles">The Fastest Horse Articles</a> : <a href="fasthorse">The Fastest Horse Resources</a> : <a href="partners">Links</a> : <a href="contact">Contact</a><br> copyright 2006 </div> </td> <td background="images/bg-bot2.gif" valign="bottom"><img name="img_r11_c11" src="images/img_r11_c11.gif" alt="" border="0" height="24" width="27"></td> <td><img src="images/spacer.gif" alt="" border="0" height="24" width="1"></td> </tr> <tr> <td colspan="11"><img name="img_r12_c1" src="images/img_r12_c1.gif" alt="" border="0" height="5" width="779"></td> <td><img src="images/spacer.gif" alt="" border="0" height="5" width="1"></td> </tr> </tbody> </table> <!-- InstanceEnd --> </body></html> Quote Link to comment https://forums.phpfreaks.com/topic/276671-php-include-workaround-need-for-toughrough-coded-site/#findComment-1424703 Share on other sites More sharing options...
mag00 Posted April 14, 2013 Author Share Posted April 14, 2013 (edited) <td colspan="3"><img name="title_r3_c1" src="images/title_r3_c1.gif" alt="" border="0" height="10" width="523"></td> <td><img src="images/spacer.gif" alt="" border="0" height="10" width="1"></td> </tr> </tbody> </table> <p><?php readfile($_SERVER["DOCUMENT_ROOT"] . "/syndication/folder1/top1.html");"); ?></p> <table bgcolor="#ffffff" border="0" cellpadding="0" cellspacing="0" width="523"> <!-- fwtable fwsrc="Untitled" fwbase="title.gif" fwstyle="Dreamweaver" fwdocid = "694633094" fwnested="0" --> <tbody> <tr> *********************************** The the section with the readfile is the code I have been trying to manipulate to get the adsense code working. That is were the include function was previously. I may not have that proper. Edited April 14, 2013 by mag00 Quote Link to comment https://forums.phpfreaks.com/topic/276671-php-include-workaround-need-for-toughrough-coded-site/#findComment-1424705 Share on other sites More sharing options...
jazzman1 Posted April 14, 2013 Share Posted April 14, 2013 @Jazzman, When this happened I asked godaddy for the work around and because of security, my understanding is the ini file will not work. I do not know much if any about coding. You can create a custom php.ini file, it must called - php5.ini Then, you have to describe which directives of the core php.ini file you want to override. Store this file into your core home directory (to have effect to all websites) or into a specific directory. Next, you need to kill the web processes to get your php5.ini file to take effect. 1. Log in to your Account Manager. 2. Click Web Hosting. 3. Next to the hosting account you want to use, click Launch. 4. In the Stats & Monitors section of the Control Panel in your hosting account, click the System Processes icon. 5. Click End Web and follow any prompts. 6. To check whether your php5.ini file takes effect, open a plain text editor and create a file called phpinfo.php. Insert the following line: <? phpinfo(); ?> We don't know which directive of the new php.ini file has a conflict with your old school php code. Quote Link to comment https://forums.phpfreaks.com/topic/276671-php-include-workaround-need-for-toughrough-coded-site/#findComment-1424729 Share on other sites More sharing options...
Ken_GoDaddy Posted April 17, 2013 Share Posted April 17, 2013 @mag00 I'm with Go Daddy and came across your post. Has @Jazzman1's recommendation work for you? If not or if you have any additional questions please feel free to reply or to send me a private message. Thanks @Jazzman1 for helping our customer! Quote Link to comment https://forums.phpfreaks.com/topic/276671-php-include-workaround-need-for-toughrough-coded-site/#findComment-1425310 Share on other sites More sharing options...
mag00 Posted April 18, 2013 Author Share Posted April 18, 2013 (edited) Hi Ken, thanks for offering the help. I was just poking around looking how to create a php.ini file. I came to get the code to get the phpinfo to paste in hopes we could figure out how the php ini should read. then I'll go do those steps Jazzman has outlined. I do not know how to do such things. What is interesting is I found my site working perfectly at wayback machine. http://web.archive.org/web/20110210010428/http://thefastesthorse.com/ Also I liked what requinix offered up, just that the code might need tweaking to work, or maybe I didn't do it right. Edited April 18, 2013 by mag00 Quote Link to comment https://forums.phpfreaks.com/topic/276671-php-include-workaround-need-for-toughrough-coded-site/#findComment-1425507 Share on other sites More sharing options...
mag00 Posted April 18, 2013 Author Share Posted April 18, 2013 allow_url_include is off in the php info file. How would I format this proper for the php5.ini? Quote Link to comment https://forums.phpfreaks.com/topic/276671-php-include-workaround-need-for-toughrough-coded-site/#findComment-1425517 Share on other sites More sharing options...
requinix Posted April 18, 2013 Share Posted April 18, 2013 Do not turn on allow_url_include. Fix the code instead. Not sure why you thought removing it would help. Looks like you did try with readfile(). Does top1.html contain any PHP code? Quote Link to comment https://forums.phpfreaks.com/topic/276671-php-include-workaround-need-for-toughrough-coded-site/#findComment-1425522 Share on other sites More sharing options...
mac_gyver Posted April 18, 2013 Share Posted April 18, 2013 are you trying to include the code from a file at a different one of your sites into your site that's the subject in this thread or are you trying to include code from a file that is on the same site? Quote Link to comment https://forums.phpfreaks.com/topic/276671-php-include-workaround-need-for-toughrough-coded-site/#findComment-1425581 Share on other sites More sharing options...
mag00 Posted April 18, 2013 Author Share Posted April 18, 2013 (edited) Hi and thanks for coming back to help. The top1.html is purely google adsense code. Nothing else. I had a couple other sites that were very similar, with different content, and the syndication folder held the advertising codes formatted for this platform. I did try removing the include command and just insert the adsense, but that did not work. Seems with the templates and other pages that refer to this need to talk to each other. The general idea was if I needed to change the advertiser over all sites, I could just change one file and all would change. When it was working, I did set the syndication folder in the root of the site that I wanted it on a couple sites, to change ads for that specific site, yet stay the same for that site and all pages within. I was able to alter the code on those specific sites to work without going to the other url(domain) to get the ads working. (until the php5 upgrade). One of the html in that syndication does have a php file, I think it is the frame.html. I would love to just change the include command to something that would work through all pages and I have no idea why this command was used by the developer at that time back in about 2005. I may not have the exact code in my first readfile try. Also, I must mention that I only edited on page with the readfile change, would I need to change em all to make it work? I I am open to suggestions, I am not versed in php scripting, but do pick it up fairly fast. I'm a free range geek LOL. Thanks again Dave Edited April 18, 2013 by mag00 Quote Link to comment https://forums.phpfreaks.com/topic/276671-php-include-workaround-need-for-toughrough-coded-site/#findComment-1425625 Share on other sites More sharing options...
mag00 Posted April 18, 2013 Author Share Posted April 18, 2013 are you trying to include the code from a file at a different one of your sites into your site that's the subject in this thread or are you trying to include code from a file that is on the same site? Originally that was the case, but I did alter the include to point to the root of the site on a couple of my sites. So no, I am not trying to use another site for the code any longer. I used to have close to twenty of these "information" sites back in the day, but now just really only want to keep about 3, and add content regular to them, and make a little money for my efforts. My best site, onlinecorvette.com, died a horrible death, and I am not sure I can get that back ever. I cannot find the backup files for it. I added articles and blogs and all sorts of cool stuff, and had a following. I have to dig up an older computer and hope it still resides on it. It was 7 years ago when it was set up, and alot has changed in that time. Quote Link to comment https://forums.phpfreaks.com/topic/276671-php-include-workaround-need-for-toughrough-coded-site/#findComment-1425626 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.