[PHP] Please help me

2002-04-02 Thread Ing. Fernando Proll Segura

Hi all:

I was working with PHP 4.0.6, ISAPI on a Win2000, IIS server, ; now I install PHP 
4.1.2 on the same server but CGI module and I'm geting the following errors when I try 
to run any script:

Security Alert! PHP CGI cannot be accessed directly. 
This PHP CGI binary was compiled with force-cgi-redirect enabled. This means that a 
page will only be served up if the REDIRECT_STATUS CGI variable is set. This variable 
is set, for example, by Apache's Action directive redirect. 

You may disable this restriction by recompiling the PHP binary with the 
--disable-force-cgi-redirect switch. If you do this and you have your PHP CGI binary 
accessible somewhere in your web tree, people will be able to circumvent .htaccess 
security by loading files through the PHP parser. A good way around this is to define 
doc_root in your php.ini file to something other than your top-level DOCUMENT_ROOT. 
This way you can separate the part of your web space which uses PHP from the normal 
part using .htaccess security. If you do not have any .htaccess restrictions anywhere 
on your site you can leave doc_root undefined. If you are running IIS, you may safely 
set cgi.force_redirect=0 in php.ini. PHP Warning: Unable to load dynamic library 
'e:\php/php_dotnet.dll' - No se puede encontrar el módulo especificado. in Unknown on 
line 0 PHP Warning: Unable to load dynamic library 'e:\php/php_ifx.dll' - No se puede 
encontrar el módulo especificado. in Unknown on line 0 PHP Warning: Unable to load 
dynamic library 'e:\php/php_iisfunc.dll' - No se puede encontrar el módulo 
especificado. in Unknown on line 0 PHP Warning: Unable to load dynamic library 
'e:\php/php_ingres.dll' - No se puede encontrar el módulo especificado. in Unknown on 
line 0 PHP Warning: Unable to load dynamic library 'e:\php/php_mcrypt.dll' - No se 
puede encontrar el módulo especificado. in Unknown on line 0 PHP Warning: Unable to 
load dynamic library 'e:\php/php_oci8.dll' - No se puede encontrar el módulo 
especificado. in Unknown on line 0 PHP Warning: Unable to load dynamic library 
'e:\php/php_oracle.dll' - No se puede encontrar el módulo especificado. in Unknown on 
line 0 PHP Warning: Unable to load dynamic library 'e:\php/php_printer.dll' - No se 
puede encontrar el módulo especificado. in Unknown on line 0 PHP Warning: Unable to 
load dynamic library 'e:\php/php_sablot.dll' - No se puede encontrar el módulo 
especificado. in Unknown on line 0 Cannot find module (IP-MIB): At line 0 in (none) 
Cannot find module (IF-MIB): At line 0 in (none) Cannot find module (TCP-MIB): At line 
0 in (none) Cannot find module (UDP-MIB): At line 0 in (none) Cannot find module 
(SNMPv2-MIB): At line 0 in (none) Cannot find module (SNMPv2-SMI): At line 0 in (none) 
PHP Warning: Unable to load dynamic library 'e:\php/php_sybase_ct.dll' - No se puede 
encontrar el módulo especificado. in Unknown on line 0 

Any help will be welcome.

Thanks,

Fernando



Re: [PHP] Reading A file

2002-03-06 Thread Ing. Fernando Proll Segura


> Hey
>
> I have a TEXT file that I want to make visual via the web using php
>
>
>

Maybe this isn't the best way but to do this I use the following code:

";
}

$lines=file("yourfile.txt");

array_walk($lines,'do_print');

?>

As you can see I use the file() function to get each line of text into an
array and then the function array_walk() to do the visualization.

Hope it helps!

Fernando



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




[PHP] ODBC Connection

2002-01-16 Thread Ing. Fernando Proll Segura

Hi guys:

I'm trying to make a connection from PHP to a MS Access. How can I do this?, I know 
that there are a function for this, but what about the parameters.

Thanks in advanced,

Fernando