Re: [PHP] returning first paragraph from a string

2002-07-04 Thread Lowell Allen
> From: Analysis & Solutions <[EMAIL PROTECTED]> > > How's this? > > $summary = preg_replace('/^(.*)(\r?\n){2,}.*/', '\\1', $summary); > > --Dan > That's great -- works, and I generally see how it works. Thanks. Also, can anyone recommend a good online reference, book, or tutorial for regular

Re: [PHP] FTP routine

2002-07-04 Thread Michael Sims
On Thu, 4 Jul 2002 20:43:25 +0100, you wrote: >Not really a PHP question - more an FTP protocol question - try reading the >FTP RFC at http://www.ietf.org/rfc/rfc959.txt > >However, in a nutshell, to get all of the files in a directory - > >1. get a listing of that directory (read the RFC for ins

[PHP] Stack Overflow with: zend optimizer

2002-07-04 Thread colin mcdonald
Hi there, zend optimizer 1.3.1 / IIS 5 / PHP 4.2.1 / Windows 2000 I've been getting "Stack Overflow" errors frequently. Our software has hundreds of db queries and hundreds of includes per page execution. Just to give you some context, so I can't tell you exactly what I'm doing that's causing

Re: [PHP] Button can't see form!

2002-07-04 Thread Danny Shepherd
Actually, it's Netscape'sCrap, if you get specific :) Java's a totally different kettle of crap. Danny. - Original Message - From: "Analysis & Solutions" <[EMAIL PROTECTED]> To: "PHP List" <[EMAIL PROTECTED]> Sent: Thursday, July 04, 2002 4:05 PM Subject: Re: [PHP] Button can't see form!

Re: [PHP] Annoying syntax problem with RTRIM

2002-07-04 Thread René Fournier
Actually I did see the "4.1.0", but mis-read it thinking "4.0.1" (I did read the manual, just not carefully enough. (Thank you, Mr. Wong, for your helpful reply.)) Anyways, I came up with a workaround until my ISP upgrades PHP: $str = rtrim($str); if (substr($str,-1) == ",") { $str = subs

Re: [PHP] Exim sendmail faults

2002-07-04 Thread Chris Hewitt
Liam Gibbs wrote: >Chris Hewitt wrote: > >>One quick test is to set up an email client (Netscape whatever) to talk >>to sympatico's smtp server directly (leaving out your exim server). If >>you can send mail from this then permissions to send are OK, and we look >>around the Exim configuration. >

Re: [PHP] FTP routine

2002-07-04 Thread Danny Shepherd
Not really a PHP question - more an FTP protocol question - try reading the FTP RFC at http://www.ietf.org/rfc/rfc959.txt However, in a nutshell, to get all of the files in a directory - 1. get a listing of that directory (read the RFC for instructions) and store the filenames in an array. 2. go

Re: [PHP] Exim sendmail faults

2002-07-04 Thread Liam Gibbs
Chris Hewitt wrote: > >>Can you use exim to send mail from the console? Is sympatcio allowing this? > >> > >Sympatico allows it but I can't do it (I used to have another > >box that did this but it got hacked and pretty much destroyed...) > > > One quick test is to set up an email client (Netscape

[PHP] FTP routine

2002-07-04 Thread Jose Arce
Hi, i'm making a script to donwload files from a ftp server to the server hosting the script, but i don't know how to download all the files from a directory. I'm using the file system functions to conect to the ftp server, because the ftp functions in php does not always work, and, actually t

Re: [PHP] Exim sendmail faults

2002-07-04 Thread Chris Hewitt
Liam Gibbs wrote: >Miles Thompson wrote: > >>Can you use exim to send mail from the console? Is sympatcio allowing this? >> >Sympatico allows it but I can't do it (I used to have another >box that did this but it got hacked and pretty much destroyed...) > One quick test is to set up an email clie

[PHP] Re: Paradox Tables with PHP (Still the Same old Question)...

2002-07-04 Thread Kondwani Spike Mkandawire
Thanks I figured it out it was to do with configurations... I was searching the wrong directory (do I ever feel dumb?!)... Spike... "Kondwani Spike Mkandawire" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Hallo Folks > > I have come across this problem many

[PHP] PHP and XML Resources

2002-07-04 Thread CM
Can anyone recommend a good book or web page on php and xml? The "Professional PHP4 XML" book by wrox looks good but I haven't read any reviews on it. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: returning more than 1 value from function

2002-07-04 Thread val petruchek
If you don't like arrays you can use objects: function multireturn() { $result->first = "Ticket #1"; $result->second = "Ticket #2"; return $result; } -- Sincerely, val petruchek "Andy" <[EMAIL PROTECTED]> ÓÏÏÂÝÉÌ/ÓÏÏÂÝÉÌÁ × ÎÏ×ÏÓÔÑÈ ÓÌÅÄÕÀÝÅÅ: [EMAIL PROTECTED]">news:[EMAIL

Re: [PHP] Exim sendmail faults

2002-07-04 Thread Liam Gibbs
Miles Thompson wrote: > > Liam, > > Is "anydomain.ca" in exim's configuration file? Where did that come from? I put "anydomain.ca" because if I try to mail any domain it fails. I was using "sympatico.ca" when I was doing my testing. I don't think I have any domains expilicitly in the exim conf

Re: [PHP] Exim sendmail faults

2002-07-04 Thread Miles Thompson
Liam, Is "anydomain.ca" in exim's configuration file? Where did that come from? And, you probably know much more about this than I do, but did you try those little validation exercises in exim's setup guide? I assume exim let's you send mail to yourself on the same box. This ain't much help -

Re: [PHP] Exim sendmail faults

2002-07-04 Thread Liam Gibbs
Miles Thompson wrote: > Unfortunately I discarded the earlier messages, so I don't know what your > error is. When I try to send an email I get: unrouteable mail domain "anydomain.ca" I can resend you the full error messages if you want. > Do you have a fixed IP or do you have something like th

Re: [PHP] Exim sendmail faults

2002-07-04 Thread Miles Thompson
Liam, Unfortunately I discarded the earlier messages, so I don't know what your error is. Do you have a fixed IP or do you have something like the Mpowered service where you're behind sympatico's NAT server? Can you use exim to send mail from the console? Is sympatcio allowing this? You may h

Re: [PHP] returning more than 1 value from function

2002-07-04 Thread Chris Wesley
Sorry ... busy morning ... I misplaced the & for the reference. They should be on the arguments on the function definiton, not the function call. Sorry if I caused any confusion. ~Chris /"\ \ / Microsoft Security Speci

Re: [PHP] returning more than 1 value from function

2002-07-04 Thread Chris Wesley
On Thu, 4 Jul 2002, andy wrote: > i am wondering if it is possible to return more than 1 value from a > function? You can pass your arguments by reference. The result will be that $var1 == "foo" and $var2 == "bar". You can mix it up too ... if you want the function to return a value (say, tr

Re: [PHP] Exim sendmail faults

2002-07-04 Thread Liam Gibbs
Chris Hewitt wrote: > I was going to ask you whether a normal user on your computer could send > mail (OK, root counts). As the answer is no, it is not a problem with > your php setup. > > sympatico.ca has several MX entries, the first of which is > smtp26.bellglobal.com and I can ping that from

Re: [PHP] returning more than 1 value from function

2002-07-04 Thread Analysis & Solutions
On Thu, Jul 04, 2002 at 07:16:39PM +0200, andy wrote: > > i am wondering if it is possible to return more than 1 value from a > function? > > test(){ > return $value1, $value2 > } You can return an array. Or, you can global the variables and then set them to the values you want. --Dan -

Re: [PHP] Exim sendmail faults

2002-07-04 Thread Chris Hewitt
Liam, I was going to ask you whether a normal user on your computer could send mail (OK, root counts). As the answer is no, it is not a problem with your php setup. sympatico.ca has several MX entries, the first of which is smtp26.bellglobal.com and I can ping that from here. I also get a re

Re: [PHP] Annoying syntax problem with RTRIM

2002-07-04 Thread Analysis & Solutions
On Thu, Jul 04, 2002 at 11:00:55AM -0600, René Fournier wrote: > > I did. It didn't help. (That's why I posted this message.) Suggestions to RTFM generally mean that there's something plainly visible in the manual that states what your problem is. Did you go back to the manual after Jason's e

[PHP] returning more than 1 value from function

2002-07-04 Thread andy
hi there, i am wondering if it is possible to return more than 1 value from a function? something like test(){ return $value1, $value2 } Thanx for any help, Andy -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] returning first paragraph from a string

2002-07-04 Thread Analysis & Solutions
On Thu, Jul 04, 2002 at 12:41:10PM -0400, Lowell Allen wrote: > $summary = preg_replace("/^(.*)\n/", "\1", $summary); How's this? $summary = preg_replace('/^(.*)(\r?\n){2,}.*/', '\\1', $summary); --Dan -- PHP classes that make web design easier SQL Solution | Layo

Re: [PHP] Annoying syntax problem with RTRIM

2002-07-04 Thread René Fournier
I did. It didn't help. (That's why I posted this message.) On Thursday, July 4, 2002, at 10:47 AM, Jason Wong wrote: > On Friday 05 July 2002 00:41, René Fournier wrote: >> echo rtrim($feat,", "); >> >> On my local Apache-OSX web server (PHP 4.1.2), this command works fine. >> (The reason I use

Re: [PHP] Annoying syntax problem with RTRIM

2002-07-04 Thread Jason Wong
On Friday 05 July 2002 00:41, René Fournier wrote: > echo rtrim($feat,", "); > > On my local Apache-OSX web server (PHP 4.1.2), this command works fine. > (The reason I use it is that sometimes $feat contains a comma and a > space at the end of the string, which I want to remove (if it's there) >

[PHP] Annoying syntax problem with RTRIM

2002-07-04 Thread René Fournier
echo rtrim($feat,", "); On my local Apache-OSX web server (PHP 4.1.2), this command works fine. (The reason I use it is that sometimes $feat contains a comma and a space at the end of the string, which I want to remove (if it's there) before echoing.) When this same script is run on my ISP (PH

Re: [PHP] AdRotator for PHP?

2002-07-04 Thread Liam Gibbs
> I'm wondering if anyone has found or ended up > writing something similar to > the MSWC AdRotator object in ASP, but for PHP? Or > is there already a module > on apache.org that I missed? (Figre I should pull my weight on this list here.) Hmm. Not sure exactly what MSWC AdRotator is, but here

[PHP] returning first paragraph from a string

2002-07-04 Thread Lowell Allen
I'm having difficulty returning the first paragraph of a string called $summary. (Usually this string will only be one paragraph, but it might contain more than one paragraph. Current data has one occurrence of a two-paragraph $summary.) Here's how I process when I want multiple paragraph display

Re: [PHP] Exim sendmail faults

2002-07-04 Thread Liam Gibbs
Jason Wong wrote: > On Thursday 04 July 2002 23:47, Liam Gibbs wrote: > > > Are you able to do an nslookup of these domains from the server? > > > > Those, of course, were just example email addresses (I'd replaced > > them before sending out this email so it would be more clear). > > If I use a r

RE: [PHP] resizing images comming out of blobs

2002-07-04 Thread Barajas, Arturo
> From: andy [mailto:[EMAIL PROTECTED]] > Hi there, Hey, Andy. > I am wondering how to resize an image which is stored in a > mysql blob field. > With files this workes just fine, but how to do this with the > image comming from blob? Has anybody done this already? Incidentally, I've done th

[PHP] resizing images comming out of blobs

2002-07-04 Thread andy
Hi there, I am wondering how to resize an image which is stored in a mysql blob field. With files this workes just fine, but how to do this with the image comming from blob? Has anybody done this already? Thank you for any help on that, andy -- PHP General Mailing List (http://www.php.net/

Re: [PHP] Exim sendmail faults

2002-07-04 Thread Jason Wong
On Thursday 04 July 2002 23:47, Liam Gibbs wrote: > > Are you able to do an nslookup of these domains from the server? > > Those, of course, were just example email addresses (I'd replaced > them before sending out this email so it would be more clear). > If I use a real email address I get the sa

Re: [PHP] Button can't see form!

2002-07-04 Thread Analysis & Solutions
Folks: On Thu, Jul 04, 2002 at 11:05:38AM -0400, Analysis & Solutions wrote: > On Thu, Jul 04, 2002 at 01:44:00PM +0100, Mark Colvin wrote: > > > > > value='New' onClick="this.form.action='newproduct.php?mode=new'; > > this.form.submit()"> > > And then folks with Java'sCrap turned off won't u

Re: [PHP] Exim sendmail faults

2002-07-04 Thread Liam Gibbs
> Are you able to do an nslookup of these domains from the server? Those, of course, were just example email addresses (I'd replaced them before sending out this email so it would be more clear). If I use a real email address I get the same error "unrouteable mail domain" I am able to nslookup t

Re: [PHP] Button can't see form!

2002-07-04 Thread Marek Kilimajer
I dont think forms can be nested. In fact I'm pretty sure. Mark Colvin wrote: >I use the following line in some of my php scripts to navigate between >pages: > > value='New' onClick="this.form.action='newproduct.php?mode=new'; >this.form.submit()"> > >The problem I have is with a page I build dy

Re: [PHP] Moving a file with 'rename'?

2002-07-04 Thread Marek Kilimajer
None that I know of. You need to use copy & unlink Tim Stoop wrote: >Marek Kilimajer wrote: > > > >>rename can "move" the file only on the same partition, it is realy just >>_rename_, not full _move_ >> >> > >So there is no full-features move in PHP? > > > -- PHP General Mailing List

Re: [PHP] eregi problems

2002-07-04 Thread Marek Kilimajer
If the regexp matches, it is a valid email, so you need ! in front of it. dan radom wrote: >I've got a form that's posted to a php page where I'm attempting to validate a field >contains a valid email address. The eregi below seems to be totally ignored... > > if (eregi("^[a-z0-9\._-]+@[a

[PHP] Problem uploading an image

2002-07-04 Thread Barajas, Arturo
Greetings. I have two pages where I upload images to a database. The first one is a "capture", where I insert a record to the database, and the second is to edit the data. The problem: When I go to insert, the following code works flawlessly: But, if I do in another page (the same darn snip

[PHP] Paradox Tables with PHP (Still the Same old Question)...

2002-07-04 Thread Kondwani Spike Mkandawire
Hallo Folks I have come across this problem many times... But still haven't seen anyone give a reasonably coherent solution... I am trying to get my script to read Paradox Tables... Its a no go so far... I do believe that this can be achieved via. odbc... I have tried the configurations but h

Re: [PHP] Button can't see form!

2002-07-04 Thread Analysis & Solutions
On Thu, Jul 04, 2002 at 01:44:00PM +0100, Mark Colvin wrote: > I use the following line in some of my php scripts to navigate between > pages: > > value='New' onClick="this.form.action='newproduct.php?mode=new'; > this.form.submit()"> And then folks with Java'sCrap turned off won't use your si

Re: [PHP] MySql_Error();

2002-07-04 Thread Analysis & Solutions
On Thu, Jul 04, 2002 at 08:48:26AM -0300, Skyhawk wrote: > Please, How do I make to get all errors of MySql ? > > I'm making a function for translate all errors. Example: Uh, why? PHP's mysql_error() does the job for you. http://www.php.net/manual/en/function.mysql-error.php If you're hell ben

[PHP] Microsoft Access & PHP - Solved

2002-07-04 Thread Daniel J Owen-Mcgee
Hi All, My query (below) has been solved. Thanks to all who responded so quickly! Putting single quote marks around 'Colour and Imaging Institute' did the trick. DAniel Hi, I'm gleaning microsoft SQL from queries within a MS Access database, for insertion into my PHP pages. This has been w

Re: [PHP] Sort with PHP or SQL?

2002-07-04 Thread Analysis & Solutions
Patrick: Grouping and sorting is something databases specialize in. --Dan -- PHP classes that make web design easier SQL Solution | Layout Solution | Form Solution sqlsolution.info | layoutsolution.info | formsolution.info T H E A N A L Y S I S A N D S

RE: [PHP] extension problem

2002-07-04 Thread joakim . andersson
You probably shoul start here: http://www.php.net/manual/en/zend.php /Joakim > -Original Message- > From: adelpfephp [mailto:[EMAIL PROTECTED]] > Sent: Thursday, July 04, 2002 4:34 PM > To: php-france; [EMAIL PROTECTED] > Subject: [PHP] extension problem > > > > -- PHP General Mail

Re: [PHP] Re: Does Location: headers constantly

2002-07-04 Thread Analysis & Solutions
On Thu, Jul 04, 2002 at 11:01:50AM +0100, Ford, Mike [LSS] wrote: > > I can't let this go unchallenged -- what happens if you're sending this to a > browser which *doesn't* honour the "Location: " header, but *is* capable of > displaying any attached page content? The poor user wil

Re: [PHP] eregi problems

2002-07-04 Thread dan radom
My main cnocern at this point is that the eregi is being totally ignored. I just want to make sure the email address is in a valid format, not that it is a valid email address. I'll look at validEmailFormat as well, but I don't understand why it's not even being examined. dan * Justin Fren

[PHP] Broken Cookies

2002-07-04 Thread Robert Wray
Hiyas :) I'm having a problem with the code copied below not creating the cookies that it should do; setcookie("loggedInUID",$_POST['uname'],ms_cookie_time((time()+120)),'/', $cookie_base); setcookie($_POST['site_id'],$_POST['ucaps'],ms_cookie_time((time()+120)),'/' , $cookie_base); Basically

Re: [PHP] eregi problems

2002-07-04 Thread Justin French
Dan, I'll give you a little piece of advise that was given to me a little while back on this list: Go to http://www.killersoft.com/ and grab a copy of the validateEmailFormat program. PHP4 translation of Jeffrey E.F. Friedl's definitive Email Regex Program from O'Reilly's Mastering Regular Exp

Re: [PHP] Moving a file with 'rename'?

2002-07-04 Thread Tim Stoop
Latex Master wrote: > Hello Tim, > Tim why don't you try shell_exec ? As a last resort, I might, but I'd rather do it in PHP... Code-portability, y'know :) -- Kind regards, Tim -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Moving a file with 'rename'?

2002-07-04 Thread Tim Stoop
Marek Kilimajer wrote: > rename can "move" the file only on the same partition, it is realy just > _rename_, not full _move_ So there is no full-features move in PHP? -- Kind regards, Tim -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Using fsockopen

2002-07-04 Thread Remy Dufour
Take a look at this class. I think thats what you want ! > Help > > I'm a newbie to indepth PHP. > > I want to issue an fsockopen command to pass a POST data set to a remote server script. > > I understand the pricipals behind fsockopen, but I cannot figure out the string I need to pass to POST t

[PHP] mail atashments

2002-07-04 Thread adi
HI, How to send atashments with mail() function? I have a form to mail page, and i want to atash and transmit files tx

[PHP] extension problem

2002-07-04 Thread adelpfephp
Hi all I am working with php on linux. I want to create dynamic library and use it in php. For example: I have to built this #include char* aa(){ return "true"; } I succeed to compile this into a dynamic library x.so. When I try to call this from php I get Cannot load x.so. may be n

[PHP] eregi problems

2002-07-04 Thread dan radom
I've got a form that's posted to a php page where I'm attempting to validate a field contains a valid email address. The eregi below seems to be totally ignored... if (eregi("^[a-z0-9\._-]+@[a-z0-9\._-]+$", $emp_email)) { echo "please enter a valid email address";

Re: [PHP] User generated Web pages?

2002-07-04 Thread Justin French
It's the right approach, but since you're dealing with large amounts of user-contributed (untrusted, dangerous, suspicious, whatever) data both to create the forms AND to gather information from form submissions, I'd be very wary about security. Infact, I wouldn't recommend it for a first project

[PHP] Re: [PHP-DB] PHP dBASE connectivity

2002-07-04 Thread labhras sammin
thanks for your help I have tested that everything works, valid handles, returned method values, etc. Line 23 is the dbase_add_record line. Do you know of anywhere there may be an example thanks Labhras "Miles Thompson" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTE

Re: [PHP] mySQL and phpMyAdmin

2002-07-04 Thread Marek Kilimajer
You need to install php-mysql* too. Jadiel Flores wrote: >Hi, I installed php and mysql today and I'm trying to use phpMyAdmin but >I'm receiving the error message: >cannot load MySQL extension, >please check PHP Configuration. > >I checked the php.ini and couldn't find anything related, my conf

[PHP] User generated Web pages?

2002-07-04 Thread Anthony Rodriguez
I'm trying to develop a software package for end users with no knowledge of PHP. The package would allow these users to generate Web pages displaying a custom questionnaire to be used by consumers to answer questions online. I thought of writing a PHP script that asks the end users the type of

[PHP] How to trigger particular java script function?

2002-07-04 Thread Balaji Ankem
Hi friend, I want to trigger one java script function ( time delay) every time. How can I achieve this? Here my questuion is: I want to play all song files from my database. Here what I do is initially I display one button "PLAY" and then call java script delay function and it has to come back

RE: [PHP] Other than substr

2002-07-04 Thread César Aracena
Thanks for all the responses. C. > -Original Message- > From: César Aracena [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, July 03, 2002 1:36 PM > To: PHP General List > Subject: [PHP] Other than substr > > Hi all. > > I need to show up some data from a DB which consist of phone numbers

Re: [PHP] Microsoft Access & PHP

2002-07-04 Thread Latex Master
Hello Daniel, Try to use a query line like below: WHERE (((ExamPapers.School)=\"Colour and Imaging Institute\") AND ((ExamPapers.[Add to Webpage])=True)); And let us know it it will work Thursday, July 4, 2002, 5:21:50 PM, you wrote: DJOM> Hi, DJOM> I'm gleaning microsoft SQL from queries wit

Re: [PHP] Moving a file with 'rename'?

2002-07-04 Thread Marek Kilimajer
rename can "move" the file only on the same partition, it is realy just _rename_, not full _move_ Marek Tim Stoop wrote: >Hi people, > >I want to move a file from one location to another. I expect I can only do >this with 'rename', because there's no 'move'-command (at least nog in the >

Re: [PHP] Moving a file with 'rename'?

2002-07-04 Thread Latex Master
Hello Tim, Tim why don't you try shell_exec ? Thursday, July 4, 2002, 5:03:34 PM, you wrote: TS> Hi people, TS> I want to move a file from one location to another. I expect I can only do TS> this with 'rename', because there's no 'move'-command (at least nog in the TS> manual). Following situ

[PHP] Microsoft Access & PHP

2002-07-04 Thread Daniel J Owen-Mcgee
Hi, I'm gleaning microsoft SQL from queries within a MS Access database, for insertion into my PHP pages. This has been working fine but the example below just refuses to work, SELECT ExamPapers.EPaperID, ExamPapers.EPapersText, ExamPapers.[Title of Paper], ExamPapers.Course, ExamPapers.Schoo

[PHP] Moving a file with 'rename'?

2002-07-04 Thread Tim Stoop
Hi people, I want to move a file from one location to another. I expect I can only do this with 'rename', because there's no 'move'-command (at least nog in the manual). Following situation: original file: /var/www/html/webfotos/tmp/thumb_phpibmGBF.jpg with /var/www/html/webfotos being a symli

[PHP] Button can't see form!

2002-07-04 Thread Mark Colvin
I use the following line in some of my php scripts to navigate between pages: The problem I have is with a page I build dynamically. The whole page is encased in tags. In between these tags there are sections echoed as a result of a databasse query. Each of these sections is a form. After all

Re: [PHP] Re: $this in an XML data handler ... in a class

2002-07-04 Thread Peter Clarke
I hadn't noticed that. My php.ini was set to on, changing it to off gave the warning. Having changed: xml_set_object($this->parser,&$this); to: xml_set_object($this->parser,$this); Stops the warning and the parser works fine. This is the class I'm using and it works fine: class parse_words_xml

[PHP] PHP 4.2.1 - Apache 2.0.36 - Win98SE

2002-07-04 Thread Erik Hegreberg
Php 4.2.1 - Apache 2.0.36 -Win98SE This configuration works great, but when I try to upgrade to Apache 2.0.39 nothing works.Even when I try php 4.3.0 it wont work. My question is: Is there anybody out there who have tried to configure php 4.2.1 or 4.3.0 with Apache 2.039 and Win98SE? Please t

Re: [PHP] AdRotator for PHP?

2002-07-04 Thread Latex Master
Hello Patrick, Try to look at hotscripts.com there are lots of scripts there. Personally i prefer to write ones by myself. Thursday, July 4, 2002, 3:31:20 PM, you wrote: PT> Hey, PT> I'm wondering if anyone has found or ended up writing something similar to PT> the MSWC AdRotator obj

[PHP] Function imap_headers question.

2002-07-04 Thread Latex Master
Hello php-general, I've got a little question about imap_headers. I working on a project which must connect to local nntp server. I have no problems doing it, but as far as I know from documentation Imap_headers() fetches msg headers in to the arrey. So let's say I've got 5000 post in t

RE: [PHP] AdRotator for PHP?

2002-07-04 Thread joakim . andersson
I'm pretty sure you'll find what you are looking for here: http://www.hotscripts.com/PHP/Scripts_and_Programs/Ad_Management/ /Joakim > -Original Message- > From: Patrick Teague [mailto:[EMAIL PROTECTED]] > Sent: Thursday, July 04, 2002 1:31 PM > To: PHP-General > Subject: [PHP] AdRotator

[PHP] Re: [PHP-DB] PHP dBASE connectivity

2002-07-04 Thread Miles Thompson
1. Please don't cross post. 2. Which line is #23? 3. Have you tested to ensure that you have a valid handle? ($db_num) 4. Have you tried adding error code to see the result of dbase_create(), dbase_open() 5. I seem to remember reading in the docs, a long time ago (2 yr) that the dbase functions

Re: [PHP] Content-Length

2002-07-04 Thread Daniel Tryba
On Thu, Jul 04, 2002 at 01:24:04PM +0200, Grant wrote: > My question is how do I go about calculating the correct Content-Length for > each and every php page on my site. > > I have done some digging and presume I need to do "Output buffering" and > calculate the strlen of the response the php re

[PHP] MySql_Error();

2002-07-04 Thread Skyhawk
Please, How do I make to get all errors of MySql ? I'm making a function for translate all errors. Example: function TranslateErrors($err) { global $result; global $text; Switch ($err) { case 1045 : $text = "User or Password invalid"; Break; case 2005 :

[PHP] Re: Nothing will execute after calling imagejpeg.

2002-07-04 Thread val petruchek
> This thread has been up before, but there was never sent a reply to it, > and I'm having the same problem… Just idea. If you doesn't have GD installed and php error reporting turned off this situation is possible. In other words php simply dies because of undeclared function and doesn't repor

[PHP] AdRotator for PHP?

2002-07-04 Thread Patrick Teague
Hey, I'm wondering if anyone has found or ended up writing something similar to the MSWC AdRotator object in ASP, but for PHP? Or is there already a module on apache.org that I missed? Thanks for any help :) Patrick -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: h

[PHP] PHP dBASE connectivity

2002-07-04 Thread labhras sammin
Hi I need to use PHP (ver 4 windows) to add a record to a dBase iv database. I can create, open, read and close a database but when I try to add a record I always get the following error: Warning: unexpected error in C:\php\phpstuff\addTest1.php on line 23 Here is the code [shortened] that I u

[PHP] Sort with PHP or SQL?

2002-07-04 Thread Patrick Teague
Hey, I'm working on a way to pull menus/pages from a database. Currently I have this working on 2 levels - Topic headers & actual page titles - & it prints it out fairly nice & doesn't take long to load. What I need to do is add a level between the 2, a sub-header. I'm running both the apache

[PHP] Content-Length

2002-07-04 Thread Grant
Hi I am currently having problems with a custom written web-authentication-proxy. The proxy works fine with standard html pages but not with php pages. After doing a bit of digging I have found that the proxy does a HEAD request and checks the Content-Length to see if the page if valid. I have

Re: [PHP] HTML & Java script doubt..

2002-07-04 Thread John Legg
Hi Balaji Have re-written the code now works.. two problems: 1. checkall() appears to be a reserved function - have renamed function to checkitall 2. You didn't need to put [] after OptionList in checkbox name function checkitall() { var n=0,i=document.form1.OptionList.length; while(n

[PHP] IIS unexpected error

2002-07-04 Thread news.per.connect.net.au
I am setting up PHP on WinXP Pro with IIS 5.1. I tried to start the IIS server and I get an "Unexpected error 0x8ffe2740 occured." error. Anyone know how to resolve this problem? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] HTML & Java script doubt..

2002-07-04 Thread Balaji Ankem
Hi friend, sorry for putting this question to php-list. Here I am getting the error as "Object doesn't support this property or method" in line number 22. function checkall() { var n=0,i=document.form1.OptionList.length; while(n

Re: [PHP] How to pass unknown number of variables to a function?

2002-07-04 Thread Terence Kearns
This is a nice easy one :) It couldn't be simpler. Just put empty square brackets (as used in arrays) in front of your checkbox name. The example below assumes you have PHP 4.1 or greater (which uses $_POST to contain form posted data) notice how name="ck[]" Untitled ".$varval."")

Re: [PHP] mysql/php how to retrieve the right column with 2 columnsof the same name

2002-07-04 Thread Alberto Serra
Wilbert Enserink wrote: > Later on in my script I'm calling the value of this column with php. > $query="select * from tblA LEFT JOIN "; it's been said over and over :) NEVER EVER write a select * query... use syntax Select a.column1, a.column2, b.column1 from tbl1 as a,

RE: [PHP] adding a variable to a variable name

2002-07-04 Thread Ford, Mike [LSS]
> -Original Message- > From: Tom Beidler [mailto:[EMAIL PROTECTED]] > Sent: 03 July 2002 21:41 > > For the current issue I'm trying to unset some variables with > common names > and I would like to step through them with a loop. Here's > where I'm at to > give you an idea but the code d

RE: [PHP] Re: Does Location: headers constantly

2002-07-04 Thread Ford, Mike [LSS]
> -Original Message- > From: Richard Lynch [mailto:[EMAIL PROTECTED]] > Sent: 03 July 2002 21:17 [...] > > It's a good idea to get in the habit of doing: > > header("Location: xxx"); > exit; > > There's no point in sending any more data after the Location: > header anyway, I can't

Re: [PHP] mysql/php how to retrieve the right column with 2 columns of the same name

2002-07-04 Thread W. Enserink
thx Jason, now I understand the use of aliases in select queries. Good ID:-) Wilbert - Original Message - From: "Jason Wong" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, July 04, 2002 11:38 AM Subject: Re: [PHP] mysql/php how to retrieve the right column with 2 columns

RE: [PHP] Need Help with $_SESSION.

2002-07-04 Thread Ford, Mike [LSS]
> -Original Message- > From: Scott Fletcher [mailto:[EMAIL PROTECTED]] > Sent: 03 July 2002 20:58 > > Still working on the script. Here what I found out so far. > Why does the > example #1 work and example #2 doesn't? > > Example #1 > > Page 1 > > $_SESSION[0] = "Zero"; > > $_SESSION

RE: [PHP] How to pass unknown number of variables to a function?

2002-07-04 Thread Rudolf Visagie
Hi Uwe, If you define the checkbox list as an array (OptionList[] in the example below), only the checked values will be returned as an array $OptionList when you post the form. You can then use this as an array or pass it as an array to a function in the script: "; $i++;

Re: [PHP] mysql/php how to retrieve the right column with 2 columns of the same name

2002-07-04 Thread Jason Wong
On Thursday 04 July 2002 17:23, Wilbert Enserink wrote: > Hi all, > > > I have to tables A and B. > They boyh have a column with the same name. > > Now, I wrote this MySQL statement performing a left join. > This results in a data set with rows consisting of 2 columns of the same > name, in which

[PHP] loop problem

2002-07-04 Thread Emmanuel FAIVRE
Hi All, I'm currently working with a friends that want to use irc protocol at his work cause there is only http proxy. so it is very easy, i found phpIRC and everything works fine...He is very happy i've just seen that some process are always connected. this is really weird. so i started to

Re: [PHP] Re: Program executing in PHP. Please help (SOLVED)

2002-07-04 Thread Latex Master
Hello Richard, PHP, Well I did a typo here. Sorry about it. At that moment i was really nuts, and needed a rest. Now I solved that problem, but only after UPDATING PHP from 4.0.6 to 4.2.1 And shell_exec worked. Exec didn't :( I'm going to investigate this question in the future. Thank's for

[PHP] mysql/php how to retrieve the right column with 2 columns of the same name

2002-07-04 Thread Wilbert Enserink
Hi all, I have to tables A and B. They boyh have a column with the same name. Now, I wrote this MySQL statement performing a left join. This results in a data set with rows consisting of 2 columns of the same name, in which the date is stored when the record was last altered. This column is ca

[PHP] Picture Cache

2002-07-04 Thread Steve Vernon
Hello, At the moment I have a PHP script which accesses a database, to get the data to return a picture. So the follwing url is actually a picture of type image/jpeg: getdata.php?id=6 So I can use: Thats great and it works fine, but I feel that it does

[PHP] extension problem

2002-07-04 Thread adelpfephp
hi I have an extension problem. i have wrote this exemple #include... char* xx(){ return "true"; } it's a simple example. I have compiled it into .SO dynamic library. when I try to load it into PHP i get this message cannot include .(may be not php extension). CAN YOU HELP ME PLEASE.

[PHP] Nothing will execute after calling imagejpeg.

2002-07-04 Thread Victor Spång Arthursson
This thread has been up before, but there was never sent a reply to it, and I'm having the same problem… Anyone who knows what to do? Sincerely Victor > -Original Message- > From: Kris Johnson [mailto:[EMAIL PROTECTED]] > Sent: Saturday, June 01, 2002 11:11 PM > To: Leotta, Natalie (N

Re: [PHP] How to pass unknown number of variables to a function?

2002-07-04 Thread Alberto Serra
Uwe Birkenhain wrote: > Hi everybody on this rainy morning! Rainy!? It's damn hot in Kiev :) > My problem: > I give the user a form with a list of options with checkboxes. > The list is long and not predictable - the values change always. > I want to put the checked values (or all, that doesn't

Re: [PHP] How to pass unknown number of variables to a function?

2002-07-04 Thread Jason Wong
On Thursday 04 July 2002 16:52, Uwe Birkenhain wrote: > Hi everybody on this rainy morning! > > My problem: > I give the user a form with a list of options with checkboxes. > The list is long and not predictable - the values change always. > I want to put the checked values (or all, that doesn't m

  1   2   >