Jump to content

Viola

Members
  • Posts

    19
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

Viola's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. Yes, the pear directory allows read access. I assume that this means that apache can read. /usr/share/pear is drwxr-xr-x /usr/share/pear/PEAR is drwxr-xr-x /usr/share/pear/PEAR.php is -rwxr--r--
  2. Hi Thanks for the suggestions. I found the error log under /var/log/httpd/error_log, but it didn't seem to have any relevant errors in it (the only error said [error] (9)Bad file descriptor: apr_socket_accept: (client socket)) -- not sure what this is, but it doesn't look relevant -- please say if you think otherwise). I also added error reporting to a test page: <?php error_reporting(E_ALL); ini_set('display_errors', '1'); require_once 'System.php'; var_dump(class_exists('System')); ?> The errors I got are: Warning: require_once(PEAR.php) [function.require-once]: failed to open stream: No such file or directory in /earlier_parts_of_path/httpdocs/System.php on line 26 Fatal error: require_once() [function.require]: Failed opening required 'PEAR.php' (include_path='.:/usr/share/pear/') in /earlier_parts_of_path/httpdocs/System.php on line 26 This seems to indicate that my include_path is wrong. However, I have tried: /usr/share /usr/share/pear /usr/share/pear/ I don't think that I should have to include my httpdocs path in the include_path directive, should I? However ... Another thing that I have noticed is that I do not have go-pear (used find . -name go-pear). I haven't yet found an explanation of what exactly this does. Looking at what I can find, it seems to be related to using PEAR as part of a website. Do you think that this may have anything to do with it? Viola
  3. My server is with GoDaddy and I asked their support. They said that PEAR is installed. Doing find, finds a PEAR installation in /usr/share/pear. Typing "pear" on the command line causes a list of pear commands to be listed. I did yum list php-gd and found that php-gd.i386 is installed. Thorpe -- thanks. I've already done this. I've tried setting the path to /usr/share and I've tried /usr/share/pear.
  4. Corbin -- Error logging is turned on, but I'm not sure where to look to find the log. Thorpe -- the CAPTCHA worked fine until the server was upgraded. The website has a PEAR directory that contains CAPTCHA. The server has PHP and PEAR installed. I think that I need to somehow link them together (perhaps some sort of paths definition or something?).
  5. Hi Corbin Thanks for replying. I already have php-gd installed (php-gd.i386). Any more ideas? Viola
  6. Hi I have a website that uses PEAR CAPTCHA. Recently, I got a new dedicated server, with Plesk and the CAPTCHA images no longer work. The server has PHP installed and also has PEAR installed. Please can you help me -- perhaps by suggesting a few things that I can check to troubleshoot this issue? Thanks in advance for your help. Viola
  7. If each span area has a name, you can use document.getElementsByName() to get the spans with the code, then iterate each one and select like you would normally.
  8. If a checkbox is checked, the value is posted, otherwise it is not. You would need to say something like if checkbox value is empty then cbxValue = 'n'; else cbxValue = checkbox value; then use cbxValue.
  9. Viola

    Tables

    I agree. It doesn't seem right to use tables to display a list. Cooper94 -- you could try something like this: <div style="width:50%;"> <!-- Outer div --> <div style="float:left;width:50%;"> <!-- left column --> <ul style="list-style:none;padding:2px;margin:2px;"><!-- unordered list --> <!-- list items --> <li>Albany, NY (ALB)</li> <li>Atlanta, GA (ATL)</li> <li>Baltimore, MY (BWI)</li> <li>etc...</li> </ul> </div> <div> <!-- right column --> <ul style="list-style:none;padding:2px;margin:2px;"><!-- unordered list --> <!-- list items --> <li>Raleigh, NC (RDU)</li> <li>Richmond, VA (RIC)</li> <li>Rochester, NY (ROC)</li> <li>etc...</li> </ul> </div> </div> If you're not familiar with styles, take a look at this website: http://w3schools.com/css/
  10. Take a look at [url=http://www.w3schools.com/CSS/pr_text_white-space.asp]http://www.w3schools.com/CSS/pr_text_white-space.asp[/url].
  11. Thanks mikesta707. Unfortunately, I'm already doing that. The rest of the html message displays fine. In case it sheds any more light -- I looked at the message source and that shows the link as <a href="../support/support_downloads.php">Click here to go to our downloads page</a> For some reason, mail() seems to be taking my url and converting it to a relative path. Not sure why or what I need to do to get it to accept my url as-is.
  12. Viola

    Tables

    If all you're wanting to do is show a single list, but are using tables to create a 2-column visual layout, I guess you could create a table with 1 row and 2 columns. Then you wouldn't have to rearrange your lists. <table width="100%" cellpadding="1" cellspacing="1" style="vertical-align: top;"> <tr> <td>Albany, NY (ALB)<br/> Atlanta, GA (ATL)<br/> Baltimore, MY (BWI)<br/> Bangor, MA (BGR)<br/> etc... </td> <td>Raleigh, NC (RDU)<br/> Richmond, VA (RIC)<br/> Rochester, NY (ROC)<br/> San Antonio, TX (SAT)<br/> etc... </td> </tr> </table> I'm not sure what the "good practice" gurus would have to say about this, though.
  13. Hi I'm having a bit of trouble including a link to my website in an email and was wondering if anyone can help? Just before I call the mail function, I put: echo "<pre>"; print_r($msg['body']); echo "</pre>"; so that I can see if the path is being passed into the mail function correctly. The link is passed into mail() as: <a href="http://mydomain.com/support/support_downloads.php">Click here to go to our downloads page</a> However, when I get the email (which for testing purposes I'm sending to myself), it says this: <a href="http://../support/support_downloads.php">Click here to go to our downloads page</a> Please can you can help me with trying to figure out what I'm doing wrong? Thanks in advance. Viola
  14. Viola

    Tables

    Do you mean that you want it in 2 columns? <tr> means "table row", so the way you've done it would display it in two rows (lots of columns). If so, try <table width="100%" cellpadding="1" cellspacing="1"> <tr> <td>Albany, NY (ALB)</td> <td>Raleigh, NC (RDU)</td> </tr> <tr> <td>Atlanta, GA (ATL)</td> <td>Richmond, VA (RIC)</td> </tr> etc... </table> </code] If this isn't what you mean, please can you explain some more?
  15. Does the second drop-down box not show at all, or does it not show the options correctly? What does it show?
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.