Jump to content

gple

Members
  • Posts

    166
  • Joined

  • Last visited

Everything posted by gple

  1. got to this to work. thanks for your help
  2. what I mean by share and map it: i have map a network drive to the folder and then I created a shortcut to the desktop of the index page
  3. 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
  4. 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.
  5. I am running php on one computer at work and want other users on other computers to access the index page by sharing it.after mapping the page, I see no data on the other machine. Does php, as pache need to beer installed on other computers footer it too work properly
  6. I have installed mysql on my laptop and when i try to load the command client, i can quickly see the client load and quickly close. I can also see mysqld.exe running as a task. I also have MYSQL installed on a separate machine and the command client loads fine. Any ideas?
  7. gple

    MAIL()

    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
  8. gple

    MAIL()

    ok i have downloaded phpmailer and placed the files withing my includes folder in my php folder. now what?
  9. gple

    MAIL()

    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.
  10. 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
  11. 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?
  12. $get_lcat=mysql_query("select * from files where type='Cat' order by id desc"); $category=mysql_result($get_lcat,0,'file'); $fd = fopen ($category, "r");
  13. the file permission is set to 777
  14. i just moved hosts and it seems that one of my codes does not work. When I try to open a file via fopen (), i constantly get the message 401-unauthorized. Thoughts?
  15. i have no code that would lock the table. nothing has changed in months and then all of a sudden, i started to see this. what would cause a table to get locked.
  16. It works sometimes by for one user and then not other times
  17. 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.
  18. how do I pull out two random integers at the same time without ever possibly choosing the same integer twice?
  19. $time="19:00:00"; how to do i output one hour later from the variable above?
  20. gple

    CSS with PHP

    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.
  21. 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
  22. so what would i put in for new york time? DateTimeZone('America/New York')?
  23. $date=date("Y-m-d H:i:s"); This is returning me the GMT time instead of EST. I get 15:26:08 as the time instead of 10:26:08. How can I get around this?
  24. gple

    redirect

    sorry, i have an echo statement before that.
×
×
  • 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.