marek
-
Posts
17 -
Joined
-
Last visited
Never
Posts posted by marek
-
-
Yes. My e-mail smtp server requires me to login.
So what can I do to use mail function? -
Ok. So I changed SMTP settings for the same as in MS Outlook. I left smtp_port = 25. Restarted server.
Still doesn't work. -
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
-
It also works. Thanks a lot.
-
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 -
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 -
Notepad. You were right.
-
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).
-
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
-
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 -
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 -
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 -
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
-
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 -
[!--quoteo(post=380080:date=Jun 5 2006, 02:20 AM:name=thorpe)--][div class=\'quotetop\']QUOTE(thorpe @ Jun 5 2006, 02:20 AM) [snapback]380080[/snapback][/div][div class=\'quotemain\'][!--quotec--]
Try...
[code]
<?php phpinfo() ?>
[/code]
You should avoid trying to use short tags.
[/quote]
Nothing has changed.
Now it just dispalys <?php phpinfo() ?> instead of <? phpinfo() ?>.
So I still think it's installation problem (that Apache server "doesn't see" the code of PHP).
By the way, I did the instalation with PHP manual.
Thanks for help
Marek -
Hello,
I'm totally new on this forum and totally fresh at PHP.
I have some installation problems with PHP. I've installed Apache 1.3 and then PHP 5. Everything step by step with php manual.
The server is working properly but when I created test php file with <? phpinfo() ?> instruction it displays <? phpinfo() ?> except for php inf site.
Where is the problem?
Thanks for your help.
Marek
mail
in PHP Coding Help
Posted
thanks anyway
marek