Re: [PHP] OT - my apologies

2003-08-14 Thread Matt Babineau
No problems :-) It sounds like Outlook was working like a charm? On Wed, 2003-08-13 at 13:48, [EMAIL PROTECTED] wrote: > Aloha all, > > I just wanted to apologize for some of the "Out of Office" alerts some of > you may have gotten from me yesterday. I had thought I had disabled the > function,

[PHP] Session does not end when browser is closed.

2003-08-14 Thread Lee Hanxue
Hi, I am using $_SESSION and each php page has session_start() Session Handling is working fine, except for one problem: when I close my browser and re-open it again, I am still logged in. I tested the log in and log out functions and they work fine. How can I terminate a session when the user

php-general Digest 9 Aug 2003 16:37:37 -0000 Issue 2226

2003-08-14 Thread php-general-digest-help
php-general Digest 9 Aug 2003 16:37:37 - Issue 2226 Topics (messages 158973 through 158991): Re: Mail 158973 by: Mike Brum 158975 by: John W. Holmes 158983 by: Sean 158989 by: Sean Re: WYSIWYG editor for PHP 158974 by: Bix mail() usage in for loops

Re: [PHP] what is %s %d

2003-08-14 Thread Mike Migurski
>They are codes for date formatting. > >Specifically: >%s represents seconds with leading zeros. >%d represents day of the month with leading zeros They can also be codes for the printf family of functions: %s represents string %d represents number See http://php.net/sprintf

Re: [PHP] where did my errors go?

2003-08-14 Thread Shawn McKenzie
error_reporting and/or display_errors in php.ini? "David T-G" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Passing Values between Pages : $_SESSION / $_GET

2003-08-14 Thread Pushpinder Singh Garcha
Hello All, I am using php and mysql in my application which allows users to search/query a database. The database is cast and has about 32 rows per record. When the user fires the query, the result is in the form of a table that contains only the 6 important rows of the entire record. Als

RE: [PHP] Re: PHP Fusebox

2003-08-14 Thread Ralph Guzman
Alexandru, I will take a look at Krysalis. Thanks for your response. Ralph -Original Message- From: Alexandru COSTIN [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 06, 2003 12:20 AM To: [EMAIL PROTECTED] Subject: Re: [PHP] Re: PHP Fusebox Hello Ralph, Anyway, as a sample o

Re: [PHP] bug in code - can't find it!

2003-08-14 Thread Chris Sherwood
} well for starters checkboxes dont have a size and maxlength you may want to try that and see if it works... - Original Message - From: "Amanda McComb" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, August 06, 2003 2:47 PM Subject: [PHP] bug in code - can't find it!

Re: [PHP] logging of mail() function?

2003-08-14 Thread Nicholas Robinson
I use a bcc to a specific email account. Not pretty but it works. Here's a snippet: /* To send HTML mail, you can set the Content-type header. */ $headers = "MIME-Version: 1.0\r\n"; $headers .= "Content-type: text/html; charset=iso-8859-15\r\n"; /* additional hea

RE: [PHP] Sum a column of values from a MySQL query

2003-08-14 Thread Jay Blanchard
[snip] 1) The code returns the sum of a partially paid invoice. The individual invoice is 'partpaid'. WORKS...NO PROBLEM 2) The while() then return a list of partially paid invoices which is $invoicepartpaid. WORKS..NO PROBLEM 3) I then want to add the list of partially paid invoices ($invoicepar

Re: [PHP] Container functions....

2003-08-14 Thread Justin French
Sounds like you're trying to replicated something in ColdFusion? I have a few blocks of code on my pages which are only executed on my development server, not the live server -- is this what you want? if(ereg("192.168.0.",$_SERVER['SERVER_ADDR'])) { $local = 1; } else

Re: [PHP] problem using unlink()

2003-08-14 Thread Curt Zirzow
* Thus wrote James Brash ([EMAIL PROTECTED]): > > Hi, > I have a problem using unlink(); on a system using FreeBSD and Apache... > where my local system using Windows and Apache experiences no problems. > > unlink("test1.php"); > ?> > > On the windows system is deletes the file, but on the FBSD

Re: [PHP] Stop neurotic posting

2003-08-14 Thread Lucas Lain
Please ... put in the Subject --> [OFF-TOPIC] ... i don't want to see this stupid discussion ... Thanks On Wed, 6 Aug 2003 13:36:42 -0700 "Chris Sherwood" <[EMAIL PROTECTED]> wrote: > well I have been watching this post all morning and now into the afternoon.. > > personally I think there is

Re: [PHP] Addin a column of numbers not using MySQL

2003-08-14 Thread Jason Wong
On Tuesday 05 August 2003 04:01, Ben C. wrote: > It still returns '0'. I think we are missing something. Any other ideas? > Anyone else have any ideas? My ideas are: 1) turn on FULL error reporting 2) print out all your variables at every step -- Jason Wong -> Gremlins Associates -> www.gre

[PHP] where are my errors?

2003-08-14 Thread David T-G
Hi, all -- I'll try this again now that I've gotten one question answered... My partner and I have done something that gets rid of our error messages, and we're not quite sure what. The identical code base (I copied it over myself; I'm sure) worked "fine" on another supposedly-identical RH Linux

RE: [PHP] Building an XML Parser Class

2003-08-14 Thread Jay Blanchard
[snip] xml_set_element_handler($this->xml_parser, '$this->startElement', "$this->endElement"); xml_set_character_data_handler($this->xml_parser, "$this->valueHandler"); I get an error message: Warning: xml_parse(): Unable to call handler $this->startElement() in c:\program files\apache group\php\

[PHP] Importing file

2003-08-14 Thread Richard Baskett
When I import a file using the file() function it is screwing up any spanish accents and putting in some strange characters in their place. Is there something that I can do to remedy this? So for example something like 'é' is being turned into '-', or 'í' is being turned into '£' etc etc.. exampl

[PHP] REMOVE THIS ADDR! Re: [ERR] Re: [PHP] PHP vs ASP.NET "formal opinions"request

2003-08-14 Thread John Manko
PLEASE REMOVE THIS ADDR FROM THE LIST! IT'S NOT LIKE HE/SHE IS GOING TO BE MISSING ANY MESSAGES! [EMAIL PROTECTED] wrote: Transmit Report: To: [EMAIL PROTECTED], 402 Local User Inbox Full ([EMAIL PROTECTED]) Subject:

Re: [PHP] does PHP have a equivalent to the C++ #ifndef #define?

2003-08-14 Thread David Nicholson
Hello, This is a reply to an e-mail that you wrote on Sun, 10 Aug 2003 at 15:51, lines prefixed by '>' were originally written by you. > I'm coding a really large web page in PHP. One of the problems I run > into is I'll create a function in file inc.function.something.php and > will need a funct

Re: [PHP] callback function in class

2003-08-14 Thread John W. Holmes
Evan Nemerson wrote: Basic problem: I need to use preg_replace_callback, and would like the callback parameter to be a function in a class (the same as that which contains the call to preg_replace_callback). "classname::function" doesn't seem to work... Anyone have any ideas? Besides create_fun

Re: [PHP] php conditional loop question

2003-08-14 Thread Randy L Johnson Jr
I have done this but it does not seem to ever get to the end of file, I have it inserting the values into the database, it goes for awhile around 12 to 24 hours and then stops inserting the values into the database and I have to restart the script...   Randy    ---Original Message---

Re: [PHP] error problem

2003-08-14 Thread Kris Reid
Sorry the second "echo "Hello world";" was meant to have no semi colon - Original Message - From: "Kris Reid" <[EMAIL PROTECTED]> To: "PHP List" <[EMAIL PROTECTED]> Sent: Thursday, August 14, 2003 12:37 PM Subject: [PHP] error problem When I have an error in my code nothing gets written

Re: [PHP] Server-side script identified as IE

2003-08-14 Thread Joel Rees
(Quoting fixed) "Vchat20" <[EMAIL PROTECTED]> said > "Roger B.A. Klorese" <[EMAIL PROTECTED]> wrote in message > news:[EMAIL PROTECTED] > > > umm. yes. I know that. the problem is the 1 site I want to pull news > > from > > > has a robots.txt file which is preventing the script from working and >

[PHP] How to get exec() to display output from UNIX Shell Environemnt?

2003-08-14 Thread Scott Fletcher
Hi! How do I get the php function exec() to spit out the data from the Unix Shell Environment onto the webpage? I mean, I can create a script in bash shell environment using the terminal on the Unix machine and it would spit out the background information from the O/S along with the shell scr

RE: [PHP] mail

2003-08-14 Thread Jay Blanchard
[snip] Hi! Kann anyone tell me how to send attachments with the mail function? [/snip] +2 this week and some wonder why we say RTFM, STFW, or STFA GIS for "send attachments with PHP mail()"

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

2003-08-14 Thread Douglas Douglas
Thanks to everybody for your kind responses. By the way, I go to the Universidad de El Salvador (Central America). In a such poor country like this, Free Software and Open Source could be the answer to the government's software needs. Unfortunately, MS has the monopoly in the government's softwa

Re: [PHP] greedy preg

2003-08-14 Thread John W. Holmes
skate wrote: $contents = preg_replace( "|.*?$file.*?|si", "", $contents ); it's being run on an XML file, where each entry is .. with a $file pointer in there. it works okay, except for the fact that it deletes that record, and every record before it. i can't figure out why it's being greed

[PHP] Re: Downloding files once

2003-08-14 Thread Manuel Lemos
Hello, On 08/06/2003 12:43 PM, Boaz Yahav wrote: I'm trying to allow users to download files from my servers. Files can be hundreds of MB in size and sometimes even a few GB. This is a closed section of the site and i would like to allow only members to be able to DL the files. I thought of using

Re: [PHP] Fw: mail() function

2003-08-14 Thread Jason Wong
On Thursday 07 August 2003 17:20, photogames.net wrote: > i have a very short question. The function mail() stopped working suddenly. > It returns true, reports no error, but the e-mail message is not sent to > any e-address. Our provider has no idea. There were not made any changes in > PHP and A

[PHP] mail

2003-08-14 Thread Klaus Linzner
Hi! Kann anyone tell me how to send attachments with the mail function? Thanks, Klausi -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] postmaster@hanmir.com

2003-08-14 Thread Joe Harman
Hey is every one getting a returned message from [EMAIL PROTECTED] Joe Harman

Re: [PHP] what's going on with the hanmir.com guy?

2003-08-14 Thread Analysis & Solutions
On Tue, Aug 12, 2003 at 03:58:19PM -0700, Chris W. Parker wrote: > > I'm surprised the email address hasn't been taken off the list yet. > [EMAIL PROTECTED] you are my arch-nemesis!! [EMAIL PROTECTED] is the place to kvetch about users like this. I already did. A subject of " bouncing" is cle

RE: [PHP] Class Design Question...

2003-08-14 Thread Chris W. Parker
Dan Joseph on Wednesday, August 06, 2003 10:18 AM said: > Are there any performance differences that are noticable in a > 300-400 line PHP script if you overuse classes rather than straight > functions? I have no definitive answer but I would assume the answe

Re: [PHP] checking the return value of member function with empty

2003-08-14 Thread Justin French
Count the number of ('s and )'s, or get a text editor which can help you balance them out in some way: 1 2 3 321 if (!empty($this->GetParam('someparameter'))) { // foo } This *SHOULD* be syntactically correct, but php doesn't think so. Should I

[PHP] Re: Downloding files once

2003-08-14 Thread Manuel Lemos
Hello, On 08/06/2003 03:48 PM, Boaz Yahav wrote: This may work but i can't help thinking that this is the wrong way to go. Downloading 1GB or 2GB files via fpassthru doesn't feel right... Why not? As long as it works without blowing your server memory that is fine. The only problem you may have

Re: [PHP] chown / chgrp of a http owned file after upload

2003-08-14 Thread Jason Wong
On Wednesday 06 August 2003 18:16, Bix wrote: > I have written as part of my CMS, an image upload system, now when the > images are placed in the destination folder, they are owned by httpd.root > and I need to get them to be owned by siteuser.sitegroup. > > I have tried to chmod and chgrp it to s

RE: [PHP] Max script size

2003-08-14 Thread Jay Blanchard
[snip] Yes. PHP versions differnt. Ini's Diffiernt, don't want to to match those. I assmue the reason is because of a differnt ini setting...I just can't find it. [/snip] And you say this file is 6MB? Have you set any error reporting on the file at all? -- PHP General Mailing List (http://www.ph

Re: [PHP] greedy preg

2003-08-14 Thread SLanger
> preg_replace("|.*?$file.*?|si","",$contents) > > > fhh > 1060205191 > hhh > xml/news/1060205191.xml > > > fgjghjh > 1060205186 > fgjh > xml/news/1060205186.xml > > > fgjhh > 1060205182 > fghh > xml/news/1060205182.xml > > Not sure if I understand you correct

[PHP] Insidious!

2003-08-14 Thread ruusvuu
Do you recall during the height of the War in March? I posted a simple joke - got one (positive) reply before getting kicked off the list by Mr Lerdorf himself. Now all of a sudden my inbox is FILLED with JUNK! How many of you flamers are getting kicked off the (*&%^$^%&% list? At least I made

Re: [PHP] Re: module to display e-mail from source

2003-08-14 Thread Juan Nin
From: "Dan Phiffer" <[EMAIL PROTECTED]> > I don't think I've seen anything like what you're describing, but you ought > to be able to use the standard mod_imap functions to determine whether a > message has MIME components, HTML and the like, then output to the client as > desired. The problem is

Re: [PHP] Command line php....

2003-08-14 Thread John Nichel
4.3.2 Ray Hunter wrote: Technically, yes it should however, I think this is a bug...are you running php 5b? -- BigDog - Original Message - From: "John Nichel" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, August 05, 2003 9:07 PM Subject: [PHP] Command line php Can some

[PHP] buttons don't work

2003-08-14 Thread Miguel Ribeiro
I've recently upgraded my webserver for apache 2.0.47 with php 4.3.2 on a solaris 9 box My problem is... the buttons on the php pages don't work and I can't figure why this is happening... Apache compiled like: ./configure --prefix=/opt/apache --activate-module=/opt/php/distribution/php-4.3.2/li

Re: [PHP] Downloding files once

2003-08-14 Thread Curt Zirzow
* Thus wrote Boaz Yahav ([EMAIL PROTECTED]): > Can you fake a referrer by say, using fsockopen() and sending your > own headers? Yes, and in fact there are programs designed to work around this exact (so called) security check. I've seen hosting services use this method of protecting their fi

[PHP] PHP and SQL Server

2003-08-14 Thread Todd Cary
I have a client that insists that I use SQL Server as the DB (vs. MySQL or Interbase).  I have not used PHP's ODBC interface and I am wondering if anyone on this list has had experience with ODBC and SQL Server. Todd -- <>

RE: [PHP] suggestion on php-editor?

2003-08-14 Thread Chris W. Parker
Louie Miranda on Friday, August 08, 2003 12:24 AM said: > I currently used Dev-PHP IDE. > But i was wondering if you guys have any other suggestions? HTML-Kit: http://www.chami.com/html-kit/ c. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, vi

[PHP] Re: CURL

2003-08-14 Thread John Ryan
i was more asking for the actual curl commands to do so, i suppose this wasnt the rite ng to ask, but ive nowhere else! the docs on the curl site are kinda crap "Igor Konforti" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > yeah, there is way to do it! > http://www.php.net/manual/en

Re: [PHP] What does -> mean?

2003-08-14 Thread Petre Agenbag
You should read up on classes and objects in the manual. On Thu, 2003-08-14 at 09:14, James Johnson wrote: > Hello, > > I've searched through Zend and php.net and can't find the answer. > > In the following code: > > $this->vendor = $vendor; > > What does the -> mean or do? > > Thanks, >

[PHP] problem with --enable-gd-native-ttf

2003-08-14 Thread Maciek Ruckgaber Bielecki
Hi there everybody! I found the following problem while working with the GD library: if you try to make an image containing áéíóú (aeiou with tilde) WITHOUT spaces, results in annoying non existng chars and ú. While separating each character with a whitespace makes the thing display what want

RE: [PHP] Class Design Question...

2003-08-14 Thread Dan Joseph
Hi, > >>Are there any performance differences that are noticable in a > >>300-400 line PHP script if you overuse classes rather than straight > >>functions? > > This is a loaded question. If you overuse classes, there will be a > performance hit :). However, in a 300-400 line script, you mig

Re: [PHP] Max script size

2003-08-14 Thread Fokkema, I.F.A.C. (HKG)
"Jason Wong" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > On Monday 11 August 2003 19:59, Ivo Fokkema wrote: > > > > I must say I don't agree. Although it seems odd, I received a DNS error a > > while ago while creating a script using the GD library. If the script > > wasn't there,

[PHP] Re: How to run PHP from a MySQL DB

2003-08-14 Thread Jeremy Darling
This is actually for a personal web portal, so very little will be eval'd out of the database most of the time. I'm not sure what a PHP accelerator is, but I'm guessing that if I wanted to use it I could get away with doing something like: Export the php file from the db to an actual tmp file. r

[PHP] setting file_uploads on a per-directory basis

2003-08-14 Thread Demian Turner
In an effort to improve security on a server that has many sites, I was hoping to disable http_uploads in php.ini then enable it in one site with either an .htaccess: php_value http_uploads on or in httpd.conf with php_value http_uploads on however neither of these are successfully o

[PHP] 4.3.3RC download mirror sites?

2003-08-14 Thread Jean-Christian IMbeault
I am trying to download php-4.3.3RC2 from the PHP site but my connection keeps timing out even before the download starts. I'm guessing the main server is too busy? Does anyone know of any mirror sites? Thanks, Jean-Christian Imbeault -- PHP General Mailing List (http://www.php.net/) To unsub

Re: [PHP] greedy preg

2003-08-14 Thread Kevin Stone
- Original Message - From: "skate" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, August 06, 2003 3:16 PM Subject: [PHP] greedy preg > > $contents = preg_replace( "|.*?$file.*?|si", "", $contents ); > > it's being run on an XML file, where each entry is .. with > a $f

Re: [PHP] hanmir!!

2003-08-14 Thread John Manko
oh, haha! John Manko wrote: huh? Chris W. Parker wrote: hanmir!! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] WYSIWYG editor for PHP

2003-08-14 Thread Jay Blanchard
[snip] I need a WYSIWYG editor for PHP. That is all. Can any1 advice me one( or more :-) )? [/snip] Dreamweaver? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] gettin parameters from url, architecture question

2003-08-14 Thread Merlin
Hi there, I recently dumped into a site which was kind of search engine optimized. They had urls like this: server.com/country_province_city_222.html Now I am wondering how they did this. I am aware on how to do it if you could at least have this: server.com/country/province_city_222.html where

[PHP] php+apache+accelerator

2003-08-14 Thread Uros Gruber
Hello! I installer php and apache on many computers. I also try some of accelerators (phpaccelerato and turckmmcache). And I found some strange bahaviour about apache server. I didn't find any solution yet. Here is the problem. Apache server gets core dump whenever I have any php_admin... stuff

RE: [PHP] for loop and FTP

2003-08-14 Thread Jay Blanchard
[snip] I need to grab five pages from a web site every day and then FTP those pages to another site. I was wondering if I should grab all five pages (and store them somewhere) and then FTP all five. [/snip] This sounds like the more prudent move as it is more efficient. You can also confirm that

[PHP] Re: how do i get assosciative name in foreach

2003-08-14 Thread Cristiano Duarte
> foreach ($array as $element) > { > // assuming get_assoc gets the assosciative name > if (get_assoc($element) == 'element1') > {get_assoc($element) do_something(); } > elseif ( == 'element1') > { do_somethingelse(); } > } I don't know if this is what you want but: foreach ($array

RE: [PHP] setting function variables

2003-08-14 Thread Jay Blanchard
[snip] I am trying to specify a single php file to contain all the variables and I just call this file where necessary. What I am running into is that I want to do this for all the built in functions (i.e. mssql_query) as well. I've tried numerous attempts but can't get it to operate without wanti

Re: [PHP] Problem occurs when included file includes anther file.

2003-08-14 Thread John
I came across this problem recently -also a similar prob with basedir restrictions ! I even wrote to the php guys about the documentation and got told if was documented but hard to find and it wasn't there fault that the search on php.net doesn't work very well ! Which I have to admit didn't leave

RE: [PHP] detecting referer

2003-08-14 Thread Jay Blanchard
[snip] What is the best way, using php, to detect information about the referrer to a page. Is this possible/difficult using PHP? [/snip] Please take the time to peruse the manual at http://www.php.net/manual/en/reserved.variables.php and look at $_SERVER variables. Have a pleasant and productiv

Re: [PHP] Array to List

2003-08-14 Thread Chris Boget
Everything is fine in your script up to here: > $row_GetCampuses = mysql_fetch_assoc($GetCampuses); The above is getting just one (1) record from the database. If you ever have only one, you are good to go. > $totalRows_GetCampuses = mysql_num_rows($GetCampuses); I'm not sure what you are doin

Re: [PHP] dev style guide

2003-08-14 Thread Phillip Blancher
Actually the word is Suffix not postfix... Prefix and Suffix. -- Best Regards, Phil Phillip Blancher Web Developer & Lead Graphic Designer < http://www.ontarioweb.ca > 1-866-209-0349 < [EMAIL PROTECTED] > - Original Message - From: "Miles Thompson" <[EMAIL PROTECTED]> To: <[EMAIL PROTECT

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

2003-08-14 Thread Chris Shiflett
--- Douglas Douglas <[EMAIL PROTECTED]> wrote: > In my University, people in charge of approving the > graduation works advocate Microsoft's technologies. > They don't believe in the free software movement or > the open source movement. Some guys tried to develop a > system using PHP and those peop

Re: [PHP] PHP & P2P File sharing

2003-08-14 Thread Chris Shiflett
--- Joe Harman <[EMAIL PROTECTED]> wrote: > I curious if anyone knows of a PHP based Peer-to-Peer file sharing > program out there! I have a friend that wants to implement this > with his web server.. P2P isn't exactly something you do with PHP anymore than you would write a Web server with PHP (w

Re: [PHP] Stop neurotic posting

2003-08-14 Thread daniel
obviously our asp windoze counterparts look over us as inferior, but i dont see it that way, but how about java , looking into the future how inferior or superior comparing php and java ? > I tend to think that PHP will take over the world > Just my $0.02. > > > Robert Cummings wrote: > >>Hitl

[PHP] REQ: Password storage system

2003-08-14 Thread Daevid Vincent
I'm in search of an 'enterprise level' password storage system. I have looked at phpMyPass and it looks promising, but the demo doesn't seem to have everything I want. http://freshmeat.net/releases/127316/ While this one says v2.0 http://www.phpmypass.paniris.com/ Says 1.0 ?? I need it to be mul

RE: [PHP] Stop neurotic posting

2003-08-14 Thread Ralph Guzman
This will help: http://catb.org/~esr/faqs/smart-questions.html This has got to be the longest thread I've seen. -Original Message- From: andu [mailto:[EMAIL PROTECTED] Sent: Tuesday, August 05, 2003 9:32 PM To: [EMAIL PROTECTED] Subject: [PHP] Stop neurotic posting This is a very busy

RE: [PHP] AOL Email client

2003-08-14 Thread Chris Shiflett
--- Mark Roberts <[EMAIL PROTECTED]> wrote: > $headers .= "From: ".$name." <".$email.">\r\n"; My guess is that this line is what is causing your problems. Try this instead: $headers .= "From: \"$name\" <$email>\r\n"; The difference is (aside from not using concatenation) that the name is quoted,

[PHP] Re: Sum a column of values from a MySQL query

2003-08-14 Thread Jim Lucas
What are you expecting back from the sql statement? And what are you getting? >From what I can tell, if you are getting all your amounts from the select statement then you are already totalling them up inside the select statements by using the sum() function call. if you are wanting, or expectin

Re: [PHP] greedy preg

2003-08-14 Thread CPT John W. Holmes
From: "skate" <[EMAIL PROTECTED]> > $contents = preg_replace( "|.*?".$file.".*?|si", "", > $contents ); > > okay, so i figured out that it's matching the first occurence of > which will always be the first record and then going on to match the $file > and deleting everything between. obviously not

Re: [PHP] error problem

2003-08-14 Thread Randy L Johnson Jr
there is something in the php.ini file that turns the display errors in browser on and off...   Randy    ---Original Message---   From: Kris Reid Date: Wednesday, August 13, 2003 10:36:59 PM To: PHP List Subject: Re: [PHP] error problem   Sorry the second "echo "Hello world";" was me

Re: [PHP] Stop neurotic posting

2003-08-14 Thread Step Schwarz
The manual (especially user comments) and Google are invaluable to me as a PHP coder. As fast as this list is to respond to a very basic question, the manual and Google are faster. And more in-depth. So no offense but the replies you consider to be neurotic I consider to be helpful. -Step > Th

[PHP] Mail

2003-08-14 Thread Sean
I cannot get mail() to work any idea's I get a server error. Windows 2000 the SMTP port is 25. No default values have being changed from the original PHP installation. In it's simplest form mail("[EMAIL PROTECTED]", "My Subject", "Test"); Gives the error as do more complicated scripts that I copie

RE: [PHP] Building an XML Parser Class

2003-08-14 Thread Donald Tyler
Three ways I tried using the :: syntax: 1. With either double OR single and with OR without () (Tried all 4 combinations) quotes: xml_set_element_handler($this->xml_parser, "xmlTranslator::startElement", "xmlTranslator::endElement"); Gives me the following error message: Warning: xml_parse(): U

[PHP] Problem occurs when included file includes anther file.

2003-08-14 Thread CaiYongzhou
The directory structure is as follows: / |-- demo.php |-- inc/ |-- inc1.php |-- inc2.php === file demo.php == === file inc/inc1.php == == file inc/inc2.php == this is a test The above inc/inc1.php is ok for testing.And this would be ok too: Problem occurs when the code is like this

Re: [PHP] mail() usage in for loops

2003-08-14 Thread Joel Rees
> When you say batches of 500 , would that mean you put pauses between > each batch ? Or do you prepare each email as a file and then send them > out in batches of 500? Whats the time space between each batch? Assuming > I was stuck with sendmail, what would you recommend ? Well, I don't know

Re: [PHP] FDF support in RedHat (make error)

2003-08-14 Thread Cesar Cordovez
I didn't read the fine manual. Where in the manual says: [move "fdftk.h" to "/usr/local/includes" and "libfdftk.so" to "/usr/local/lib"]? Huh? The manual only says: Note: If you run into problems configuring PHP with fdftk support, check whether the header file fdftk.h and the library libfd

Re: [PHP] Sum a column of values from a MySQL query

2003-08-14 Thread CPT John W. Holmes
Sorry, Jay, but that's a horrible method. You could just run one query with a GROUP BY clause to get the sum for each invoiceID, instead of running multiple queries like you've mentioned... $query = "SELECT invoiceid, SUM(partpaidamount) AS partpaid FROM $tb_name GROUP BY invoiceid"; $rs = mysql_q

Re: [PHP] Attention everyone 0-t

2003-08-14 Thread Ryan A
Hi, > for some reason over 90% of all posters to this list has been > > blacklisted by spamcop... > > And how do you know this? I use mailwasher pro which queries spamcop for all mail i recieve and automatically blacklists it so i wont have to bother looking at itI was just surprised to see m

[PHP] running scripts

2003-08-14 Thread BrianS
I am sure this has been asked dozens of times so please forgive if this is repetitive. I have an application from which I would like to incorporate running scripts. I saw that I can pass files to php.exe but this is more for a batch process and so my application wouldn't have access to any script

[PHP] Re: Best PHP CMS

2003-08-14 Thread Shawn McKenzie
I prefer and use PostNuke. Great community, stable platform, many modules/themes, sensible API for development and AutoTheme HTML theme system for templating, with another system on the way. HTH -Shawn "Anthony" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > I'm just looking for s

RE: [PHP] Max script size

2003-08-14 Thread Jay Blanchard
[snip] Yes. PHP versions differnt. Ini's Diffiernt, don't want to to match those. I assmue the reason is because of a differnt ini setting...I just can't find it. [/snip] How identical are the servers themselves? We may need to see some code (PLEASE do not post the entire thing here, just the fir

Re: [PHP] 4.3.3RC download mirror sites?

2003-08-14 Thread Jason Wong
On Wednesday 06 August 2003 14:11, Jean-Christian IMbeault wrote: > I am trying to download php-4.3.3RC2 from the PHP site but my connection > keeps timing out even before the download starts. > > I'm guessing the main server is too busy? Does anyone know of any mirror > sites? When you go to the

[PHP] mail() function failure

2003-08-14 Thread Brad Esclavon
I have made a simple script to mail an email to a person on my domain. i have tested the script with different values and i still cannot get the email. when i execute the mail function, it returns true, so i know it gets to the mail server, but the mail server doesnt actually send it. i am being ho

Re: [PHP] does PHP have a equivalent to the C++ #ifndef #define?

2003-08-14 Thread Miles Thompson
Not quite, but have a look at the function handling functions: http://www.php.net/manual/en/ref.funchand.php particularly http://www.php.net/manual/en/function.function-exists.php May not be what you want, but might get you close. Miles At 10:42 AM 8/10/2003 -0400, Dan Anderson wrote: I'm coding

Re: [PHP] Installer Software

2003-08-14 Thread John W. Holmes
Joe Harman wrote: I am making an application in PHP, but I want it to run on a user's local computer... but I need to find someway to bundle this so that when it is distributed, the installer installs PHP for windows... then copys the PHP files to the correct directory, then puts a short cut on th

Re: [PHP] FDF support in RedHat

2003-08-14 Thread Cesar Cordovez
Now I have 4 versions: FDFTK.H, fdftk.h, FdfTk.h, Fdftk.h. Same problem. Cesar Cordovez wrote: Weird. Is the file Fdftk.h or fdftk.h? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] PHP Fusebox

2003-08-14 Thread Joona Kulmala
Ralph Guzman wrote: I am trying to standardize my development process and have been looking at the different frameworks out there. One of the philosophies I like is that of Fusebox, although originally developed for ColdFusion it is now available for PHP: http://bombusbee.com/ Anybody have any ex

[PHP] Installer Software

2003-08-14 Thread Joe Harman
Hello, I am making an application in PHP, but I want it to run on a user's local computer... but I need to find someway to bundle this so that when it is distributed, the installer installs PHP for windows... then copys the PHP files to the correct directory, then puts a short cut on the desktop

[PHP] Pls Help-Looking for PHP Product for Articles

2003-08-14 Thread Stephen Toutonghi
Hi, I'm looking for a product that will help me create a documentation system. I'd like to be able to post individual articles on an intranet, and have user's create comments on the articles that become part of the article. And editor could then review the comments and add to the article where app

Re: [PHP] setting function variables

2003-08-14 Thread Mark
--- "CPT John W. Holmes" <[EMAIL PROTECTED]> wrote: > > A good suggestion, since this is what your creating, basically. > > Anyhow, if you really want to do it your way, it'd be like this: > > $runQuery = 'mssql_query'; > $getRow = 'mssql_fetch_row'; > > Then you'd use them like this: > > $re

Re: [PHP] Associative to Numeric

2003-08-14 Thread olinux
http://www.php.net/array_values http://www.php.net/array_keys --- Gerard Samuel <[EMAIL PROTECTED]> wrote: > What would be the quickest, most reliable means to > convert an > associative array to a numeric array. > Running an implode()/explode() combination comes to > mind, but > reliablity can

Re: [PHP] mysql_error() problem?

2003-08-14 Thread Curt Zirzow
* Thus wrote Tyler Longren ([EMAIL PROTECTED]): > hmmm...perhaps that was it. When I had this issue before, someone told me > to check mysql_affected_rows() when using issuing an UPDATE query. I'll > give that a shot. Correct, mysql_affected_rows() on a query that doesn't return rows (insert, up

Re: [PHP] How to point at a spot and get relevant information?

2003-08-14 Thread David Otton
On Thu, 7 Aug 2003 10:59:01 -0500 , you wrote: >Thank you for your reponses. The problem is there are thousands of spots on >the plot. >The locations are random. This may be one of those "you can't get there from here" problems, and you'll have to rethink the presentation of your data. What's th

[PHP] setting function variables

2003-08-14 Thread Micah Montoy
I am trying to specify a single php file to contain all the variables and I just call this file where necessary. What I am running into is that I want to do this for all the built in functions (i.e. mssql_query) as well. I've tried numerous attempts but can't get it to operate without wanting to

Re: [PHP] mail() usage in for loops

2003-08-14 Thread John W. Holmes
Mohanaraj wrote: What would be the best way to handle this ? Go get a program that's made to send out emails like this. Odds are it'll be faster and less of a strain on your server. PHP is great, but there are other solutions out there. My $0.02, of course. :) -- ---John Holmes... Amazon Wishl

Re: [PHP] dev style guide

2003-08-14 Thread jsWalter
"Curt Zirzow" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > * Thus wrote jsWalter ([EMAIL PROTECTED]): > > Is there a style guide for coding practices used when creating code to be > > shared with the community? > > The rule is to code they way the community has been coding. Thank

<    4   5   6   7   8   9   10   >