Re: [PHP] Multi-Sort -- how to do this?

2009-06-17 Thread Douglas Temple
...Sticking my neck out playing with the big boys (and girls) now... I assume you've looked at array_multisort() for this, I would think you could have multiple arrays being sorted with it (I've only ever used it for 2-array sorts). The other option would be to pop all those arrays into a single a

RE: [PHP] paging

2009-02-10 Thread Jim Douglas
> From: tedd.sperl...@gmail.com > Subject: Re: [PHP] paging > > At 3:26 AM + 2/10/09, Jim Douglas wrote: > >Does anyone have a link to any examples of paging? > > > Jim: > > Sure. > > http://webbytedd.com/bbb/paging/ <-- the code is there >

RE: RES: [PHP] paging

2009-02-10 Thread Jim Douglas
lto:tedd.sperl...@gmail.com] > Enviada em: terça-feira, 10 de fevereiro de 2009 11:26 > Para: Jim Douglas; php-general@lists.php.net > Assunto: Re: [PHP] paging > > At 3:26 AM + 2/10/09, Jim Douglas wrote: > >Does anyone have a link to any examples of paging? > >

[PHP] paging

2009-02-09 Thread Jim Douglas
Does anyone have a link to any examples of paging? I have this example up and running, http://www.w3schools.com/php/php_ajax_database.asp I have paging working as below, my problem is when I add a CSS style sheet I now have 4 panes. How can I direct the paging results to the "content

Re: [PHP] Google Chrome

2008-09-02 Thread Douglas Temple
Once. 'Nuff said.

Re: [PHP] Google Chrome

2008-09-02 Thread Douglas Temple
Beta or not, it's still amazingly fast. Despite the fact you can't scroll up with the mouse wheel...

[PHP] PHP MS-Word plugin

2008-01-10 Thread Douglas Temple
Hi everyone, I'm pretty sure that this question has been asked to death in the past, but I'm just curoius as to whether there is a plugin that can edit Microsoft Office Word documents in PHP. I'm interested in this because I am trying to put a text watermark on each page, but doing it online, with

[PHP] Problem using PHP with Apache (probably something silly)

2007-01-04 Thread Douglas Temple
Hello, First off, I hope everyone had Happy New Year. Onto business, I am trying to install PHP 5.2.0 on a WinXP computer, using Apache 2.2.3 as the web server with MySQL enabled extension. My problem is that when I start up Apache with the edited httpd.conf file including the following code:

Re: [PHP] Problems with PHP and MySQL

2005-02-05 Thread Bruce Douglas
sarah... rather than deal with classes/objs... (at least initially) just create a simple php/mysql app that sets up the user/passwd/host for the db, and see if you can do a successful mysql_connect check the return/error codes to see if the call/code works this will quickly tell you if you

Re: [PHP] Problems with PHP and MySQL

2005-02-05 Thread Bruce Douglas
disregard if you've already done this... you might want to do a quick php app with phpinfo, to determine if/what version of mysql php sees.. it's quite possible that php isn't seeing/interfacing with mysql. php needs to not only be built with a version of mysql, but the php.ini file also need

[PHP] in need of php code for user management/admin function...

2005-01-27 Thread Bruce Douglas
hi... i'm looking for 'open source' code that can be used in a website for handling user registration, user admin functions... does anybody know of a good set of functions that can provide this kind of feature set. or, can anybody give me opinions regarding apps that you've used that have had t

[PHP] in need of a directory/listing script/app

2005-01-26 Thread Bruce Douglas
hi... i'm looking for a good app/function/code to allow users to select a given item(s) from a list of categories. i'd also like the user to be able to display users who have selected a given category from the list... i can't seem to find an app that has this kind of code incorporated... thank

Re: [PHP] Understanding intval() and types conversion

2005-01-25 Thread Bruce Douglas
0 = 14,800 based upon my level of precision -bruce -Original Message- From: Jochem Maas <[EMAIL PROTECTED]> Sent: Jan 25, 2005 3:42 PM To: Bruce Douglas <[EMAIL PROTECTED]> Cc: [EMAIL PROTECTED], Jordi Canals <[EMAIL PROTECTED]>, PHP List Subject: Re: [PHP

Re: [PHP] Understanding intval() and types conversion

2005-01-25 Thread Bruce Douglas
so... you're saying that 7.9 (repeating) is equal to 8.0 i say prove it.. as i recall the numbers might be for all practical purposes the same, they are in fact vastly different... so, prove your assertion... -bruce -Original Message- From: Richard Lynch <[EMAIL PROTECTED]>

[PHP] ldap functionality

2005-01-25 Thread Bruce Douglas
hi... i'm in need of an app that has/should have directory/user/member functionality. i want to setup a process to allow an adim to create different fields and categories for a user to enter. think of a company employee database, where you have the employe name, and then the various groups/proj

[PHP] looking for a combination contact application/social networking app

2005-01-22 Thread Bruce Douglas
hi... i'm in need of a glorified contact type application. i want/need to be able to allow users to enter their information into the system, specify what category(s) they belong to, be able to see others, rank others, etc... i also would like to be able to have some form of relational/6-degrees

Re: [PHP] NT domain info

2005-01-19 Thread Bruce Douglas
mikey... i'm not a guru... but this sounds like something that someone should have already done (or thought about) in perl. you might find that there's already a perl app/solution that gets you close to what you need, that would allow you to either use the perl solution, or rewrite what it does

[PHP] Re: XML Filters for illegal characters

2005-01-05 Thread Jones, Douglas 1
>Perhaps I am misunderstanding your problem, so let me ask it another >way. Is the problem that you are getting characters entered into the >database that are encoded in one way (e.g. UTF-8) when you expected the >characters to be encoded in another way (e.g. ISO-8859-1)? No, the problem invol

RE: [PHP] XML Filters for illegal characters

2005-01-05 Thread Jones, Douglas 1
32 AM To: Jones, Douglas 1 Cc: php-general@lists.php.net Subject: Re: [PHP] XML Filters for illegal characters Jones, Douglas 1 wrote: > I'm wondering if anyone knows of a filter > that can take data to be wrapped in XML tags > and filter this data encoding any illegal XML charact

[PHP] XML Filters for illegal characters

2005-01-05 Thread Jones, Douglas 1
Hello, I'm wondering if anyone knows of a filter that can take data to be wrapped in XML tags and filter this data encoding any illegal XML characters or, if they cannot be encoded, remove them. The problem I have is a database that contains text that must be wrapped in XML. Some of this text

Re: [PHP] Apache Server with php

2005-01-04 Thread Bruce Douglas
richard... i'm not sure of the email/list name.. but there is an apache email list.. if you get to the apache.org site.. they could help you.. they're actually pretty good.. sorry i don't have the name right at my fingers right now!! good luck... -Original Message- From: Richard Lync

Re: [PHP] what am I doing wrong? PHP5 on Fedora

2004-12-30 Thread Bruce Douglas
if you want to know/have a rough guide on building/compiling php with mysql/mysqli support, the following link should help you out... although it's for linux.. http://marc.theaimsgroup.com/?l=php-general&m=109026859726530&w=2 it kind of walks you through what you need to do.. hope it helps...

RE: [PHP] distributed architecture....

2004-12-30 Thread Jones, Douglas 1
the master servers (use RPC calls) and it would probably be pretty simple to upload the data using SOAP as well. -- Doug Jones Co-Op Web Developer [EMAIL PROTECTED](856) 792-9454 -Original Message- From: Bruce Douglas [mailto:[EMAIL PROTECTED] Sent: Thursday, December 30, 2004 9:52 AM

[PHP] distributed architecture....

2004-12-30 Thread Bruce Douglas
hi... i'm contemplating a project where a number of websites would communicate with each other via some network of round robin/distributed servers. Each 'client' website/app would be considered to be a 'node' of the overall network, and be able to upload/download information to the network. The

[PHP] RE: help with PEAR and SOAP

2004-12-29 Thread Jones, Douglas 1
way to tell it to stop this behavior. Thanks. - Doug Jones Co-Op Web Developer -Original Message- From: Greg Beaver [mailto:[EMAIL PROTECTED] Sent: Wednesday, December 29, 2004 1:37 AM To: Jones, Douglas 1 Subject: Re: help with PEAR and SOAP [offlist] Dougla

[PHP] help with PEAR and SOAP

2004-12-28 Thread Jones, Douglas 1
Hello, I have the SOAP PEAR package set up correctly to the point where I can send a request and get a response. However, my web service is designed to return XML back to the caller. When I do this, all of the tags have their "<" and ">" converted to < and >. I have spent much time searching

Re: [PHP] Compiling PHP Source guides

2004-12-22 Thread Bruce Douglas
if you want to know/have a rough guide on building/compiling php with mysql/mysqli support, the following link should help you out... although it's for linux.. http://marc.theaimsgroup.com/?l=php-general&m=109026859726530&w=2 it kind of walks you through what you need to do.. hope it helps...

Re: [PHP] can I compile php source

2004-12-21 Thread Bruce Douglas
now guys/ladies.. this was funny! and can we move on... ! -Original Message- From: Matthew Sims <[EMAIL PROTECTED]> Sent: Dec 21, 2004 1:35 PM To: [EMAIL PROTECTED] Subject: Re: [PHP] can I compile php source > On Wednesday 22 December 2004 01:37, Paul Aviles wrote: >> Guys, this

Re: [PHP] can I compile php source

2004-12-21 Thread Bruce Douglas
after looking at the msgs on this list for this thread... i'm curious. if you see an email that you don't want to respond to, why can't you simply choose not to respond to it, and ignore the msg. peace.. -Original Message- From: Paul Aviles <[EMAIL PROTECTED]> Sent: Dec 21, 2004 7:48

Re: [PHP] can I compile php source

2004-12-20 Thread Bruce Douglas
and this response was helpful to the guy who asked the original question, how i mean, aside from showing that you know how to do a link, what did you show peace... -Original Message- From: John Nichel <[EMAIL PROTECTED]> Sent: Dec 20, 2004 4:32 PM To: [EMAIL PROTECTED] Subje

Re: [PHP] Delivering large files via PHP (>300MB)

2004-12-13 Thread Bruce Douglas
hi.. you might also look into 'bit torrent'... peace.. -Original Message- From: Richard Davey <[EMAIL PROTECTED]> Sent: Dec 13, 2004 11:53 AM To: [EMAIL PROTECTED] Subject: [PHP] Delivering large files via PHP (>300MB) Hi all, Just thought I would pick the collective brain on this

[PHP] problems after installing on new hard-drive

2004-08-17 Thread Hull, Douglas D
I recently had a hard-drive go down in which I was running os x 10.2.x. I do not remember exactly what version of mysql, php etc. I had on it. I had a small mysql database with some php code that worked fine. Now that I have my new drive I have put php 4.3.2, phpmyadmin 2.5.7-pl1, and mysql 4

[PHP] what file holds my databases

2004-08-04 Thread Hull, Douglas D
Really stupid question. I set up apache, mysql, phpadmin etc., and started personal web sharing of course on my mac and created a couple of databases. My question is on my hard-drive, where and/or what file holds my databases? Thanks for any help, Doug -- PHP General Mailing List (http://www.

[PHP] load data infile

2004-07-16 Thread Hull, Douglas D
I have a tab delimited file I am trying to load in my database using: LOAD DATA INFILE '/users/dbs/sites/phpmyadmin/gus/exptab.txt' INTO TABLE datable; But all it will load is the first record and I have about 2000 records. There are 20 columns of data in my 'exptab.txt' file I am loading and t

[PHP] using htmlentities with data in textarea

2004-07-13 Thread Hull, Douglas D
As John H told me (which is true) I should run my words through htmlentities. I have a textarea in a form for individuals to type in a list of words. From there I place these words in an array and then perform calculations and echo the words back out with the resulting calculations. But if o

[PHP] placing values in html teaxtarea

2004-07-12 Thread Hull, Douglas D
After doing calculations etc on my data I am wanting to place it in a textarea form in html. I am having trouble getting my data to show up in my texarea. For example, say after all my calculations I my field called $test ends up containing "This is a test". Here is what I tried: I can ad

RE: [PHP] after suubmitting, working with data on same page

2004-07-09 Thread Hull, Douglas D
day, July 9, 2004 1:41 PM > To: Hull, Douglas D > Cc: Note To Php general List (E-mail) > Subject: Re: [PHP] after suubmitting, working with data on same page > > if ($_POST['calcentry'] == "Calc Your Entry") { > > Hull, Douglas D wrote: > >

[PHP] after suubmitting, working with data on same page

2004-07-09 Thread Hull, Douglas D
Just to make it simple this is my whole page for now, when putting words in the textarea "zwords" and hitting "calc your entry" it never goes into my if statement: Thanks, Doug -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/

[PHP] after submitting, working with data on same page

2004-07-09 Thread Hull, Douglas D
I have my two html textarea fields followed by these two buttons. I have textarea1 to type words into. I have textarea2 for my results. I have people type words in textarea1 and after hitting the "calcentry" button I want to reload the same page, go into my: if ($calcen

Re: [PHP] Need to refine this:

2004-02-03 Thread Douglas Douglas
Just my two cents :) $temp = ""; echo "\n"; while ($mydata = mysql_fetch_object($myquery)) { if ($temp != $mydata->district) { $temp = $mydata->district; echo "$mydata->district\n"; } echo "$mydata->city $mydata->place $mydata->meetingtime\n"; } echo "\n"

Re: [PHP] Array to string?

2003-10-14 Thread Douglas Douglas
I just found it: implode. Sorry to bother you. __ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Array to string?

2003-10-14 Thread Douglas Douglas
Hello everybody. Is there any built-in function to convert an array to string? Thanks. __ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: htt

RE: [PHP] PHP 4.3.3 Install, Errors??

2003-09-26 Thread Adam Douglas
ks for the help! > Unless you need PEAR, you're fine. Try configuring > --without-pear. You should > really be doing this anyways unless actually need PEAR. > > Evan Nemerson > > > On Thursday 11 September 2003 02:10 pm, Adam Douglas wrote: > > Hi. I have a machi

[PHP] PHP 4.3.3 Install, Errors??

2003-09-11 Thread Adam Douglas
Hi. I have a machine that's been freshly installed with PHP 4.1.1. I wanted to upgrade it to PHP 4.3.3. So I did the following below as SU and received the below errors. Is this something I should be worried about? How can I resolve the errors? Never have had this happen before in the past. I ran p

RE: [PHP] How to access a program outside of PHP?

2003-09-11 Thread Adam Douglas
an be something done about this or at least get some error message to determine what is going on. > btw have you checked if you are in safe_mode? in php.ini > error level can also be set in php.ini > > my guess is that you have a problem in your chroot setup. > Adam Douglas wrote:

RE: [PHP] How to access a program outside of PHP?

2003-09-11 Thread Adam Douglas
Mmm... okay. I tried that and nothing. Is there no way for me to determine what the problem is? Error message some place, log file, etc? I do not understand why this is not work. Even a simple example from the PHP manual on system() does not work. > I meant to do this: > > $szPipe = `/htdocs/gs -

RE: [PHP] How to access a program outside of PHP?

2003-09-10 Thread Adam Douglas
> Backticks is simply the ` sign (usually the character above the tab). > Popularly know as `hair on the ear` in my country :-) > for example if you want to invoke ls from php you just type > > $result = `ls`; > > hey presto the output from ls is now in your $result variable. Ohhh okay. Well if

[PHP] PHP-General List post bounces???

2003-09-10 Thread Adam Douglas
Why do I keep getting this? > -Original Message- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] > Sent: Wednesday, September 10, 2003 10:12 AM > To: [EMAIL PROTECTED] > Subject: [ERR] RE: [PHP] How to access a program outside of PHP? > > > Transmit Report: > > To: [EMAIL PROTECTED

RE: [PHP] How to access a program outside of PHP?

2003-09-10 Thread Adam Douglas
> >1) When I echo out $szPipe I get "Resource id #2". > > > Sorry i was thinking of backticks. btw have you tried it ? > (backticks) Backticks? Is this a PHP API function, I can't find it? That's the thing here I haven't been able to get things to work and I have no clue what I should use, exec(

Re: [PHP] executing shell commands.

2003-09-10 Thread Douglas Douglas
1/public_html/system-reports/security/rhosts/eqty/$system | /bin/wc -l"; I had this kind of problem once and my script wasn't replacing the variable ($system). It was just writing $system in the string. Hope this helps. Regards, Douglas. __ Do you Yahoo!? Yaho

RE: [PHP] How to access a program outside of PHP?

2003-09-10 Thread Adam Douglas
> > Hi. I'm trying to develop a web interface to the ghostscript (gs) > > application. I have the ghostscript syntax down perfectly > in the console. > > Now when I go to try and do it in PHP I get nothing. No > errors, nothing > just > > a blank page with PHP logs turned on and errors turned on.

RE: [PHP] How to access a program outside of PHP?

2003-09-10 Thread Adam Douglas
> 1) please try $szPipe and see if you get any output. > 2) if you are jailed in /var/htdocs/ your pathname /htdocs/qs > is incorrect. > 3) I guess you tried running gs from the jail either as > yourself or as > root. > please see if nobody or apache (the webserver's user) can run > gostscript.

[PHP] How to access a program outside of PHP?

2003-09-10 Thread Adam Douglas
Hi. I'm trying to develop a web interface to the ghostscript (gs) application. I have the ghostscript syntax down perfectly in the console. Now when I go to try and do it in PHP I get nothing. No errors, nothing just a blank page with PHP logs turned on and errors turned on. I'm running Apache wit

Re: [PHP] PHP vs ASP.NET "formal opinions" request

2003-08-14 Thread Douglas Douglas
Thank you for the links Mr. Rees. I specially liked the one about MS giving $500K to the Peruvian President. Thanks to everybody's help I have some "BIG COMMERCIAL, IMPARTIAL, RECOGNIZED WEBSITES" articles like IBM, Yahoo and Google. I'm very thankful to all of yo

[PHP] PHP vs ASP.NET "formal opinions" request

2003-08-14 Thread Douglas Douglas
s, etc) where I could find this kind of "formal comparison" about both technologies? I've been looking for some book that covers this issue. I've also been looking for some magazine article that I could use. I'd appreciate any kind of help. Thanks. Regards, Douglas. __

Re: [PHP] PHP vs ASP.NET "formal opinions" request

2003-08-14 Thread Douglas Douglas
to be hard, but I'm willing to fight for what I believe in. Wish me luck :D Thanks again. Regards, Douglas. __ Do you Yahoo!? Yahoo! SiteBuilder - Free, easy-to-use web site design software http://sitebuilder.yahoo.com -- PHP General Mailing List

RE: [PHP] Variable variables question?

2003-06-13 Thread Douglas Douglas
Thanks for the answer Mike. Thanks for the explanation, but I think this is a different case, isn't? I'm not trying to do this ${$_POST}, I'm trying to make this string $_POST. And I have another question. Why does this code work? '; print_r($_POST); echo ''; $method = 'POST'; $data = ${'_'.$met

[PHP] Variable variables question?

2003-06-13 Thread Douglas Douglas
Hello everybody. I have the following class method: function HTTPValidator($method) { $this->data = ${'_'.$method}; $this->rules= array(); $this->required = array(); } data, rules and required are arrays. The parameter $method can have the values: GET or POST. I'm trying to sto

[PHP] reading/writing the value of an / text value

2003-06-09 Thread Bruce Douglas
Hi. I have a question regarding the DOM model. Does anyone know how to write to the / text value using the DOM model. I more or less can write to / attributes of the DOM. but I can't figure out how to write (or read) the text of a - attribute I'd like to be able to do something like: echo"

RE: [PHP] creating new mail account on a domain

2003-04-06 Thread Mark Douglas
This is entirely dependant on what mail server you are running, how it's configured, and what tools you have at your disposal for controlling it (CLI, web, ...). If you actually want help with this issue, we're going to need a lot more detail. -Original Message- From: Lars Tvedt [mailto:[

RE: [PHP] php.ini file not being updated with install

2003-04-04 Thread Mark Douglas
If you are using php as a DSO, you need to restart your webserver to load the new install. Mark -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Friday, April 04, 2003 9:25 PM To: [EMAIL PROTECTED] Subject: [PHP] php.ini file not being updated with install Hell

RE: [PHP] Quick Sessions ?

2003-04-04 Thread Mark Douglas
Let's ask the dumb questions first: Is your webserver parsing .html files for PHP? -Original Message- From: Anthony [mailto:[EMAIL PROTECTED] Sent: Friday, April 04, 2003 3:03 PM To: [EMAIL PROTECTED] Subject: [PHP] Quick Sessions ? I have an issue. For some reason I can't pass session

RE: [PHP] Which PHP version is stable with apache 2.0.39

2003-04-03 Thread Mark Douglas
Something you should note before diving into making PHP work with Apache 2.0.39 - Apache 2.0.45 was recently released, to address a DOS vulnerability in Apache2 on all platforms. You may want to upgrade (or have your system administrator upgrade) to Apache 2.0.45. A second note, when I went from 2

RE: [PHP] Problems with post data

2003-03-29 Thread Mark Douglas
Just an FYI, 2.0.44 still isn't working on this server, while it does on another... I don't know what to do now, so I'm just going to write code to deal with this bug. -Original Message----- From: Mark Douglas [mailto:[EMAIL PROTECTED] Sent: Saturday, March 29, 2003 10:38

RE: [PHP] Problems with post data

2003-03-29 Thread Mark Douglas
Yes, the webserver that works is running apache2, however it's 2.0.44 instead of 2.0.43... I'm upgrading the broken one now to see if that fixes the problem. -Original Message- From: John W. Holmes [mailto:[EMAIL PROTECTED] Sent: Saturday, March 29, 2003 10:50 AM To: &#x

RE: [PHP] Storing a graphic file in a MySQL database

2003-03-29 Thread Mark Douglas
Here's a good start: http://www.phpbuilder.com/columns/florian19991014.php3 -Original Message- From: Phil Schwarzmann [mailto:[EMAIL PROTECTED] Sent: Saturday, March 29, 2003 7:56 AM To: [EMAIL PROTECTED] Subject: [PHP] Storing a graphic file in a MySQL database Where can I find some in

[PHP] Problems with post data

2003-03-29 Thread Mark Douglas
I'm having problems with my post variables. Here's the page I use to submit data:    Here's the test2.php page: This is all very simple, and works on one of my webservers. However, on another webserver with a practically identical configuration, if I post "testing" the result that I get

Re: [PHP] How to remove only the last character?

2003-02-08 Thread Douglas Douglas
I want to thank you Ian, Zydox and Nicos. After Zydox response I checked the manual again and read this part in the substr function: "If length is given and is negative, then that many characters will be omitted from the end of string (after the start position has been calculated when a start is

[PHP] How to remove only the last character?

2003-02-08 Thread Douglas Douglas
Good day. Is there any PHP function that removes only the last character of a string and returns the new string? I'm looking in the manual and I can't find anything. Until now I'm doing this: $var=substr($var,0,strlen($var)-1) Is this the most efficient way? Thanks. _

[PHP] RE: php/sendmail/apache/linux...

2003-01-24 Thread Bruce Douglas
TED] [mailto:[EMAIL PROTECTED]]On Behalf Of Brian Schmidt Sent: Friday, January 24, 2003 6:04 PM To: [EMAIL PROTECTED] Subject: RE: php/sendmail/apache/linux... On Fri, 24 Jan 2003, Bruce Douglas wrote: > However, as I stated, I'm fairly sure that the Sendmail app is working given >

[PHP] php/sendmail/apache/linux...

2003-01-24 Thread Bruce Douglas
hey... I'm sure the question has been answered a 1000 times!!! I'm trying to create a simple app to send email via PHP, using the "mail" function. I'm using RedHat(Linux 8.0 , Sendmail), PHP(4.2.2), Apache (2.0.40). I'm using the following piece of code:

RE: [PHP] a simple getenv question....

2003-01-22 Thread Bruce Douglas
, January 22, 2003 4:39 PM To: 'Bruce Douglas'; [EMAIL PROTECTED] Subject: RE: [PHP] a simple getenv question Do this: If what you want is here this just use: $_SERVER['REMOTE_ADDR'] etc You will need to have a look at the source of the output as the rendered view will l

RE: [PHP] a simple getenv question....

2003-01-22 Thread Bruce Douglas
PM To: 'Jim Lucas'; 'Bruce Douglas'; [EMAIL PROTECTED] Subject: RE: [PHP] a simple getenv question The simplest way to start looking would be phpinfo() page for starters. Timothy Hitchens (HiTCHO) Open Source Consulting e-mail: [EMAIL PROTECTED] > -Original Me

[PHP] a simple getenv question....

2003-01-22 Thread Bruce Douglas
Hi... A simple question... In the following code: I can only seem to get the last line to display the correct value. It's as if I can't seem to get/return any of the SERVER environment variables using the getenv() function I'm using Apache 2.0.40, PHP 4.2.2 on Linux RedHat 8.0. I've check

Re: [PHP] nested if in a for statement

2002-12-17 Thread Douglas Douglas
count($userVars), that is $i<=8, but you declare $i =0... so the loop is running nine times 0,1,...,8 The echo that you're seeing is the last run, cause empty($userVar[8]) is true (there is nothing in that index) Got it? Make it $i < count($use

[PHP] Dumb session cookie question?

2002-12-08 Thread Douglas Douglas
Hi all. I'm sorry about the dumb question, but I've just expend two hours trying to find the damn cookie and I couldn't :( I've read that when you use sessions and configure the php.ini with session.use_cookies = 1, your sessions will always send cookies to the client (if the client accept the cook

[PHP] callbacks to methods inside a class/object

2002-09-17 Thread Douglas Marsh
ince there is no way to set a callback to "$this->[function_name]" one must create a global function that uses a global object and passes things to the method inside the class.. Is the a way to address this? or perhaps a better way to deal with callback function names? --Douglas Mars

Re: [PHP] 4.04 --> 4.1.2 incompatible

2002-08-20 Thread Douglas Winslow
Petre Agenbag wrote: > My oh my > OK, can someone help with this one??? > My original Form conatined the following: > > bla, bla > > > And then things broke, so, out of curiosity, I removed the enctype="" > part, and now it works/ Another tip you might find useful if you're writing code th

[PHP] domxml

2002-06-16 Thread Douglas
functions, I see that it has placed a  symbol immediately before the £ symbol. Why? What is going on? Any ideas very much appreciated. Douglas. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] seesion_register() with arrays

2002-05-31 Thread Douglas - IG
Hi All, I´m trying to register into a session an array which has returned from a mysql_fetch_array function. But when I call $array it returns empty or something like this. Do you know how can I do this operation? Regards! Here go my scripts: "> while ($array = mysql_fetch_array($result)) {

RE: [PHP] Session Initially Doesn't Work

2002-05-02 Thread Adam Douglas
> > Alright that's good to hear. In a specific case that I'm having > > this problem > > the main PHP file is including file (content) that refers to > > $_SESSION[nSID_PeopleID] in main. This value is vital in > > rendering the page. > > So it should be there right? Also about removing > session

RE: [PHP] Session Initially Does Work

2002-05-02 Thread Adam Douglas
> There is a session problem with 4.1 > > If register_globals is ON, then use session_register(). > > If it's off, then use $_SESSION["name"] = "value"; and the value will > automatically be registered. What kind of session problem? I currently have register_globals set to on. I am already usin

RE: [PHP] Session Initially Does Work

2002-05-01 Thread Adam Douglas
> That's correct, although the cookie will remain resident it > requires an > inital page change/refresh. However after looking at your > code I'm not > convinced that is the problem since the first page of a > session creation > should still be usable with the session as the session ID is >

RE: [PHP] Session Initially Does Work

2002-05-01 Thread Adam Douglas
> > something else after the initial page everything works fine. I > > require this > > to work initially because if someone comes in directly using a > > link certain > > content will render a error message because the registered > variable is not > > present for some reason. Oh and yes the cook

RE: [PHP] Session Initially Does Work

2002-05-01 Thread Adam Douglas
I already have this setup. The session works just not on the initial page after login. > Add > > At the top of each page, before anything else is done. > > -Original Message- > From: Adam Douglas [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, May 01, 2002 3:15

[PHP] Session Initially Does Work

2002-05-01 Thread Adam Douglas
Hi. I've run into a problem with my PHP session. I'm running PHP 4.1.0 on OpenBSD v3.0 using .HTACCESS and mod_mysql. I have a PHP file that is referenced every time content is requested on the web site (this file also sets/restores the session). This PHP file includes [include()] the requ

[PHP] shell_exec() or passthru()

2002-03-23 Thread Douglas
Hi, I have a bash script I need to run. I have tried all the various program execution commands. My script never completes. It only get 1/4 of the way through. I have tried running the script in the background. Any ideas? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visi

[PHP] shell_exec() or passthru()

2002-03-23 Thread Douglas
Hi, I have a bash script I need to run. I have tried all the various program execution commands. My script never completes. It only get 1/4 of the way through. I have tried running the script in the background. Any ideas? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visi

RE: [PHP] What is "->" mean in php?

2002-03-07 Thread Douglas Maclaine-cross
Used in conjunction with classes. class Foo { var bar; function Foo($bar) { $this->bar = $bar; } } $foo = new Foo("foobar"); echo $foo->bar; // "foobar" For interests sake here's the same in C++ (correct me if I'm wrong it's been a long time s

RE: [PHP] Need help with a PHP script

2002-03-03 Thread Douglas Maclaine-cross
I can't believe I just sent this. For those who care it's the other way around. -Original Message----- From: Douglas Maclaine-cross Sent: Monday, March 04, 2002 14:08 To: 'PHP'; [EMAIL PROTECTED] Subject: RE: [PHP] Need help with a PHP script echo "T".$use

RE: [PHP] Need help with a PHP script

2002-03-03 Thread Douglas Maclaine-cross
echo "T".$username.$password; is PHP 2 and earlier proper syntax for PHP 3+ is echo "T"+$username+$password; or echo "T$username$password"; Doug

RE: [PHP] Re: regular expressions

2002-02-21 Thread Douglas Maclaine-cross
Use single quotes? I think that stops it from interpreting the regular expression before hand. -Original Message- From: Martin Towell [mailto:[EMAIL PROTECTED]] Sent: Friday, February 22, 2002 10:32 To: [EMAIL PROTECTED] Subject: RE: [PHP] Re: regular expressions yeah! remember that php

RE: [PHP] I have a PHP and Flash5 Problem.

2002-02-12 Thread Douglas Maclaine-cross
Ming! http://www.php.net/manual/en/function.swfmovie.php Don't make the mistake I made and overlook what Flash Action Script is capable of though. Doug -Original Message- From: Philip J. Newman [mailto:[EMAIL PROTECTED]] Sent: Wednesday, February 13, 2002 12:43 To: [EMAIL PROTECTED] Sub

RE: [PHP] Regex function needed

2002-02-07 Thread Douglas Maclaine-cross
I don't know about preg but how about this monster? $str = "I'm okay now aren't I. Do I work? 'mm"; while(eregi(' [a-z\']{1,3} ', $str)) $str = eregi_replace(' [a-z\']{1,3} ', ' ', $str); while(eregi(' [a-z\']{1,3}([^a-z\' ])', $str)) $str = eregi_replace(' [a-z\']{1,3}([^a-z\

RE: [PHP] Regex function needed

2002-02-07 Thread Douglas Maclaine-cross
$string = ereg_replace("[A-Za-z']{1,3}", "", $string); // don't forget "I'm" I haven't checked but something like this. -Original Message- From: Michael Kimsal [mailto:[EMAIL PROTECTED]] Sent: Friday, February 08, 2002 9:59 To: [EMAIL PROTECTED] Subject: [PHP] Regex function needed Lo

RE: [PHP] Swapping for \n... ?

2002-01-29 Thread Douglas Maclaine-cross
Or an even simpler str_replace("\n", "", $sourcestring); -Original Message- From: Jason Murray [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 30, 2002 15:14 To: 'Jon'; [EMAIL PROTECTED] Subject: RE: [PHP] Swapping for \n... ? > I'm processing a form but all the functions I've foun

RE: [PHP] How? :)

2002-01-29 Thread Douglas Maclaine-cross
$news = mysql_query("select * from bookmarks ORDER by TNum,AU asc"); $old_TNum = ""; while ($mydata = mysql_fetch_object($news)) { $new_TNum = $mydata->TNum; if ($new_TNum != $old_TNum) #when TNum occurs the first time, echo it once only. { $old_TNum = $new_TNum; $body .= "".$temp.":

Re: [PHP] Can you fake a onClick?

2001-12-27 Thread Douglas Harter
Maybe I should have mentioned that CountIt is a php function. Does that make a difference? It is declared at function CountIt($filename) where $filename is the file containing the count. - Original Message - From: "Bogdan Stancescu" <[EMAIL PROTECTED]> To: "Do

[PHP] Can you fake a onClick?

2001-12-27 Thread Douglas Harter
I have checked the archives and not really found an answer, so here goes. My form contains a function called CountIt which increments a counter file on the site. I mainly use it to count the hits on the page. I also have multiple links to .zip & .txt files which can be accessed or downloaded.

[PHP] installing php with apache rpm (rh linux 7.2)???

2001-12-27 Thread Duane Douglas
hi gang! i have an apache rpm installed. stuff will break if i uninstall it. how do i install php to work with it? tia Duane Douglas ASP / SQL Server Tutoring and Training -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands

  1   2   >