[PHP] Files without type???

2001-04-18 Thread Morten Winkler Jørgensen
Hi php'ers Executing the following code on my Redhat 7.2 box, through Apache i get the most annoying output: Code: function listDirectory($basedir){ $diary_directory = opendir($basedir); while($filename = readdir($diary_directory)) { if(strcmp(".", $filename) != 0) {

[PHP] need help

2001-04-18 Thread chris herring
this is really buggin me... i've got this free-for-all that i want to make, and everything seems logical, but echo "form method=\"POST\" action=\"$PHP_SELF\" name=\"linkadd\""; echo "input type=\"text\" name=\"url\" size=\"20\" value=\"http://\"br"; echo "input type=\"text\" name=\"text\"

Re: [PHP] Is it possible to parse a variable by character?

2001-04-18 Thread Yasuo Ohgaki
[Cross post to php-lang] Regular expression functions can do the job and already have reply. Answer for the original question: How to access string by character. I'm not sure if accessing string as array is going to be depreciated or not. (Or is it already depreciated???) But you could do $str

[PHP] suEXEC CGI how-to

2001-04-18 Thread Cameron
The topic says it, i was wondering if anyone had a how-to on suEXEC CGI php. I have used the cgi before but havnt ever had the time to setup the suEXEC. Wondering if there is a guide to save me going crazy. Cameron -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail:

Re: [PHP] Files without type???

2001-04-18 Thread David Robley
On Wed, 18 Apr 2001 15:53, Morten Winkler Jrgensen wrote: Hi php'ers Executing the following code on my Redhat 7.2 box, through Apache i get the most annoying output: Code: function listDirectory($basedir){ $diary_directory = opendir($basedir); while($filename =

php-general Digest 18 Apr 2001 06:46:13 -0000 Issue 634

2001-04-18 Thread php-general-digest-help
php-general Digest 18 Apr 2001 06:46:13 - Issue 634 Topics (messages 49021 through 49132): SOMEONE SHOOT ME!!! 49021 by: Rick Kukiela 49032 by: Martín Marqués 49054 by: Godd 49084 by: Phillip Bow `AM_PROG_LIBTOOL' not found in library 49022 by:

[PHP] mySQL - select column

2001-04-18 Thread Julian Wood
Hi all, Given that the resultset from a mysql query is a 2-d array (of sorts - I don't know), if I retrieve only a single column, is there an easy way to grab it as a linear array? For example - old way: $uids=array(); $res = mysql_db_query("db", 'select uid from tbl;', $link); while ($row =

Re: [PHP] Is it possible to parse a variable by character?

2001-04-18 Thread CC Zona
In article 9bjcj6$dg6$[EMAIL PROTECTED], [EMAIL PROTECTED] ("Yasuo Ohgaki") wrote: I'm not sure if accessing string as array is going to be depreciated or not. (Or is it already depreciated???) I made a note of this a while ago when it came up on the list, because initially it sounded to me

Re: [PHP] need help

2001-04-18 Thread Geir Eivind Mork
On Wednesday 18 April 2001 08:38, chris herring wrote: this is really buggin me... i've got this free-for-all that i want to make, and everything seems logical, but I did a quick rewrite here. it adds links as people enters them :) ? echo END form method="POST"

Re: [PHP] need help

2001-04-18 Thread David Robley
On Wed, 18 Apr 2001 16:08, chris herring wrote: this is really buggin me... i've got this free-for-all that i want to make, and everything seems logical, but echo "form method=\"POST\" action=\"$PHP_SELF\" name=\"linkadd\""; echo "input type=\"text\" name=\"url\" size=\"20\"

Re: [PHP] PHP/OCI8 design for persistent connection tuning

2001-04-18 Thread Remigiusz Sokolowski
Dave Thomas wrote: Yeah, that's what I'm thinking. I could tune the images server way down for flat content and massive bandwith. The only problem I can see is that webmasters hate having to code that extra info. Hi! You could also think about something like sqlRelay (www.firstworks.com)

[PHP] Variable variable

2001-04-18 Thread Jacky
Hi all I have a form with check box and name of those checkboxes is usuing variable lke this, !-- I got the value $id from a table and looping them and assign them to the check box name-- input type="checkbox" name ="$id" value="on" and when I submit the form to page foo.php4, at that page, I

Re: [PHP] Variable variable

2001-04-18 Thread Ulf Wendel
Jacky schrieb: !-- I got the value $id from a table and looping them and assign them to the check box name-- input type="checkbox" name ="$id" value="on" and when I submit the form to page foo.php4, at that page, I use Variable variable to call the value of the check box to see if it

Re: [PHP] Variable variable

2001-04-18 Thread Chris Fry
Jacky, You do not need the value. The variable $id will either exist (if the user checked it) or not (if the user did not check it). Hope this helps. Chris Jacky wrote: Hi all I have a form with check box and name of those checkboxes is usuing variable lke this, !-- I got the value $id

Re: [PHP] Variable variable

2001-04-18 Thread [EMAIL PROTECTED]
the variable $id in the second sniplet come from the id from talble when I run query and loop it using mysql_fetch_array. So I end up have value of $id from the id field from table, right?But the value store in $id is now in string value, and if I need to use that value for the if..then.. else

Re: [PHP] Is it possible to parse a variable by character?

2001-04-18 Thread Sean Coyle
Thanks for that help! Now I am getting an interesting error that I am not sure what to make of. Warning: REG_ERANGE in /home/httpd/www/worldvibe.org/digitall/edit_f.php on line 91 Here are lines surrounding 91: 89- strtolower($f_loc_name); 90- $f_loc_new = ""; 91- $f_loc_new =

Re: [PHP] Is it possible to parse a variable by character?

2001-04-18 Thread Sean Coyle
Oops, noticed a small impossibility error: TEST.file.#.txt should be converted to sean.coyle..txt Should read TEST.file.#.txt should be converted to test.file..txt But, I would imagine you guys figured that one out already. Cheers, Sean On 4/18/01 12:26 AM, in article [EMAIL

[PHP] Cannot destroy session cookie

2001-04-18 Thread Jens Kisters
Hi there, i'm having a little trouble with cleaning up sessions. I have a login page that sets a certain session variable that is used to determine wether a user is logged on. When the user has cookies turned on the application recognizes the running session an resumes it, that also happens on

FW: RE: [PHP] highlighting search results (revisited)

2001-04-18 Thread Matt Williams
The input from the search form is $searchtext. The Returned Search data is $searchdata. ? $sql = "SELECT searchdata FROM table WHERE searchdata LIKE '%$searchtext'"; $result = @mysql_query($sql, $connection) or die (mysql_error()); $num = mysql_num_rows($result); $x = 0; if

[PHP] checkbox validation

2001-04-18 Thread Jacky
Hi all I have a form with the checkbox like this form $query="select id from foo"; $result=($query,$con); while ($row = mysql_fetch_array($result)) { input type="checkbox" name="$id" value="on" } submit button and stuffs here... /form After I submit to next page, at next page, how

RE: [PHP] checkbox validation

2001-04-18 Thread Matt Williams
After I submit to next page, at next page, how do I check which check box is checked? like this? if ($id=="on") { do something }else{ do something } Hi try this assuming you have no toher check boxes called $id if(isset($id)) { do something }else{ do other } M@ -- PHP

Re: [PHP] Variable variable

2001-04-18 Thread Chris Fry
Sorry - thought you only had one! - it's late. To Name the checkboxes you need: ?php while (get records from db) { $id = id from record; ? input type="checkbox" name ="?php print $id; ?" ?php } ? You would have to do a $HTTP_GET_VARS on the next page to find out which ones exist. Then

Re: [PHP] Variable variable

2001-04-18 Thread Jacky
I did look up in the manual for $HTTP_GET_VARS but could not find it? what is it? a function? sorry to ask this again, just try to find out how to use that. Jack [EMAIL PROTECTED] "There is nothing more rewarding than reaching the goal you set for yourself" - Original Message - From:

[PHP] to find out which checkbox is checked

2001-04-18 Thread [EMAIL PROTECTED]
Hi all, I still cannot get my problem sought out, pretty desparate here so decided to post my question again. Allow me to repeat my question again: I have a form with the checkbox like this form ?php $query="select id from foo"; $result=($query,$con); while ($row = mysql_fetch_array($result))

[PHP] AW: SSL SSL SSL SSL -- READ THIS!!!!!!

2001-04-18 Thread Jens Fisch
No. Just point your links to https://www.yoursecureserver.com/dir/page.htm or, if your SSL is on another port, to https://www.yoursecureserver.com:otherportnumber/dir/page.htm. cu, Jens -Ursprngliche Nachricht- Von: phpman [mailto:[EMAIL PROTECTED]] Gesendet: Dienstag, 17. April

Re: [PHP] to find out which checkbox is checked

2001-04-18 Thread Martin Cabrera Diaubalick
Hello Jacky! Try to echo the variable to see its value. HTH - Original Message - From: "Jacky@lilst" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, April 18, 2001 10:19 PM Subject: [PHP] to find out which checkbox is checked Hi all, I still cannot get my problem sought

Re: [PHP] HTTP_POST_VARS not and array when used in a function?

2001-04-18 Thread Alexander Skwar
So sprach Joseph Blythe am Wed, Apr 18, 2001 at 10:48:14AM +0930: Hey, Why doesn't HTTP_POST_VARS work inside functions? ---somefile.php - forms action --- function foo() { reset($HTTP_POST_VARS); Because this particular HTTP_POST_VARS is not the HTTP_POST_VARS you have outside

Re: [PHP] function to add %20 in place of blank spaces

2001-04-18 Thread Alexander Skwar
So sprach Nando2 am Mon, Apr 16, 2001 at 03:28:11PM -0300: Can anyone remind me of that? (raw)urlencode Alexander Skwar -- How to quote: http://learn.to/quote (german) http://quote.6x.to (english) Homepage: http://www.digitalprojects.com | http://www.iso-top.de iso-top.de - Die

Re: [PHP] php like cgi

2001-04-18 Thread Alexander Skwar
So sprach Dddogbruce (@home.com) am Mon, Apr 16, 2001 at 03:12:25PM -0700: ? $greeting = "Hello!" echo "$greeting" ? Since I also have this problem, I tried your suggestion, and it didn't work. However, I expected this, because apache doesn't know which interpreter to use to exec this

[PHP] php equivalent for `command`

2001-04-18 Thread Greig, Euan
Is there a php equivalent for the use of ` (I think) in Unix/Perl? So for example echo "`$x++`" would first evaluate $x++ and then print the resulting value. Euan Greig Technical Consultant BRANN DATA [EMAIL PROTECTED] 01285 645997

[PHP] print_r style array content

2001-04-18 Thread Chien-pin Wang
Dear All, I wonder if there is a php function that could return content of an array, in print_r style, as a string. I need to get it and send as debug information. If not, is there a workaround or alternative, other than writing a function? Many thanks. Chien-pin -- PHP General Mailing

Re: [PHP] php equivalent for `command`

2001-04-18 Thread Jason Brooke
echo ++$x; http://www.php.net/manual/en/language.operators.increment.php Is there a php equivalent for the use of ` (I think) in Unix/Perl? So for example echo "`$x++`" would first evaluate $x++ and then print the resulting value. Euan Greig Technical Consultant BRANN DATA [EMAIL

Re: [PHP] Variable variable

2001-04-18 Thread Chris Fry
Sorry - try $HTTP_POST_VARS Chris Jacky wrote: I did look up in the manual for $HTTP_GET_VARS but could not find it? what is it? a function? sorry to ask this again, just try to find out how to use that. Jack [EMAIL PROTECTED] "There is nothing more rewarding than reaching the goal you

RE: [PHP] php equivalent for `command`

2001-04-18 Thread Greig, Euan
I deliberately gave a simple example, perhaps too simple. I want to output quite long and complicated strings that may involve evaluated variables, calls to functions etc. But I also want it to as legible as possible. But even something simple along the lines I quoted gives me problems. See

RE: [PHP] highlighting search results (revisited)

2001-04-18 Thread Matt Williams
Hi James I'll paste the code I use.. $string = search string entered in the text box. # // REPLACE SPACES FOR MULTIWORD SEARCH $string = str_replace(" ","%",$string); $db-query("SELECT title,description FROM files WHERE (title LIKE

[PHP] how do I find out which checkbox is checked when form get submit

2001-04-18 Thread Jacky
Hi all, Extremely desparate here as I still cannot get my problem sought out, so decided to post my question again. Allow me to repeat my question again: I have a form with the checkbox like this form ?php $query="select id from foo"; $result=($query,$con); while ($row =

[PHP] shm_attach not found

2001-04-18 Thread Patrick Lai
I get this error Fatal error: Call to undefined function: shm_attach() in /usr/local/apache/phplib/ct_shm.inc on line 31 Here is my compile parameter './configure' '--with-apxs=/usr/local/apache/bin/apxs' '--with-config-file-path=/usr/local/apache/conf' '--enable-versioning' '--with-ldap'

RE: [PHP] how do I find out which checkbox is checked when form get submit

2001-04-18 Thread Matt Williams
Hi Jacky In it's simpliest form try this ### form action="?= $PHP_SELF; ?" method="get" input type="checkbox" name="id"br/ input type="submit" name="submit" value="submit" /form ?php echo (isset($id)) ? "checked" : "not checked"; ?

[PHP] Connection to postgresql DB used by 2 scripts ?

2001-04-18 Thread Picard, Cyril
I would like to query a postgresql db with the php language. Today I wrote a script (connectandquery.php) performing the following : - connect to the DB : $conn = pg_Connect("dbname = foo"); - execute the query : $res = pg_Exec($conn,"SELECT * from BAR"); But I would like to write this in two

[PHP] sessions

2001-04-18 Thread Ben
i'm trying to use sessions with my project, but it seems that registered variables in a session aren't global by default. It doesn't even seem like the session is global, because if I reference the sessionid (which only shows up if cookies are disabled) by using ?=SID?, it shows up within a

Re: [PHP] checkbox validation

2001-04-18 Thread Robert Vetter
Jacky wrote: Hi all I have a form with the checkbox like this form $query="select id from foo"; $result=($query,$con); while ($row = mysql_fetch_array($result)) { input type="checkbox" name="$id" value="on" } submit button and stuffs here... /form One possibility:

[PHP] What is cookies

2001-04-18 Thread Bertrand TACHAGO
Can anyone tell me what is cookiesand how i can use it Thank TACHAGO -- 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] Is it possible to parse a variable by character?

2001-04-18 Thread Wico de Leeuw
At 00:28 18-4-2001 -0700, Sean Coyle wrote: Thanks for that help! Now I am getting an interesting error that I am not sure what to make of. Warning: REG_ERANGE in /home/httpd/www/worldvibe.org/digitall/edit_f.php on line 91 Here are lines surrounding 91: 89- strtolower($f_loc_name); 90-

Re: [PHP] how do I find out which checkbox is checked when form get submit

2001-04-18 Thread Szii
If a checkbox is NOT checked, the attached PHP variable is NOT set. Only if it is checked will you be able to see/query the variable "id" Using isset() should allow to you see the boolean state of a checkbox, or using the "value" component after you do an isset() call will give you the

[PHP-CVS] cvs: php4(PHP_4_0_5) /ext/mcrypt mcrypt.c

2001-04-18 Thread Derick Rethans
derick Wed Apr 18 02:48:39 2001 EDT Modified files: (Branch: PHP_4_0_5) /php4/ext/mcryptmcrypt.c Log: - MFH (Bug #8839) Index: php4/ext/mcrypt/mcrypt.c diff -u php4/ext/mcrypt/mcrypt.c:1.45.2.1 php4/ext/mcrypt/mcrypt.c:1.45.2.2 ---

Re: [PHP] Connection to postgresql DB used by 2 scripts ?

2001-04-18 Thread Johannes Janson
Hi, put: include("connect.php"); at the beginning of query.php. Johannes ""Picard, Cyril"" [EMAIL PROTECTED] schrieb im Newsbeitrag [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... I would like to query a postgresql db with the php language. Today I wrote a script (connectandquery.php)

[PHP-CVS] cvs: php4 / README.STREAMS

2001-04-18 Thread Wez Furlong
wez Wed Apr 18 03:43:21 2001 EDT Added files: /php4 README.STREAMS Log: Information about php streams Index: php4/README.STREAMS +++ php4/README.STREAMS An Overview of the PHP Streams abstraction ==

Re: [PHP] Site Sessions: Online/Offline - help?

2001-04-18 Thread Richard
mt_srand ((double) microtime() * 100); Thanks alot, I will use the upper one... Perhaps decrease it abit ;) Note: one way to auto-logout someone is to use something like a on_unload javascript procedure, but don't bother. Not worth the hassle and it's isn't fool-proof. Nopp, tried

Re: [PHP] Variable variable

2001-04-18 Thread Plutarck
Your problem has little to do with the things mentioned. First of all, you are refering to a variable variable incorrectly. You must use brackets, like this: ${$id} If ID has the value "Blue", then the above is the same as: $Blue So in your examble if you had the checkbox with the value

[PHP] Images only with 256 Colors?!

2001-04-18 Thread Nils Sondermann
I want do create Images dynamicly, i have a High Color png but after CreateImagefrompng() it have only 256 colors. What can i do? thx Nils -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To

Re: [PHP] What is cookies

2001-04-18 Thread Plutarck
RTFM (ReadTheFineManual ;) http://us.php.net/manual/en/function.setcookie.php As listed in the manual for an explanation on cookies: http://www.netscape.com/newsref/std/cookie_spec.html -- Plutarck Should be working on something... ...but forgot what it was. "Bertrand TACHAGO" [EMAIL

Re: [PHP] How do i include ASP script into PHP...??!

2001-04-18 Thread Christian Reiniger
On Tuesday 17 April 2001 15:56, you wrote: Easy. Just use fopen('http://localhost/file.asp') then fread the data you want. I do this technique to read Access tables from a Linux box. But that gives you the RESULTS of the ASP script, not the script itself. fopen

[PHP] Regular Expression

2001-04-18 Thread Jeroen Geusebroek
Hi, I have question about regular expressions; I don't know anything about it and was wondering if someone could help me out. I have this text: "[ this is atest ] and this is the rest of the text" I want to get the text inbetween the [ and ]. If someone could help me out, i would appreciate

Re: [PHP] Persistent connection many scripts ?

2001-04-18 Thread Christian Reiniger
On Tuesday 17 April 2001 16:28, you wrote: Yes... I'm not familiar with sessions. This should be like this ? : In connect.php : ?php session_start(); $connect = pg_pConnect("blablabla"); session_register("connect"); A HREF="query.php??=SID"?clique ici/? ? Simply using pg_pconnect()

RE: [PHP] print_r style array content

2001-04-18 Thread Neil Kimber
Try: function getStringFromObj($prmObjIn) { ob_start(); var_dump($prmObjIn); $output = ob_get_contents(); ob_end_clean(); return $output; } I grabbed this from user comments somewhere on php.net. It works a treat. -Original Message- From:

Re: [PHP] sessions

2001-04-18 Thread Plutarck
Rather than bothering with SID whos existance is uncertain, use the variable $PHPSESSID. It's set whenever you use session_start, to my knowledge. The simplest method, and the only one I am aware of, of accessing session variables globally is by explicitly declaring them global in your function.

RE: [PHP] Persistent connection many scripts ?

2001-04-18 Thread Picard, Cyril
hummm... I don't know how to use pg_pconnect()... It returns a connection ID, isn't it ? And I have to use this connection ID later ? I would like to reuse this connection ID to another script... and the problem is here :( I feel that I ignore something so important that I'm stopped and so

RE: [PHP] Connection to postgresql DB used by 2 scripts ?

2001-04-18 Thread Picard, Cyril
include will help me to organize my scripts, but it will effectively establish the connection each time I perform the query. I would like to establish the connection one time, and then to be able to perform many queries using this connection. I've been told that i could declare $conn as global in

[PHP] FastCGI and PHP

2001-04-18 Thread Alexander Skwar
(Learning from my last mistake, I'll now try to make clear right away what each sentence means *G*) Introductory lines: I want to write a FastCGI compatible PHP script. In order to do so, PHP obviously need to recompile PHP with '--with-fastcgi'. However, looking at some PERL FastCGI scripts,

Re: [PHP] Importing Data from Text File

2001-04-18 Thread Plutarck
Use file() to read the file up into an array (we'll call it $array). Then I would personally use: foreach ($array as $val) { trim($val); $arr = explode("\t", $val); // "\t" means tab, but it will not work if it's only spaces instead of a real tab $stock_name = $arr[0];

[PHP] Security

2001-04-18 Thread Alessandro F. Rocha
Hi all, I'd like to know if there is any vulnerability with PHP 4.0.4 pl1 running on IIS servers. Regards, Alessandro. _ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com. -- PHP General Mailing

[PHP] global sessions

2001-04-18 Thread Ben
i'm trying to use sessions with my project, but it seems that registered variables in a session aren't global by default. It doesn't even seem like the session is global, because if I reference the sessionid (which only shows up if cookies are disabled) by using ?=SID?, it shows up within a

Re: [PHP] print_r style array content

2001-04-18 Thread Christian Reiniger
On Wednesday 18 April 2001 06:01, you wrote: Dear All, I wonder if there is a php function that could return content of an array, in print_r style, as a string. I need to get it and send as debug information. If not, is there a workaround or alternative, other than writing a function?

Re: [PHP] Is it possible to parse a variable by character?

2001-04-18 Thread Christian Reiniger
On Wednesday 18 April 2001 07:22, you wrote: Hey there guys, This may seem like a dumb question, but I have to ask it anyway. I have a form in one of my php based scripts that allows for file uploads. I recently noticed a potential issue if people upload files containing anything else

Re: [PHP] Regular Expression

2001-04-18 Thread Wico de Leeuw
At 13:39 18-4-2001 +0200, Jeroen Geusebroek wrote: Hi, I have question about regular expressions; I don't know anything about it and was wondering if someone could help me out. I have this text: "[ this is atest ] and this is the rest of the text" $data = "[ this is a test ] and this is the

Re: [PHP] Is it possible to parse a variable by character?

2001-04-18 Thread Christian Reiniger
On Wednesday 18 April 2001 12:00, you wrote: Warning: REG_ERANGE in /home/httpd/www/worldvibe.org/digitall/edit_f.php on line 91 Here are lines surrounding 91: 89- strtolower($f_loc_name); 90- $f_loc_new = ""; 91- $f_loc_new = ereg_replace("[^[_a-z0-9-\.]]", "", $f_loc_name);

[PHP] unixodbc problem

2001-04-18 Thread Przem Kowalczyk
Hi. I've installed unixODBC (2.0.5) and then compiled php (4.0.4pl1 and latest CVS) with --with-unixodbc=/www/unixodbc. Suprisingly, when I noticed that there is: Fatal error: Call to undefined function: odbc_connect() in /www/virtual/firebird/common/pre.php on line 25 Can anybody explained me

Re: [PHP] Wrox - Beginning PHP4 Ch12 example problem

2001-04-18 Thread Dave Mateer
Replying to myself...the first sign of madness. I found the solution, which was hidden characters in the text file, which was confusing javascript. ""Dave Mateer"" [EMAIL PROTECTED] wrote in message 9bf1v5$4iq$[EMAIL PROTECTED]">news:9bf1v5$4iq$[EMAIL PROTECTED]... Happy Easter to all! In

Re: [PHP] Cannot destroy session cookie

2001-04-18 Thread Johannes Janson
Hi, Why destroying it "before" a user logs in? Isn't it better to start the session "after" a successful login? And then destroying the session when the user logs out. Or did I get it wrong. A few lines of code would help to understand. Johannes "Jens Kisters" [EMAIL PROTECTED] schrieb im

[PHP] HTTP_POST_VARS variable names?

2001-04-18 Thread Mat Marlow
Hi, Does anyone know if php stores POST variable names as well as values? I'm using HTTP_POST_VARS for the values but I'm having to create my own array for the names. cheers, Mat -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional

[PHP-CVS] cvs: php4 /ext/dbx dbx.c dbx.h

2001-04-18 Thread Marc Boeren
mboeren Wed Apr 18 05:31:08 2001 EDT Modified files: /php4/ext/dbx dbx.c dbx.h Log: Added DBX_CMP_TEXT and DBX_CMP_NUMBER constants and support for them in the dbx_cmp_desc and dbx_cmp_asc functions. The old method of passing a string "number" is now no

Re: [PHP] HTTP_POST_VARS variable names?

2001-04-18 Thread Johannes Janson
Hi, this will list all your posted variables with name and the posted value. while (list($key, $value)=each($HTTP_POST_VARS) ) { echo "$key = $value br"; } Johannes ""Mat Marlow"" [EMAIL PROTECTED] schrieb im Newsbeitrag 9bk11q$dvq$[EMAIL PROTECTED]">news:9bk11q$dvq$[EMAIL

Re: [PHP] HTTP_POST_VARS variable names?

2001-04-18 Thread Renze Munnik
Mat Marlow wrote: Hi, Does anyone know if php stores POST variable names as well as values? I'm using HTTP_POST_VARS for the values but I'm having to create my own array for the names. cheers, Mat -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL

Re: [PHP] Security

2001-04-18 Thread Phil Driscoll
I'd like to know if there is any vulnerability with PHP 4.0.4 pl1 running on IIS servers. None that I'm aware of that are due to php, unless you write silly scripts which allow access to things they shouldn't. There are probably uncountable NT vulnerabilities though. One which recently frightened

RE: [PHP] Why is this happening

2001-04-18 Thread Boget, Chris
Ok, I found out what the problem was. I'm still curious why the problem is occuring. if( $tmpArray[errorNumber] $typesToDisplay ) { you're using the bitwise when you want the logical No, I actually wanted to use the bitwise . I wanted to see if the "errorNumber" was in

[PHP-CVS] cvs: php4 /ext/dbx dbx_pgsql.c

2001-04-18 Thread Marc Boeren
mboeren Wed Apr 18 05:34:53 2001 EDT Modified files: /php4/ext/dbx dbx_pgsql.c Log: Removed some old commented code (Mc) Index: php4/ext/dbx/dbx_pgsql.c diff -u php4/ext/dbx/dbx_pgsql.c:1.6 php4/ext/dbx/dbx_pgsql.c:1.7 --- php4/ext/dbx/dbx_pgsql.c:1.6

[PHP] WDDX Deserialisation problem/bug?

2001-04-18 Thread Darren Beale
Hi I'm using wddx_deserialize($packet) and what I'm getting returned does not seem right in the slightest my code is: $values = wddx_deserialize($packet); Packet: wddxPacket version='1.0'header/headerdatarecordset rowCount='2' fieldNames='Title,description,bondref'field

Re: [PHP] Is it possible to parse a variable by character?

2001-04-18 Thread Sean Coyle
Christian, Thanks for pointing that out! Everything works excellently now! Now, all I have to do, is run another ereg_replace() to look for any duplicate full stops '.' and replace them with one, but I don't think that one will be to hard. For those of you interested, this is what the

Re: [PHP] Images only with 256 Colors?!

2001-04-18 Thread Rasmus Lerdorf
Don't use GD. You need either the new GD2 extension or the Imlib2 extension from http://mmcc.cx/php_imlib/ -Rasmus On Wed, 18 Apr 2001, Nils Sondermann wrote: I want do create Images dynamicly, i have a High Color png but after CreateImagefrompng() it have only 256 colors. What can i do?

Re: [PHP] HTTP_POST_VARS variable names?

2001-04-18 Thread Plutarck
Quick answer: HTTP_POST_VARS is an associative array. The "name" of the submitted variables are the keys, and the value of the element is the value that was submitted. -- Plutarck Should be working on something... ...but forgot what it was. ""Mat Marlow"" [EMAIL PROTECTED] wrote in message

[PHP] New problem with PHP odbc_exec.

2001-04-18 Thread Scott Fletcher
Hi! I don't understand why PHP is having trouble with the odbc_exec. Is there a bug in PHP code? Here's what the error messages said! "SQL error: [OpenLink][ODBC][Driver]No key columns found for table referenced by keyset driven cursor., SQL state IM909 in SQLExecDirect". This show

Re: [PHP] global sessions

2001-04-18 Thread Plutarck
If you want to access a global variable in a function, it must be declared "GLOBAL". Otherwise PHP's local scope would be totally useless. If you want to access a variable inside of a function, you must explicitly declare it as global. There are a few exceptions such as $GLOBALS, but they

Re: [PHP] Variable variable

2001-04-18 Thread Steve Werby
"Plutarck" [EMAIL PROTECTED] wrote: Your problem has little to do with the things mentioned. First of all, you are refering to a variable variable incorrectly. Actually, he's not. You must use brackets, like this: ${$id} The braces aren't required in this case. Of the four examples

RE: [PHP] Connection with a Palm

2001-04-18 Thread Renzi, Sebastian
Thank you ,where i can download more info about this ? -Mensaje original- De: Plutarck [SMTP:[EMAIL PROTECTED]] Enviado el: mircoles 18 de abril de 2001 10:42 Para: [EMAIL PROTECTED] Asunto: Re: [PHP] Connection with a Palm "exporting data to a palm" is far too vague.

Re: [PHP] Variable variable

2001-04-18 Thread Rasmus Lerdorf
1. If $id is a number I believe PHP will choke b/c I don't believe numbers can be used as variable names. Well, generally that is true. If you try to assign a value directly to a variable that is a number such as: $1 = "Hello World"; Then it won't work. However, due to a somewhat quirky

Re: [PHP] New problem with PHP odbc_exec.

2001-04-18 Thread Yasuo Ohgaki
[From BugDB] ID: 10375 Updated by: kalowsky Reported By: [EMAIL PROTECTED] Old-Status: Open Status: Closed Bug Type: Reproduceable crash PHP Version: 4.0.4pl1 Assigned To: Comments: fixed in cvs, will not be in 4.0.5, but later releases. Previous Comments:

Re: [PHP] Connection to postgresql DB used by 2 scripts ?

2001-04-18 Thread Plutarck
I think you're misunderstanding what include actually does. Let's say we have a file called db.php, with the contents: ?php $conn = pg_connect(); ? Now, if the contents of your other script are: ?php include (db.php); ? It is the same as having the contents: ?php $conn = pg_connect(); ?

Re: [PHP] Images only with 256 Colors?!

2001-04-18 Thread Yasuo Ohgaki
Don't forget take a look at dev-list archive, there are many useful posts how to compile with gd2. -- Yasuo Ohgaki ""Nils Sondermann"" [EMAIL PROTECTED] wrote in message 9bjthb$fu2$[EMAIL PROTECTED]">news:9bjthb$fu2$[EMAIL PROTECTED]... I want do create Images dynamicly, i have a High Color

Re: [PHP] Persistent connection many scripts ?

2001-04-18 Thread Plutarck
Nope, you don't need to save the ID. PHP/database does the work of remembering what the ID of your persistant connection is. -- Plutarck Should be working on something... ...but forgot what it was. ""Picard, Cyril"" [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL

RE: [PHP] Persistent connection many scripts ?

2001-04-18 Thread Picard, Cyril
So : ?php $conn = pg_pConnect("dbname=foo"); $res = pg_Exec($conn, "SELECT * FROM BAR"); $conn = pg_pConnect("dbname=foo"); // Here PHP/database will automagically find a persistent connection and reuse it ? $res = pg_Exec($conn,"SELECT * FROM XYZ"); ? Is it what

Re: [PHP] php equivalent for `command`

2001-04-18 Thread Plutarck
In the second set of code lines, what I need to do is somehow bracket off the $test++ so it is evaluated before being echoed. You need to use the string concantenation operator (a period) to use things like $test++, else PHP get's confused. echo "Value of test: $test++ BR"; To get that to

Re: [PHP] Persistent connection many scripts ?

2001-04-18 Thread Plutarck
Well I've never actually made two calls to connect in one script, but what happens on the second one is PHP notices you already have a connection open, and instead of establishing a new one it just returns the current connection ID. On your first call to pconnect, PHP looks for any persistant

Re: [PHP] Connection with a Palm

2001-04-18 Thread Plutarck
Hm...can't say I've seen many subjects about this, but you might want to look around for information on WAP/WML. Maybe someone else would know more though, because I have no experiance with non-PC browsers. -- Plutarck Should be working on something... ...but forgot what it was. ""Renzi,

[PHP] Graphic process within PHP

2001-04-18 Thread SED
Hi, Recently I noticed e-mails on this list about Imlib2 and GD2 extensions which I was not aware of. So I started to wander if there are more extensions working with PHP which allows graphic process (the only one I knew was GD). Is it? If so, is it possible to use these extensions on all

Re: [PHP] Variable variable

2001-04-18 Thread Steve Werby
"Rasmus Lerdorf" [EMAIL PROTECTED] wrote: 1. If $id is a number I believe PHP will choke b/c I don't believe numbers can be used as variable names. Well, generally that is true. If you try to assign a value directly to a variable that is a number such as: $1 = "Hello World"; Then it

Re: [PHP] Cannot destroy session cookie

2001-04-18 Thread Jens Kisters
Why destroying it "before" a user logs in? Isn't it In case the user did not log out properly, his session would still be marked as valid logged in better to start the session "after" a successful login? starting works fine, restarting is the problem And then destroying the session when

[PHP] wddx installation

2001-04-18 Thread Markus Maussner
hi i installed php with this "config" on rh6.2.. './configure' '--with-mysql' '--with-apache=../apache_1.3.19' '--enable-trak-vars' '--with-xml' '--with-wddx' and a phpinfo(); show me this too... but when i try to use anny wddx function i get this message... Fatal error: Call to undefined

Re: [PHP] Variable variable

2001-04-18 Thread Rasmus Lerdorf
"Rasmus Lerdorf" [EMAIL PROTECTED] wrote: 1. If $id is a number I believe PHP will choke b/c I don't believe numbers can be used as variable names. Well, generally that is true. If you try to assign a value directly to a variable that is a number such as: $1 = "Hello World";

Re: [PHP] Cannot destroy session cookie

2001-04-18 Thread Johannes Janson
Hi, how about setting a expiry time for the cookie. Like 45 min after logging in or whatever suits your needs. You could use session_set_cookie_params() and set the cookie lifetime to 0. That would at least prevent a login after the browser window is closed. Your site is nice by the way.

Re: [PHP] Variable variable

2001-04-18 Thread Plutarck
The braces aren't required in this case. Yup, your right. I stand corrected. I had forgotten that multiple $s are fine, and that I simply don't use them because I have trouble reading them. The joys of learning ;\ -- Plutarck Should be working on something... ...but forgot what it was.

  1   2   3   >