Jump to content

clown

Members
  • Posts

    14
  • Joined

  • Last visited

    Never

About clown

  • Birthday 05/03/1980

Profile Information

  • Gender
    Male
  • Location
    Belgrade

clown's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. well, I have installed wamp 5.1.7 I previously installed manually Apache 2.2 + php 5.2 and that hadn't work.. this happenning when i try to test instalation with simple test.php with some phpinfo(); and echo function: all code that should bee parsed by php is ignored and can be seen in source of the page... in php error file (on WAMP) i found those lines: C:\wamp\scripts\refresh_apache_mod.php on line 37 [27-Apr-2007 01:57:16] PHP Warning: ksort() expects parameter 1 to be array, null given in C:\wamp\scripts\refresh_apache_mod.php on line 37 What it could be? I didn't changed php or apache configuration filessince instalation...
  2. steel running wamp 5.1.7 I found in php_error file those lines: [27-Apr-2007 01:57:16] PHP Warning: ksort() expects parameter 1 to be array, null given in C:\wamp\scripts\refresh_apache_mod.php on line 37 this message was writen every time apache was restarted.. I checked refresh_apache_mod.php file, and on the start of this file is this code(including line 37): <?php //v1.0 by Romain Bourdon $httpdfile = "../apache2/conf/httpd.conf"; $myhttpd = @file($httpdfile) or die ("httpd.conf file not found"); foreach($myhttpd as $line) { if (preg_match('|^#LoadModule|',$line)) { $mod_table = explode(' ', $line); $mod_name = $mod_table[1]; $mod[$mod_name] = '0'; } elseif (preg_match('|^LoadModule|',$line)) { $mod_table = explode(' ', $line); $mod_name = $mod_table[1]; $mod[$mod_name] = '1'; } } $mywampini = @file("../wampmanager.ini"); $mywampfp = fopen("../wampmanager.ini","w"); $i = 0; while ($mywampini[$i] != ";start_apache_mod ") { fwrite($mywampfp,$mywampini[$i]); $i++; } fwrite($mywampfp,$mywampini[$i]); ksort($ext); .... so, it is standard code for this file in wamp instalation.. does anybody knows what I should do? I also checked wampmanager.ini and found nothing suspitius..
  3. yeah, yeah... during instalation of wamp5, I was asked to overwrite php.ini file in windows directory, I agreed, offcourse.. httpd.conf now should not bee problem, 'cause Apache instalation is placed in new directory... name of test file is: "php.ini" its content is: "first <br> <?php echo'something..'; phpinfo(); ?> last" and in browser I can se output like this: "first last" no php parsing at all! I just haven't idea, what else can be wrong.. enybody have?
  4. you didn't say vhat is version of Apache, but anyway.. you probably miss to add this line in your httpd.conf file AddType application/x-httpd-php .php and maybe this line too: LoadModule php5_module "c:/php/php5apache2.dll" // offcourse, if you want to use php as an Apache module insted of CGI.. all that you can find on: http://www.php.net/manual/en/install.windows.manual.php good luck
  5. I just can't beleive it.. I installed WampServer 5.1.7 and situation is the same I described above... No results of executing php code, and in the source of the page in the browser it can be seen php code. So, i gues, reason for those isn't configuration (httpd.conf php.ini), but something else... I'm using Kerio firewall, but even Kerio is disabled, no effect on workin' php+Apache.. Anybody have an idea what may be cause? (little people )
  6. My problem can be described like this: is there any elegant way to just forward variables from script1.php by script2.php to script3.php, using forms and POST. PHP version is 4.3 when I use just first 2 scripts, all was just fine.. but with 3 scripts, POST-ing betwen second and third (hidden input) there ocures problem: no original array in 3. script. what may be wrong?
  7. php.ini file is located in C:\php [attachment deleted by admin]
  8. I used that line you recommended already, but no results... I can attach my php.ini file later.. if you have some time to see it..
  9. Now I have instaled apache 2.2.3 with php 5.2 and same problem ocures.. I've no idea what's goin' on here? Anybody know what may be cause of this strange behavior?
  10. So, wildteen88 can you help me with this problem? enyone?
  11. well, thank's again.. I added mentioned lines before, but I understand that: should meen that I shouldn't add those.. Never mind... Here are my httd.conf and php.ini files.. configured by advises from official manulas.. [attachment deleted by admin]
  12. Thanks for those lines.. but... without line LoadModule php5_module C:/php/php5apache.dll Apache refuses to start.. and without line AddType application/x-httpd-php .php php code been shown in browser! with lastone line php code was not shown, at least.. and, offcourse i saved httpd.conf and restarted Apache whenever I made some change.. What could be problem here? Gremlins?
  13. Can enyone give some proposition where to look, to solve this: Apache 1.3.* + php 5.2 on VinXP. I foloved instructions on www.php.net and apache manual, used php.recomended ini file, and now Apache works properly, but <?php ....?> part just dont be parsed.. I put test.php file (<?php phpinfo(); ?> ) it just been copied in source of the page, no parsing.. I checked php.ini and .config files; can't see nothing suspitius... I copied php.ini file in widows directory, restarted system.. Nothing seems to bi enough.. Have anybody idea what's goin' on here?
×
×
  • 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.