Fw: Windows XP con Apache 2.0.35 y PHP 4.2

This is a discussion on Fw: Windows XP con Apache 2.0.35 y PHP 4.2 within the PHP forums in Programming Languages category; Hello. I think it's because there's no ApacheCore.dll and the other Apache 1.3.x dlls needed by the php.exe or the isapi dll. Has anyone solved this. I searched the mailing-list arhive for "Apache 2" and didn't find any answers. > >> Hola Ayer intente Instalar en Xp el Apache 2.0.35 >> Todo Anduvo perfecto. (lo bueno es que biene con un instalador y no >> tuve ningun problema. Muy Facil de Instalar) >> >> Luego instale la version de PHP 4.2.0 pero aqui si tuve un problema >> hay > dos >> versiones una con un instalador para servidores IIS ...

Go Back   Application Development Forum > Programming Languages > PHP

Object Mix

Register FAQ Calendar Search Today's Posts Mark Forums Read
  #1  
Old 05-07-2002, 11:08 PM
shemgp@aup.edu.ph
Guest
 
Default Re: [PHP] Fw: Windows XP con Apache 2.0.35 y PHP 4.2

Hello.
I think it's because there's no ApacheCore.dll and the other Apache 1.3.x
dlls needed by the php.exe or the isapi dll.
Has anyone solved this. I searched the mailing-list arhive for "Apache 2"
and didn't find any answers.

>
>> Hola Ayer intente Instalar en Xp el Apache 2.0.35
>> Todo Anduvo perfecto. (lo bueno es que biene con un instalador y no
>> tuve ningun problema. Muy Facil de Instalar)
>>
>> Luego instale la version de PHP 4.2.0 pero aqui si tuve un problema
>> hay

> dos
>> versiones una con un instalador para servidores IIS pero para a Apache
>> hay que hacerlo manualmente.
>>
>> hice tal cual se explica y no me reconoce el PHP
>>
>> 1) copie en el directorio windows el php.ini
>> 2) en directorio windows\system32 el php4ts.dll
>> 3) y luego el archivo conf\httpd.conf coloque
>>
>> DirectoryIndex index.html index.php index.html.var
>>
>> ScriptAlias /php/ "C:/Apache/php/"
>> AddType application/x-httpd-php .php .php4
>> AddType application/x-httpd-php-source .phps
>> AddHandler cgi-script .cgi
>> AddHandler php-script .php .php4
>> Action php-script /php/php.exe
>>
>> 4)al ejecutar /info.php
>> Server error!
>> El servidor encontro un error interno y fue imposible completar su
>> solicitud.
>> Mensaje de error:
>> Premature end of script headers: C:/Apache/php/php.exe
>> Favor de contactar al webmaster en caso de que usted crea que existe
>> un error en el servidor.
>> 5) el Apache 2.0.35 biene con un monitor que te informa en mi caso
>> informa
>> Apache 2.0.35 (win32) / PHP 4.2.0
>>
>> Alguien le paso esto por favor si alguien me puede ayudar para que no
>> de este error
>>
>>
>>

>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php




Reply With Quote
  #2  
Old 05-16-2002, 09:44 AM
savaidis
Guest
 
Default some Javascript functions with PHP


I use:
print('<SCRIPT LANGUAGE="JavaScript">');
print('document.write("Code Name: "+navigator.appCodeName+"<BR>");');
print('</SCRIPT>');

How is possible to keep this info to a MySQL database with PHP?
I think is not possible becouse PHP runs first.
Also how is possible to get with PHP info like this (browser type ecc)
and user's IP address without Javascript?
Or use Javascript and then run a php script to write it to the MySQL
database?


Thanks

Prodromos Savaidis


Reply With Quote
  #3  
Old 05-16-2002, 01:15 PM
Kevin Stone
Guest
 
Default Re: [PHP] some Javascript functions with PHP

The user's IP address is stored in the PHP global, $REMOTE_ADDR. Browser
information can be extracted from the get_browser()
function. http://www.php.net/manual/en/function.get-browser.php
-Kevin

----- Original Message -----
From: "savaidis" <savaidis@hol.gr>
To: <php-general@lists.php.net>
Sent: Thursday, May 16, 2002 7:44 AM
Subject: [php] some Javascript functions with PHP


>
> I use:
> print('<SCRIPT LANGUAGE="JavaScript">');
> print('document.write("Code Name: "+navigator.appCodeName+"<BR>");');
> print('</SCRIPT>');
>
> How is possible to keep this info to a MySQL database with PHP?
> I think is not possible becouse PHP runs first.
> Also how is possible to get with PHP info like this (browser type ecc)
> and user's IP address without Javascript?
> Or use Javascript and then run a php script to write it to the MySQL
> database?
>
>
> Thanks
>
> Prodromos Savaidis
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>



Reply With Quote
  #4  
Old 05-17-2002, 05:55 AM
savaidis
Guest
 
Default RE: [PHP] some Javascript functions with PHP

And what about resolution of the screen?
How is possible to keep it in record too or to tailor the page?

(get_browser() is not supported from my server, I'm waiting my sypport team
answer about "browscap.ini")

Thanks


Makis


> -----Original Message-----
> From: Kevin Stone [mailto:kevin@helpelf.com]
> Sent: Thursday, May 16, 2002 8:16 PM
> To: savaidis; php-general@lists.php.net
> Subject: Re: [php] some Javascript functions with PHP
>
>
> The user's IP address is stored in the PHP global, $REMOTE_ADDR. Browser
> information can be extracted from the get_browser()
> function. http://www.php.net/manual/en/function.get-browser.php
> -Kevin
>
> ----- Original Message -----
> From: "savaidis" <savaidis@hol.gr>
> To: <php-general@lists.php.net>
> Sent: Thursday, May 16, 2002 7:44 AM
> Subject: [php] some Javascript functions with PHP
>
>
> >
> > I use:
> > print('<SCRIPT LANGUAGE="JavaScript">');
> > print('document.write("Code Name: "+navigator.appCodeName+"<BR>");');
> > print('</SCRIPT>');
> >
> > How is possible to keep this info to a MySQL database with PHP?
> > I think is not possible becouse PHP runs first.
> > Also how is possible to get with PHP info like this (browser type ecc)
> > and user's IP address without Javascript?
> > Or use Javascript and then run a php script to write it to the MySQL
> > database?
> >
> >
> > Thanks
> >
> > Prodromos Savaidis
> >
> >
> >
> > --
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, visit: http://www.php.net/unsub.php
> >
> >

>
>


Reply With Quote
  #5  
Old 05-17-2002, 01:48 PM
savaidis
Guest
 
Default a set of *real* random numbers?


I want to show in random way 8 pictures (jpg) from a collection of 20 I have
, so the users have more interest to visit the page.

I use the follow small code with the help from the manual:
But the random numbers are all accending order for 1 -> 20 and in cycle, as
the seed comes from computers timming.
So I get always the same sets of 8 numbers. (i.e. 1->8, 3->10,
15-16-17-18-19-20-1-2 ecc)

What can I use for seed for *real* rnd?


(I FOUND IT, I CHANGED 100000 to 10000000 AND IT WORKS!)


Thanks - ******** PLEASE DON'T ANSWER!!! ******


Makis Savaidis



======= the code ==>
<?php

// seed with microseconds
function make_seed() {
list($usec, $sec) = explode(' ', microtime());
return (float) $sec + ((float) $usec * 100000);
}

// create 8 random numbers for 8 pictures - not doubles
$arr = array ();
$cnt2=0;
do // 8 times
{
do // produce rnd number
{
$cnt=1; $break=0;
srand(make_seed());
$randval1 = rand(1,20); // for a palette of 20 pictures
echo (" rnd = $randval1 <BR> ");
for ($cnt1=1; $cnt1<=$cnt2; $cnt1++) // check for doubles
{
if ($arr[$cnt1]==$randval1) $break=1;

}
} while ($break==1);

$cnt2++; $arr[$cnt2] = $randval1;

echo(" cnt2 $cnt2 arr1 $arr[$cnt2] <BR> ");

} while ($cnt2<8);

Reply With Quote
  #6  
Unread 05-07-2013, 11:00 PM
Julio Cesar Corbaz
Guest
 
Default Fw: Windows XP con Apache 2.0.35 y PHP 4.2


> Hola Ayer intente Instalar en Xp el Apache 2.0.35
> Todo Anduvo perfecto. (lo bueno es que biene con un instalador y no tuve
> ningun problema. Muy Facil de Instalar)
>
> Luego instale la version de PHP 4.2.0 pero aqui si tuve un problema hay

dos
> versiones una con un instalador para servidores IIS pero para a Apache hay
> que hacerlo manualmente.
>
> hice tal cual se explica y no me reconoce el PHP
>
> 1) copie en el directorio windows el php.ini
> 2) en directorio windows\system32 el php4ts.dll
> 3) y luego el archivo conf\httpd.conf coloque
>
> DirectoryIndex index.html index.php index.html.var
>
> ScriptAlias /php/ "C:/Apache/php/"
> AddType application/x-httpd-php .php .php4
> AddType application/x-httpd-php-source .phps
> AddHandler cgi-script .cgi
> AddHandler php-script .php .php4
> Action php-script /php/php.exe
>
> 4)al ejecutar /info.php
> Server error!
> El servidor encontro un error interno y fue imposible completar su
> solicitud.
> Mensaje de error:
> Premature end of script headers: C:/Apache/php/php.exe
> Favor de contactar al webmaster en caso de que usted crea que existe un
> error en el servidor.
> 5) el Apache 2.0.35 biene con un monitor que te informa en mi caso informa
> Apache 2.0.35 (win32) / PHP 4.2.0
>
> Alguien le paso esto por favor si alguien me puede ayudar para que no de
> este error
>
>
>



Reply With Quote
Reply


Thread Tools
Display Modes


All times are GMT -5. The time now is 08:02 AM.


Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
vB Ad Management by =RedTyger=

In an effort to better serve ads to our visitors, cookies are used on objectmix.com. For more information, check out our Privacy Policy.