Jump to content

marek

Members
  • Posts

    17
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

marek's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. marek

    mail

    So I guess I just skip mail function for some time thanks anyway marek
  2. marek

    mail

    Yes. My e-mail smtp server requires me to login. So what can I do to use mail function?
  3. marek

    mail

    Ok. So I changed SMTP settings for the same as in MS Outlook. I left smtp_port = 25. Restarted server. Still doesn't work.
  4. marek

    mail

    I'm sure it's an easy one. I can't use mail function. I get an error message:  Failed to connect to mailserver at "localhost" port 25, verify your "SMTP" and "smtp_port" setting in php.ini. But I work locally only. All I did was changing "sendmail_from = " in php.ini file. Do I have to change smtp and smtp_port settings also? If so, what parameters should I give there? Thanks marek
  5. marek

    Fopen

    It also works. Thanks a lot.
  6. marek

    Fopen

    Great. It works. Thanks. So how to use the same fopen function if txt file is in folder which is "in higher level" (for example there's folder 'folder1' which includes 'file1.txt' and 'folder2'; and folder2 includes 'file1.php')? I still don't want to give specifc path to the txt file. marek
  7. marek

    Fopen

    I want to open txt file which is in the same folder that php file. How can I use fopen function to open this txt file if I don't want to give specific path to this txt file? thanks marek
  8. It's working! I made two things together that helped. Firstly I moved php.ini to C:/WINDOWS and changed line in httpd.conf file from PHPIniDir "C:/php" to PHPIniDir "C:/WINDOWS". Secondly I added .txt at the end of the line: AddType application/x-httpd-php .php .phtml. I did this because I noticed that my file test.php on web localhost is shown as test.php.txt (actually, I don't know why). I restared server and I could see beautiful phpinfo side. Thanks to everyone that helped me on this forum (asspecially wildteen88). Now I can start to learn php (I think I'll have more problems since now).
  9. I gave up with. I've tried so many times make this work... But still the same problem. So I've changed Apache 1.3 for Apache 2.0. In php manual it's said that I have to add: LoadModule php5_module "c:/php/php5apache2.dll" AddType application/x-httpd-php .php PHPIniDir "C:/php" Is this really all? Is the place of these lines in httpd.conf file important? Thanks marek
  10. It's me again. I still have the same problem. Nothing has changed. When I run php -i in windows directory, it works properly. I can see page localhost on Apache. But still browser can't see the php code. So in my opinion the problem is only about settings in httpd.conf file. Am I right? Marek
  11. I save them with .php extension. The name is test.php. And it includes only one line: <? php phpinfo() ?>. I really don't know what to do now. Thanks anyway. Marek
  12. 1. After I added: PHPIniDir "C:/php" to httpd.conf file, I got the message it's invalid command. So I deleted it. 2. I moved php.ini to c:/php 3. My windows path variable looks like this: %SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;C:\Program Files\ATI Technologies\ATI Control Panel;C:\Program Files\MySQL\MySQL Server 5.0\bin;C:\PHP 3. I also used command line and in windows directory run php -i. It worked properly. 4. Web localhost works properly. But Apache and PHP still dont't want to work together. Marek
  13. 1. I already have c:\PHP in my windows path variable 2. I have php.ini on c:\windows 3. I have php5ts.dll on c:\php 4. I have aded two lines in php.ini: doc_root = c:\Program Files\Apache Group\Apache\htdocs extension_dir = c:/PHP/ext and I have changed display_startup_errors from Off to On. 5. I have restarted Apache 6. Error in Apache logs is: File does not exist: c:/program files/apache group/apache/htdocs/favicon.ico 7. Web localhost works properly. Still doesn't work. So if I have c:\php in windows path variable, I should delete php.ini from c:\windows and php5ts.dll form c:\php? Marek
  14. Yes. I have added four lines to httpd file: LoadModule php5_module "C:/PHP/php5apache.dll" AddModule mod_php5.c AddType application/x-httpd-php .php AddType application/x-httpd-php-source .phps By the way, is the place of these lines in this httpd file important? Marek
×
×
  • 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.