Jump to content

gple

Members
  • Posts

    166
  • Joined

  • Last visited

Posts posted by gple

  1. they recently reset my website so my php.ini file has been adjusted. One of my sites is no longer passing a session variable to the next page. I am sure its one of the settings being reset. here is the data from my phpinfo file. Anything that looks off to anyone?

     

    session

    Session Support enabled

    Registered save handlers files user sqlite

    Registered serializer handlers php php_binary wddx

     

    Directive Local Value Master Value

    session.auto_start Off Off

    session.bug_compat_42 On On

    session.bug_compat_warn On On

    session.cache_expire 180 180

    session.cache_limiter nocache nocache

    session.cookie_domain no value no value

    session.cookie_httponly Off Off

    session.cookie_lifetime 0 0

    session.cookie_path / /

    session.cookie_secure Off Off

    session.entropy_file no value no value

    session.entropy_length 0 0

    session.gc_divisor 100 100

    session.gc_maxlifetime 1440 1440

    session.gc_probability 1 1

    session.hash_bits_per_character 4 4

    session.hash_function 0 0

    session.name PHPSESSID PHPSESSID

    session.referer_check no value no value

    session.save_handler files files

    session.save_path /home/users/web/b535/ipw.plevtech/public_html/cgi-bin/tmp /home/users/web/b535/ipw.plevtech/public_html/cgi-bin/tmp

    session.serialize_handler php php

    session.use_cookies On On

    session.use_only_cookies Off Off

    session.use_trans_sid 0 0

  2. ok, if its correct behavior, how do i get around this. We have purposely created an internal mysql database and have built a website for security purposes. We want to share the index page to a couple of other users within the small business. Again, one computer has php, apache and mysql installed. the entire website was created on a local machine and is functioning properly. When I map to that folder from another machine and try to load the page, then I get zero data. I was thinking that I may have needed either apache or php installed on that second computer but I didnt see the code display on the webpage.

  3. i tried copying some code offline just to test

    <?php

    require("C:\php\includes\class.phpmailer.php");

    $mail = new PHPMailer();$mail = new PHPMailer();

    $mail->IsSMTP();

    $mail->Host = "smtp.gmail.com";

    $mail->SMTPAuth = true;

    $mail->Username = 'xxxxxx';

    $mail->Password = 'xxxxxx';

     

    $mail->AddAddress("xxxxxxx@gmail.com");

    $mail->Subject = "Test 1";

    $mail->Body = "Test 1 of PHPMailer.";

     

    if(!$mail->Send())

    {

      echo "Error sending: " . $mail->ErrorInfo;;

    }

    else

    {

      echo "Letter is sent";

    }

    ?>

     

    and getting an error

    fputs(): supplied argument is not a valid stream resource in C:\\php\\includes\\class.smtp.php on line 212

     

  4. i installed php, apache and mysql on my local windows machine and I want to use the mail function without installing a mail server. what can i do? i constantly read that i can SMTP into my webhost mail account like I do from outlook but I can never get it right, i get unauthenticated messages in my error log, any suggestions.

  5. ok, so i pulled the SMTP and host and added it to my php.ini. restarted apache and now get this:

     

    [Mon Nov 07 11:09:22 2011] [error] [client 127.0.0.1] PHP Warning:  mail() [<a href='function.mail'>function.mail</a>]: SMTP server response: 550 bosauthsmtp13: Host 108.14.81.2: No unauthenticated relaying permitted in C:\\Program Files\\Apache Software Foundation\\Apache2.2\\htdocs\\add_contact.php on line 49, referer: http://localhost/index.php?func=4

  6. hello,

    I am running php locally on my machine but it seems that when I try to call mail () function, I get error messages. I believe that I need to set up a mail server on my machine. Is that an accurate statement? whats the easiest way to do this? Is having OUTLOOK installed on the machine sufficient?

  7. I have been uploading a file via a php script and DBing the file name into a table. All of a sudden, the user starts to get this when trying to write the file name to the table.

     

    Table 'files' is read only

     

     

    apparently it works sometimes and then other times, the user gets the message above. anyone have this issue before.

  8. only when i define a variable (ie $color="green") does it output  the proper code. when i run a query and map a result to a variable that doesnt work (ie $color=mysql_result(...). BUt when I output the file, i see the results both appear properly.

  9. i have a CSS file named style.php and in there I have this code

     

    tr.prod {

    font-size:12px;

    font-family: tahoma;

    color: green;

    }

     

    tr.prod1 {

    font-size:<?=$font_size?>px;

    font-family:<?=$font_pref?>;

    color:green;

    }

     

    when i use tr.prod, the font styles and such come out properly.

    when i use tr.prod1, the font-size and font-family do not work properly but the color does. any reason for this. when i output the style sheet in my browser i see the correct values in prod1

×
×
  • 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.