Re: [PHP] test for associative or numerically indexed array

2003-03-19 Thread cpaul
> --- cpaul <[EMAIL PROTECTED]> wrote: > > Is there a method to test whether or not an array is associative? [EMAIL PROTECTED] wrote: > It's all the same. An enumerated array is really an associative array where > every key is an integer. Just treat them all like associative arrays, and > you'l

[PHP] Making tree menu

2003-03-19 Thread Daniel Harik
Hello guys I make following query: mysql> SELECT b.type, a.link AS parent_link, b.link AS child_link FROM bookmarks AS a, bookmarks AS b WHERE a.id = b.parentid order by parent_link; and here is result ++-++ | type | parent_link | child_link

[PHP] persistent of LDAP connections across invocations?

2003-03-19 Thread Scott McDermott
How persistent are LDAP connections which are not closed with ldap_close() or ldap_unbind()? I am trying to re-use an LDAP link identifier by doing an open, binding as something, saving the LID in a $_SESSION variable, *not* closing the LDAP link, and then using the LID in another script invocatio

[PHP] Fw: Parse Error

2003-03-19 Thread Manjunath H N
Hi, This is the one which I am getting in the website after the item has been posted. parse error, expecting `')'' Please send me the views how to rectify it. This is my Php // $Mymail is of type "CDONTS.NEWMAIL" file://mail(,,,"From: ".$Body=$mybody); file://mail

Re: [PHP] test for associative or numerically indexed array

2003-03-19 Thread Chris Shiflett
--- cpaul <[EMAIL PROTECTED]> wrote: > Is there a method to test whether or not an array is associative? > > I'm trying to make a function that can deal with whatever type of > array (associative or numeric) that is thrown at it. It's all the same. An enumerated array is really an associative arr

[PHP] test for associative or numerically indexed array

2003-03-19 Thread cpaul
Is there a method to test whether or not an array is associative? I'm trying to make a function that can deal with whatever type of array (associative or numeric) that is thrown at it. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Cleaning user data

2003-03-19 Thread Chris Shiflett
--- "John W. Holmes" <[EMAIL PROTECTED]> wrote: > I disagree. I think stripping HTML from my text is a horrible thing. If > I want to put a in my text, then use htmlentities() and show me a > when I look at it. Obviously you don't want to "evaluate" HTML, but > the end result should be that I sho

Re: [PHP] Cleaning user data

2003-03-19 Thread Justin French
on 20/03/03 3:53 PM, John W. Holmes ([EMAIL PROTECTED]) wrote: >> And yes, definitely striptags(), and follow the advice on the rest of > the >> thread. > > I disagree. I think stripping HTML from my text is a horrible thing. If > I want to put a in my text, then use htmlentities() and show me a

RE: [PHP] Cleaning user data

2003-03-19 Thread John W. Holmes
> And yes, definitely striptags(), and follow the advice on the rest of the > thread. I disagree. I think stripping HTML from my text is a horrible thing. If I want to put a in my text, then use htmlentities() and show me a when I look at it. Obviously you don't want to "evaluate" HTML, but the

Re: [PHP] Cleaning user data

2003-03-19 Thread Justin French
The first rule is to NEVER rely on anything that they give you, or any of the security precautions in your form code, because someone can always creat a less-secure form which posts to the same script. So, whilst maxlength='4' for a year select thing is great, you should check at the other end tha

Re: [PHP] Cleaning user data

2003-03-19 Thread olinux
You can also use basic functions like is_numeric() [to make sure the value is numeric - duh] or a custom function to do something like check for a valid email address format. I have a news site that explodes the URL to get values for the directory/article it is supposed to display. since the types

RE: [PHP] convert VARCHAR 10 to DATETIME

2003-03-19 Thread freaky deaky
thanks. this was the quickest way to accomplish the task strtotime(); also works. both are useful to know... - Original Message - From: "John W. Holmes" <[EMAIL PROTECTED]> Date: Wed, 19 Mar 2003 21:47:23 -0500 To: "'freaky deaky'" <[EMAIL PROTECTED]>, <[EMAIL PROTECTED]> Subject: RE:

RE: [PHP] Date Conversion

2003-03-19 Thread John W. Holmes
> when retrieving a date from MySQL in n/MM/DD, how can I present this > to > the user of a site in readable format i.e. 19th March 2003? SELECT DATE_FORMAT(column,' ... ') AS f_date FROM table WHERE ... Look up DATE_FORMAT in the MySQL manual, Chapter 6. It works almost the same as the PHP d

RE: [PHP] Dynamic variables (with method=post)

2003-03-19 Thread John W. Holmes
> How do i receive dynamic variables with POST ? > Please, see the code fragment. > > $ped_item = mysql_result($result, $j, 0); > > > > name=quantidade$ped_item> > > > > "upd_item" was usually received. > How do i receive "quantidade$ped_item" ? > > I have tried: > > $p1 = $_POST['upd_it

RE: [PHP] Cleaning user data

2003-03-19 Thread John W. Holmes
> I'd like to canvas opinions about what's needed to clean user input. I'm > using an HTML form where users enter simple things like name and phone > number, but also a couple of small text areas for address and a message > (up > to 50 words or so). > > How would people recommend cleaning this dat

RE: [PHP] strip single quotes

2003-03-19 Thread John W. Holmes
> I'm trying to query the database using a string pulled out of the database > and compare and get the id. I can do it to a certain point and what kills > my query is single quotes. I CANNOT figure out how to escape it. > > I DID THIS: > $address2 = str_replace("'", "", $address); > > that work

RE: [PHP] strip single quotes

2003-03-19 Thread Martin Towell
try this $address2 = str_replace("'", "''", $address) -Original Message- From: Daniel McCullough [mailto:[EMAIL PROTECTED] Sent: Thursday, March 20, 2003 1:48 PM To: [EMAIL PROTECTED] Subject: [PHP] strip single quotes I'm trying to query the database using a string pulled out of the dat

RE: [PHP] convert VARCHAR 10 to DATETIME

2003-03-19 Thread John W. Holmes
> i am exporting a database out of filemakerpro 5 as a comma delimited file, > and > importing the data into a mysql database > > most of the information transfer over ok, the one big problem i have is > filemaker's date/time format. > > in the filemaker pro database, it looks like the timestamp

[PHP] strip single quotes

2003-03-19 Thread Daniel McCullough
I'm trying to query the database using a string pulled out of the database and compare and get the id. I can do it to a certain point and what kills my query is single quotes. I CANNOT figure out how to escape it. I DID THIS: $address2 = str_replace("'", "", $address); that worked on some, but

[PHP] Apache + PHP - when using as module, can one have PHPs run as

2003-03-19 Thread ADFH
specific user? Message-Id: <[EMAIL PROTECTED]> X-Newsreader: Sylpheed version 0.8.9 (GTK+ 1.2.10; i386-debian-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Tried posting this earlier - it wouldn't take.. Unmunged my email address hoping th

[PHP] Help with sum of items

2003-03-19 Thread Jim Greene
Hi All, I have the following for data: 03/14/2003,09:56:17,PTLD-TC1-HARC1,Stop,63.164.60.116,200,jsmith,9,24 3,271,15,User Request,2072280717,2073369937,4BPS 03/15/2003,09:56:17,PTLD-TC1-HARC1,Stop,63.164.60.116,200,jsmith,9,24 3,271,15,User Request,2072280717,2073369937,4BPS 03/1

[PHP] PHP and file extensions

2003-03-19 Thread Beauford.2002
Still working on this authentication script and have a small question. Each page on the site needs to have one line of code on it so it can't be accessed unless you log in - is there a way to have this line in an html file without changing the extension to .php? On the same note, there is a small

[PHP] dynamically splitting a paragraph for a preview of content

2003-03-19 Thread daniel
hi guys , i assumed i had this working but i stand corrected, it basically will get the first dot in content which should denote a end of paragraph and show that as a preview, although say i put g.w bush in it will split off there which i dont want , is there a way i can do this with a paragraph

RE: [PHP] session variables

2003-03-19 Thread daniel
u have to start the session first then check with $_SESSION['tu']; >= Original Message From Pag <[EMAIL PROTECTED]> = > HI, > > Am trying to give controlled access to who logs in to my site. Have a >quick doubt: > > I register a session var named $tu (value is taken from t

Re: [PHP] - IIS - More info

2003-03-19 Thread Beauford.2002
After many grueling hours of screwing around with this, it's working. Not sure of the exact problem - but for those that want to knowI uninstalled PHP and cleaned the registry of any remnents of PHP and then installed PHP manually (instead of using the PHP installer). Then I had to tweak the ph

[PHP] session variables

2003-03-19 Thread Pag
HI, Am trying to give controlled access to who logs in to my site. Have a quick doubt: I register a session var named $tu (value is taken from the DB) when a user logs in, how can i reference to that var? I mean, if i want to check its value, if i do print($tu);, it doesnt seem to work. Th

Re: [PHP] convert VARCHAR 10 to DATETIME

2003-03-19 Thread Pete James
Could you use a function like strtotime()? freaky deaky wrote: this question is not strictly php related, but i thought possibly someone on this list might have dealt with this type of problem before. i am exporting a database out of filemakerpro 5 as a comma delimited file, and importing the

Re: [PHP] Cleaning user data

2003-03-19 Thread Pete James
It really depends on what you what to do with the data. For instance, if you want to insert into a database, you'll want to run addslashes() on it, or some other such quoting. If you wnat to use the data as a forum post or comment, etc, you'll want to strip the html out of it with strip_tags()

[PHP] imap problem

2003-03-19 Thread Niklas Saers Mailinglistaccount
When contacting the imap-uw server I've built with plaintext and ssl support, I get "Certificate failure for localhost: self signed certificate: /C=NO/ST=Oslo/L=Oslo/O=religion.no/OU=religion.no/CN=doriath/CN=localhost" when contacting it through php. How can I make php accept my certificate? And i

Re: [PHP] Eliminating space between HR and Image

2003-03-19 Thread Leif K-Brooks
Maybe so, but all PHP does is output HTML to the browser. Your question had nothing to do with PHP, and should be sent to an HTML list. Andre Dubuc wrote: About as much as your 'gentle' answer. Aside from this entry, everything is PHP on my site. And sorry I forgot the print "."; -- Th

[PHP] convert VARCHAR 10 to DATETIME

2003-03-19 Thread freaky deaky
this question is not strictly php related, but i thought possibly someone on this list might have dealt with this type of problem before. i am exporting a database out of filemakerpro 5 as a comma delimited file, and importing the data into a mysql database most of the information transfer

Re: [PHP] Re: Eliminating space between HR and Image

2003-03-19 Thread Andre Dubuc
Thanks Richard, The obvious escaped me. Regards, Andre On Wednesday 19 March 2003 07:39 pm, you wrote: > Here is your code: > > First, make a one pixel png the color you want your HR > > > > > Et, Voila! > > > Quoting Michiel van Heusden <[EMAIL PROTECTED]>: > > ### this is an HTML-problem, no

Re: [PHP] Re: Eliminating space between HR and Image

2003-03-19 Thread Andre Dubuc
Thanks Michiel, After sending the message, I realized that it was an html question -- I've been so absorbed with coding, it all looks the same after a while. My apologies to the list. Thanks for the suggestion. I think it'll work. Otherwise, I'll leave it as is. Thanks for taking the trouble t

Re: [PHP] Re: Eliminating space between HR and Image

2003-03-19 Thread Richard Whitney
Here is your code: First, make a one pixel png the color you want your HR Et, Voila! Quoting Michiel van Heusden <[EMAIL PROTECTED]>: ### this is an HTML-problem, not php..but anyway ### ### i have no clue why the extra space would appear, ### but I'd try to add absolute positiong to the H

[PHP] Re: Eliminating space between HR and Image

2003-03-19 Thread Michiel van Heusden
this is an HTML-problem, not php..but anyway i have no clue why the extra space would appear, but I'd try to add absolute positiong to the HR and IMAGE as well, that should solve the problem like: grace mic

Re: [PHP] Eliminating space between HR and Image

2003-03-19 Thread Leif K-Brooks
What the heck does this have to do with PHP?! Andre Dubuc wrote: Hi, I've added an animated gif in the banner area of my site, and just above it, a horizontal rule to give added emphasis. The problem is, no matter what I do, I cannot get rid of an extra space that appears between the two. Is t

[PHP] Cleaning user data

2003-03-19 Thread rotsky
I'd like to canvas opinions about what's needed to clean user input. I'm using an HTML form where users enter simple things like name and phone number, but also a couple of small text areas for address and a message (up to 50 words or so). How would people recommend cleaning this data when it's re

[PHP] Eliminating space between HR and Image

2003-03-19 Thread Andre Dubuc
Hi, I've added an animated gif in the banner area of my site, and just above it, a horizontal rule to give added emphasis. The problem is, no matter what I do, I cannot get rid of an extra space that appears between the two. Is this a natural function? Is there some way of eliminating the space

Re: [PHP] PHP and IIS - More info

2003-03-19 Thread Beauford.2002
PHP and MySQL, which I am using in this project are the same on all three platforms - the only difference is IIS - which is why I think it is a IIS problem. Problems, Problems... - Original Message - From: "Chris Hewitt" <[EMAIL PROTECTED]> To: "'PHP General'" <[EMAIL PROTECTED]> Sent

[PHP] Dynamic variables (with method=post)

2003-03-19 Thread Fabio Bot
Hi, How do i receive dynamic variables with POST ? Please, see the code fragment. $ped_item = mysql_result($result, $j, 0); "upd_item" was usually received. How do i receive "quantidade$ped_item" ? I have tried: $p1 = $_POST['upd_item'];// this is OK ! $p2 = $_POST['quantidade$upd_i

Re: [PHP] Zip Way of life.

2003-03-19 Thread David T-G
Vincent -- ...and then Vincent M. said... % % David T-G wrote: % > % >...and then Vincent M. said... % >% ... % >% No, it works with .zip files too, I just don't know how to manage it :-( % > ... % >AFAIK gunzip can unzip an archive containing a single file, but if you % >have more than one in t

[PHP] Mac IE File download problem - any solutions?

2003-03-19 Thread Daniel Leighton
I know this has been addressed before, but I'm wondering if anyone has ever found a solution. The code: header('Content-Type: application/octet-stream'); header('Content-Length: '. filesize($file_info['full_file_path'])); header('Content-Disposition: attachment; filename

[PHP] imap trouble

2003-03-19 Thread Niklas Saers Mailinglistaccount
Hi, I'm running FreeBSD 4.8RC, c-client 2002, imap-uw 2002 and PHP 4.3.1 (tried a couple of other versions, but they give me the same error). Whenever I use imap_open() to localhost, I get the following error: Mar 20 00:20:29 doriath imapd[43632]: Command stream end of file, while reading line u

RE: [PHP] Anybody have any thoughts on Smarty?

2003-03-19 Thread Dennis Gearon
Smarty is very wonderful. If both the coder and the designer work together, layout and code logic can be completely separate. I am doing a form for entering in about 25 fields. As long as the template the designer comes up with has: The required form variables, and template vari

Re: [PHP] Zero Fill -> Number Format

2003-03-19 Thread Kevin Waterson
This one time, at band camp, "Harry.de" <[EMAIL PROTECTED]> wrote: > How can I put out a Zero Fill for numbers > The result should be > > $something=26; print str_pad($something, 7, "0", STR_PAD_LEFT); Kevin __ (_ \ _) ) _

RE: [PHP] Zero Fill -> Number Format

2003-03-19 Thread Mike Brum
This is what I did for a dynamic zero-fill for renaming batches of files: // Get "Zero Padding" For New Image Names $zero_padding = strlen(count($image_array)); foreach($image_array as $temp){ $n++; $n_length = strlen($n); for($i = 0; $i < ($zero_padding - $n_length); $i++){

Re: [PHP] running PHP through command shell

2003-03-19 Thread Travers Carter
Jason Wong wrote: > On Wednesday 19 March 2003 16:34, Foong wrote: > >> Does anybody knows why I get call to undefined function for mysql_connect >> when running PHP through command shell. but it works fine when accessing >> the script through web browser. > > Most likely your php binary (CLI, n

RE: [PHP] Zero Fill -> Number Format

2003-03-19 Thread Martin Towell
sprintf/printf("%7d", $num) -Original Message- From: Harry.de [mailto:[EMAIL PROTECTED] Sent: Thursday, March 20, 2003 10:09 AM To: [EMAIL PROTECTED] Subject: [PHP] Zero Fill -> Number Format How can I put out a Zero Fill for numbers The result should be $something=26; echo $something;

[PHP] Zero Fill -> Number Format

2003-03-19 Thread Harry.de
How can I put out a Zero Fill for numbers The result should be $something=26; echo $something; e.g. 026 I didn't found a solution with number format. Is there any other way? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Imagerotate() Problems

2003-03-19 Thread Mike Brum
I'm having some problems with imagerotate() - e.g. it won't work. I've tried many different ways to get it to work, but I have yet to see it do anything at all. I'm using PHP 4.3.1 on XP. I know that GD is working properly because I can do other image-manipulation with it without error. Plus, I in

[PHP] Indonesia

2003-03-19 Thread Ludi Sasnita
Anybody in this mailing list from Indonesia? Thanks, God Bless You All best regards, Ludi Ikuti polling TELKOM Memo 166 di www.plasa.com dan menangkan hadiah masing-masing Rp 250.000 tunai

Re: [PHP] Hmmm, and how to do THAT ? ;)

2003-03-19 Thread Philarmon
Hmmm, the PHP script is not a webpage but just a script which is called from a flash movie, so i guess i cant check cookies with that :( But thanks anyway ! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Hmmm, and how to do THAT ? ;)

2003-03-19 Thread Abdul-wahid Paterson
Hi, On Wed, 2003-03-19 at 22:28, Philarmon wrote: > > All security measures needs to happen on the server, not from what the > users > > web browser gives you. > > And how to do something like that on the server ? Is there a tutorial > somewhere about this or something ? A few words about that w

Re: [PHP] Hmmm, and how to do THAT ? ;)

2003-03-19 Thread Joshua Moore-Oliva
Nono, I'm saying that you can never be 100% sure where someone came from, since they are responsible for storing that data, and they can modify before sending it back to you. If you really want to make sure someone came from another page before the current page, create a uniq ID and md5 it or s

Re: [PHP] Zip Way of life.

2003-03-19 Thread Vincent M.
Daevid Vincent wrote: You could use the exec() or shell_exec() and just do it via command line method... Yes but gunzip does not work when there are more than one file in the zip file and unzip is not installed by default on Unix servers. :-( -- PHP General Mailing List (http://www.php.net/)

Re: [PHP] Zip Way of life.

2003-03-19 Thread Vincent M.
David T-G wrote: Vincent, et al -- ...and then Vincent M. said... % % Marek Kilimajer wrote: % >readgzfile is for *.gz files. ... % No, it works with .zip files too, I just don't know how to manage it :-( You mentioned wanting the "files" (note the plural) in the zip file. AFAIK gunzip can unzip

[PHP] Hmmm, and how to do THAT ? ;)

2003-03-19 Thread Philarmon
Ok, thanks for the info, Josh ! > All security measures needs to happen on the server, not from what the users > web browser gives you. And how to do something like that on the server ? Is there a tutorial somewhere about this or something ? A few words about that would be great ! :) Philarmon

Re: [PHP] Zip Way of life.

2003-03-19 Thread David T-G
Vincent, et al -- ...and then Vincent M. said... % % Marek Kilimajer wrote: % >readgzfile is for *.gz files. ... % No, it works with .zip files too, I just don't know how to manage it :-( You mentioned wanting the "files" (note the plural) in the zip file. AFAIK gunzip can unzip an archive conta

Re: [PHP] How to figure out from which domain the PHP script was called?

2003-03-19 Thread Joshua Moore-Oliva
YOu can check the HTTP_REFERRER... but really though, that's no security. Anyone can use Curl to simulate a request that looks like it comes from your domain. All security measures needs to happen on the server, not from what the users web browser gives you. Josh. On March 19, 2003 05:13 pm

[PHP] Date Conversion

2003-03-19 Thread shaun
Hi, when retrieving a date from MySQL in n/MM/DD, how can I present this to the user of a site in readable format i.e. 19th March 2003? Thanks for your help -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] How to figure out from which domain the PHP script was called?

2003-03-19 Thread Philarmon
Hi ! Im a completely PHP newbie, so please spare me :) Is there any way to figure out from which page a script was called ? I want that the PHP script check it and will be executed only if the request came from my domain (so nobody could execute it by typing its name in the browser or something

RE: [PHP] Getting linux server's country

2003-03-19 Thread Martin Towell
So noone has any ideas at all ? Surely not ? If my question's too vague, please let me know and I'll try to expand on it... -Original Message- From: Martin Towell [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 19, 2003 4:40 PM To: [EMAIL PROTECTED] Subject: [PHP] Getting linux server's c

[PHP] Max Array Size in Post?

2003-03-19 Thread Rob
I have a database driven music web site that allows the admin to create photo galleries. The photos and captions are entered using a form which allows the admin to upload a small and large photo. The number of photos is requested in a form that calls this entry form. The code looks like this: f

Re: [PHP] date question

2003-03-19 Thread Kevin Stone
- Original Message - From: "Charles Kline" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, March 19, 2003 2:17 PM Subject: [PHP] date question > Hi all, > > I have a form where users will be adding publication dates for uploaded > files. I want to store the date in mySQL as d

[PHP] Re: Anybody have any thoughts on Smarty?

2003-03-19 Thread rush
"Charles Kline" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Was reading this and it sounds really cool. I do work as a consultant > to designers and thought this may be a good way to improve work flow? I > have read mixed thoughts on this, but was wondering what this list > though

[PHP] date question

2003-03-19 Thread Charles Kline
Hi all, I have a form where users will be adding publication dates for uploaded files. I want to store the date in mySQL as date('U') format. If the date is entered as mm/dd/ - will the date function know this or is there some way of 'telling' php how the date to be converted is formatted,

Re: [PHP] $array_nam[$variable][0]

2003-03-19 Thread Leif K-Brooks
Exactly the syntax you used. Michael Smith wrote: Hi, I'm trying to do a: $var = $array_name[$var2][0]; where $var2 is an integer. I've got this array from a database and I want to use a variable in the array... what's the exact syntax of this? -Michael -- The above message is encrypted wit

RE: [PHP] Zip Way of life.

2003-03-19 Thread Daevid Vincent
You could use the exec() or shell_exec() and just do it via command line method... > -Original Message- > From: Vincent M. [mailto:[EMAIL PROTECTED] > Sent: Wednesday, March 19, 2003 12:36 PM > To: [EMAIL PROTECTED] > Subject: [PHP] Zip Way of life. > > > Hello, > > I'd like to uncompr

Re: [PHP] $array_nam[$variable][0]

2003-03-19 Thread CPT John W. Holmes
> $var = $array_name[$var2][0]; > > where $var2 is an integer. I've got this array from a database and I > want to use a variable in the array... what's the exact syntax of this? That is the correct syntax. Use print_r() on $array_name to see what it contains. ---John Holmes... -- PHP General

[PHP] $array_nam[$variable][0]

2003-03-19 Thread Michael Smith
Hi, I'm trying to do a: $var = $array_name[$var2][0]; where $var2 is an integer. I've got this array from a database and I want to use a variable in the array... what's the exact syntax of this? -Michael -- Michael Smith <[EMAIL PROTECTED]> Custom87.net -- PHP General Mailing List (http://w

Re: [PHP] md5() number of aruments

2003-03-19 Thread Dennis Gearon
What page is that on? BTW, I figured out I could just prepend a long, complex string to whatever I am hashing and it will 'seed' it before it gets to my stuff. Jason k Larson wrote: mhash (PHP 3>= 3.0.9, PHP 4 ) mhash -- Compute hash Description: string mhash ( int hash, string data [, string k

Re: [PHP] Breadcrumbs help

2003-03-19 Thread Sebastian
well, the problem with that is most of my files are called 'index.php' cheers, - Sebastian - Original Message - From: "Diego Fulgueira" <[EMAIL PROTECTED]> | Sebastian wrote: | > hello all. | > | > this code creates dynamic breadcrumbs, ie: home > site nav > community | > | > I am havin

Re: [PHP] PHP and IIS - More info

2003-03-19 Thread CPT John W. Holmes
> Further note that it is not just this script, but many PHP scripts that I > run on IIS - they all work perfectly on Apache (on Windows and Linux).. HOW DOES IT NOT WORK!? ---John Holmes... > - Original Message - > From: "John W. Holmes" <[EMAIL PROTECTED]> > To: "'Beauford.2002'" <[EMA

Re: [PHP] 2 databases

2003-03-19 Thread Ray Hunter
yes, as long as you have them compiled and configured into php. I have used up to 4 database type for a given application: mysql, pgsql, oracle, and sybase... That is the beauty of PHP... -- Ray On Wed, 2003-03-19 at 16:21, Iwan van Kanten wrote: > Is it possible to connect to 2 different datab

Re: [PHP] md5() number of aruments

2003-03-19 Thread Jason k Larson
mhash (PHP 3>= 3.0.9, PHP 4 ) mhash -- Compute hash Description: string mhash ( int hash, string data [, string key]) ^ salt/seed/key - whatever you want to call it -- Jason k Larson Dennis Gearon wrote: I don't see anywhere on that page where it sho

Re: [PHP] PHP and IIS - More info

2003-03-19 Thread Chris Hewitt
Beauford.2002 wrote: Further note that it is not just this script, but many PHP scripts that I run on IIS - they all work perfectly on Apache (on Windows and Linux).. As well as configuration differences it could be different versions of php. Modern ones expect $_SERVER for example. I might like

[PHP] - IIS - More info

2003-03-19 Thread Diego Fulgueira
Did you checked my last message? Was it helpful? PHP under Apache exposes diferent global variables than PHP under IIS. It will be impossible for you to correct your errors without changing your code. Run phpinfo() to see what variables are available under IIS. About session variables... I sugges

Re: [PHP] 2 databases

2003-03-19 Thread Jimmy Brake
yes -- i connect to oracle and mysql simultaneously .. On Wed, 2003-03-19 at 15:21, Iwan van Kanten wrote: > Is it possible to connect to 2 different databases?? > 2 different dtabase typs I mean > postgresql and Mysql > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, vis

[PHP] Breadcrumbs help

2003-03-19 Thread Sebastian
hello all. this code creates dynamic breadcrumbs, ie: home > site nav > community I am having a bit of a time trying to make it so it doesn't hyperlink the current page thats being viewed, any help is appreciated. "site map", "company" => "about", "articles" => "news"

[PHP] 2 databases

2003-03-19 Thread Iwan van Kanten
Is it possible to connect to 2 different databases?? 2 different dtabase typs I mean postgresql and Mysql -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] PHP and IIS - More info

2003-03-19 Thread Beauford.2002
Further note that it is not just this script, but many PHP scripts that I run on IIS - they all work perfectly on Apache (on Windows and Linux).. - Original Message - From: "John W. Holmes" <[EMAIL PROTECTED]> To: "'Beauford.2002'" <[EMAIL PROTECTED]>; "'PHP General'" <[EMAIL PROTECTED]> S

Re: [PHP] PHP and IIS 5.0

2003-03-19 Thread Beauford.2002
I have it running on Windows XP using Apache and Linux using Apache with perfect results - It does not work on IIS, which tells me this is a IIS problem, not a coding problem or an error reporting problem - register_globals are on on all three platforms. Thanks - Original Message - From

Re: [PHP] Zip Way of life.

2003-03-19 Thread Vincent M.
Marek Kilimajer wrote: readgzfile is for *.gz files. Either use zip file functions (rarely supported) or PclZip (http://www.phpconcept.net/pclzip/index.en.php) No, it works with .zip files too, I just don't know how to manage it :-( -- PHP General Mailing List (http://www.php.net/) To unsubscr

Re: [PHP] error message ... never seen this one before.

2003-03-19 Thread Marek Kilimajer
Put single quotes around the strings in your sql statementS: $sql2 = "SELECT id FROM store_name WHERE name = '".$name[$i]."'"; ^ ^ if this does not help, print out the query strings. Daniel McCullough wrote: I get this error. Unknown c

[PHP] error message ... never seen this one before.

2003-03-19 Thread Daniel McCullough
I get this error. Unknown column 'B' in 'where clause' From this code. $sql = "SELECT * FROM store"; $result = mysql_query($sql) or die(mysql_error()); $store = mysql_fetch_array($result); $count = mysql_num_rows($result); $id = $store['id']; $name = $store['name']; $address = $store['address'];

Re: [PHP] Zip Way of life.

2003-03-19 Thread Marek Kilimajer
readgzfile is for *.gz files. Either use zip file functions (rarely supported) or PclZip (http://www.phpconcept.net/pclzip/index.en.php) Vincent M. wrote: Hello, I'd like to uncompress to the Hard disk a zip file send by the browser. At this time I do this: function uncompresszip($zipfile) {

RE: [PHP] Anybody have any thoughts on Smarty?

2003-03-19 Thread John W. Holmes
> Was reading this and it sounds really cool. I do work as a consultant > to designers and thought this may be a good way to improve work flow? I > have read mixed thoughts on this, but was wondering what this list > thought? Anyone using it? Real world? Once you get used to the syntax, it is grea

RE: [PHP] random letter/character?[Scanned]

2003-03-19 Thread Bryan Koschmann - GKT
On Wed, 19 Mar 2003, Michael Egan wrote: |I put together the following function to give me a password consisting |of random letters and numbers. It should be fairly clear as to how |you'd need to tweak it to just give you the characters you'd need |interspersed with spaces. | |Hope this helps - I

Re: [PHP] Sessions on win32, PHP and IIS

2003-03-19 Thread Diego Fulgueira
For session variables to work: Use the $_SESSION array instead of $HTTP_SESSION_VARS. Also, check your session_path (defined in php.ini, which should be under /WINNT). session_path should point to a directory where user IUSR_MYHOST has writing permissions. There, you should see a file created for

[PHP] Zip Way of life.

2003-03-19 Thread Vincent M.
Hello, I'd like to uncompress to the Hard disk a zip file send by the browser. At this time I do this: function uncompresszip($zipfile) { copy($zipfile, dirname($_SERVER['PATH_TRANSLATED'])."/zip/zipfile.zip") ; } But I do not understand how to uncompress the zip file, I tried for exemple: $re

[PHP] Anybody have any thoughts on Smarty?

2003-03-19 Thread Charles Kline
Was reading this and it sounds really cool. I do work as a consultant to designers and thought this may be a good way to improve work flow? I have read mixed thoughts on this, but was wondering what this list thought? Anyone using it? Real world? http://www.zend.com/zend/tut/tutorial-cezar.php

RE: [PHP] MySQL Date

2003-03-19 Thread John W. Holmes
> I have a date stored in a table in my MySQL Database using a DATE type for > the column. > > How can i compare the date in the table to today ... WHERE your_date = CURDATE() ... > e.g. > > $today = mysql_result($result, $i, Booking_Date); > > if($today = *HELP*){ or... if($today == date('Y

RE: [PHP] PHP and IIS - More info

2003-03-19 Thread John W. Holmes
> These are some of the errors I am getting > > Notice: Undefined index: login in > C:\Inetpub\wwwroot\..\login\checklogin.php on line 74 > > and 75, and other similar errors. > > Line 74 is: $login = $HTTP_SESSION_VARS['login']; > Line 75 is: $password = $HTTP_SESSION_VARS['password

Re: [PHP] PHP and IIS 5.0

2003-03-19 Thread CPT John W. Holmes
> I am putting together a website for a customer who insists on using IIS > running on Windows XP and I'm running into some problems. It appears that no > matter what PHP script I run, I'm getting tons of errors saying this > variable or that variable is undefined. I have global variables turned on

Re: [PHP] Posting Query Results to an HTML form

2003-03-19 Thread CPT John W. Holmes
> >No, there's no PHP function, but there is an HTML trick that you can > >use: putting quotes around your values! > > > > > > That's not a trick, that's actually required with HTML 4 and up. And > XML... Umm.. yeah, got that. I was being sarcastic. ;) ---John Holmes... -- PHP General Mailing

Re: [PHP] connecting securely to remote database

2003-03-19 Thread Dennis Gearon
I saw that, Joshua,I am on that list. Amazing that it came up just after I posted to the PHP list. The reason I posted it here is that I still probably need someway to initiate an SSH/SSL connection from PHP, and I doubt it autoswitches when connecting to a database. Joshua Moore-Oliva <[EMAI

[PHP] Re: date problem

2003-03-19 Thread Philip Hallstrom
Try: $ts = time(); $i = 0; while( $i < 2 ) { $day = date("dS", $ts + $i * 86400); print("$day"); $i++; } On Wed, 19 Mar 2003, shaun wrote: > hi, > > using date(dS); how can i can increase the days so that it shows > > 19th 20th 21st > > I have tried > > while ($i < 2){ >

RE: [PHP] Subtotal

2003-03-19 Thread Mike Smith
This query: ***denotes new SELECT ***SUM([rushqty]) AS 'rushsub'***, [rushqty], [wooem], [rushglschk], [rushglsdate], [rushmtlchk], [rushmtldate], [rushpartschk], [rushpartsdate], [category], CONVERT(nvarchar,[rushdate],101) AS 'rushdate', CONVERT(nvarchar,[rushship],101) AS 'rushship', [wo], [ru

Re: [PHP] register_globals per virtual host

2003-03-19 Thread Abdul-wahid Paterson
Hi, I think you want to use: php_value register_globals Off I have this setup in VirtualHost's and in .htaccess files. The difference between php_value and php_admin_value is that php_admin_value can not be overridden in a .htaccess file or VirtualHost. So if you want to enforce some settings a

[PHP] date problem

2003-03-19 Thread shaun
hi, using date(dS); how can i can increase the days so that it shows 19th 20th 21st I have tried while ($i < 2){ $day++; echo' '.$day.''; $i++; } but i get: 19th 19ti 19tj thanks for your help -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.

  1   2   >