Advertisement

10.12.2007 at 07:48AM PDT, ID: 22889656
[x]
Attachment Details
[x]
The Solution Rating System

With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.

  • The Grade of the Solution
  • The Zone Rank of the Expert Providing the Solution
  • The Number of Author and Expert Comments
  • The Number of Experts Contributing
  • The Feedback of the Community

Your Input Matters
Because of the way the system is set up, the most important variable in this equation is you. As a member of Experts Exchange, you are able to cast your vote on the quality of the solutions in regard to how complete, accurate, helpful and easy to understand each solution is. When you provide your feedback, each rating is adjusted accordingly. So, if you see a solution that has a poor rating that you think is a good solution, let us know by rating it. As you do, the rating will be adjusted and will become more accurate for other members of our site.

If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support.

Thank you!

6.2

Have coding using fopen, fwrite, but webhost no longer allows

Asked by Ekorn in PHP Scripting Language, Apache Web Server

Tags: ,

Hiya,

Below is the index file of an open source program I'm trying to install in a folder of my website. My webhost doesn't allow the fopen function (and I would guess that includes fwrite, but I've no idea about "touch"). CURL is enabled on the server, but I can't quite get it to do everything.

Alternatively, I figured that all perhaps all this does is create and write an .htaccess file containing the line:
php_value include_path "/export/home/webhost2_c/www.epigenome.org.uk/WWW/CMS/phpcg/app/settings/"
Naturally all I get are 500 - internal error messages. Aargh!

<?php
      $path_parts = pathinfo($_SERVER['SCRIPT_FILENAME']);
      $ROOT = $path_parts['dirname'];
      $ROOT = $ROOT."/app/settings/";
      $filename = ".htaccess";
      echo $ROOT ."<br>"; // me testing
      // $ROOT is /export/home/webhost2_c/www.epigenome.org.uk/WWW/CMS/phpcg/app/settings/
      
      if (!file_exists($filename)) {
         touch (".htaccess");
         $fp = fopen($filename, "w") or die("Couldn't open $filename");
               fwrite($fp, "php_value include_path \"".$ROOT."\"\n");
               fclose($fp);
            
               include("install.php");
            header( 'Location: index.php' );
      }
?>

Server info is:
Apache/2.0.58 (Unix) mod_ssl/2.0.58 OpenSSL/0.9.8d DAV/2 PHP/5.1.2 mod_jk2/2.0.2
--with-curl=/usr/local/include/curl' '--with-curlwrappers' '
.htaccess is enabled

Would really appreciate any help. Servers are a bit of a black box to me and I've been playing with this for far too long. Start Free Trial
 
 
[+][-]10.12.2007 at 08:24AM PDT, ID: 20066299

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]10.12.2007 at 08:30AM PDT, ID: 20066381

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]10.12.2007 at 08:41AM PDT, ID: 20066519

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]10.12.2007 at 08:48AM PDT, ID: 20066592

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: PHP Scripting Language, Apache Web Server
Tags: fopen, fwrite
Sign Up Now!
Solution Provided By: huji
Participating Experts: 2
Solution Grade: B
 
 
[+][-]10.12.2007 at 08:56AM PDT, ID: 20066664

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]10.12.2007 at 09:05AM PDT, ID: 20066764

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]10.12.2007 at 09:38AM PDT, ID: 20067085

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]10.12.2007 at 10:52AM PDT, ID: 20067719

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]10.16.2007 at 03:37AM PDT, ID: 20084308

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628