[PHP] Re: Subtracting dates in php

2003-07-01 Thread Shivanischal A
try http://www.phpclasses.org -shiva Mike Mannakee [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Anyone know of an easy way to add or subtract dates in php the way you can in mysql? Easier, that is, than coding the logic by hand? This seems like a total pain. Mike --

Re: [PHP] Installation for OS X

2003-07-01 Thread Joel Rees
Does anyone know of a good installation kit like FoxServ, phpTriad, etc for Mac OS X? I want a quick solution for adding MySQL, GD, phpLib support for my mac. Well, if you're at least up to 10.1, it's already in there:

[PHP] HTTP Authentication does not work

2003-07-01 Thread Peter Holmberg
I have tried using HTTP Authentication as described in the documentation. But it does not matter how many times i type in login/password, the popup keeps coming back. The server, mandrake 9.1, uses safe mode, so PHP_AUTH_USER and PHP_AUTH_PW does not work. $_SERVER['REMOTE_USER'] does not work

[PHP] multi line regular expression?

2003-07-01 Thread Tim
hi, i have a string that contains the following: $mystring=EOS (((TITLE))) *color* == this is where the content goes it can spreed many lines ... == EOS; i'm using this line of code to try and get the content between == and == preg_match_all(|==(.+)==|,$mystring,$contents,PREG_PATTERN_ORDER);

Re: [PHP] PHP Programmer Needed!

2003-07-01 Thread John Coggeshall
I may be interested if you haven't filled the spot yet. John On Fri, 2003-06-27 at 02:55, Erica Ziegler-Roberts wrote: I am swamped with work and need a php expert who is familiar with IC-Radius to do the following project for me. If it can be done by Monday, I will be willing to pay more.

RE: [PHP] list() with unknown number of values

2003-07-01 Thread Ford, Mike [LSS]
-Original Message- From: John Wulff [mailto:[EMAIL PROTECTED] Sent: 30 June 2003 21:40 I want to write a function that manipulates each piece of data in an array (except for the first). Right now I'm using list as follows from this array: $cdata = array(

RE: [PHP] php-general as REPLY TO

2003-07-01 Thread Ford, Mike [LSS]
-Original Message- From: Derick Rethans [mailto:[EMAIL PROTECTED] Sent: 30 June 2003 22:47 On Mon, 30 Jun 2003, Doug Essinger-Hileman wrote: Having said this, I suspect that you and I will continue to disagree, which is perfectly okay. If this list changes the default I will

[PHP] ereg_replace

2003-07-01 Thread alexander sundli
I'm trying to replace singel line comment with empty string. tried ereg_replace(//.+\n,'',$string); but this replaces all text after //. anyone now what to do? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] php - printer button

2003-07-01 Thread nasar
Dear all, I have research about library automation engine in my library. developing on PHP + MySQL We need to develop printer utility at some module to get print out transaction. Can I do this utility using SUBMIT BUTTON under HTML PHP? how to make the php printer script? help... please

[PHP] Re: Query for MySQL

2003-07-01 Thread David Robley
In article [EMAIL PROTECTED], [EMAIL PROTECTED] says... Question. I am looking to try and pull the last modified date out and display it. So lets say I have 1000 records. I want to only display the date of the last modified time, I dont care about the id or the name or anything. How do

[PHP] Form 2 PDF 2 Form

2003-07-01 Thread Petre Agenbag
Hi List OK, firstly, sorry if this has been on the list before... What I'd like to do is something like this: I currently have an app that takes user input via a normal html form, and then pops the content into mysql. The problem is that lots of user complain that the submit times out due to

Betr: [PHP] php - printer button

2003-07-01 Thread Dore van Hoorn
This is not exactly what you've asked for, but perhaps you're able to use it anyway. It is the PHP script I use to create a print-friendly page: Everything between !-- Start Print Version -- and !-- End Print Version -- will be part of the new page.. ?php $stripImages = no; $startingpoint =

[PHP] Re: Form 2 PDF 2 Form

2003-07-01 Thread Shivanischal A
hi, seems u have complicated task on hand mate. cant u simply consider span the user input over multiple pages? i mean using 2 or more form on different pages instead of a single form on one single page. if this cant be done, we'll think of other measures. but this is by far the most simple

[PHP] GetImageSize-craziness

2003-07-01 Thread Bernhard Döbler
Hi, I'd like to insert the URL of a picture, it's dimensions an an accompanying text into a database. I enter the URL and the text in a form and post it to a script, the dimensions shall be retrieved by GetImageSize in the second script. That worked well while all URLs were from another Server.

Re: [PHP] php-general as REPLY TO

2003-07-01 Thread Jason Wong
On Tuesday 01 July 2003 18:08, Ford, Mike [LSS] wrote: You'll have to learn to adjust then I guess. And do those 2k really matter? Come on... Just get a good mailer that defaults to Reply-All (like, mutt, pine, pcpine) Some of us don't have the choice -- we work in a corporate or

Re: [PHP] Subtracting dates in php

2003-07-01 Thread David Otton
On Tue, 1 Jul 2003 01:21:54 -0400, you wrote: Anyone know of an easy way to add or subtract dates in php the way you can in mysql? Easier, that is, than coding the logic by hand? This seems like a total pain. Convert to Unix timestamps, do regular maths, unconvert. -- PHP General Mailing

Re: [PHP] Installation for OS X

2003-07-01 Thread Didier McGillis
Went there and couldnt find the download, did he move it. From: Larry E. Ullman [EMAIL PROTECTED] To: Rodney Davis [EMAIL PROTECTED] CC: PHP-General [EMAIL PROTECTED] Subject: Re: [PHP] Installation for OS X Date: Mon, 30 Jun 2003 20:26:38 -0400 Does anyone know of a good installation kit like

Re: [PHP] Re: Form 2 PDF 2 Form

2003-07-01 Thread Petre Agenbag
Hi Shiva Appreciate your input. Wrt the spanning of the form, I think, in my situation, it would actually make things worse... You see, my suspicion is that most of the users who are experiencing problems, have very bad connections, many complain that they lose connectivity while they are busy

RE: [PHP] Re: Form 2 PDF 2 Form

2003-07-01 Thread Sævar Öfjörð
You could use a temp table in the database which gets cleaned up both when the last page is completed or if there is data in it when the user starts from scratch. Of course you would have to use sessions to identify each user to each line of temp data. I'm not sure if this will work, there are

Re: [PHP] Yahoo Stuff.

2003-07-01 Thread Mario Oberrauch
On Tue, 2003-07-01 at 03:21, Rasmus Lerdorf wrote: Someone had subscribed [EMAIL PROTECTED] to php-general. I got rid of it. -Rasmus wow, that's really nasty btw, got this mail too. -- Mario Oberrauch --- CREATO - creative online

Re: [PHP] Installation for OS X

2003-07-01 Thread Jim McNeely
check out http://www.serverlogistics.com/software.php great binaries for lots of open source OSX with real install packages and such from Aaron Faby. HTH Jim McNeely Envision Data Custom, intuitive, practical software for your business. [EMAIL PROTECTED] http://www.envisiondata.com On

Re: [PHP] Re: Form 2 PDF 2 Form

2003-07-01 Thread Shivanischal A
Hi Petre, I'm beginning to have second thoughts about my earlier idea too; coz that is not solving the actual problem (u're have a slow n/w). Afterall how many KB of form data is she/he actually sending? I'll think of other possible solutions. Regards, -shiva Petre Agenbag [EMAIL PROTECTED]

Re: [PHP] Re: Form 2 PDF 2 Form

2003-07-01 Thread Cesar Cordovez
I had the exact same problem with a form some time ago. Definetely the best way to do it is spanning the form. I don't think the temp table will do. I did it with a session variable wich saves the info from the form and what part of the form you are. So the user can flip between pages in

Re: [PHP] Re: Form 2 PDF 2 Form

2003-07-01 Thread Kristin Schesonka
Hi :) I'm actually working on an Multipart-Form and i'm saving all data during the Fill-In process in a Session - then, at the end, i save the whole sessiondata in my table. That will solve the connection-problems i hope . . . If I am wrong, please correct me :) Greetings from Germany Kristin

Re: [PHP] PHP Web Based File Management and Security

2003-07-01 Thread joel boonstra
On Mon, Jun 30, 2003 at 03:29:39PM -0500, Dean E. Weimer wrote: It looks like there is no simple solution to this, and your point about uploading a large quantity of files is well taken. I think as a solution I will enable a tsl/ssl ftp server and in the short term use a published PHP

RE: [PHP] web site security: how to hide login info for mysql-connection

2003-07-01 Thread Mark
That's where this thread started... --- Wendell Brown [EMAIL PROTECTED] wrote: On Mon, 30 Jun 2003 13:50:21 -0600, Peter Janett wrote: My concern is that a shell emulating PHP or Perl script run as Apache can read or copy ANY PHP script used with PHP as an Apache module. It seems to me

Re: [PHP] multi line regular expression?

2003-07-01 Thread Adam i Agnieszka Gasiorowski FNORD
Tim wrote: i have a string that contains the following: $mystring=EOS (((TITLE))) *color* == this is where the content goes it can spreed many lines ... == EOS; i'm using this line of code to try and get the content between == and ==

[PHP] Regular Expression

2003-07-01 Thread Dan Joseph
Hi Everyone, I am currently using this piece of code to validate wether or not an address has only letters, numbers, #, or - in it: if (!ereg(^[A-Za-z0-9 #-]{1,20}, $_POST[address1])) { $error = 1; $msg .= Address must only contain letters,

Re: [PHP] Re: Form 2 PDF 2 Form

2003-07-01 Thread Petre Agenbag
Well, I'm still a bit concerned about what would happen if the connection got broken while they are busy... The session will time-out (by most defaults, after 1440s), so if they cannot re-connect, and somehow get the same SESSID, then all would be lost that they have done so far..., and that is

RE: [PHP] Regular Expression

2003-07-01 Thread Jay Blanchard
[snip] I am currently using this piece of code to validate wether or not an address has only letters, numbers, #, or - in it: if (!ereg(^[A-Za-z0-9 #-]{1,20}, $_POST[address1])) { $error = 1; $msg .= Address must only contain letters, numbers, #,

RE: [PHP] Regular Expression

2003-07-01 Thread Dan Joseph
Hi, It's not so much that your regex is wrong, but there are other functions that you may want to use, such as is_numeric(), is_integer(), is_string() (there is a good example of checking for an alphabetic string on the php site) That would have been my first choice also, however,

[PHP] Basic Auth question

2003-07-01 Thread Dave Carrera
I have a issue with basic auth which I hope someone here can throw some light on. 1) I have already got my SESSION auth working well 2) Once someone logs in I need to send some basic auth info to a dir on another server to let my logged in user to view it. This is where I am stuck :-( I think

RE: [PHP] php-general as REPLY TO

2003-07-01 Thread Ford, Mike [LSS]
-Original Message- From: Jason Wong [mailto:[EMAIL PROTECTED] Sent: 01 July 2003 12:55 On Tuesday 01 July 2003 18:08, Ford, Mike [LSS] wrote: Watch your quoting attributions -- I didn't say this first bit, Derick did: You'll have to learn to adjust then I guess. And do those

Re: [PHP] Re: Form 2 PDF 2 Form

2003-07-01 Thread Kristin Schesonka
Hmm, i don't know if you want it that way, but i got the idea of making the stuff personalized . . . I mean the user logges on and gets an Userid - then you always save your data with the Userid, so you can look which entries in your DB belong to this user and the user can start again at a

Re: [PHP] Regular Expression

2003-07-01 Thread Jason Wong
On Tuesday 01 July 2003 21:38, Dan Joseph wrote: Hi Everyone, I am currently using this piece of code to validate wether or not an address has only letters, numbers, #, or - in it: if (!ereg(^[A-Za-z0-9 #-]{1,20}, $_POST[address1])) { $error = 1;

[PHP] fwrite() question

2003-07-01 Thread Adam Williams
Hello, I have a block of code: ?php if ($_POST['news']) { $fp = fopen( news.txt, w); $success = fwrite( $fp, $POST_['news'] ); fclose($fp); if (!success) { echo punable to write to news.txt/p; exit; } Header(Location:

Re: [PHP] fwrite() question

2003-07-01 Thread Adrian
you should use $_POST['news'] instead of $POST_['news']. ans you also should'nt put around variables ;) Hello, I have a block of code: ?php if ($_POST['news']) { $fp = fopen( news.txt, w); $success = fwrite( $fp, $POST_['news'] );

RE: [PHP] Regular Expression

2003-07-01 Thread Dan Joseph
Hi, You're only checking for valid characters at the *start* of the string, you need to check to the *end* of the string as well: ^[A-Za-z0-9 #-]{1,20}$ ought to do it. It sure did do it. Thank you! I didn't realize that the $ did that. Thanks for the info. -Dan Joseph --

RE: [PHP] Regular Expression

2003-07-01 Thread Jay Blanchard
[snip] That would have been my first choice also, however, with the # and - being legal, things like ctype_alnum and others don't work out. [/snip] Here is an example of something that I did before; $alphachar = abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ; $ld1alpha =

Re: [PHP] fwrite() question

2003-07-01 Thread Adam Williams
Hi, when I do that, nothing is written to news.txt, and I'm not sure why. This is the entire script: ?php if ($_POST['news']) { $fp = fopen( news.txt, w); $success = fwrite( $fp, $POST_['news'] ); fclose($fp); if (!success) { echo punable to

Re: [PHP] ereg_replace

2003-07-01 Thread Dean E. Weimer
I'm trying to replace singel line comment with empty string. tried ereg_replace(//.+\n,'',$string); but this replaces all text after //. anyone now what to do? \n is the newline character, making the string apear to be multiple lines see the thread [PHP] multi line regular expression? and

Re: [PHP] Re: Form 2 PDF 2 Form

2003-07-01 Thread Petre Agenbag
Hi Kristin Yes, of course that is a possibility, and it would surely address the problem of resuming at a later stage. I'm just rather worried at managing these broken submissions. They might start one, then for some reason don't finish, and forget about it altogether... But, I think my biggest

[PHP] HTMLENTITES(); the pound sign

2003-07-01 Thread bob pilly
I am using PHP Version 4.3.2-RC1 Can someone please clarify the htmlentities() function for me? I have a variable called $notes2 that is pulled from a database that has a pound sign in it. When i echo that do the screen i get the following output: echo $notes; output= £5,000 Instead of £5,000

[PHP] PHP on one box, Apache on another?

2003-07-01 Thread Jay Blanchard
I don't know the details of this request (like why., but as soon as I know I'll tell you) but can Apache live on one box with all PHP requests being handled on another box? Jay -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] File upload: type and size question

2003-07-01 Thread Dani Matielo
Hello, could someone help me? I am trying to limit the type and size of the files to be uploaded, but I can't find how to do this. I have seen examples on how to limit to image types, with the MIME function. The problem is, the type of file I want is audio, extensions MP3 or WAV. The max file

RE: [PHP] Regular Expression

2003-07-01 Thread Dan Joseph
Hi, That might actually be a good solution for another item I'm working with. Thanks for the tip. -Dan Joseph -Original Message- From: Jay Blanchard [mailto:[EMAIL PROTECTED] Sent: Tuesday, July 01, 2003 10:10 AM To: Dan Joseph; [EMAIL PROTECTED] Subject: RE: [PHP] Regular

Re: [PHP] File upload: type and size question

2003-07-01 Thread Mário Gamito
Hi, I have this class for sending mail, which worked until PHP 4.2.3 Since 4.3.0 it stops functioning. No error message. The mail is simply not send. I've searched everywhere and found no explanation for this behaviour. Any help would be appreciated. Warm regards, Mário Gamito class

Re: [PHP] Basic Auth question

2003-07-01 Thread ed
That is one way to try it but I haven't been able to get it to work. Questions about PHP variable authentication through .htaccess protected directories has been brought up many times since I've been on this list but has never been completly answered. Apparently it cannot be done. The closest

[PHP] Error in doc 'Changes in PHP 5/Zend Engine 2.0?'

2003-07-01 Thread Alan D'Angelo - Media Beat Information Technology
Hello, the example of the section Exceptions of document http://www.php.net/zend-engine-2.php in Windows does not work: Fatal error: Call to undefined method exception::__construct() in c:\appserv\www\php5\exception.php on line 4 this works: ?php class MyExceptionFoo extends

Re: [PHP] PHP on one box, Apache on another?

2003-07-01 Thread Miles Thompson
Your intention is a little foggy. PHP is server side, it works through the web server, thus Apache parses the scripts, so no, it can't. If you mean scripts on one box, database on another, no problem. Miles Thompson At 09:20 AM 7/1/2003 -0500, Jay Blanchard wrote: I don't know the details of

RE: [PHP] PHP on one box, Apache on another?

2003-07-01 Thread Dan Joseph
Hi, Your intention is a little foggy. PHP is server side, it works through the web server, thus Apache parses the scripts, so no, it can't. If you mean scripts on one box, database on another, no problem. Miles Thompson At 09:20 AM 7/1/2003 -0500, Jay Blanchard wrote: I don't know the

RE: [PHP] PHP on one box, Apache on another?

2003-07-01 Thread Jay Blanchard
[snip] Your intention is a little foggy. PHP is server side, it works through the web server, thus Apache parses the scripts, so no, it can't. If you mean scripts on one box, database on another, no problem. Miles Thompson At 09:20 AM 7/1/2003 -0500, Jay Blanchard wrote: I don't know

Re: [PHP] Re: Form 2 PDF 2 Form

2003-07-01 Thread Greg Beaver
Hi Petre, Multipart forms are the solution you need. Here are the reasons why: 1) You can set the length of time that the session cookie will live (I've changed it to a week for the Remember Me feature of my website, works nicely) 2) if users are disconnecting, and not all information is

Re: [PHP] php-general as REPLY TO

2003-07-01 Thread Jim Lucas
You could signup with a company like yahoo.com or hotmail or bend.com and you could then have a web based email service. You ALWAYS have choices... :) Jim Lucas - Original Message - From: Ford, Mike [LSS] [EMAIL PROTECTED] To: 'Derick Rethans' [EMAIL PROTECTED] Cc: [EMAIL PROTECTED]

Re: Betr: [PHP] php - printer button

2003-07-01 Thread nasar
On Tue, 1 Jul 2003, Dore van Hoorn wrote: This is not exactly what you've asked for, but perhaps you're able to use it anyway. It is the PHP script I use to create a print-friendly page: Everything between !-- Start Print Version -- and !-- End Print Version thanks friend.. exactly I wish

RE: [PHP] PHP on one box, Apache on another?

2003-07-01 Thread Dan Joseph
Hi, I told him that support for PHP was compiled into Apache and that it would be impractical. I asked if he wanted the DB on another box. I asked if he wated the scripts on another box. I am quite sure that there is no particular logic behind the request as I have not received any answers.

Re: Betr: [PHP] php - printer button

2003-07-01 Thread nasar
On Tue, 1 Jul 2003, Dore van Hoorn wrote: This is not exactly what you've asked for, but perhaps you're able to use it anyway. It is the PHP script I use to create a print-friendly page: Everything between !-- Start Print Version -- and !-- End Print Version thanks friend.. exactly I wish

[PHP] file pointer

2003-07-01 Thread Kyle Babich
How would I set the file pointer to the very end of the last line of the file? ex. ahkjhff asdjfhlkajf sdfhaksljdh kasjdhkjlfh asdjfhklajs askjdhjfdjf//here Thanks, -- Kyle -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] fwrite() question

2003-07-01 Thread Jason Wong
On Tuesday 01 July 2003 22:12, Adam Williams wrote: when I do that, nothing is written to news.txt, and I'm not sure why. Well find out why! This is the entire script: ?php if ($_POST['news']) { $fp = fopen( news.txt, w); Add some error-checking to see whether fopen() was

[PHP] Re: HTMLENTITES(); the pound sign

2003-07-01 Thread Mike Mannakee
What does the html look like? Mike Bob pilly [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] I am using PHP Version 4.3.2-RC1 Can someone please clarify the htmlentities() function for me? I have a variable called $notes2 that is pulled from a database that has a pound sign in

[PHP] Curl

2003-07-01 Thread Daryl Meese
Sorry for the repost but it looks like weekends are not the best time to ask questions. Does anyone know of a way to see the exact request that Curl is sending (other than just printing the variable that is posted)? Daryl -- PHP General Mailing List (http://www.php.net/) To unsubscribe,

Re: [PHP] file pointer

2003-07-01 Thread Miles Thompson
Start by checking the file functions in the manual - there are some interesting options for foen(). Miles At 10:59 AM 7/1/2003 -0500, Kyle Babich wrote: How would I set the file pointer to the very end of the last line of the file? ex. ahkjhff asdjfhlkajf sdfhaksljdh kasjdhkjlfh asdjfhklajs

Re: [PHP] file pointer

2003-07-01 Thread Adam Voigt
$data = file('c:\blah.txt'); $lineyouwant = $data[(count($data)-1)]; Not necessarily most efficient, but it works. At 10:59 AM 7/1/2003 -0500, Kyle Babich wrote: How would I set the file pointer to the very end of the last line of the file? ex. ahkjhff asdjfhlkajf sdfhaksljdh

Re: [PHP] file pointer

2003-07-01 Thread Adam Voigt
$data = file('c:\blah.txt'); $lineyouwant = $data[(count($data)-1)]; Not necessarily most efficient, but it works. At 10:59 AM 7/1/2003 -0500, Kyle Babich wrote: How would I set the file pointer to the very end of the last line of the file? ex. ahkjhff asdjfhlkajf sdfhaksljdh

Re: [PHP] php-general as REPLY TO

2003-07-01 Thread Mark
But that would not solve the problem being discussed. None of the webmail services that I've tried have a reply-to-list feature. --- Jim Lucas [EMAIL PROTECTED] wrote: You could signup with a company like yahoo.com or hotmail or bend.com and you could then have a web based email service.

[PHP] Reg Ex to search for both Integer and Comma-spaced Integer

2003-07-01 Thread Kevin Stone
I'm a little confused by something. I need to build a reg-ex to scrape for both plain integers and comma spaced integers in the same place in the same string at the same time. For example.. $string = Mark's average score was 544.; preg_match(/average score was ([0-9]+)/, $string, $matches);

Re: [PHP] php-general as REPLY TO

2003-07-01 Thread John Manko
oops - maybe i should have kept my big mouth shut! ha. anyway, it doesn't look like it's going to change. php_thread --end php-general as REPLY TO Mark wrote: But that would not solve the problem being discussed. None of the webmail services that I've tried have a reply-to-list feature. --- Jim

[PHP] Problems compiling PHP 5.0.0b1

2003-07-01 Thread Mauricio Cuenca
Hello, I've tried several times compiling PHP 5.0.0b1 on a Linux RedHat 8.0 using this configure command: ./configure --prefix=/usr/local/php5 --with-config-file-path=/usr/local/php5 And I get the following error: configure: error: libxml2 version 2.5.1 or greater required. Then, I downloaded

Re: [PHP] Problems compiling PHP 5.0.0b1

2003-07-01 Thread Adam Voigt
If you didn't install the RPM of the libxml higher then 2.5.1, I would assume there's a configure line like --with-libxml=/path or something similar to that you have to specify where you installed it when you compiled it. On Tue, 2003-07-01 at 13:11, Mauricio Cuenca wrote: Hello, I've tried

[PHP] problem working with sockets

2003-07-01 Thread jcole1
Hello all! I'm having problems getting the below working. I'm actually trying to get a telnet socket connection working but I figured that getting it to talk a web server would suite the same purpose to begin with. Any ideas why it stops right after the comment Getting welcome banner stuff?

Re: [PHP] Problems compiling PHP 5.0.0b1

2003-07-01 Thread Marco Tabini
If you installed libxml2 from source--rather than from RPM--chances are that it's been installed in a folder other than the system library directory (/usr/lib). It's probably in /usr/local/lib instead. So you can do one of two things: either reconfigure libxml2 specifying --prefix=/usr or

RE: [PHP] Email troubles

2003-07-01 Thread Jonathan Villa
Looks like your SMTP server needs for your to authenticate first. --Jonathan I made a discovery today. I found a computer. Wait a second, this is cool. It does what I want it to. If it makes a mistake, it's because I screwed it up. Not because it doesn't like me... Or feels threatened by me...

[PHP] PHP5 - Bugs

2003-07-01 Thread Michael A Smith
Hey, Can't figure this out... whenever I try to use any mysql functions or anything, I get problems. PHP throws a DNS error... what's up with that? -Michael -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] PHP5 - Bugs

2003-07-01 Thread Marco Tabini
Which platform are you running on? Marco On Tue, 2003-07-01 at 13:39, Michael A Smith wrote: Hey, Can't figure this out... whenever I try to use any mysql functions or anything, I get problems. PHP throws a DNS error... what's up with that? -Michael -- Marco Tabini President Marco

RE: [PHP] PHP5 - Bugs

2003-07-01 Thread Jay Blanchard
[snip] Can't figure this out... whenever I try to use any mysql functions or anything, I get problems. PHP throws a DNS error... what's up with that? [/snip] Hey, Give us some more information and we might be able to start helping you. -- PHP General Mailing List (http://www.php.net/) To

[PHP] Zend

2003-07-01 Thread Gladk
Hi ALL! Sorry I repeat the question, but novody answered.. Can anybody give me direct link for downloading Zend Optimizer. I tried to do it a lot of times from the official site, but after accepting agreement nothing happens. Thanks -- PHP General Mailing List (http://www.php.net/) To

Re: [PHP] Problems compiling PHP 5.0.0b1

2003-07-01 Thread Yann Larrivee
Humm from what i remember ( i saw a snap that did not work with dom about last week). In the help there was a not about dom5 i compiled with dom5 and it worked for me. But now in the latest snap dom5 option is gone. But compiling php with dom support works well. So try to compile --with-dom5

[PHP] Class not working after PHP 4.2.3

2003-07-01 Thread Mário Gamito
Hi, I have this class for sending mail, which worked until PHP 4.2.3 Since 4.3.0 it stops functioning. No error message. The mail is simply not send. I've searched everywhere and found no explanation for this behaviour. Any help would be appreciated. Warm regards, Mário Gamito class

Re: [PHP] Reg Ex to search for both Integer and Comma-spaced Integer

2003-07-01 Thread Jason Wong
On Wednesday 02 July 2003 01:07, Kevin Stone wrote: You have started a new thread by taking an existing posting and replying to it while you changed the subject. That is bad, because it breaks threading. Whenever you reply to a message, your mail client generates a References: header that tells

RE: [PHP] Reg Ex to search for both Integer and Comma-spaced Integer

2003-07-01 Thread Ford, Mike [LSS]
-Original Message- From: Kevin Stone [mailto:[EMAIL PROTECTED] Sent: 01 July 2003 18:07 $string = Mark's average score was 544.; preg_match(/average score was ([0-9]+)/, $string, $matches); $score = $matches(1); $string = Julie's average score was 10,443.; preg_match(/average

Re: [PHP] Reg Ex to search for both Integer and Comma-spaced Integer

2003-07-01 Thread Kevin Stone
- Original Message - From: Ford, Mike [LSS] [EMAIL PROTECTED] To: 'Kevin Stone' [EMAIL PROTECTED]; PHP-General [EMAIL PROTECTED] Sent: Tuesday, July 01, 2003 12:19 PM Subject: RE: [PHP] Reg Ex to search for both Integer and Comma-spaced Integer -Original Message- From: Kevin

FW: [PHP] PHP5 - Bugs

2003-07-01 Thread Jay Blanchard
-Original Message- From: Michael A Smith [mailto:[EMAIL PROTECTED] Sent: Tuesday, July 01, 2003 1:40 PM To: Jay Blanchard Subject: RE: [PHP] PHP5 - Bugs I'm running on a RH9 box with Apache2. Going to pages that include the PEAR::DB file throw DNS errors, but much simpler pages do not

Re: [PHP] Class not working after PHP 4.2.3

2003-07-01 Thread Jeremy Thibeaux
It would probably be much easier to help you if you just stated exactly what data was being fed to mail() when it fails (try to make a simple case). In fact, just determining that might help you determine if the problem actually has anything to do with mail(), or something else in the code.

RE: [PHP] Zend

2003-07-01 Thread Edward Peloke
I just went here...accepted and it began downloading.. http://www.zend.com/store/getfreefile.php?pid=13zbid=550 -Original Message- From: Gladk [mailto:[EMAIL PROTECTED] Sent: Tuesday, July 01, 2003 1:45 PM To: [EMAIL PROTECTED] Subject: [PHP] Zend Hi ALL! Sorry I repeat the question,

[PHP] array_intersect()

2003-07-01 Thread Shena Delian O'Brien
Is this function still broken in php 4.3.0+? The manual says it was broken in PHP 4.0.4. Thanks. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Sharing Cookies with Java?

2003-07-01 Thread Jiann-Ming Su
Can php share cookies with java servlets? Specifically, can php use cookies written by a java servlet? -- Jiann-Ming Su [EMAIL PROTECTED] 404-712-2603 Development Team Systems Administrator General Libraries Systems Division -- PHP General Mailing List (http://www.php.net/) To unsubscribe,

[PHP] Re: Zend

2003-07-01 Thread Manuel Lemos
Hello, On 07/01/2003 02:27 AM, Gladk wrote: Can anybody give me direct link for downloading Zend Optimizer. I tried to do it a lot of times from the official site, but after accepting agreement nothing happens Maybe Zend site has some alergy to your browser or vice-versa. :-) BTW, if you are

Re: [PHP] file pointer

2003-07-01 Thread Wendell Brown
On Tue, 01 Jul 2003 10:59:53 -0500, Kyle Babich wrote: How would I set the file pointer to the very end of the last line of the file? Assuming you are trying to append to the file you can do the following (open output append): $fHandle = fopen( file.txt, a ); or you can fopen the file in

[PHP] Validating XML strings

2003-07-01 Thread Moore, Christie
I am parsing an xml string using the DOM package in php. Is there anyway to validate the xml string against a schema or a dtd with DOM. I know it is still experimental but I didn't know if something like that existed. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

RE: [PHP] Subtracting dates in php

2003-07-01 Thread Boaz Yahav
Try : Difference between two dates (i.e. between today and a date in future). The program is based on php-timestamp, but in your browser you see the usual dates(i.e.: dd.mm.) http://examples.weberdev.com/get_example.php3?count=3240 Find the Difference between today's date and a future day.

[PHP] Parsing fgetcsv using tab (\t)

2003-07-01 Thread Chris
I'm trying to create an form where the user can upload a datafile to the server. The datafile will be txt or csv and contain multiple records. I would like the user to supply the field delimiter like (,) comma , (\t) tab or something else. The data records are then parsed using fgetcsv. The

[PHP] PHP application using gettext

2003-07-01 Thread Yann Larrivee
Hi , i have been looking for php web application that uses the Gettext extension to facilitate the translation. However i did not really find any. Anybody as good example of application that uses it and an explanation why people don't use it other then the fact that you need the extension to be

RE: [PHP] File upload: type and size question

2003-07-01 Thread Sævar Öfjörð
http://is.php.net/manual/en/features.file-upload.php There you can see how to use the $_FILES autoglobals ($HTTP_POST_FILES in php versions prior 4.1.0) to get the size of the uploaded file in bytes. So, for example, you can do this before saving the uploaded file: if($_FILES['userfile']['size']

RE: [PHP] need help w/ sql query - update and select at once

2003-07-01 Thread Sævar Öfjörð
Theoretically, you should be able to do a multi-table update since MYSQL 3.23, like this: UPDATE tablename, tablename2 SET tablename.field1 = 'yes' WHERE tablename.userid = tablename2.userid; I haven't tested it, though. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL

[PHP] how can I logout autamaitcally (using session)

2003-07-01 Thread sunwei
when the user close all the IE windows, should the session be destroyed autamatically? it seems in my website, the session is not destroyed autamatically, so that other people open the IE and see that he can access the website without logging in. so what I should do? thanks a lot for any help

[PHP] .inc.php

2003-07-01 Thread Kyle Babich
When .inc.php files are included they are also executed whenever the script is executed right? -- Kyle -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] .inc.php

2003-07-01 Thread Yann Larrivee
Yes beacause the real extension is .php On Tue, 2003-07-01 at 17:38, Kyle Babich wrote: When .inc.php files are included they are also executed whenever the script is executed right? -- Kyle -- Yann Larrivee [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To

Re: [PHP] .inc.php

2003-07-01 Thread Kyle Babich
And when functions are defined in *.inc.php they can be executed in the main program? (I just finished writing a logging system and php isn't giving me any errors so I'm trying to figure out what is gong wrong.) On 01 Jul 2003 17:43:16 -0400, Yann Larrivee [EMAIL PROTECTED] said: Yes beacause

[PHP] Nested mysql_query()'s

2003-07-01 Thread Sparky Kopetzky
Hi! I've got two nested queries where one looks up data based on values returned from the first. $lot_query = SELECT * FROM LOT WHERE lot_category_id= . $lot_category . AND lot_close_time . time(); $lot_result = mysql_query($lot_query, $CONNECT_ID); if ($lot_result) {

Re: [PHP] Nested mysql_query()'s

2003-07-01 Thread James Hicks
No need for another connect as long as selecting from same server as the same user. Perhaps there are no bids for some of the lot_id's? Perhaps you do not care that there are bids returned and want to shut mysql_num_rows up by prepending the @ sign in front of it. Like

  1   2   >