[PHP] Strange problem passing variables

2002-03-22 Thread Jean-Arthur Silve

Hi,

A friend of me use PHP4.1.2 on Linux+Apache

Here is the problem :

He pass a parameter using GET method :

http://www.domain.com/test.php?TESTV=1234


test.php is :

?php
echo $TESTV.BR;
echo $HTTP_GET_VARS[TESTV].BR;
phpinfos();
?


But in the script all variables are empty ($TESTV and $HTTP_GET_VARS[TESTV]).

phpinfos() shows QUERY_STRING environment variable is empty...

any idea ??

Thank you !







EuroVox
4, place Félix Eboue
75583 Paris Cedex 12
Tel : 01 44 67 05 05
Fax : 01 44 67 05 19
Web : http://www.eurovox.fr



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




[PHP] PDF generation

2002-03-08 Thread Jean-Arthur Silve

Hello, I use PDF function to generate a PDF file.

It works fine except I cannot generate a document with more than 10 pages !

For each page I use pdf_begin_page($pdf, 595, 842);
I close each page with pdf_end_page


Any ideas ??

jean-arthur




EuroVox
4, place Félix Eboue
75583 Paris Cedex 12
Tel : 01 44 67 05 05
Fax : 01 44 67 05 19
Web : http://www.eurovox.fr



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




[PHP] PDF generation

2002-03-07 Thread Jean-Arthur Silve

Hello, I use PDF function to generate a PDF file.

It works fine except I cannot generate a document with more than 10 pages !

For each page I use pdf_begin_page($pdf, 595, 842);
I close each page with pdf_end_page


Any ideas ??

jean-arthur




EuroVox
4, place Félix Eboue
75583 Paris Cedex 12
Tel : 01 44 67 05 05
Fax : 01 44 67 05 19
Web : http://www.eurovox.fr



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




[PHP] Connect() function

2002-02-01 Thread Jean-Arthur Silve

Hi !

I m using PHP 4.0.5 and I try to create a function called connect :

function connect() {
...

}

My problem is I get this :

Fatal error: Cannot redeclare connect() in 
/opt2/htdocs/www.mydomain.com/html/connexion.php on line 6


In connexion.php there is only the function declaration and no require or 
include.

I checked the PHP manual, and there is no connect() function !

Any idea ?

thank you !

Jean-arthur


EuroVox
4, place Félix Eboue
75583 Paris Cedex 12
Tel : 01 44 67 05 05
Fax : 01 44 67 05 19
Web : http://www.eurovox.fr



--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] PHP to ASP ?

2001-11-26 Thread Jean-Arthur Silve

Hi !

I work with someone who use ASP :-(( ...
Is someone could translate this function to ASP ??
I don't think it's hard, but when you don't know ASP...

function encrypt($str)
{
global $STRCRYPT;

$i = strlen($str);
$newstr=;
for ($j=0;$j$i;$j++)
{
$car = substr($str,$j,1);
$car = ord($car);
$car = $car + ord(substr($STRCRYPT,$j,1));
$car = sprintf(%03d,$car);
$newstr.=$car;
}
return $newstr;
}




EuroVox
4, place Félix Eboue
75583 Paris Cedex 12
Tel : 01 44 67 05 05
Fax : 01 44 67 05 19
Web : http://www.eurovox.fr



--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] PHP to ASP ?

2001-11-26 Thread Jean-Arthur Silve

Thank for your help !

At 08:08 26/11/01 -0700, JSheble wrote:
Oh really?  I know ASP, PHP, ColdFusion and a few others.  You really 
shouldn't make such global statements... just because you don't know ASP 
doesn't mean it's not a viable tool, nor is it a good idea as a web 
developer to lock yourself into one singular technology.  Knowing more 
than one makes you a bit more marketable.

Here's your Encrypt function in ASP, the only difference being I passed 
the encryption key in while in the PHP counterpart it was a GLOBAL.  You 
can make it a global type of variable in your ASP too.

function Encrypt( strEncryptThis, strEncryptionKey)
 dim i
 dim strNewString
 dim strCurChar

 for i = 1 to Len( strEncryptThis )
 strCurChar = Asc( Mid( strEncryptThis, i, 1 ))
 strCurChar = strCurChar + Asc( Mid( strEncryptionKey, i, 1))
 strNewString = strNewString  strCurChar
 next

 Encrypt = strNewString
end function

At 09:24 AM 11/26/2001 -0500, Casey Allen Shobe wrote:
This is a PHP mailing list, I doubt you'll find anyone who knows, or wants to
know ASP.  Why not use PHP for this, and dump ASP (along with the slow,
bug-ridden webserver it runs on [unless you're using Apache::ASP])?

On 26 November 2001 9:00, Jean-Arthur Silve wrote:
  Hi !
 
  I work with someone who use ASP :-(( ...
  Is someone could translate this function to ASP ??
  I don't think it's hard, but when you don't know ASP...
 
  function encrypt($str)
  {
  global $STRCRYPT;
 
  $i = strlen($str);
  $newstr=;
  for ($j=0;$j$i;$j++)
  {
  $car = substr($str,$j,1);
  $car = ord($car);
  $car = $car + ord(substr($STRCRYPT,$j,1));
  $car = sprintf(%03d,$car);
  $newstr.=$car;
  }
  return $newstr;
  }
 
 
 
  
  EuroVox
  4, place Félix Eboue
  75583 Paris Cedex 12
  Tel : 01 44 67 05 05
  Fax : 01 44 67 05 19
  Web : http://www.eurovox.fr
  

--
Casey Allen Shobe
[EMAIL PROTECTED]
GCS/CM d+ s+:-+: a-- C++() ULU$ P- L+++ E- W++ N++ !o K- w-- !O
M V- PS++ PE Y+ PGP++ t+ 5+ X R+ tv-- b++ DI+ D G++ e h-(*) r--- z--

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]


EuroVox
4, place Félix Eboue
75583 Paris Cedex 12
Tel : 01 44 67 05 05
Fax : 01 44 67 05 19
Web : http://www.eurovox.fr



--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] Time out for file()?

2001-11-14 Thread Jean-Arthur Silve

Hi !

I use the file function for accessing to pages on another server.

It works perfectly.

But if the server does not respond or is too long to send datas, the file 
function wait too long..

Is there a way to tune the time out ?? I would like that id the server does 
not respond, the function return in few seconds only.

I thought to a solution using :

set_time_limit(2);
register_shutdown_function(func);
file(myurl);
set_time_limit(30);
func();

In this example if the file function takes more than 2 seconds, then func() 
would be called. If the file function does not time out, then then func is 
called too...

But may be there is a cleanest way to do this (I checked the manual, 
somethink like socket_set_timeout), in the way that if the time function 
timed out then the script continues normally, returning an error:

tuning the time out(2);
$f=file(myurl);
if ($f==false)
 // Timed out
else
 // ok


Thank you !

jean-arthur

---

EuroVox
4, place Félix Eboue
75583 Paris Cedex 12
Tel : 01 44 67 05 05
Fax : 01 44 67 05 19
Web : http://www.eurovox.fr



--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] PHP 4.0.6 + GD

2001-09-07 Thread Jean-Arthur Silve

Hi !

I used PHP 4.0.3pl1 with gd lib (1.6) and used the PNG functions.
Everything was ok.

I have changed to PHP 4.0.6 , i installed it with gd support, but now PHP 
says that there are no support for PNG files...
In phpinfo(), GD support is well enaled.

I search the mailing lists in the archive and it seems it is a problem with 
this version of PHP..

Is someone succeed in resolving this problem ?

Thanks !

jean-arthur


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] Instalation

2001-08-14 Thread Jean-Arthur Silve

check de readme or install files provided in each one !

At 15:39 14/08/01 +0200, Roman wrote:
Help me. I have RED HAT Linux 7.0 and I want install Apache web server with
php and mysql support. How ?

I have : apache_1.3.20.tar.gz
php-4.0.6.tar.gz
mysql-3.23.38.tar.gz

thanx


 roman




--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]


EuroVox
4, place Félix Eboue
75583 Paris Cedex 12
Tel : 01 44 67 05 05
Fax : 01 44 67 05 19
Web : http://www.eurovox.fr



--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] Need people's advice on a web registration system.

2001-08-14 Thread Jean-Arthur Silve

I think, when they register or log in the first time, ask to the user if 
they want you to remember them by placing a cookie..

Don't do it automaticaly ! Most people doesn't like that, and if they are 
not on their computer (web bar, or at the office...), they could not like 
this...


At 11:43 14/08/01 +0100, sunny AT wde wrote:
Hi all!

I'm trying to build a registration system for a community site that
I'm building, and was wondering if people could give me advice or
tell me about problems they've been having??

I'm planning to let people register with a username and password
(encrypted), and then make them login with that, and thus putting a
cookie on their machine.

If the cookie is detected the next time, they don't have to login,
but if it is, then they do.

Sounds pretty simple??

Any advice?

TIA!

sunny


Do You Yahoo!?
Get your free @yahoo.co.uk address at http://mail.yahoo.co.uk
or your free @yahoo.ie address at http://mail.yahoo.ie

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]


EuroVox
4, place Félix Eboue
75583 Paris Cedex 12
Tel : 01 44 67 05 05
Fax : 01 44 67 05 19
Web : http://www.eurovox.fr



--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] Return Adress

2001-08-09 Thread Jean-Arthur Silve



Hi !

I ve got a problem with the mail function :

My http server (Apache) is running as user web and php is compiled as a 
module.

When I send a mail with the mail function and, for example, the recipient 
does not exists, the return message is sent to [EMAIL PROTECTED]

I would like the error messages are sent to another email adress.

I tried with the mail header Return-path: [EMAIL PROTECTED] but 
the error messages keep going to [EMAIL PROTECTED]

My code is :

$head=From: .$EMAILADMIN.\nReturn-Path: [EMAIL PROTECTED]\n;
mail($to,$sub,$msg,$head);

Is there a way to force the error messages to go to another email adress ?
Another header ?
If it's sendmail that change the return address, is there a way to prevent 
this ?

Thanks !

jean-arthur





---
EuroVox
4, place Félix Eboue
75583 Paris Cedex 12
Tel : 01 44 67 05 05
Fax : 01 44 67 05 19
Web : http://www.eurovox.fr



--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] Alternate way of calling php scripts

2001-08-08 Thread Jean-Arthur Silve

I think you think to the GET method :

http://www.mysite.com/script.php?your=mom


At 06:13 08/08/01 -0700, Evan Nemerson wrote:
I seem to recall that you can call a PHP script with a slash after it then
variables. For instance http://localhost/script.php/your=mom. I can't find it
in the manual, and was wondering if anyone knows how it works.

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]


EuroVox
4, place Félix Eboue
75583 Paris Cedex 12
Tel : 01 44 67 05 05
Fax : 01 44 67 05 19
Web : http://www.eurovox.fr



--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] Problem with Excel

2001-06-29 Thread Jean-Arthur Silve

Hi !

I think the simplest thing to do is to convert your excel file to a CSV 
file (it an ASCII format ).


jean-arthur

At 17:16 28/06/01 +0530, Sharat Hegde wrote:
Hello,

I have a web site on a Unix environment running PHP 3.0 and MySQL.

I need to convert data in an Excel format to a MySQL database format
periodically based on the input feed received in Excel format. the
conversion to MySQL is not a problem at all.

What I need help is to read data from an Excel 2000 format. How do I
retrieve data from Excel 2000? The data is basically a 2 columnar data with
currency names and conversion values.

Thanks in advance.

Regards,
Sharat

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]


EuroVox
4, place Félix Eboue
75583 Paris Cedex 12
Tel : 01 44 67 05 05
Fax : 01 44 67 05 19
Web : http://www.eurovox.fr



--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




RE: [PHP] php as cron

2001-06-22 Thread Jean-Arthur Silve

Why don't you put directly this line in your cron file ?

i.e :

00 03 * * * lynx -dump http://192.168.254.10/pop3/pop3_stuff2.php3

for daily 3.00 AM

jean-arthur



At 09:28 22/06/01 +0100, AJDIN BRANDIC wrote:
Hi again,

this is what I have done, as adviced by you guys (thanks)

created a file called pop which contains
#! /bin/sh
lynx -dump http://192.168.254.10/pop3/pop3_stuff2.php3  /dev/null
clear

If I execute this from the shell ./pop it works OK.
But as a cron job I get an error message sent to my mail box
Your terminal lacks the ability to clear the screen or position the
cursor.,
hence this 'clear' bit in my script to try to sort the problem but no joy.

Any ideas?

Ajdin



On Thu, 21 Jun 2001, Joseph Tate wrote:

  Have you tried 'php FILENAME'?  Now, I don't know how you would pass
  parameters to it...
 
   -Original Message-
   From: Johan Holst Nielsen [mailto:[EMAIL PROTECTED]]
   Sent: Thursday, June 21, 2001 8:09 AM
   To: AJDIN BRANDIC
   Cc: [EMAIL PROTECTED]
   Subject: RE: [PHP] php as cron
  
  
   try etc.
  
   00,30 * * * * lynx -dump http://path.to.php.script  /dev/null
  
   Regards
  
   Johan
  
   
Hi
   
I have PHP installed as Apache module but I want to run a cron job.  I
have .php script that works OK when executed through browser
   but is there
any way I could execute it through a cron job.
   
Ajdin
   
   
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: 
 [EMAIL PROTECTED]
   
   
  
  
   --
   PHP General Mailing List (http://www.php.net/)
   To unsubscribe, e-mail: [EMAIL PROTECTED]
   For additional commands, e-mail: [EMAIL PROTECTED]
   To contact the list administrators, e-mail: [EMAIL PROTECTED]
 
 
  --
  PHP General Mailing List (http://www.php.net/)
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
  To contact the list administrators, e-mail: [EMAIL PROTECTED]
 
 

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]


EuroVox
4, place Félix Eboue
75583 Paris Cedex 12
Tel : 01 44 67 05 05
Fax : 01 44 67 05 19
Web : http://www.eurovox.fr



--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] returned eMails

2001-05-22 Thread Jean-Arthur Silve

Hi !

We have a site which send mails to customers regulary.

My problem is that when some mails are returned (bacause addresses are not 
available or mailboxes are full etc..)
they are returned to the server administrator and not to the sender of the 
message.

When I send a mail, I use the PHP mail function .
In the header I put From: [EMAIL PROTECTED]\n\n

The From is ok because when someone receive the message, it is From the 
address I put.

May be is there another field to put in the header for the refused messages 
are returned to the sender I want ?

Thank you for your help

jean-arthur


EuroVox
4, place Félix Eboue
75583 Paris Cedex 12
Tel : 01 44 67 05 05
Fax : 01 44 67 05 19
Web : http://www.eurovox.fr



--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] Getting referrer from other frame.

2001-05-11 Thread Jean-Arthur Silve

if you have two frames, for example :

frame1 : the top frame
frame2 : the bottom frame.


in the bottom frame :

script language=javascript
var ref=?echo $HTTP_REFERRER;?
/script


in the top frame :

script language =javascript
 document.write(refferrer is+parent.frame2.ref)
/script


Well, something like that I guess...

Problem could be the top frame loaded before the bottom frame.
In that cas, the ref javascript variable may not be initialized.



At 16:20 11/05/01 +0200, Tobias Talltorp wrote:
Sorry about the post before (if there was one)... It was sent by accident.
Here is the complete question:

I would like to tweek the getenv(REMOTE_ADDRESS); a little.
I want my top frame to print the referrer for the frame below.

I'm not sure if this should be done with PHP or javascript. Sounds like
javascript though...

Any thoughts?
// Tobias



--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]


EuroVox
4, place Félix Eboue
75583 Paris Cedex 12
Tel : 01 44 67 05 05
Fax : 01 44 67 05 19
Web : http://www.eurovox.fr



--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] page counter

2001-04-10 Thread Jean-Arthur Silve

In addition of all people said, I would add a lock to the file :
$cf = fopen($counter_file,"w");

flock($cf,LOCK_EX);

fputs($cf, "$counter_file_line[0]");
fclose($cf);

This to avoid another script attempt to read the file while you update it...
I had the problem, so sometimes the counter return to zero...

jean-arthur



At 13:38 10/04/01 +0800, Wen Ni wrote:
I got an example from the internet about the PHP page counter.  However
after several testing on the coding, I still met the problem which I
don't understand.  Please help me.

?
$counter_file =
"/home/venus/public_html/qa/doccon/doc_distribution/count.txt";

$counter_file_line = file($counter_file);

$counter_file_line[0]++;

print "counter=$counter_file_line\n";
$cf = fopen($counter_file,"w");
fputs($cf, "$counter_file_line[0]");
fclose($cf);

echo $counter_file_line[0];

?

problems:

Warning:
fopen("/home/venus/public_html/qa/doccon/doc_distribution/count.txt","w")
- Permission denied in
/home/venus/public_html/qa/doccon/doc_distribution/New.php on line 9

Warning: Unable to find file identifier 0 in
/home/venus/public_html/qa/doccon/doc_distribution/New.php on line 10

Warning: Unable to find file identifier 0 in
/home/venus/public_html/qa/doccon/doc_distribution/New.php on line 11




Thanks

from: Wendy
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]


EuroVox
4, place Flix Eboue
75583 Paris Cedex 12
Tel : 01 44 67 05 05
Fax : 01 44 67 05 19
Web : http://www.eurovox.fr



--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] Why a javascript have problem if it is dynamic load?

2001-04-09 Thread Jean-Arthur Silve

Hi !

don't you think that the problem comes from : window.history.go(0); located 
in your populateTown function ?
I guess that Netscape reload you page when you tell "history.go(0)"


jean-arthur


I have a page with javascript which is dynamic generated by php. That
page is quite large and run ok with IE. But it netscape, I don't know
why that it will reload every time when I select an option. If I save
the resulting php page in HTML file and run it is netscape, no problem
at all. Can anyone tell me how to solve?

The pages are:
http://203.169.148.213/coachquote/coach_req_form.html
http://203.169.148.213/coachquote/coach_req_form.php


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]


EuroVox
4, place Flix Eboue
75583 Paris Cedex 12
Tel : 01 44 67 05 05
Fax : 01 44 67 05 19
Web : http://www.eurovox.fr



--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] PHP HTACCESS

2001-02-08 Thread Jean-Arthur Silve

hello,

you can see with the following syntax :

http://login:[EMAIL PROTECTED]/protecteddir/

So, the user enter the code and passwd from a PHP form,

then you redirect him with this syntax.

But prefer redirection with a javascript, because M$ Explorer seems do not 
love this:

Header("Location: http://login:[EMAIL PROTECTED]/protecteddir/");

So in with a javascript, do the following :

HTML
BODY
script language="javascript"
 document.location="?echo 
"http://$CODE:$[EMAIL PROTECTED]/protecteddir/";?";
/script/BODY
/HTML


where $CODE and $PWD are the login and password of the user.

jean-arthur

At 09:25 08/02/01 +0100, Christian Sakshaug wrote:
Hey

Take a look at www.phpbuilder.com, www.devshed.com or one of they many 
good sites on the net. Here you will find tutorials, forums, tips etc, 
that you can use for increase your experiance. I also suggest books to 
increase your exp to...

http://www.php.net/links.php for more links



At 05:16 08.02.2001, you wrote:
Hello Everybody,

Does anybody know or have some PHP code to read the htaccess file.
I have a couple of directorys protected by the htaccess  htpasswd files on
the Unix Apache server I use. But I want to create a webpage with input
boxes to simulate the popup dialog that appears when entering the protected
areas.

So rather than enter the username  password in the dialog I want to enter
them in a webpage.
Its all for looks, to give the site a user friendly asthetic look.

Please help.

Pretty please

Chris



--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]



Best Regards, Christian Sakshaug
--
Email: [EMAIL PROTECTED]
Web:   www.sakshaug.net
Tel:+47 913 95 618



--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]


Le simple fait de passer par la fenetre ne suffit pas a la transformer en porte.


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]