[PHP]

2001-10-31 Thread Frewuill Rodriguez

Please stop that ·$·%$·$ sending advertising



Re: [PHP] PHP-arnings

2001-10-31 Thread Frewuill Rodriguez

in php.ini look for

;;
; Error handling and logging ;
;;

specially for

error_reporting=

and set it properly.

- Original Message -
From: Harald Witt [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, October 31, 2001 10:17 AM
Subject: [PHP] PHP-arnings


 Hi,

 I have a hopefully simple problem. Look at the following simple script:

 ?php
   if  ($x) {
 echo $x;
   }
 ?

 This script runs properly on my productive system (Linux, Apache, PHP
 4.0.3pl1). But on my Development-System (W2k Server, Apache 1.3.20, PHP
4.0.6) I
 always get a Warning, that variable x in not definded.
 Ok, thats true. But how can I suppress that Messages??? They destroy my
 HTML-Code. I've searched in the PHP.INI file, but I can't find anything,
that
 looks like warning-suppression.

 Thanx for your help

 Harald

 --
 GMX - Die Kommunikationsplattform im Internet.
 http://www.gmx.net


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




Re: [PHP] query string

2001-10-30 Thread Frewuill Rodriguez

hey take it easy men.. it's not you.. it's the encoding.. what's happening
is that =20 =25 etc means a special caracther  blank space etc.. try
using url_encode() function to pass your parameters.. something like this
would help

$parameters = url_encode(error=25);
index.htm?$parameters

hope this helps
- Original Message -
From: Richard Baskett [EMAIL PROTECTED]
To: PHP General [EMAIL PROTECTED]
Sent: Tuesday, October 30, 2001 9:02 AM
Subject: [PHP] query string


 Ok I am pulling my hair out!  Why if I pass error=5 through a query string
 like index.htm?error=5 and then echo it, it's correct, but when I do
 error=25 it echos 2T and when I do error=500 it echos 5TP?  What the heck
is
 going on here?  I pass strings easy enough and I cant remember ever having
 this problem... What's going on!!? :)

 Rick


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




Re: [PHP] String handling with special char?

2001-10-30 Thread Frewuill Rodriguez

just use url_encode() to encode your parameters and then pass them

It's just like richard basket problem a few emails behind

$parameters = url_encode(error=25);
index.htm?$parameters

Hope this helps

- Original Message - 
From: Andrew Cowles [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, October 30, 2001 8:40 AM
Subject: [PHP] String handling with special char?


 Hi Guys  Gals,
 
 Sorry to re-post this but I'm still stuck and have had no reply.
 I receive via HTTP GET a string variable in encoded HEX format, for
 example;
 
 script.php?text=%0A%01%00%B1%B2
 
 My problem is that PHP sees the first occurance of %00 as a field
 terminator and so anything after it is ignored.
 
 How can I access the full string? In C there is an alternative string
 handling module which can be used (as C also uses it as a terminator).
 How can I do this with PHP?
 Please, please, please help if you can.
 Best wishes,
 
 Andy
 
 
 
 -- 
 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]




Re: [PHP] table troubles

2001-10-30 Thread Frewuill Rodriguez

just define a width for your table

- Original Message -
From: Nikola Veber [EMAIL PROTECTED]
To: php forum [EMAIL PROTECTED]
Sent: Tuesday, October 30, 2001 5:04 PM
Subject: [PHP] table troubles


 Hi !

 I'm making a web site which allows user to add his own news, or other data
to the page
 via the form. The user inputs the data into the textarea and the data is
placed into a
 table. The problem is that all the text is placed into a single line !
 Is there a html catch to prevent this, or I'll have to break the string
into the smaller
 parts ? This is not so good, because of the screen resolution ...

 Help !!!




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




Re: [PHP] String handling with special char?

2001-10-30 Thread Frewuill Rodriguez

well then you have to work on client side...doing urlenconde after receive
parameters is useless. So i guess your client (end user) is not using a html
form but sending parameters via HTTP GET as you said..

if you were using a html form you won't have this problem... so if you want
to pass the parameters via HTTP GET then you client (end user or whatever)
should do a little work like replace

% by %25

so i you want to send

'script.php?text=%0A%01%00%B1%B2'

what you should send in order to work properly

'script.php?text= %250A%2501%2500%25B1%25B2'

Note that all % were changed by %25.

I tested it and it worked.

Hope this helps





- Original Message -
From: Andrew Cowles [EMAIL PROTECTED]
To: Frewuill Rodriguez [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Tuesday, October 30, 2001 9:23 AM
Subject: Re: [PHP] String handling with special char?


 Hi Frewuill,

 Thanks for the mail.
 The parameters are passed from an end user via HTTP GET and on receipt I
 use urlencode($parametername) but, the parameter only contains data up to
 the 1st occurance of %00 and then ends.

 Calling the following code with 'script.php?text=%0A%01%00%B1%B2' would
 output '%0A%01' only.

 ?
 $text=urlencode($text);
 echo($text);
 ?

 Am I missing something in your solution?
 Any ideas?
 Best wishes,

 Andy



 On Tue, 30 Oct 2001, Frewuill Rodriguez wrote:

  just use url_encode() to encode your parameters and then pass them
 
  It's just like richard basket problem a few emails behind
 
  $parameters = url_encode(error=25);
  index.htm?$parameters
 
  Hope this helps
 
  - Original Message -
  From: Andrew Cowles [EMAIL PROTECTED]
  To: [EMAIL PROTECTED]
  Sent: Tuesday, October 30, 2001 8:40 AM
  Subject: [PHP] String handling with special char?
 
 
   Hi Guys  Gals,
  
   Sorry to re-post this but I'm still stuck and have had no reply.
   I receive via HTTP GET a string variable in encoded HEX format, for
   example;
  
   script.php?text=%0A%01%00%B1%B2
  
   My problem is that PHP sees the first occurance of %00 as a field
   terminator and so anything after it is ignored.
  
   How can I access the full string? In C there is an alternative string
   handling module which can be used (as C also uses it as a terminator).
   How can I do this with PHP?
   Please, please, please help if you can.
   Best wishes,
  
   Andy
  
  
  
   --
   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]




Re: [PHP] Win98 + Apache + PHP4

2001-10-30 Thread Frewuill Rodriguez

check your php.ini and look for /tmp dir and change it for  c:\php or
c:\temp or c:\windows\temp or whatever you want
- Original Message -
From: p.whiter [EMAIL PROTECTED]
To: PHP - GENERAL [EMAIL PROTECTED]
Sent: Tuesday, October 30, 2001 11:20 AM
Subject: [PHP] Win98 + Apache + PHP4


 Hi

 I have the above configuration installed along with mySQL, all works fine
on
 my local machine except for error/warning messages whenever previewing the
 page in my browser where I am calling/setting a cookie variable...

 Does anyone know if there are any config settings I can change anywhere to
 prevent this??

 Thanks
 Paul



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




Re: [PHP] fopen for ftp transfers

2001-10-29 Thread Frewuill Rodriguez

what about using ftp functions from PHP?

http://www.php.net/manual/en/ref.ftp.php


- Original Message - 
From: Scott [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, October 29, 2001 10:58 AM
Subject: [PHP] fopen for ftp transfers


 Hi-
 
 I am attempting to transfer files from one server to another via ftp.  I 
 am wondering if this is the best method to transfer files within PHP or
 should I seek other methods.  Here is the way I am doing it now:
 
 $sendfile =
 fopen(ftp:user:[EMAIL PROTECTED]/testfile, w);
 
 Thanks
 
 
 -- 
 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]




Re: [PHP] Mailing list

2001-10-29 Thread Frewuill Rodriguez

you mean like majordomo? it's not php but perl

www.majordomo.com

- Original Message -
From: "Nikola Karovi" [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, October 29, 2001 12:34 PM
Subject: [PHP] Mailing list


 Hi,
 Im looking for some mailing list script that would have option to send
mails
 in batch mode, to prevent server overloading and to sent all mails in
 personal mode, not to send them in bcc, or anything.
 I have looked allready on hotscripts.com ang phpresourceindex etc, but all
 e-mails with that options aren't free.

 Thanks!


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




Re: [PHP] User Authentication against remote authentication server

2001-10-29 Thread Frewuill Rodriguez

may be you can write a  script (perl/php/*) which try to check/log/whatever
on the remote user sending a login/password, so if it returns ok yo can use
it to deny/allow the access to your local webserver.. it's like a kind of
authentication proxy



- Original Message -
From: Zhu George-CZZ010 [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, October 29, 2001 4:39 PM
Subject: [PHP] User Authentication against remote authentication server



sorry, this might be a little bit off the topic, but I really hope you
could help anwering this question.

It's pretty clear how to use web server to authenticate the
users/groups, for example, if we are using Apache, the userID and password
will be stored in the browser's cache, and be sent  to the web server to do
the authentiation whenenver a page is requested.

However, if the authentication server is not the web server, instead,
it is a remote independent server. How can we manage the user
authentications at the web server side?

Thank you very much in advance!

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




Re: [PHP] free php web hosting

2001-10-26 Thread Frewuill Rodriguez

www.f2s.com sometimes it's a little slow but u have php+mysql

- Original Message -
From: Kamran H. Hassan [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, October 26, 2001 11:20 AM
Subject: [PHP] free php web hosting


Hi,

can any body know about free php  mysql free web hosting service provder
?

i will be greatful if u let me know

Kamran H. Hassan




-- 
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] fsockopen and https

2001-10-26 Thread Frewuill Rodriguez

As far as i know PHP can't handle SSL yet.. at least that was the situation
a few versions ago. =(

- Original Message -
From: Brad Hubbard [EMAIL PROTECTED]
To: John [EMAIL PROTECTED]; [EMAIL PROTECTED]
Sent: Friday, October 26, 2001 5:54 AM
Subject: Re: [PHP] fsockopen and https


 On Fri, 26 Oct 2001 17:18, John wrote:
  Hello All,
 
  I am new to this list and am sure most of you are tired of this subject
  appearing.  Please forgive me as I am becoming tired of searching
archives
  and the internet and I am hoping someone here can help me.
 
  I am using fsockopen to post data to a dll on a SSL server.  I setup the
  socket data and successfully posted the data to port 80 but as soon as I
  switch to port 443 I received no errors or text.

 Does this help? I use this on web servers to test whether a transaction
 server is available or not. Only works on *nix of course (sorry Bill :-)

 ?php

 $ph = popen( /usr/bin/openssl s_client -connect
secure.geicp.com:443 -quiet
 2/dev/null EOM\nGET / HTTP/1.0\n\nEOM\n, r );
 $response = fgets( $ph, 1024 );

 if( stristr( $response, 200 OK ) )
 {
 header( Location: https://a.secure.server.com; );
 exit;
 }

 ?

 Cheers,
 BAD

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




Re: [PHP] how to recognize local or server execution?

2001-10-26 Thread Frewuill Rodriguez

Try using apache var $SERVER_SOFTWARE in order to know where you are
- Original Message - 
From: John A. Grant [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, October 26, 2001 5:18 PM
Subject: [PHP] how to recognize local or server execution?


 I have an xxx.php page that runs on my Unix server.  I also
 run php.exe on my NT box to generate the corresponding
 xxx.html file like this:
 c:\ php -q xxx.php  xxx.html
 
 The xxx.php file contains stuff like this:
 print hello\n;
 
 That means stdout from the server and the xxx.html file
 both contain \n.  I would like the xxx.html file to contain
 \r\n so it can be viewed/edited with notepad. Yes,
 notepad and \r\n both suck, but that's another story...
 
 So I guess I would like my code to look like this:
 if(running php.exe on my NT box){
 $delimiter=\r\n;
 }else{
 $delimiter=\n;
 }
 
 and then my code looks like:
 print hello$delimiter;
 
 How can I do this?
 
 --
 John A. Grant  * I speak only for myself *  (remove 'z' to reply)
 Radiation Geophysics, Geological Survey of Canada, Ottawa
 If you followup, please do NOT e-mail me a copy: I will read it here
 
 
 
 
 -- 
 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]




Re: [PHP] how to recognize local or server execution?

2001-10-26 Thread Frewuill Rodriguez

may be

$argv
Array of arguments passed to the script. When the script is run on the
command line, this gives C-style access to the command line parameters. When
called via the GET method, this will contain the query string.

$argc

Contains the number of command line parameters passed to the script (if run
on the command line).

In case you have any parameter



hope this helps... and this should work on windows too.

- Original Message -
From: DL Neil [EMAIL PROTECTED]
To: Mark [EMAIL PROTECTED]; [EMAIL PROTECTED];
[EMAIL PROTECTED]
Sent: Friday, October 26, 2001 6:12 PM
Subject: Re: [PHP] how to recognize local or server execution?


 Mark,
 Backing John's question up by one iteration: is there a PHP environment
variable which can be used to
 distinguish between code being run from the command line and code being
run in a browser?
 - and the Million dollar question, sorry make that the M$ question: will
it also work under Windows?
 Please advise,
 =dn


 On Fri, 26 Oct 2001 17:18:37 -0400, John A. Grant wrote:
 I have an xxx.php page that runs on my Unix server.  I also
 run php.exe on my NT box to generate the corresponding
 xxx.html file like this:
   c:\ php -q xxx.php  xxx.html
 
 The xxx.php file contains stuff like this:
   print hello\n;
 
 That means stdout from the server and the xxx.html file
 both contain \n.  I would like the xxx.html file to contain
 \r\n so it can be viewed/edited with notepad. Yes,
 notepad and \r\n both suck, but that's another story...
 
 So I guess I would like my code to look like this:
   if(running php.exe on my NT box){

 try:
 if (strstr(php_uname(), Windows)) {

 $delimiter=\r\n;
   }else{
 $delimiter=\n;
   }
 
 and then my code looks like:
   print hello$delimiter;
 
 How can I do this?
 
 --
 John A. Grant  * I speak only for myself *  (remove 'z' to reply)
 Radiation Geophysics, Geological Survey of Canada, Ottawa
 If you followup, please do NOT e-mail me a copy: I will read it here
 
 
 
 


 --
 Mark, [EMAIL PROTECTED] on 10/26/2001



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




Re: [PHP] php/Oracle db connection

2001-10-25 Thread Frewuill Rodriguez

Check data1.tsl.state.tx.us it I can't even ping it.. try using IP adress
instead or check that name.

- Original Message -
From: toni baker [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, October 25, 2001 4:56 PM
Subject: [PHP] php/Oracle db connection


 I have successfully compiled php with linked iODBC
 driver manager as an Apache shared module.  However
 when trying to connect php to the Oracle database I
 get an error.  The error and the sample connection
 code is below.

 Warning: SQL error: [OpenLink][ODBC]RPC: Unknown host,
 SQL state 08004 in SQLConnect in
 /home/httpd/html/ronsdev/putenv.php on line 9
 can not connect to DSN: data1.tsl.state.tx.us

 ?
 putenv(LD_LIBRARY_PATH=/usr/local/src/odbcsdk/lib);
 putenv(ODBCINSTINI=/usr/local/src/bin/odbcinst.ini);
 putenv(ODBCINI=/usr/local/src/bin/odbc.ini);
 $dsn=data1.tsl.state.tx.us;
 $user=scott;
 $password=tiger;
 $sql=SELECT * FROM scott.emp;
 if($conn_id=odbc_connect($dsn,,)) {
   echo connected to DSN: $dsn;
 if($result=odbc_do($conn_id, $sql)) {
   echo executing '$sql';
   echo Results: ;
   odbc_result_all($result);
   echo freeing result;
   odbc_free_result($result);
 }
 else {
   echo can not execute '$sql';
 }
   echo closing connection $conn_id;
   odbc_close($conn_id);
 }
 else {
   echo can not connect to DSN: $dsn;
 }
 ?

 Can someone help with this?
 Thanks Toni

 __
 Do You Yahoo!?
 Make a great connection at Yahoo! Personals.
 http://personals.yahoo.com

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