[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 : "; echo $HTTP_GET_VARS["TESTV"].""; phpinfos(); ?> But in the script all variables are empty ($TESTV and $HTTP_GET_VARS["TES

[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 ---

[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 ---

[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

Re: [PHP] PHP to ASP ?

2001-11-26 Thread Jean-Arthur Silve
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

[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);

[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

[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 archiv

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 1

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

[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 err

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

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 MyS

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

[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 m

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 : var ref= in the top frame : document.write("refferrer is"+parent.frame2.ref) Well, something like that I guess... Problem could be the top fr

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 retu

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

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: