Re: [PHP] shell_exec

2003-08-14 Thread Juan Nin
From: "Rodney Green" <[EMAIL PROTECTED]> > Hello. I've been attempting to write a script that will run a shell script > using the shell_exec function and haven't had any success with getting it to > run in the browser. My web server runs as the user 'apache.' I'm able to run > the script successfu

[PHP] Clone of Hotmail,yahoo

2003-08-14 Thread Balaji Nallathambi
Hi all I want to implement the same functionality of how yahoo and hotmail had done. In the yahoo or Hotmail after siginin When click Compose a new window will be opened for compose. In the Compose Page they are links like (TO,CC, Bcc) on clicking these links a small window will open nothing b

RE: [PHP] setting function variables

2003-08-14 Thread Jennifer Goodie
> Tried this and it returns errors of type: > > Warning: Wrong parameter count for mssql_result() in > c:\inetpub\wwwroot\webpage10\example\utilities\dsp_del_images.php > on line 78 > > Warning: mssql_result(): supplied argument is not a valid MS SQL-result > resource in > c:\inetpub\wwwroot\web

Re: [PHP] Array to List

2003-08-14 Thread CPT John W. Holmes
From: "James Johnson" <[EMAIL PROTECTED]> > Actually, I'm using $campusList for a SQL statement: > > SELECT name FROM campuses WHERE inst_id IN ('$campusList'); > > It wasn't working until I found out that $campusList needs to look like > '1','2','3'. > > $campusList = implode( ', ', $_POST['campu

RE: [PHP] magical file writing truncation

2003-08-14 Thread Jay Blanchard
[snip] > > [snip] > > $newFile = "xml/".$type."/".$now.".xml"; > > while(file_exists($newFile)) > >$newFile = "xml/".$type."/".$now++.".xml"; > > $text = $_POST['text']; > > $text = urlencode(stripslashes(nl2br($text))); > > [/snip] > > ack, sorry to double post... it appears that it

[PHP] Re: on specific time in the month do script!!

2003-08-14 Thread Nabil
No i think you get me wrong ... i have already in my web page some articles that i don't want to desplay on the first and second of every month at a specific hours... Please comment "Nabil" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > HI all; > how can i run somthing or a functi

Re: [PHP] segmentation faults

2003-08-14 Thread Martin Peck
Thanks for the reply. Kind of good to know I am not the only one having difficulties. I too have arrays of objects - although had the problem when I was dealing with arrays that were only 2 or 3 items long - and also am passing references quite a bit. After several hours of going backwards, I s

Re: [PHP] Stop neurotic posting

2003-08-14 Thread Amanda McComb
I am definitely a novice, and I use the online manual, but a lot of times I won't even know what to search for, or I'll search for something and not find what I'm looking for, or I'll find what I think I'm looking for, then pour over some unclear examples and text and realize it's NOT what I'm look

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

2003-08-14 Thread Alexandru COSTIN
Oopps, sorry for my previous reply. Actually I've missunderstood your question - I've understood it better now. The "eval" is indeed the key - but there is one major performance issue - when eval-ing code from the database, you won't be able to use a PHP accelerator - as they can't opt

RE: [PHP] XMl Parsing within PHP

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 $thiss->startElement() in c:\program files\apache group\php

Re: [PHP] Simple cookie question

2003-08-14 Thread Liam Gibbs
> This may be a stupid question, but I'm trying to set up a system where I can > take a poll from visitors to my website and then set a cookie so that they > can't vote more than once (until they clear their cookies at least). > Problem is, I don't want to put it at the top of my page, because what

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

2003-08-14 Thread Greg Beaver
Hi, empty() is confusing, because it is not a function, but a language construct, like isset(). As such, you can only use it on variables, and not on expressions or function return values. See the very small print Note at the bottom of: http://www.php.net/empty Note: Because this is a langua

Re: [PHP] Unzipping Files

2003-08-14 Thread Jason Wong
On Wednesday 06 August 2003 10:19, Matt Palermo wrote: > Yeah, I know someone mentioned using the exec for this, but I was > wondering if anyone knew where I could find the command-line code for > this to use in PHP... Anyone know? Do you not read the replies that you receive? I believe this ques

Re: [PHP] Attention everyone 0-t

2003-08-14 Thread David Otton
On Thu, 7 Aug 2003 02:17:21 +0200, you wrote: >> 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 both

Re: [PHP] magical file writing truncation

2003-08-14 Thread skate
[snip] i really can't get my head around this one at all. could it possibly be a windows issue??? i know windows can be an arse in dealing with files, but i can't see how it could pick up on a variable inside PHP and truncate it? [/snip] I just have one more thought because you brought up Window

[PHP] MIME-type to file extension

2003-08-14 Thread Ney André de Mello Zunino
Hello. Is there any facility that will help one map a MIME-type to a file extension or extensions? E.g. 'image/jpeg' should map to ('jpg', 'jpeg'), 'image/gif' should map to ('gif') and so on. Thank you, -- Ney André de Mello Zunino -- PHP General Mailing List (http://www.php.net/) To unsubscr

Re: [PHP] Display variable with spaces

2003-08-14 Thread Larry E . Ullman
And I try to display it in the table using this : > if I try to echo the variable $email_1, I get the correct value i.e. "thisisa long e-mail address" /// However when it comes to displaying it using the table all I get is the "thisisa" . It simply avoids the spaces. Can anyone tell me why thi

Re: [PHP] Re: on specific time in the month do script!!

2003-08-14 Thread Jason Wong
On Thursday 07 August 2003 17:35, Nabil wrote: > No i think you get me wrong ... > i have already in my web page some articles that i don't want to desplay on > the first and second of every month at a specific hours... Have you looked at the "Date and Time functions"? -- Jason Wong -> Gremlins

Re: [PHP] PHP - MySQL Query...

2003-08-14 Thread murugesan
Try this, $result = mysql_query($query,$dbh); -Murugesan - Original Message - From: "Jay Blanchard" <[EMAIL PROTECTED]> To: "Steven Kallstrom" <[EMAIL PROTECTED]>; "PHP List" <[EMAIL PROTECTED]> Sent: Thursday, August 14, 2003 4:50 PM Subject: RE: [PHP] PHP - MySQL Query... [snip] $

RE: [PHP] Max script size

2003-08-14 Thread Jay Blanchard
[snip] The scrpit in full of 4000 or so mysql SQL statements. [/snip] I am sorry Jeff, we have begun to wonder very seriously what you would be doing with that many SQL statements in a single script. Sounds rather convoluted. Would you enlighten us? Thanks! -- PHP General Mailing List (http://www

Re: [PHP] Screen Resoultion

2003-08-14 Thread daniel
lol jscript dude , dont get the boyz and girlz started , it would be nice if php could do client stuff like asp > > Hello, > > Can anyone pls tell me is it possible to get the screen resoultion > using > php script ?? > > Regards, > Uma > > > -- > PHP General Mailing List (http://www.php.net/) >

[PHP] POST/GET - if there is a dot in the name it's changes to "_"

2003-08-14 Thread Arnau Rebassa
Hi all, I'm having the same problem as the bug report http://bugs.php.net/bug.php?id=7987. They say that's not a bug it's a feature... Anybody knows where I can find which characters are changed and by which character? Thank you very much for your help -- Arnau ___

Re: [PHP] MIME-type to file extension

2003-08-14 Thread Ney André de Mello Zunino
Chris Boget wrote: Client side or server side? If the latter, what webserver are you running? Server side and I am running Apache 1.3.27. I preferably would like to know whether PHP offers such facility, but alternative solutions are welcome as well. More information is definitely needed and it

RE: [PHP] dev style guide

2003-08-14 Thread Chris W. Parker
Jay Blanchard on Tuesday, August 05, 2003 1:23 PM said: > We > encourage Hungarian notation, but do not require it if the > documentation is clear. Ahhh /Hungarian/ notation. Now that makes sense. I *thought* there was something funny about "polish notation" (wh

Re: [PHP] cookies and redirection

2003-08-14 Thread Chris Boget
> --- Joaco <[EMAIL PROTECTED]> wrote: > > I set a cookie in my code and then redirect the user using a > > header function. When I do this, my cookie is not created. If i > > remove the header function, then it is. Is there a way around > > this? > If you are using IIS, read this: > http://marc.th

Re: [PHP] Piping and the CLI parser

2003-08-14 Thread Curt Zirzow
* Thus wrote Nicolas Frisby ([EMAIL PROTECTED]): > > Is my suspicion that the CLI php parser does not set up STDIN to receive > from a pipe correct, or am I missing something here? I think the problem might be DOS's attempt to do a real pipe. > > pps - if someone could try similar piping on a

php-general@lists.php.net

2003-08-14 Thread Mirek Novak
Hi everybody, I have defined function function func ($var,$val,&$struct){ // do something } if I call this function following way func('a','b',NULL); (because sometimes I don't need to set $struct) apache process (php) crashes without sayin

RE: [PHP] [Newbie Guide] For the benefits of new members

2003-08-14 Thread Ford, Mike [LSS]
On 11 August 2003 18:08, Van Andel, Robbert wrote: > Personally, I think one of the worst replies someone on the > list can do when > someone new asks a question is send only a link to the manual. It's > presumption that everyone will understand the way the manual > is worded. > There have been t

Re: [PHP] Question on class syntax

2003-08-14 Thread CPT John W. Holmes
From: "Luis Lebron" <[EMAIL PROTECTED]> > I am currently using a php class that uses the following syntax: > > $value= htmlcleaner::cleanup($value); > > > What exactly is the :: used for? Is there a different syntax for :: ? You're calling the cleanup() method of the "htmlcleaner" class. You coul

Re: [PHP] problem looping through records

2003-08-14 Thread Curt Zirzow
* Thus wrote Huzz ([EMAIL PROTECTED]): > I have a sql statement which brings about 15 records... inside the while > loop i am trying to get data from another table by passing an id, the > problem is i am only getting the first record .. not the whole 15 records.. > > any suggestion?? > > function

Re: [PHP] php conditional loop question

2003-08-14 Thread Analysis & Solutions
On Wed, Aug 13, 2003 at 09:51:39PM -0400, Randy L Johnson Jr wrote: > > I have a function that makes a connection to a live datafeed website and > downloads data via a pfsockopen() statement. After awhile the data stops > feeding but the connection stays open. when the data stops I want to exi

Re: [PHP] Correct Coding

2003-08-14 Thread Robert Cummings
You can -- but correct me if I'm wrong -- won't that possibly cause an exception to fire which could be extremely heavy if a custom exception handler is implemented? Cheers, Rob. On Thu, 2003-08-07 at 13:35, skate wrote: > > > > That can generate an error if $Task was never assigned a value. >

Re: [PHP] Unzipping Files

2003-08-14 Thread Jason Wong
On Wednesday 06 August 2003 11:53, Matt Palermo wrote: > Yes, I do read the replies. Nice to know :) > I'm looking to get MORE information. Such as? > This topic is very new to me, and I am just trying to find out all I can. Such as? > So far people on the mailing list have been very genero

[PHP] Looking for Genies of the Lamp (London only)

2003-08-14 Thread Matthew Taylor
VideoIsland.com is looking for genies of LAMP to who can hit the ground running and work with a fast-moving team based in London over a 1-2 month period and possibly longer if required. You will have played a leading role in all aspects of the development of Object orientated e-commerce service

Re: [PHP] htmlspecialchars() and HTML code

2003-08-14 Thread Justin French
Have you done some testing with NOT converting the HTML within the textarea with htmlspecialchars() -- does it work for all cases where a does not exist? If so, then consider NOT doing it, and instead solving the problem of a within the textarea. possible solutions may include: 1. not allow

[PHP] Large sites running PHP (or Apache, or MySQL, or Linux)

2003-08-14 Thread Evan Nemerson
Hey everyone. I put a list of sites running LAMP components @ http://www.coeusgroup.com/qwik-e-wiki.php/lamp Could help people convince their boss/professor/friend/jealous spouse/whoever... It's a wiki, so everyone have a good time! -Evan -- PHP General Mailing List (http://www.php.net/)

Re: [PHP] Class Design Question...

2003-08-14 Thread David Otton
On Wed, 6 Aug 2003 11:33:54 -0500, you wrote: >Basically in the class I have methods that perform a task, and return true >on success, or false on failure. Easy enough. If it returns false however, I >want to display errors for the user. The best way I can think of doing this >is adding a member v

Re: [PHP] HELP about pull hair on this INSERT

2003-08-14 Thread John W. Holmes
Didier McGillis wrote: # MESSAGE: INSERT INTO group (id, bmenu, tmenu, parent, name, desc, g_desc, sort_order, status, image, mb, calendar) VALUES ('', '1', '1', '0', 'FBC Administrator', 'fdhsjfds jfdash', 'jhfdjs fjdsahfjksda hfjdsha

RE: [PHP] Cannot add header information - headers already sent

2003-08-14 Thread frederik feys
Hi Marek, hi all, What do you mean by "says it all"? On that line the page title is outputted. I suspect something is wrong with the handler file: http://www.aurelis.org/store/checkout_form_handler.txt When i call http://www.aurelis.org/store/checkout_form.txt for step 1 (i.e. client personal re

[PHP] Re: Help with Mod mathematical function

2003-08-14 Thread Nadim Attari
> Data = (index Mod 16) http://www.php.net/manual/en/language.operators.arithmetic.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Extracting Compressed Files

2003-08-14 Thread Ivo Pletikosic
Hey Matt, Below is a cut down version of how I'm doing it. I lifted most of it right out of the manual examples. It assumes a single entry in each compressed file. function uncompress($filepath, $new_filename, $compression) { if($compression == COMPRESSION_GZIP) { $zp = gzopen( $f

Re: [PHP] Max script size

2003-08-14 Thread Jason Wong
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, I would've got a 404. That particular script was generating > problems with Apache

Re: [PHP] Reading mail with PHP?

2003-08-14 Thread [EMAIL PROTECTED]
Hi, You are certainly on the right track wtih imap_*() The same set of functions can be used for checking both POP3 and IMAP 4 accounts. With POP3 however you will either have to leave mail on server or store them in db or maildir. Else you lose the mail after you read it! PHP happens to be on

Re: [PHP] mail

2003-08-14 Thread Curt Zirzow
* Thus wrote Jay Blanchard ([EMAIL PROTECTED]): > > GIS for "send attachments with PHP mail()" GIS? Google Search? Curt -- "I used to think I was indecisive, but now I'm not so sure." -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] size of submitted textarea field in bytes

2003-08-14 Thread Sn!per
i have a textarea where ppl will enter their bio. after they submit the form, i need to compute the size of their bio in bytes _without_ creating any file. is this at all possible ? please advise. sample script: rgds. --- Sign Up for free

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

2003-08-14 Thread Chris Shiflett
--- Vchat20 <[EMAIL PROTECTED]> wrote: > i need to make it so the other site its pulling info from see's > it as Internet Explorer and not what it is shown now. any > possible way of doing so? please respond. You just need to send a User-Agent header that fools the receiving site. How are you requ

Re: [PHP] Some SOAP samples

2003-08-14 Thread Marek Kilimajer
google -> PHP/SOAP Samples Pascal Miquet wrote: Hello, I'm looking for PHP/SOAP Samples. Where should I found some ? Thanks for your help. Regards Pascal Miquet -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Using Constants

2003-08-14 Thread Shawn McKenzie
I'm considering using constants for some predefined paths in my script, like HTML_DIR, INC_DIR. These values won't change and they will be global to all functions. Are there any drawbacks to using constants over reg vars for this sort of thing??? TIA, Shawn -- PHP General Mailing List (http:

RE: [PHP] Downloding files once

2003-08-14 Thread Jay Blanchard
[snip] 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. [/snip] Since it is open to members only couldn't you requir

[PHP] Re: Help Please in using fopen in PHP

2003-08-14 Thread Anthony Ritter
[EMAIL PROTECTED] wrote in message: > Hi Folks, > > I am currently learning php and Mysql a scripting language and DB i just feel > in love with. I am currently having problem in opening file to put data > collected from clients when the purchase from an online shop. The scripts is as > follows. >

Re: [PHP] Suppress errors when running as CGI?

2003-08-14 Thread Jeff Rizzo
On Thu, Aug 07, 2003 at 01:22:21PM -0500, Chris Boget wrote: > > I'm using PHP 4.2.3 under thttpd as a CGI. Things work pretty well, > > but I can't seem to get it to suppress displaying errors, even though > > display_errors is set to 'Off' in php.ini. > > Any suggestions? > > @Echo off? > :) >

Re: [PHP] Cannot add header information - headers already sent

2003-08-14 Thread Marek Kilimajer
output started at /usr/local/www/vhosts/aurelis.org/htdocs/header_aurelis.php:95 says it all. Look into the file at line 95. frederik feys wrote: Hi all, I’m stuck with this one: I have an checkout procedure: when people come to the overview page(step 2), they get: Warning: Cannot add header

Re: [PHP] find string

2003-08-14 Thread daniel
what exactly is action ? i usually use a action setup like follows ?action=update switch ($_GET['action']) { case 'update': //do stuff here break; case 'insert': //do stuff here break; } very clean > Here's the problem I have: > I have $action which can be anyone of a1

Re: [PHP] Stop neurotic posting

2003-08-14 Thread andu
--On Wednesday, August 06, 2003 06:26:34 + Curt Zirzow <[EMAIL PROTECTED]> wrote: * Thus wrote andu ([EMAIL PROTECTED]): This is a very busy list, over 100 message in a quiet day and most people are helpful and decent, don't mind reading and learning. Unfortunately there are some who most

[PHP] Precision value in PHP??

2003-08-14 Thread Scott Fletcher
When I do this calculation, 77 * 2.00 = 154.00 but with PHP, it return only "154". So, how do I set the precision value. I looked up on PHP.net and it once mentioned about BC Math but I'm not looking forward to recompiling PHP and Apache with the prefix option to enable the BC Math. There have t

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

2003-08-14 Thread Chris Shiflett
> I'm looking for is the kind of format used on this page: > > http://www.php.net/manual/en/ref.dbx.php You know the php.net Web site is open source, right? If you like that format, use it and adjust it to suit your needs: http://www.php.net/source.php?url=/manual/en/ref.dbx.php Hope that helps.

Re: [PHP] need help with table lock - could this be performed with mysql commands or do I to write my own PHP function

2003-08-14 Thread anders thoresson
What happens when the user doesn't finish editing or the browser simply crashes on him? Well. Didn't think of that. So how can I avoid that two editors loads the same record for editing at the same time, while still making all records available for regular visitors to read? -- anders thoresson

Re: [PHP] mysql_error() problem?

2003-08-14 Thread CPT John W. Holmes
From: "Tyler Longren" <[EMAIL PROTECTED]> > I'm running an UPDATE query on my table. After executing the query, I check > mysql_error() to see if there's any errors: > if (mysql_error() == "") { > // success > } > else { > // failure > } > > mysql_error() is always empty even if the query

[PHP] com obj from php

2003-08-14 Thread PHPDiscuss - php Newsgroups and mailing lists
Hi all; Does anyone know if ti is possible or not to create a com object from php?? cheers :o) Steve. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

php-general@lists.php.net

2003-08-14 Thread Curt Zirzow
* Thus wrote Mirek Novak ([EMAIL PROTECTED]): > Hi everybody, > > I have defined function > > function func ($var,$val,&$struct){ > // do something > } > > if I call this function following way > > func('a','b',NULL); > > (because sometimes I don't n

Re: [PHP] More command line php

2003-08-14 Thread Pascal Miquet
You should have a look to the widget where you display the field. Sometimes an option is display stars. HTH Pascal Miquet Le mer 06/08/2003 à 18:34, John Nichel a écrit : > Is it possible to 'star out' the standard input (STDIN)? I'm having > users enter a password in, and would like it to displ

Re: [PHP] Simple HTTP request, with "Range" header

2003-08-14 Thread Curt Zirzow
* Thus wrote Ken ([EMAIL PROTECTED]): > What I want to do is write something simple in PHP that makes an HTTP request, takes > the data received, and passes it through. Ok.. sounds good so far :) > Specifically, I am hoping to retrieve just a part of a file from the web server. If > I wanted

[PHP] WYSIWYG editor for PHP

2003-08-14 Thread Denis 'Alpheus' Cahuk
hey every1! I need a WYSIWYG editor for PHP. That is all. Can any1 advice me one( or more :-) )? Thanks in advance! Denis 'Alpheus' Cahuk -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] need help with table lock - could this be performed with mysql commands or do I to write my own PHP function

2003-08-14 Thread Curt Zirzow
* Thus wrote anders thoresson ([EMAIL PROTECTED]): > set_lock($table_name, $row_id), check_lock($table_name, $row_id) and > release_lock($table_name, $row_id). Whenever an editor opens some content > for editing, check_lock() will be called to se if table_lock contains a row > with the same ta

Re: [PHP] Class Design Question...

2003-08-14 Thread Greg Beaver
Dan Joseph wrote: 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,

RE: [PHP] dev style guide

2003-08-14 Thread jsWalter
> -Original Message- > From: Chris W. Parker [mailto:[EMAIL PROTECTED] > Sent: Tuesday, August 05, 2003 4:33 PM > To: Jay Blanchard; Mike Migurski; jsWalter > Cc: [EMAIL PROTECTED] > Subject: RE: [PHP] dev style guide > Ahhh /Hungarian/ notation. Now that makes sense. I *thought* ther

Re: [PHP] Adding days to a date

2003-08-14 Thread CPT John W. Holmes
From: "Donpro" <[EMAIL PROTECTED]> > I have a piece of code like so: > > $today =- getdate(); > > I am looking for a function that will add a variable number of days and > return a valid date, i.e., the array elements for "mday", "mon" and "year" > are reset as needed. Is this possible? $tomorrow

Re: [PHP] ignore_user_abort()

2003-08-14 Thread Curt Zirzow
* Thus wrote Zygimantas Berziunas ([EMAIL PROTECTED]): > Are there any disadvantages to turn on this feature? It all depends on the application you have. In some cases its an advantage and others a disadvantage. Usually when dealing with credit processing I make sure it is enabled so if the use

Re: [PHP] Re: global scope issue

2003-08-14 Thread Curt Zirzow
* Thus wrote Ford, Mike [LSS] ([EMAIL PROTECTED]): > > -Original Message- > > From: Ivo Fokkema [mailto:[EMAIL PROTECTED] > > Sent: 13 August 2003 15:45 > > > > "Shawn McKenzie" <[EMAIL PROTECTED]> wrote in message > > news:[EMAIL PROTECTED] > > > > As far as I know, no defi

[PHP] Ezmlm Hash

2003-08-14 Thread Eyles, Richard
Hi, I'm looking for a function to convert an email address to the file name hash in ezmlm. I've found the ezmlm_hash function but this is for mysql based mailing lists and not file based. I've tried looking at the source for ezmlm and converting the code there to php but I've never used c or the

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

2003-08-14 Thread Tim Thorburn
I'm not so sure it's an entirely horrible idea for a university to focus on one area over another. I went to art school - so I'm sure I'll be burned at the stake for having comments :P But a great deal of my friends who took comp sci or comp eng in uni are greatly unemployed - why you ask? T

Re: [PHP] Suppress errors when running as CGI?

2003-08-14 Thread Chris Boget
> I'm using PHP 4.2.3 under thttpd as a CGI. Things work pretty well, > but I can't seem to get it to suppress displaying errors, even though > display_errors is set to 'Off' in php.ini. > Any suggestions? @Echo off? :) Have you tried putting the '@' symbol in front of the lines that are display

Re: [PHP] Hitler and Recent Threads

2003-08-14 Thread Robert Cummings
Godwin's law in no way states that that the argument has been lost. Only that the thread has outlived it's usefulness. Unfortunately your invocation of Godwin's law forces it to fall under Quirk's exception which generally makes you the fool. Cheers, Rob. On Wed, 2003-08-06 at 23:11, Mark wrote:

Re: [PHP] Stop neurotic posting

2003-08-14 Thread Robert Cummings
Hitler began his conquest by taking a country here, a country there while other countries sat around saying to each other oh he won't keep doing it. Let's DO NOTHING! Obviously that plan was flawed -- and that is what I was referring to -- not that by being quiet suddenly the world will be plunged

Re: [PHP] snippet

2003-08-14 Thread Marek Kilimajer
Everything has been explained, I will just mention this is more efficient, as submit() function runs only once: $sFont =($tmp=submit("font")) ? SITE_ROOT . PROG_PATH . $tmp : ""; Harry Wiens wrote: can someone explain this for me: ... $sFont =submit("font") ? SITE_ROOT . PROG_PATH . submit("fon

RE: [PHP] AOL Email client

2003-08-14 Thread Roberts, Mark (Tulsa)
Ok, it seems to be AOL v8. I am going to set down tonight and try all these options that I have seen here and see if they fix the problem. Thanks for all your help. Mark Roberts Sr. Systems Analyst -Original Message- From: Jennifer Goodie [mailto:[EMAIL PROTECTED] Sent: Thursday, A

Re: [PHP] Stop neurotic posting

2003-08-14 Thread CPT John W. Holmes
From: "Gabriel Guzman" <[EMAIL PROTECTED]> > On Wed, 2003-08-06 at 11:44, Chris W. Parker wrote: > > > A bad answer would be: > > > > "RTFM http://php.net/preg_match"; > > > > A good answer would be: > > > > "That can be done with a regular expression. The function you're looking > > for is called

RE: [PHP] Frequent Mode Switching

2003-08-14 Thread Chris W. Parker
Derrick Fogle on Tuesday, August 05, 2003 2:14 PM said: > I've found that I prefer programming this way, for the most part, > putting most of the heavy PHP programming at the top, and then using > static HTML interspersed mostly with quick statements > for what user

[PHP] Filling a text field

2003-08-14 Thread bob pilly
Hi all Is there anyway in php to fill a HTMl text input field with a php variable? Or do i have to use javascript? Thanks for any help in advance! Want to chat instantly with your online friends? Get the FREE Yahoo! Messen

RE: [PHP] Building an XML Parser Class

2003-08-14 Thread Donald Tyler
Tried that already, all it does it change the error message to: Warning: xml_parse(): Unable to call handler () in c:\program files\apache group\php\My_includes\Class.xmlTranslator.php on line 90 I guess this is because its looking within the xml parser object for a function called $this->startEl

Re: [PHP] getting images?? Help!!

2003-08-14 Thread John W. Holmes
Micah Montoy wrote: I have created a little image manager. Mainly for personal usage but I have a few friends that would like it as well. Anyway, the problem that I've run into is that I can only select one file at a time using the form attribute that I want to upload. Does anyone know of a way

RE: [PHP] Hitler and Recent Threads

2003-08-14 Thread Chris W. Parker
Phillip Blancher on Wednesday, August 06, 2003 2:20 PM said: > OK Everyone... Isn't this a PHP list... Yes. c. p.s. TRIM YOUR POSTS -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Why Redirection works on 1 machine but not on another

2003-08-14 Thread David Otton
On Sun, 10 Aug 2003 17:32:21 +0800, you wrote: > I have this peculiar problem, my header > >header( "Refresh:2;url=$g_prog_path/$l_refresh_url" ); > >is set up correctly to be the FULL pathname. It works on some PC but now on >some others. I'm using IE on win98/2000. The offending one is IE6

Re: [PHP] Validate The Last Day of Month with server's clock????

2003-08-14 Thread Nicholas Robinson
The 'usual' trick is to set the date to the first day of the month after the one you want and then subtract one day. HTH Nick On Wednesday 13 Aug 2003 8:00 pm, Scott Fletcher wrote: > Hi! > > Here's a trick script. We know that some months have the last day > which is 30 while other is 31.

[PHP] Two questions about PHP 5

2003-08-14 Thread Dan Phiffer
When is it supposed to be released? The example for the __call() function leaves something to be desired at the bottom of http://us2.php.net/zend-engine-2.php. The code is shown, but without downloading PHP 5 and running it I have no way of knowing what would be output. Maybe I'll do that... -Dan

RE: [PHP] PHP - MySQL Query...

2003-08-14 Thread Jay Blanchard
[snip] This is not true, the resource link identifier is optional! If unspecified, the last opened link is used. My suggestion is to check the results of mysql_error() for more information on the failed query. [/snip] You are right, of course...my sleepy brain just glanced at the code and fired of

[PHP] discussion forum from j. meloni's book

2003-08-14 Thread Anthony Ritter
The following code is From Julie Meloni's textbook - PHP, mySQL and Apache (SAMS) on page 305-307 / Listing 14.5: It's the last script of a discussion forum which is comprised of four php files and one html file. The script can be seen at: http://www.thickbook.com Chapter 14 off the zipfile. An

[PHP] perl to php converter

2003-08-14 Thread Louie Miranda
is there such a thing? perl to php converter? i will try to convert movabletype to php, if ever. -- Thank you, Louie Miranda ([EMAIL PROTECTED]) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] array method attributes (OO)

2003-08-14 Thread Ben Edwards
I wish to pass a session variable into an object and have it available as an attribute. I have what I thought I needed below as a code segment but it douse no work. Has anybody got any idea how I should achieve this. Ben .. class Contacts{ var $db; array $SESSION;

RE: [PHP] Old version of PHP

2003-08-14 Thread Ford, Mike [LSS]
On 08 August 2003 19:00, Jason Wong wrote: > Whereas changelog, history, release notes will summarise what bugs > were fixed between versions. None of these resources are called > errata although some linux distros may present these as erratum > (plural?). Well, since you ask, erratum is the sin

Re: [PHP] Frequent Mode Switching

2003-08-14 Thread Jim Lucas
This method has been my personal choice for the past 3-4 yrs in coding, I have not found any problems with it thus far. But I am gradually switching all my code over to a seperate template style design as where I have all my values in a variable format and then parse a *.html file and str_replace

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

2003-08-14 Thread Jay Blanchard
[snip] Then, I issued a "make" command and unfortunately I got a new error: "/usr/include/ucd-snmp/asn1.h:7:2 Please update your headers or configuer using --enable-ucd-snmp-compatibility" Then all hell break lose, got tons of errors (ver like this one) and exit the make with error 1. [/snip]

[PHP] Fw: mail() function

2003-08-14 Thread photogames.net
hello, 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 Apache config, the function just stopped working another

[PHP] where are my errors?

2003-08-14 Thread David T-G
Hi, all -- 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 machine. The basic stub for our code looks like $ENGINE_VER="d

[PHP] Re: Parse error not understood

2003-08-14 Thread Ivo Fokkema
> //If "Delete User" is selected-- > if ( $_REQUEST['useroption'] == 'delete') > { > //First, check that the user already exists > $query = "select count(*) from pbpc_client where username = '" . > $_REQUEST['usernamebox'] . "';"; > $result = mysql_query($query); > if(!$result) > { > echo '

[PHP] Configuring PHP to use aspell

2003-08-14 Thread Jeff Lewis
I have the following set up... RH Linux version 7.3 PHP 4.3.2 Aspell installed on the server I have NEVER configured PHP and am looking for some assistance in configuring PHP to use Aspell so I can take advantage of this great feature that (as I can see from my searches) is not as well document

Re: [PHP] OO function overloading?

2003-08-14 Thread Curt Zirzow
* Thus wrote Jean-Christian IMbeault ([EMAIL PROTECTED]): > Is it possible to overload a function is a class. I would like to have > the same function defined differently depending on the number of > arguments passed in. For example: overloading isn't possible in php4. Curt -- "I used to think

Re: [PHP] FDF support in RedHat

2003-08-14 Thread Cesar Cordovez
Tried with --with-fdftk... same problem. I deleted all the versions except for fdftk.h that I moved to /usr/local/include (found this bug: http://bugs.php.net/bug.php?id=8840) Then issued the configuration command and got something like "checking for FDFOpen in -lfdftk.. no" Then die with erro

[PHP] MSN Explorer & PHP Sessions failing

2003-08-14 Thread Lindsey Simon
Unfortunately, I've been unable to duplicate this problem on my own machine with MSN 8 (win2k), but I have users of my software who use the MSN explorer browser complaining at me. It appears that sessions are not being properly initialized, because my PHP software is failling at a point where it sh

[PHP] Some SOAP samples

2003-08-14 Thread Pascal Miquet
Hello, I'm looking for PHP/SOAP Samples. Where should I found some ? Thanks for your help. Regards Pascal Miquet -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

<    1   2   3   4   5   6   7   8   9   10   >