[PHP] Re: searching date

2003-08-15 Thread Kae Verens
[EMAIL PROTECTED] wrote: Hi , The user have to choose 2 date ($date_begin $date_last) and i want to know howcan i make to find field in mysql where field included between ($date_begin $date_last) SELECT * FROM `news` WHERE `date` included in ($date_begin $date_last)

php-general Digest 15 Aug 2003 06:16:45 -0000 Issue 2237

2003-08-15 Thread php-general-digest-help
php-general Digest 15 Aug 2003 06:16:45 - Issue 2237 Topics (messages 159608 through 159642): Re: project management php system 159608 by: Michael A Smith Re: email confirmation script 159609 by: Anthony Ritter 159626 by: Anthony Ritter 159638 by: olinux

Re: [PHP] Re: How can I load load Additional extensions ?

2003-08-15 Thread Leif K-Brooks
Dennis Lee wrote: Why it is wrong when I run php as module under apache 2.0.46 ? PHP and Apache 2 are currently unstable together. -- The above message is encrypted with double rot13 encoding. Any unauthorized attempt to decrypt it will be prosecuted to the full extent of the law. -- PHP

[PHP] Re: LAMP I need a good tutorial on how to install and configureGD2

2003-08-15 Thread Kae Verens
Matt Babineau wrote: Anyone have a good place to help with this... Google was seeming a bit light on good help. I tried to get it going but there seemed to be some dependant libraries tha tI could not build myself, they were erroring out..blah blah. Is there any easier way to do this? Thanks, Matt

Re: [PHP] If you ever had a Vic20

2003-08-15 Thread John Taylor-Johnston
Ok ... so I can do it this way (below), but there must be a more intelligent way? This is like something I did with my Vic20, 19 years ago. (If you ever had a Vic20 ... :) you might sympathise) while ($mydata = mysql_fetch_object($news)) { if ($mydata-StudentId = $StudentId) {$found

RE: [PHP] If you ever had a Vic20

2003-08-15 Thread Martin Towell
What about (just a slight change...)? $found = 0; while ($mydata = mysql_fetch_object($news)) { if ($mydata-StudentId == $StudentId) {$found = 1; break;} } if ($found==1){do this}else{do that} at least this way you

Re: [PHP] host name

2003-08-15 Thread viraj
echo $HTTP_HOST; did the job perfectly thanks Justin Viraj Quoting Justin French [EMAIL PROTECTED]: pre ?print_r($_SERVER);? /pre Have a look at the output, find the variable you need, then manipulate it if needed. Justin French On Friday, August 15, 2003, at 01:32 PM,

[PHP] php, search engine that index via local filesystem?

2003-08-15 Thread Louie Miranda
Do you know any? --- - Thanks, Louie Miranda -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] LAST DAY OF MONTH

2003-08-15 Thread Ralph Guzman
How can I get the last day for the current month? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] php, search engine that index via local filesystem?

2003-08-15 Thread [EMAIL PROTECTED]
Hi, Do you want to provide a web interface to your local file system? well the easiest would then be to just exec locate, which will make use of the slocate db. Alternatively you can try to exec find. These can be done painlessly and you don't have to install any software. If you need a more

RE: [PHP] php, search engine that index via local filesystem?

2003-08-15 Thread Ralph Guzman
Might want to take a look at: http://www.htdig.org/ Using the PHP wrapper class: http://sourceforge.net/projects/htphp/ -Original Message- From: Louie Miranda [mailto:[EMAIL PROTECTED] Sent: Friday, August 15, 2003 12:42 AM To: [EMAIL PROTECTED] Subject: [PHP] php, search engine that

[PHP] Turck MMCache Feedback, Please

2003-08-15 Thread aka MacGuru
Hi, I am going to use Turck MMCache with Encoder. Anyone on the list have used it on Linux, MacOS X, Windows? Any caveats and/or side effect? Your feedback will be greatly appreciated. Thanks in advance. * * Best Regards --- Andrei Verovski *

Re: [PHP] LAST DAY OF MONTH

2003-08-15 Thread Sn!per
? print date(t) ? rgds. Quoting Ralph Guzman [EMAIL PROTECTED]: How can I get the last day for the current month? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php --- Sign

RE: [PHP] LAST DAY OF MONTH

2003-08-15 Thread Ralph Guzman
wow. I missed that one in the manual. I guess it's time for me to call it a night. Thanks. -Original Message- From: Sn!per [mailto:[EMAIL PROTECTED] Sent: Friday, August 15, 2003 1:21 AM To: Ralph Guzman Cc: PHP General Mailing List Subject: Re: [PHP] LAST DAY OF MONTH ? print date(t)

RE: [PHP] LAST DAY OF MONTH

2003-08-15 Thread Ralph Guzman
I just noticed, this will give me total days for current month. But let's say I want to look up the total days for another month? -Original Message- From: Sn!per [mailto:[EMAIL PROTECTED] Sent: Friday, August 15, 2003 1:21 AM To: Ralph Guzman Cc: PHP General Mailing List Subject: Re:

[PHP] Directory Size

2003-08-15 Thread Chris Blake
Greetings learned PHP(eople); Is there a way to calculate the size of directory in PHP ? I searched php.net and only found ways of opening directories and reading file sizes One suggestion on there was to do the following : $mstrng = shell_exec('du -sc /backup/'); echo 'pre' . $mstrng .

Re: [PHP] How to Select

2003-08-15 Thread Kae Verens
John Taylor-Johnston wrote: Ok, this is a basic MySQL question, but I don't know how to code it in PHP. I want to check in StudentId. If it exists, ... Anyone good humoured who would help me fill in the blank. Like I should know this, but haven't even thought of coding SQL in a while :)

RE: [PHP] LAST DAY OF MONTH

2003-08-15 Thread Sn!per
play with mktime to get the months that you want. the code snippet below is for July 2003: --- start code --- ? $xMonths = mktime (0,0,0, date(m)-1,1,date(Y)); print total days in .date(M,$xMonths). = .date(t,$xMonths).BR; print and that WAS on .date(D,$xMonths); ? --- end code --- rgds.

[PHP] saving mail attachment to another server

2003-08-15 Thread Sn!per
i am using Horde's IMP. i am playing with the idea of saving mail attachment(s) into another server. the mail server is like mail.example.com on server-A and the 2nd server is like photos.example.com on server-B. is this _normally_ done with cURL and/or snoopy ? appreciate some guidelines.

Re: [PHP] LAST DAY OF MONTH

2003-08-15 Thread Justin French
I *think* if you feed it the unix timestamp for the 1st day of the month, it will give you the last day, *untested* though. ? $firstDay = strtotime('2003-05-01'); $lastDay = date('t',$firstDay); ? Justin On Friday, August 15, 2003, at 06:40 PM, Ralph Guzman wrote: I just noticed, this will

[PHP] images with gd for printing?

2003-08-15 Thread Merlin
Hi there, I want to create images with GD and freetype ttf which are good enough for printing .. about 150 dpi. Does anybody know how to output the jpg with a higher resolution and a determined output size? Thanx in advance, merlin -- PHP General Mailing List (http://www.php.net/) To

[PHP] How to get data from database with a click

2003-08-15 Thread Subodh Gupta
Dear Friends, When we click a combo box, in a perticular file, the output from the database should display in the same screen, in a text box or a combo box (We want this to happen without pressing the submit button). Any clue please Subodh -Original Message- From: [EMAIL PROTECTED]

Re: [PHP] Directory Size

2003-08-15 Thread Marek Kilimajer
Are you sure it hangs? It might take a long time to get occupied size. This also depends on the filesystem used, I heard reserfs is best at this. Chris Blake wrote: Greetings learned PHP(eople); Is there a way to calculate the size of directory in PHP ? I searched php.net and only found ways

Re: [PHP] How to Select

2003-08-15 Thread Marek Kilimajer
$news = mysql_query(select StudentId FROM $table); if($mydata=mysql_fetch_object($news)) { //got it } else { // no such StudentId } John Taylor-Johnston wrote: Ok, this is a basic MySQL question, but I don't know how to code it in PHP. I want to check in StudentId. If it exists,

Re: [PHP] Directory Size

2003-08-15 Thread Chris Blake
On Fri, 2003-08-15 at 12:36, Marek Kilimajer wrote: Are you sure it hangs? It might take a long time to get occupied size. This also depends on the filesystem used, I heard reserfs is best at this. Well, I thought it was hanging cuz 15 mins went past without any return...then I figured it had

[PHP] regex problem

2003-08-15 Thread Merlin
Hi there, I have a regex problem. Basicly I do not want to match: /dir/test/contact.html But I do want to match: /test/contact.html I tryed this one: ^[!dir]/(.*)/contact(.*).html$ but it does not work and I tryed thousands of other ways plus read tutorials. Can anybody please help? Thanx

RE: [PHP] If you ever had a Vic20

2003-08-15 Thread Jay Blanchard
[snip] $found = 0; while ($mydata = mysql_fetch_object($news)) { if ($mydata-StudentId == $StudentId) {$found = 1; break;} } if ($found==1){do this}else{do that} [/snip] Why two if's? Isn't if the student is found

[PHP] Re: regex problem

2003-08-15 Thread Kae Verens
Merlin wrote: Hi there, I have a regex problem. Basicly I do not want to match: /dir/test/contact.html But I do want to match: /test/contact.html I tryed this one: ^[!dir]/(.*)/contact(.*).html$ but it does not work and I tryed thousands of other ways plus read tutorials. Can anybody please

[PHP] Re: images with gd for printing?

2003-08-15 Thread Kae Verens
Merlin wrote: Hi there, I want to create images with GD and freetype ttf which are good enough for printing .. about 150 dpi. Does anybody know how to output the jpg with a higher resolution and a determined output size? Thanx in advance, merlin output an image with dimensions, say, 320x200, but

RE: [PHP] How to get data from database with a click

2003-08-15 Thread Jay Blanchard
[snip] When we click a combo box, in a perticular file, the output from the database should display in the same screen, in a text box or a combo box (We want this to happen without pressing the submit button). Any clue please [/snip] You appear to be looking for something called Javascript.

[PHP] Re: regex problem

2003-08-15 Thread Merlin
^\/test\/contact.html$ does not work. I am sorry, I just found that it has to be: test/contact.html and not dir/test/contact.html there is no leading slash. Do you have any other suggestion? -- lt;IFRAME SRC=http://saratoga.globosapiens/associates/report_member.php?u=3color=EEE EEE

[PHP] logging data to xml

2003-08-15 Thread Thomas Hochstetter
Hi there. I have been trying to log some data to an xml file. Whta my problem is now is that the /root tag needs to be either replaced (overwritten) or i need to get the data in before EOF-1. I have spend some time on the manual, but could not find out hoe exactly i should get the last row and

Re: [PHP] Re: regex problem

2003-08-15 Thread John W. Holmes
Merlin wrote: ^\/test\/contact.html$ does not work. I am sorry, I just found that it has to be: test/contact.html and not dir/test/contact.html there is no leading slash. Do you have any other suggestion? Are you making this too hard? if($string = 'test/contact.html') { echo 'good'; } else {

RE: [PHP] If you ever had a Vic20

2003-08-15 Thread Dave Restall - System Administrator
Hi, $found =3D 0; while ($mydata =3D mysql_fetch_object($news)) { if ($mydata-StudentId =3D=3D $StudentId) {$found =3D 1; break;} } if ($found=3D=3D1){do this}else{do that} Why not re-oganise your SQL statement so it

RE: [PHP] logging data to xml

2003-08-15 Thread Jay Blanchard
[snip] I have been trying to log some data to an xml file. Whta my problem is now is that the /root tag needs to be either replaced (overwritten) or i need to get the data in before EOF-1. I have spend some time on the manual, but could not find out hoe exactly i should get the last row and then

[PHP] Graduated fills using PHP Images

2003-08-15 Thread Adrian
Hi all! Is it possible to have PHP creates an image that graduates 1 color to another, such as create and images 100 pixels wide and in height which fades red to green top to bottom? Any help or suggestions would be really helpful. Thanks Adrian [EMAIL PROTECTED]

RE: [PHP] Graduated fills using PHP Images

2003-08-15 Thread Jay Blanchard
[snip] Is it possible to have PHP creates an image that graduates 1 color to another, such as create and images 100 pixels wide and in height which fades red to green top to bottom? [/snip] http://us3.php.net/image You could set the color index and the loop through (while incrementing) each new

[PHP] Re: regex problem

2003-08-15 Thread Kae Verens
Merlin wrote: ^\/test\/contact.html$ does not work. I am sorry, I just found that it has to be: test/contact.html and not dir/test/contact.html there is no leading slash. Do you have any other suggestion? *sigh* ^test\/contact.html$ Kae -- PHP General Mailing List (http://www.php.net/) To

Re: [PHP] Re: regex problem

2003-08-15 Thread John W. Holmes
John W. Holmes wrote: Merlin wrote: ^\/test\/contact.html$ does not work. I am sorry, I just found that it has to be: test/contact.html and not dir/test/contact.html there is no leading slash. Do you have any other suggestion? Are you making this too hard? if($string = 'test/contact.html')

RE: [PHP] Re: regex problem

2003-08-15 Thread Jay Blanchard
[snip] if($string = 'test/contact.html') That's if($string == 'test/contact.html') of course... :) [/snip] it could be if($string == test/contact.html) couldn't resist :) Jay P.S. John, nothing on that thing yet. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

RE: [PHP] regex problem

2003-08-15 Thread Ford, Mike [LSS]
On 15 August 2003 12:02, Merlin wrote: Hi there, I have a regex problem. Basicly I do not want to match: /dir/test/contact.html But I do want to match: /test/contact.html I tryed this one: ^[!dir]/(.*)/contact(.*).html$ Well, that's not going to work because the construct

Re: [PHP] searching date

2003-08-15 Thread Jonatan Pugliese.
select * from 'news' where 'date' between '$date_begin' and '$date_last'; i hope this code is ok? my english is very poor ! - Original Message - From: [EMAIL PROTECTED] [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, August 14, 2003 5:36 PM Subject: [PHP] searching date Hi

[PHP] Re: regex problem

2003-08-15 Thread Merlin
ufff.. sorry guys, but I have to explain that better. I appreciate your help, maybe I did not give enough info. I am trying to redirect with apache modrewrite. To do this you have to use regex (not if functions:-) My problem is, that there are member accounts which look like that:

Re: [PHP] Re: regex problem

2003-08-15 Thread Kae Verens
Jay Blanchard wrote: if($string == 'test/contact.html') it could be if($string == test/contact.html) not to start a flame war or anything, but isn't the apostrophe version quicker, as it doesn't ask the server to parse the string? Kae -- PHP General Mailing List (http://www.php.net/) To

Re: [PHP] Turck MMCache Feedback, Please

2003-08-15 Thread Jason Sheets
Hello Andrei, I've been using Turck MMCache for over 6 months now. I use it on several severs including FreeBSD (2), Windows (1) and Linux (3). I've been very happy with Turck MMCache and as of the last few releases it is actually faster than Zend's product though not by very much (granted

[PHP] Re: regex problem

2003-08-15 Thread Kae Verens
Merlin wrote: ufff.. sorry guys, but I have to explain that better. I appreciate your help, maybe I did not give enough info. I am trying to redirect with apache modrewrite. To do this you have to use regex (not if functions:-) My problem is, that there are member accounts which look like that:

Re: [PHP] Re: regex problem

2003-08-15 Thread Marek Kilimajer
So ^[^/]+/[^/]* or ^!(partner/) Merlin wrote: ufff.. sorry guys, but I have to explain that better. I appreciate your help, maybe I did not give enough info. I am trying to redirect with apache modrewrite. To do this you have to use regex (not if functions:-) My problem is, that there are

[PHP] Determining where a function is called from..

2003-08-15 Thread Wouter van Vliet
Howdy Fellas, I've got this problem .. not really a problem but still some thing to my disliking. For a project I wrote some database handling class, no big deal. When a function from this module is called with a query containing an error, or some other error occurs inside this class it reports

RE: [PHP] Category and sub-category logic

2003-08-15 Thread Mark
I'm trying to get a handle on this algorithm as well. If you add additional children to a parent record, doesn't that require renumbering all the rgt and lft values in the lineage? For example (table shamelessly stolen from a website): Personnel emp lft rgt ==

Re: [PHP] Re: regex problem

2003-08-15 Thread Merlin
does not work. Is there not a way to exclude the word partner like you triede with !(partner) ? merlin Marek Kilimajer [EMAIL PROTECTED] schrieb im Newsbeitrag news:[EMAIL PROTECTED] So ^[^/]+/[^/]* or ^!(partner/) Merlin wrote: ufff.. sorry guys, but I have to explain that better.

[PHP] Re: regex problem

2003-08-15 Thread Merlin
Good idea, but does not work either - surprisingly! - There should be a clean way with regex for this task. Andy regex expert in here? Merlin Kae Verens [EMAIL PROTECTED] schrieb im Newsbeitrag news:[EMAIL PROTECTED] Merlin wrote: ufff.. sorry guys, but I have to explain that better. I

Re: [PHP] Re: regex problem

2003-08-15 Thread Curt Zirzow
* Thus wrote Merlin ([EMAIL PROTECTED]): ufff.. sorry guys, but I have to explain that better. I appreciate your help, maybe I did not give enough info. I am trying to redirect with apache modrewrite. To do this you have to use regex (not if functions:-) I'm not sure what you expect since

Re: [PHP] Re: regex problem

2003-08-15 Thread Curt Zirzow
* Thus wrote Kae Verens ([EMAIL PROTECTED]): Jay Blanchard wrote: if($string == 'test/contact.html') it could be if($string == test/contact.html) not to start a flame war or anything, but isn't the apostrophe version quicker, as it doesn't ask the server to parse the string? heh,

Re: [PHP] configure smtp error

2003-08-15 Thread Mark
--- Jackson Miller [EMAIL PROTECTED] wrote: It looks like sendmail_from should be an smtp server, not an email address. Try setting it to your outgoing mail server that you use with your email client (i.e. Outlook). If you can send email from your email client then the firewall will

RE: [PHP] Determining where a function is called from..

2003-08-15 Thread Wouter van Vliet
Thanks David, I noticed the __LINE__ and __FUNCTION__ magic constants too, but they don't really contain the values I was looking for, as they have the current function and line in it. But what I want my Logging class (I have one too :D) to display is what I am about to illustrate with an

Re: [PHP] Graduated fills using PHP Images

2003-08-15 Thread Jaap van Ganswijk
At 2003-08-15 08:14 -0400, Adrian wrote: Is it possible to have PHP creates an image that graduates 1 color to another, such as create and images 100 pixels wide and in height which fades red to green top to bottom? It's possible. I have just been experimenting with it using

Re: [PHP] Re: How can I load load Additional extensions ?

2003-08-15 Thread Comex
[EMAIL PROTECTED] Leif K-Brooks: Dennis Lee wrote: Why it is wrong when I run php as module under apache 2.0.46 ? PHP and Apache 2 are currently unstable together. They might crash on any high traffic, but they start fine, at least when I've tried it. -- PHP General Mailing List

RE: [PHP] Re: regex problem

2003-08-15 Thread Wouter van Vliet
So, what you want is to pretty much use this regex /^(.*)([^\/]+)\/([^\/]+)$/ when matched on this URI, the backreferences will contain \\1 partner/ \\2 name \\3 contact.html \\4 .html partner/name/contact.html I have not tested it, but I just guess it will work ;) Wanna

[PHP] PCRE regexp bug ?

2003-08-15 Thread tpc
I use preg_match to validate the Middle Initial field of a form and so far it works, except yesterday a user submitted a 0 (zero) as a middle initial! My regexp is: if (!empty($_POST[MI]) (preg_match('/^[[:alpha:]]{1,1}$/', $_POST[MI]) == 0)) I tested it with 0-9 and my regexp catches every

Re: [PHP] Determining where a function is called from..

2003-08-15 Thread Marek Kilimajer
Use debug_backtrace(): if($error=mysql_error()) { $bt=debug_backtrace(); echo $bt[0]['file'].':'.$bt[0]['line'].'br' .$error.'br'.$query; } hope i got everything right Wouter van Vliet wrote: Thanks David, I noticed the __LINE__ and __FUNCTION__ magic constants

RE: [PHP] Determining where a function is called from..

2003-08-15 Thread Jaap van Ganswijk
At 2003-08-15 16:35 +0200, Wouter van Vliet wrote: I noticed the __LINE__ and __FUNCTION__ magic constants too, but they don't really contain the values I was looking for, as they have the current function and line in it. But what I want my Logging class (I have one too :D) to display is what I am

Re: [PHP] PCRE regexp bug ?

2003-08-15 Thread Greg Wiley
- Original Message - From: [EMAIL PROTECTED] I use preg_match to validate the Middle Initial field of a form and so far it works, except yesterday a user submitted a 0 (zero) as a middle initial! My regexp is: if (!empty($_POST[MI]) (preg_match('/^[[:alpha:]]{1,1}$/', $_POST[MI])

Re: [PHP] Category and sub-category logic

2003-08-15 Thread CPT John W. Holmes
From: Mark [EMAIL PROTECTED] I'm trying to get a handle on this algorithm as well. If you add additional children to a parent record, doesn't that require renumbering all the rgt and lft values in the lineage? For example (table shamelessly stolen from a website): Personnel emp

Re: [PHP] logging data to xml

2003-08-15 Thread Curt Zirzow
* Thus wrote Jay Blanchard ([EMAIL PROTECTED]): A couple of things occured to me, but I am not sure that they're desirable... With /root being the last tag (does it occupy its own line?) you could (pseudo-code, not tested and certain to be incomplete)... while(!feof($theXMLLogFile)){

Re: [PHP] PCRE regexp bug ?

2003-08-15 Thread Marek Kilimajer
Not an answer but '/^[[:alpha:]]{1,1}$/' could be writen as '/^[[:alpha:]]$/' [EMAIL PROTECTED] wrote: I use preg_match to validate the Middle Initial field of a form and so far it works, except yesterday a user submitted a 0 (zero) as a middle initial! My regexp is: if (!empty($_POST[MI])

Re: [PHP] PCRE regexp bug ?

2003-08-15 Thread CPT John W. Holmes
From: [EMAIL PROTECTED] I use preg_match to validate the Middle Initial field of a form and so far it works, except yesterday a user submitted a 0 (zero) as a middle initial! My regexp is: if (!empty($_POST[MI]) (preg_match('/^[[:alpha:]]{1,1}$/', $_POST[MI]) == 0)) I tested it with 0-9

RE: [PHP] Determining where a function is called from..

2003-08-15 Thread Wouter van Vliet
Nope .. I hadn't studiet the ref.errorfunc.php in this search.. I did some other time and the backtrace function didn't stick around in my head. Thank you all for helping me .. of course, debug_backtrace() was what I needed ;) .. what a magnificent new function in PHP4.3 that is.. Only too bad my

RE: [PHP] Determining where a function is called from..

2003-08-15 Thread Wouter van Vliet
WHOW .. what a great new function in PHP4.3 .. I now have my errorlog populated with stuff like: [Fri 15 Aug 2003 17:34] [error] [database] You have an error in your SQL syntax near 'DELETESBLAH' at line 1 -- - database-execute() @ HTML/tmp/test.php line 3 -

[PHP] ereg preg

2003-08-15 Thread Eddy-Das
is there any syntax difference between ereg() and preg() except preg needs / and /? -- - Eddy Wong __ inframatrix internet solutions http://www.inframatrix.com/ ¥¿¤KEddy Regular Octa-Eddy [EMAIL PROTECTED]@ [EMAIL PROTECTED]@¡½¢ª¢© [EMAIL PROTECTED]@[EMAIL

[PHP] Function arguments

2003-08-15 Thread Hardik Doshi
Hi Group, I have a question on overloaded function. What is the best way to pass the arguments so it is easy to maintain in future if function behaviour changes by adding/removing one or more arguments? Currently i am passing arguments in array. But i think it is not the clean way to do it and

Re: [PHP] Function arguments

2003-08-15 Thread [EMAIL PROTECTED]
Hello, If you are worried about this issue your best option is to switch to an object oriented approach. all the best Hardik Doshi wrote: Hi Group, I have a question on overloaded function. What is the best way to pass the arguments so it is easy to maintain in future if function behaviour

[PHP] howto set locale only once

2003-08-15 Thread Martin Leja
Hi, setting locale with setlocale() to subsequently get localized time strings e.g. works fine. But this way the setlocale function gets executed every time. How can i set the locale only once? Can i specify the locale in the config file php.ini? I'm using php as apache module on a linux debian

Re: [PHP] Category and sub-category logic

2003-08-15 Thread Richard Baskett
Wouldn¹t it just be easier to do a relationship table as in Personnel emp ID parent 'Albert' 1 0 'Bert'2 1 'Chuck' 3 1 'Donna' 4 0 'Eddie' 5 4 'Fred'6 0 'Joe' 7 6 This way you know the

Re: [PHP] PCRE regexp bug ?

2003-08-15 Thread Curt Zirzow
* Thus wrote [EMAIL PROTECTED] ([EMAIL PROTECTED]): I use preg_match to validate the Middle Initial field of a form and so far it works, except yesterday a user submitted a 0 (zero) as a middle initial! My regexp is: if (!empty($_POST[MI]) (preg_match('/^[[:alpha:]]{1,1}$/', $_POST[MI])

Re: [PHP] ereg preg

2003-08-15 Thread Curt Zirzow
* Thus wrote Eddy-Das ([EMAIL PROTECTED]): is there any syntax difference between ereg() and preg() except preg needs / and /? There are a lot of differences in syntax. Curt -- I used to think I was indecisive, but now I'm not so sure. -- PHP General Mailing List (http://www.php.net/) To

Re: [PHP] How to get data from database with a click

2003-08-15 Thread Curt Zirzow
* Thus wrote Subodh Gupta ([EMAIL PROTECTED]): Dear Friends, When we click a combo box, in a perticular file, the output from the database should display in the same screen, in a text box or a combo box (We want this to happen without pressing the submit button). Any clue please

Re: [PHP] Category and sub-category logic

2003-08-15 Thread Mark
--- CPT John W. Holmes [EMAIL PROTECTED] wrote: From: Mark [EMAIL PROTECTED] I'm trying to get a handle on this algorithm as well. If you add additional children to a parent record, doesn't that require renumbering all the rgt and lft values in the lineage? For example (table

[PHP] redhat 8: upgrade php from 4.2.2 to 4.3.2

2003-08-15 Thread Chris W. Parker
Hello eveyone. I want to upgrade my php install from 4.2.2 to 4.3.2. I'm pretty new to linux so I don't know how to install from source and I haven't been able to find any Redhat 8 rpm's. Can someone please give me instructions as to what I should do? (Maybe links to a site where I can find the

Re: [PHP] PCRE regexp bug ?

2003-08-15 Thread Curt Zirzow
* Thus wrote Curt Zirzow ([EMAIL PROTECTED]): * Thus wrote [EMAIL PROTECTED] ([EMAIL PROTECTED]): I use preg_match to validate the Middle Initial field of a form and so far it works, except yesterday a user submitted a 0 (zero) as a middle initial! My regexp is: if

[PHP] Acessing session vars

2003-08-15 Thread Ed Curtis
I just started using sessions and am having some trouble understanding how to pull values out of sessions to use in another page. I set the values as: session_start(); session_register{'magazine'); session_register('company'); The data is saved as a session because I can read the file located

[PHP] Re: cookies and redirection

2003-08-15 Thread Joaco
Ok, I have changed my code so the headers are sent as: header(HTTP/1.0 302 Redirect); header(Location: index2.php); header(Set-Cookie: USER_COOKIE=$sUser); I have changed the file name to nph-unsecure.php It successfully sends me to the index2.php page, but no cookie... any ideas Joaco [EMAIL

[PHP] cron

2003-08-15 Thread Richard Lynch
Not specific to PHP really, but it all started with a simple PHP script I was automating... I've used cron/crontab on a zillion machines, and it always worked flawlessly. Well, once I'd get the actual shell commands and permissions right anyway. But this time... The cron jobs just aren't

[PHP] PHP.ini file and register_globals

2003-08-15 Thread Ben C .
I have a quick simple question. I am using PHP 4.2.3 on Linux. I am trying to turn register_globals from off to on. Is all that I need to do change it from off to on in the php.ini file? Do you I need to reboot to have the changes go into effect? Sorry for a simple question but I am new at

Re: [PHP] PHP.ini file and register_globals

2003-08-15 Thread Jonatan Pugliese.
never reboot !! is not necessary ! - Original Message - From: Ben C. [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, August 15, 2003 2:14 PM Subject: [PHP] PHP.ini file and register_globals I have a quick simple question. I am using PHP 4.2.3 on Linux. I am trying to turn

RE: [PHP] PHP.ini file and register_globals

2003-08-15 Thread Jay Blanchard
[snip] never reboot !! is not necessary ! [/snip] But you might want to restart your web server. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: Re: [PHP] PHP.ini file and register_globals

2003-08-15 Thread Ben C .
Is the change in the php.ini file the only thing that I need to change to turn on register_globals? From: Jonatan Pugliese. [EMAIL PROTECTED] Date: 2003/08/15 Fri PM 01:18:01 EDT To: Ben C. [EMAIL PROTECTED], [EMAIL PROTECTED] Subject: Re: [PHP] PHP.ini file and register_globals never

Re: Re: [PHP] PHP.ini file and register_globals

2003-08-15 Thread Ben C .
Is the change in the php.ini file the only thing that I need to change to turn on register_globals? From: Jonatan Pugliese. [EMAIL PROTECTED] Date: 2003/08/15 Fri PM 01:18:01 EDT To: Ben C. [EMAIL PROTECTED], [EMAIL PROTECTED] Subject: Re: [PHP] PHP.ini file and register_globals never

Re: [PHP] PHP.ini file and register_globals

2003-08-15 Thread Jonatan Pugliese.
yes you must to restart your webserver !! type /etc/init.d/httpd restart - Original Message - From: Jay Blanchard [EMAIL PROTECTED] To: Jonatan Pugliese. [EMAIL PROTECTED]; Ben C. [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Friday, August 15, 2003 2:18 PM Subject: RE: [PHP] PHP.ini file

RE: Re: [PHP] PHP.ini file and register_globals

2003-08-15 Thread Jay Blanchard
[snip] Is the change in the php.ini file the only thing that I need to change to turn on register_globals? [/snip] Yes -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Acessing session vars

2003-08-15 Thread CPT John W. Holmes
From: Ed Curtis [EMAIL PROTECTED] I just started using sessions and am having some trouble understanding how to pull values out of sessions to use in another page. I set the values as: session_start(); session_register{'magazine'); session_register('company'); The data is saved as a

Re: [PHP] Category and sub-category logic

2003-08-15 Thread CPT John W. Holmes
From: Richard Baskett [EMAIL PROTECTED] Wouldn¹t it just be easier to do a relationship table as in Personnel emp ID parent 'Albert' 1 0 'Bert'2 1 'Chuck' 3 1 'Donna' 4 0 'Eddie' 5 4 'Fred'6

[PHP] preg_match issue

2003-08-15 Thread Pascal S.
I have a function that checks the syntax of a string using preg_match. This function is used in a loop and always hangs on the same string (7 out of many more). However, the function acts as expected when used individually on that string (ie when the array of strings to loop on is reduced to just

Re: [PHP] redhat 8: upgrade php from 4.2.2 to 4.3.2

2003-08-15 Thread Cesar Cordovez
You can use apachetoolbox.com to install apache and php... Chris W. Parker wrote: I want to upgrade my php install from 4.2.2 to 4.3.2. I'm pretty new to linux so I don't know how to install from source and I haven't been able to find any Redhat 8 rpm's. -- PHP General Mailing List

[PHP] Foreach POST VARS problem

2003-08-15 Thread Kris Yates
It seems to me that this used to work but I guess something has changed somewhere between PHP 4.2 and 4.3? I am running PHP 4.3.2 as an Apache DSO on an FBSD box. If it is not obvious, I am trying to parse checkbox form POST results as seen below: $colors=; foreach($HTTP_POST_VARS as

[PHP] how to disable html postings?

2003-08-15 Thread Merlin
Hi there, I am wondering how to prevent that users can post html through a form. I process the form with php and save the date to a db. There are a couple of sites I have already seen such thing. No matter what you do, it is not possible to submit html commands. Thats exacly what I want to do for

RE: [PHP] how to disable html postings?

2003-08-15 Thread Jay Blanchard
[snip] I am wondering how to prevent that users can post html through a form. I process the form with php and save the date to a db. There are a couple of sites I have already seen such thing. No matter what you do, it is not possible to submit html commands. Thats exacly what I want to do for my

RE: [PHP] redhat 8: upgrade php from 4.2.2 to 4.3.2

2003-08-15 Thread Chris W. Parker
Cesar Cordovez mailto:[EMAIL PROTECTED] on Friday, August 15, 2003 11:01 AM said: You can use apachetoolbox.com to install apache and php... Does this require that I uninstall everything I've already got? Chris. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

[PHP] Segmentation Fault

2003-08-15 Thread Jackson Miller
I am running a PHP script from the command line that is returning Segmentation Fault. I run a lot of script from the command line and have never seen this before. I don't even know where to begin. I know that PHP is set up to run scripts from the command line and plent of other scripts run.

Re: [PHP] how to disable html postings?

2003-08-15 Thread Leif K-Brooks
Merlin wrote: I am wondering how to prevent that users can post html through a form. I process the form with php and save the date to a db. There are a couple of sites I have already seen such thing. No matter what you do, it is not possible to submit html commands. Thats exacly what I want to do

Re: [PHP] Function arguments

2003-08-15 Thread Mike Migurski
What is the best way to pass the arguments so it is easy to maintain in future if function behaviour changes by adding/removing one or more arguments? Currently i am passing arguments in array. But i think it is not the clean way to do it and another approach i am using is functionName(arg1,

  1   2   >