[PHP] Accumulated Information in DB??

2003-10-01 Thread irinchiang
Hi all, I am having some doubts here and hope to hear some advices/solutions from all of you out there. Right now, I have a daily, weekly, monthly and yearly reports which stores information on all my customers. These info will of course, be stored in the DB.(MySQL). As all these reports

[PHP] Select multiple payment mode

2003-10-01 Thread irinchiang
Hi all, I am working on a receipt payment system whereby there is a select box with a list of payment mode: eg.By cash, By Nets, By Cheque etc...for customers to select the kinda payment mode they going to make their payment. How ever, there is cases in which instead of selecting only

RE: [PHP] Accumulated Information in DB??

2003-10-01 Thread Cody Phanekham
-Original Message- From: [EMAIL PROTECTED] Can the MySQL DB hold all this big chunk of info? I'm no authority on MySQL but i dont see any problems with holding 'big chucks' of info, The only limiting factor would be the size of your hard drive. You might get a more accurate

[PHP] File question

2003-10-01 Thread ketvin
Dear geniuses, A simple question here, i have a file, says, list.txt it is a simple text fileand simple field like: aa , bb , cc , dd now i want to usephp script to read that list.txt file, and put the data in an array, is there any simple way i could do that ?

Re: [PHP] File question

2003-10-01 Thread - Edwin -
Hi, I'm no genius ;) but... ketvin [EMAIL PROTECTED] wrote: Dear geniuses, A simple question here, i have a file, says, list.txt it is a simple text file and simple field like: aa , bb , cc , dd now i want to use php script to read that list.txt file, and put the

RE: [PHP] File question

2003-10-01 Thread Martin Towell
Try something like this (quick and dirty...) $file_array = file(list.txt); $myarray = explode(,, $file_array[0]); HTH Martin -Original Message- From: ketvin [mailto:[EMAIL PROTECTED] Sent: Wednesday, 1 October 2003 5:05 PM To: [EMAIL PROTECTED] Subject: [PHP] File question Dear

[PHP] Calculate total amount from input

2003-10-01 Thread irinchiang
Hi all, A PHP question to ask: I am using PHP to do a calculation of the total of fields where user actually input the amount into the text field and I will calculate the TOTAL from the fields as well as the GST. Wonder how should I go about doing that? I did something like :

Re: [PHP] Page cannot be displayed

2003-10-01 Thread Olivier Simah
Ok, first Apache is running because I can see any other pages that are not PHP Second php.ini and everything inside look like in place : This is not my first installation of AMP on a Windows system but this is the first time I have this reaction. I can't display the phpinfo and for sur all the

[PHP] mmcache problems

2003-10-01 Thread Eugene Lee
Just tried installing Turck MMCache 2.4.1 on a FreeBSD box. After tweaking the configure script: ./configure --enable-mmcache=shared --with-php-config=/usr/local/bin/php-config --prefix=/usr/local I got it to compile and install in:

Re: [PHP] File question

2003-10-01 Thread Raditha Dissanayake
Hi Edwin, Didn't you read the disclaimer? you could be in serious trouble. - Edwin - wrote: Hi, I'm no genius ;) but... ketvin [EMAIL PROTECTED] wrote: Dear geniuses, A simple question here, i have a file, says, list.txt it is a simple text file and simple field like: aa , bb ,

Re: [PHP] Generate Receipt Number

2003-10-01 Thread - Edwin -
Hi, Just to add... Larry E. Ullman [EMAIL PROTECTED] wrote: I am doing a receipt system whereby it can auto generate a unique receipt number for each receipt. It will be an increment of number eg.01, 02, 03, and so on.Wonder how should I go about doing this

Re: [PHP] PNGs PHP feedback

2003-10-01 Thread - Edwin -
(Sorry if this is becoming OT...) Eugene Lee [EMAIL PROTECTED] wrote: (about M$IE and PNG) On Wed, Oct 01, 2003 at 11:31:46AM +0900, - Edwin - wrote: : : Curt Zirzow [EMAIL PROTECTED] wrote: : : It does have a problem reading alpha channels in the pngs though.: : Quite true. (I

Re: [PHP] File question

2003-10-01 Thread - Edwin -
Hi Raditha, Raditha Dissanayake [EMAIL PROTECTED] wrote: Hi Edwin, Didn't you read the disclaimer? you could be in serious trouble. ...[snip]... Disclaimer? No, not really. I've been sleeping for a long time... Maybe, you can tell me... - E -

Re: [PHP] File question

2003-10-01 Thread - Edwin -
Hehe... - Edwin - [EMAIL PROTECTED] wrote: Hi Raditha, Raditha Dissanayake [EMAIL PROTECTED] wrote: Hi Edwin, Didn't you read the disclaimer? you could be in serious trouble. ...[snip]... Disclaimer? No, not really. I've been sleeping for a long time... Maybe, you can tell me...

[PHP] getting image width,height

2003-10-01 Thread Fatih Olcer
how can i get the image width and height ? thanks. Fatih. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] PNGs PHP feedback

2003-10-01 Thread Eugene Lee
On Wed, Oct 01, 2003 at 04:41:28PM +0900, - Edwin - wrote: : : (Sorry if this is becoming OT...) : : Eugene Lee [EMAIL PROTECTED] wrote: : : M$IE for the Mac uses a completely different codebase from the : Windoze version and started with the home-grown Tasman engine, which : at the time

Re: [PHP] getting image width,height

2003-10-01 Thread - Edwin -
Hi, Fatih Olcer [EMAIL PROTECTED] wrote: how can i get the image width and height ? http://www.php.net/function.getimagesize ? Or, is this a trick question? :) - E - __ Do You Yahoo!? Yahoo! BB is Broadband by Yahoo! http://bb.yahoo.co.jp/

Re: [PHP] getting image width,height

2003-10-01 Thread Eugene Lee
On Wed, Oct 01, 2003 at 11:02:47AM +0300, Fatih Olcer wrote: : : how can i get the image width and height ? 1. imagesx() and imagesy(). 2. please try checking the online manual first, in the appropriate section: http://www.php.net/manual/en/ref.image.php -- PHP General Mailing List

Re: [PHP] PNGs PHP feedback

2003-10-01 Thread - Edwin -
On Wed, 1 Oct 2003 03:03:42 -0500 Eugene Lee [EMAIL PROTECTED] wrote: ...[snip]... Yep, M$ has halted development of IE for the Mac for a while. But except for your regularly scheduled security fixes, M$ has halted development of IE for Windoze as well! ?? That's new! ('Must have been

Re: [PHP] Accumulated Information in DB??

2003-10-01 Thread Petre Agenbag
As the previous comment states: MySQL is a DB, it's built to store data, so it's pretty good at it, and the limiting factors re usually your hardware/OS. However, just one thought. I am always very protective of my databases. If data is never going to change and no other process will be accessing

RE: [PHP] Select multiple payment mode

2003-10-01 Thread Ralph Guzman
I guess the thing to do would be to log in payments in the database. So lets say the total is $50.00, if the user pays $25 on cc and payment is authorized, then log this into the database, then show the remaining balance. At this point you can give user the option to pay the remaining balance

Re: [PHP] Calculate total amount from input

2003-10-01 Thread Burhan Khalid
[EMAIL PROTECTED] wrote: Hi all, A PHP question to ask: I am using PHP to do a calculation of the total of fields where user actually input the amount into the text field and I will calculate the TOTAL from the fields as well as the GST. Wonder how should I go about doing that? I did

[PHP] Page cannot be displayed

2003-10-01 Thread Olivier Simah
Hi, I have just installed PHP 4.3.3, Apache 2.0.47 and MySQL 4.0.15a under Windows XP. When I try to see a HTML pages, everything is ok but when it comes to PHP pages nothing works I have this message with IE : The page cannot be displayed with Opera 7, Mozilla : nothing Ok, first Apache is

[PHP] DST change dates

2003-10-01 Thread Germán M. Rivera
Hi all! I would like my script to get the dates of the year when the server local time changes from winter time to summer time and vice-versa. ¿Does anybody know how to do it in PHP, even calling linux functions (with popen) or exploring linux archives? I need it to create a VTIMEZONE

[PHP] array_diff()

2003-10-01 Thread Angelo Zanetti
HI all, I looked at the PHP manual and it doesnt say much about this function. what I want to know is that, do the 2 arrays have to have the same length of number of elements? TIA -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] array_diff()

2003-10-01 Thread Eugene Lee
On Wed, Oct 01, 2003 at 11:49:29AM +0200, Angelo Zanetti wrote: : : I looked at the PHP manual and it doesnt say much about this function. : what I want to know is that, do the 2 arrays have to have the same : length of number of elements? Nope. Re-examine Example 1: $array1 and $array2 are

Re: [PHP] mmcache problems

2003-10-01 Thread Jason Wong
On Wednesday 01 October 2003 15:22, Eugene Lee wrote: Just tried installing Turck MMCache 2.4.1 on a FreeBSD box. After tweaking the configure script: ./configure --enable-mmcache=shared --with-php-config=/usr/local/bin/php-config --prefix=/usr/local I got it to compile and install

[PHP] removing an element from an array

2003-10-01 Thread Angelo Zanetti
Hi If I have an array and want to remove and element from this array. correct me if this is the wrong approach: create a temporary array with 1 element less than the origional array, get the position of the element ( is there a function for this?) and then run through the origional array copying

RE: [PHP] array_diff()

2003-10-01 Thread Daniel Perez Clavero
No, but need to have same data types. You cannot compare String against Integers and so Regards -Original Message- From: Angelo Zanetti [mailto:[EMAIL PROTECTED] Sent: miércoles, 01 de octubre de 2003 11:49 To: [EMAIL PROTECTED] Subject: [PHP] array_diff() HI all, I looked at the

[PHP] quick i need some help please

2003-10-01 Thread PAUL FERRIE
i have a admin section for a new site that i have built, to cut a long story short the submit form adds news stories to the site. For some reason behound me the php script is converting to a square. It is a flash based admin area not yet sure if this is an issuse, i just got the call :( the font

[PHP] CURL + https

2003-10-01 Thread Yonatan Ben-Nes
Hi, I'm currently building an e-commerce site and I need to create the connection between the site and the server which validate the credit card. I'm trying to do it with CURL which will post all the information from a secured page (https) to another secure page, the code that i succeded to

[PHP] unable to get response from server program

2003-10-01 Thread Amarnath R
Hi all, I am facing some problem in socket_recvfrom() in php. I am creating a udp socket and sending request to the server(is basically a c program). I am unable to recive the response from server.I am using UNIX domain sockets. sample of code,what I am using. ?php $PHPDG_PATH

[PHP] Re: quick i need some help please

2003-10-01 Thread PAUL FERRIE
False alarm ! Paul Ferrie [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] i have a admin section for a new site that i have built, to cut a long story short the submit form adds news stories to the site. For some reason behound me the php script is converting to a square. It is a

[PHP] regex/preg_replace() difficulty

2003-10-01 Thread jonas_weber
Regular Expressions: How can I indicate that the contents of a term (user input*) needs to be treated as 'non-operators/control characters' (as *word* to match in that exact way)? (* Because the term is a user's input I can't escape the control characters manually.) Example: $result =

RE: [PHP] removing an element from an array

2003-10-01 Thread Ford, Mike [LSS]
On 01 October 2003 11:25, Angelo Zanetti contributed these pearls of wisdom: Hi If I have an array and want to remove and element from this array. correct me if this is the wrong approach: It's the wrong approach ;) create a temporary array with 1 element less than the origional array,

Re: [PHP] CURL + https

2003-10-01 Thread Marek Kilimajer
Did you compile php with openssl support? Yonatan Ben-Nes wrote: Hi, I'm currently building an e-commerce site and I need to create the connection between the site and the server which validate the credit card. I'm trying to do it with CURL which will post all the information from a secured

RE: [PHP] removing an element from an array

2003-10-01 Thread Angelo Zanetti
isnt the unset function not a safe function to use was discontinued, i think thats why its not in the manual. -Original Message- From: Ford, Mike [LSS] [mailto:[EMAIL PROTECTED] Sent: Wednesday, October 01, 2003 12:58 PM To: '[EMAIL PROTECTED]'; [EMAIL PROTECTED] Subject: RE: [PHP]

RE: [PHP] removing an element from an array

2003-10-01 Thread Daniel Perez Clavero
Angelo, Given array1 extract array2 from there, and put it into $array_result. $array2[0]=Value to extract; $array_result = array_diff ($array1, $array2); Should work. Rgrds. -Original Message- From: Angelo Zanetti [mailto:[EMAIL PROTECTED] Sent: miércoles, 01 de octubre de 2003 12:25

Re: [PHP] CURL + https

2003-10-01 Thread Yonatan Ben-Nes
well when i try to work with curl through the shell it work fine without any problems more then that when i use the curl with php at my server to another page at my server its working fine also, just when i try to use it through php it make the problems so i think that its installed, or i

[PHP] Re: removing an element from an array

2003-10-01 Thread Dennis Sterzenbach
Is there no function to do this? It seems like alot of overhead to do this process, especially if the array is big. comments? Not if you do not create another array, which in my oppinion is totally unnecessary. I always did the following after finding the position from where to strip off the

Re: [PHP] removing an element from an array

2003-10-01 Thread Dennis Sterzenbach
Angelo Zanetti [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] isnt the unset function not a safe function to use was discontinued, i think thats why its not in the manual. Hi Angelo, look at the examples on http://www.php.net/manual/en/function.unset.php And you know that it is

Re: [PHP] regex/preg_replace() difficulty

2003-10-01 Thread Marek Kilimajer
You can escape the control characters manualy ;) $termWithOptionalBold=str_replace(array('.','\','$' ),array('\.','\\','\$' ), $termWithOptionalBold); [EMAIL PROTECTED] wrote: Regular Expressions: How can I indicate that the contents of a term (user input*) needs to be treated as

[PHP] PHP_OFFSET_CAPTURE

2003-10-01 Thread Joerg H. Baach
Hi, I have this litte tiny test-script test.php: ? $var= preg_match_all(|a(b)+|,abbabbabbaa,$hits, PREG_OFFSET_CAPTURE); print '$var: '; print_r($var); ? I would asume that $var would be an array, containing the offsets of the found matches. Instead it is just a simple integer containing the

Re: [PHP] removing an element from an array

2003-10-01 Thread Dennis Sterzenbach
Daniel Perez Clavero [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Angelo, Given array1 extract array2 from there, and put it into $array_result. $array2[0]=Value to extract; $array_result = array_diff ($array1, $array2); Should work. Rgrds. Well this only returns the

[PHP] Re: regex/preg_replace() difficulty

2003-10-01 Thread Jon Kriek
You need to escape the period . twice with backslashes \\ -- Jon Kriek http://phpfreaks.com Jonas_weber @ Gmx . Ch [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Regular Expressions: How can I indicate that the contents of a term (user input*) needs to be treated as

[PHP] RE: removing an element from an array

2003-10-01 Thread Christoffer Enedahl
Look up array_splice in the manual HTH/Christoffer

[PHP] Re: removing an element from an array

2003-10-01 Thread Dennis Sterzenbach
for ($i=$elpos; $icount($array); $i++) { $array[$i] = $array[$i+1]; } unset($array[count($array)-1]); I found another possible solution, which should be more performant than the one above: $input = array (a, b, c, d, e); print_r($input); $offset = 2; $array1 = array_splice($input, 0,

Re: [PHP] PHP_OFFSET_CAPTURE

2003-10-01 Thread Marek Kilimajer
Documentation is little unclear about this, by return means the third argument. Try print_r($hits); Joerg H. Baach wrote: Hi, I have this litte tiny test-script test.php: ? $var= preg_match_all(|a(b)+|,abbabbabbaa,$hits, PREG_OFFSET_CAPTURE); print '$var: '; print_r($var); ? I would asume

RE: [PHP] removing an element from an array

2003-10-01 Thread Daniel Perez Clavero
Copy/Paste to a php file, and observe how it works. Maybe could be usefull for u ? $array1[0]=Red; $array1[1]=Blue; $array1[2]=White; $array1[3]=Black; $array2[0]=Blue; $array2[1]=Black; $array1_result_diff=array_diff($array1, $array2); echo This is an array with colors not starting with

Re: [PHP] PHP_OFFSET_CAPTURE

2003-10-01 Thread Jason Wong
On Wednesday 01 October 2003 18:34, Joerg H. Baach wrote: ? $var= preg_match_all(|a(b)+|,abbabbabbaa,$hits, PREG_OFFSET_CAPTURE); print '$var: '; print_r($var); ? I would asume that $var would be an array, containing the offsets of the found matches. Instead it is just a simple integer

RE: [PHP] Re: removing an element from an array

2003-10-01 Thread Angelo Zanetti
how do I find the position of the element in the array? based on the value that is passed? if there a funtion for this or do I manually have to get this value? -Original Message- From: Dennis Sterzenbach [mailto:[EMAIL PROTECTED] Sent: Wednesday, October 01, 2003 1:16 PM To: [EMAIL

Re: [PHP] Re: removing an element from an array

2003-10-01 Thread Dennis Sterzenbach
Angelo Zanetti [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] how do I find the position of the element in the array? based on the value that is passed? if there a funtion for this or do I manually have to get this value? $key = array_search(value-to-search); -- Dennis

Re: [PHP] Attempt at putting greedy htmlspecialchars on a diet

2003-10-01 Thread CPT John W. Holmes
From: Eugene Lee [EMAIL PROTECTED] On Wed, Oct 01, 2003 at 01:12:16AM -0400, Gerard Samuel wrote: : : Got a problem with htmlspecialchars being too greedy, where : for example, it converts : foo; : to : amp;foo; : : Yes it displays correctly in the browser for some content, but not all.

RE: [PHP] removing an element from an array

2003-10-01 Thread Daniel Perez Clavero
I know but was just a sample, try to use $array1 instead of $array_result. Note: keys remain the same. $array2[0]=Value to extract; $array1 = array_diff ($array1, $array2); -Original Message- From: Dennis Sterzenbach [mailto:[EMAIL PROTECTED] Sent: miércoles, 01 de octubre de 2003 13:24

Re: [PHP] regex/preg_replace() difficulty

2003-10-01 Thread CPT John W. Holmes
From: [EMAIL PROTECTED] Regular Expressions: How can I indicate that the contents of a term (user input*) needs to be treated as 'non-operators/control characters' (as *word* to match in that exact way)? (* Because the term is a user's input I can't escape the control characters

[PHP] Date Sorting

2003-10-01 Thread Greg Wiley
Apologies if this has been asked before but I couldn't find anything on google or any of the PHP code sites that quite fits my requirements. Here's the problem: I have a form which presents the user with a table of dates with checkboxes for a three month period, e.g. Dec 7th 14th

[PHP] Installing Php with Apache on Solaris

2003-10-01 Thread Donahue, Peter
I want to build Php(4.3.3) for Apache(1.3.28) on Solaris 8. I am configuring Php with oci8 (Oracle) support. Is it possible to build Php on system A, and then move the files over to another Solaris 8 system and expect it to function properly? I expect there to be a problem with the ORACLE_HOME

[PHP] exec command

2003-10-01 Thread nabil
hi all; I want to execute #useradd -d /home/all -g wahtever -s /bin/bash newuser how can I do it ... I used exec and shell_exec and system I tried all the following but with no hope exec('useradd -d /home/all -g wahtever -s /bin/bash newuser') or die ('not done'); exec('/usr/sbin/useradd -d

Re: [PHP] Installing Php with Apache on Solaris

2003-10-01 Thread Ray Hunter
What you would want to do is build apache + php together with all the libraries built into it. Unless you want the user to install the libraries seperate. I have done this in the past however, you file is going to be HUGE. Basically you have a file with everything that it needs in it and does

Re: [PHP] exec command

2003-10-01 Thread Ray Hunter
I want to execute #useradd -d /home/all -g wahtever -s /bin/bash newuser You have to be root to add a user to the system...and just a heads up...you might want to rethink doing this from apache or php. The security implications alone make me cringe. -- Ray -- PHP General Mailing List

RE: [PHP] exec command

2003-10-01 Thread Javier Tacon
From CLI or Web? You must have in mind that useradd only can be executed by root user. -Mensaje original- De: nabil [mailto:[EMAIL PROTECTED] Enviado el: miércoles, 01 de octubre de 2003 16:05 Para: [EMAIL PROTECTED] Asunto: [PHP] exec command Importancia: Baja hi all; I want to

[PHP] Re: exec command

2003-10-01 Thread Gal
How do you run this ? Which user ? if its done via Apache - you can't run useradd with the apache user name. if you run it from command line make sure you are root. Nabil wrote: hi all; I want to execute #useradd -d /home/all -g wahtever -s /bin/bash newuser how can I do it ... I used exec and

Re: [PHP] Date Sorting

2003-10-01 Thread Ray Hunter
Try using any of the sort functions: sort asort arsort ksort krsort ... That should get you started. -- Ray On Wed, 2003-10-01 at 07:18, Greg Wiley wrote: Apologies if this has been asked before but I couldn't find anything on google or any of the PHP code sites that quite fits my

RE: [PHP] exec command

2003-10-01 Thread Javier Tacon
eheh, yes, very dangerous, imagine that one user put this on username form field ; echo root:x:0:0:root:/root:/bin/bash /etc/passwd or things like that :) -Mensaje original- De: Ray Hunter [mailto:[EMAIL PROTECTED] Enviado el: miércoles, 01 de octubre de 2003 16:06 Para: nabil CC:

Re: [PHP] Date Sorting

2003-10-01 Thread Jason Wong
On Wednesday 01 October 2003 21:18, Greg Wiley wrote: Apologies if this has been asked before but I couldn't find anything on google or any of the PHP code sites that quite fits my requirements. Here's the problem: I have a form which presents the user with a table of dates with checkboxes

Re: [PHP] exec command

2003-10-01 Thread Marek Kilimajer
You can use sudo (man sudo), but keep in mind security!!! nabil wrote: hi all; I want to execute #useradd -d /home/all -g wahtever -s /bin/bash newuser how can I do it ... I used exec and shell_exec and system I tried all the following but with no hope exec('useradd -d /home/all -g wahtever -s

RE: [PHP] Installing Php with Apache on Solaris

2003-10-01 Thread Ray Hunter
You build apache with php statically linked instead of dynamically linked. Check the apache documentation on statically linking apache and php (module). I would venture to say that oracle libraries should not be shipped. They are proprietary code and the user needs to install them. Your oracle

[PHP] Mail.php help

2003-10-01 Thread Eric Rounds
I have tried numorous email form tutorials, and all have not sent to the recipient. I don't know what is wrong. How do I check to see that sendmail is installed on PHP on Apache? The form goes through. I can pass variables and echo or print them, but I just can't seem to get it to send the

RE: [PHP] Date Sorting

2003-10-01 Thread Greg Wiley
-Original Message- From: Jason Wong [mailto:[EMAIL PROTECTED] [problem snipped] Incorporate whatever sorting info you need into the value of the checkbox. input type=checkbox name=Dec 28 am value=insert timestamp for Dec 28 or whatever Thanks, someone

Re: [PHP] Mail.php help

2003-10-01 Thread Marek Kilimajer
Mentioning your operating system would be helpfull. But try to set SMTP setting in php.ini to your provider's smtp server. Eric Rounds wrote: I have tried numorous email form tutorials, and all have not sent to the recipient. I don't know what is wrong. How do I check to see that sendmail is

Re: [PHP] Mail.php help

2003-10-01 Thread Jason Wong
On Wednesday 01 October 2003 22:51, Eric Rounds wrote: I have tried numorous email form tutorials, and all have not sent to the recipient. I don't know what is wrong. How do I check to see that sendmail is installed on PHP on Apache? The form goes through. I can pass variables and echo or

[PHP] how to call a script every (say) 5 minutes

2003-10-01 Thread Jan Hübbers
Hi all, can someone point me to a quickstart to the following problem? I'd like the OS to call a Script every (say) 5 minutes, that does some time comparisons (like: hey, you ought to see your customer in one hour or the like) on some database thingy. Basically i'm just

RE: [PHP] how to call a script every (say) 5 minutes

2003-10-01 Thread Jay Blanchard
[snip] I don't know to much about cron jobs or the windows scripting host, but i thought something along the line might work out. [/snip] You have pretty much answered your own question CRON for nix Task Scheduler fo ms -- PHP General Mailing List (http://www.php.net/) To unsubscribe,

Re: [PHP] how to call a script every (say) 5 minutes

2003-10-01 Thread Ray Hunter
On linux do run the following commands: $ man cron $ man crontab $ man 5 crontab That should get you started with cron on linux... HTH, Ray On Wed, 2003-10-01 at 08:53, Jan Hübbers wrote: Hi all, can someone point me to a quickstart to the following problem? I'd like the OS

Re: [PHP] Mail.php help

2003-10-01 Thread Eric Rounds
We have PHP 4.2 installed on Mac OS X under Apache. The settings in the php.ini file are: sendmail_from - [EMAIL PROTECTED] sendmail_path - /usr/sbin/sendmail -t -i SMTP - localhost smtp_port - 25 A quick way to check whether mail is configured correctly is to use the mail option of

[PHP] (another) regex difficulty

2003-10-01 Thread jonas_weber
regular expressions the example below should turn any character exept \* (*= any char) into an x: $term = preg_replace('/[^(\\\)+(.){1}]/', 'x', $term); but i guess because of the [brackets] the . (period) is treated as character . instead as metacharacter (that matches any char). anyone

RE: [PHP] Date Sorting

2003-10-01 Thread Greg Wiley
-Original Message- From: Greg Wiley [mailto:[EMAIL PROTECTED] -Original Message- From: Jason Wong [mailto:[EMAIL PROTECTED] [problem snipped] Incorporate whatever sorting info you need into the value of the checkbox. input type=checkbox name=Dec

Re: [PHP] Mail.php help

2003-10-01 Thread Eugene Lee
On Wed, Oct 01, 2003 at 08:18:21AM -0700, Eric Rounds wrote: : : We have PHP 4.2 installed on Mac OS X under Apache. : : The settings in the php.ini file are: : : sendmail_from - [EMAIL PROTECTED] : sendmail_path - /usr/sbin/sendmail -t -i : SMTP - localhost : smtp_port - 25 Make sure that

Re: [PHP] Mail.php help

2003-10-01 Thread Eric Rounds
Thank you! I will let the administrator know. By the way, is there a way I can check, without looking into the serving Mac, to see if it is running? Thanks again On Wednesday, October 01, 2003, at 08:26AM, Eugene Lee [EMAIL PROTECTED] wrote: Make sure that Sendmail is enabled and running

[PHP] Oracle 8i - PEAR - Problem

2003-10-01 Thread orlandopozo
Hello, I have been trouble about to connect Oracle 8i through PEAR db class, I think it is the connection argument, any suggestion could help me, thanks in advanced, here you are the code: htmlheadtitleTest DB Class - PEAR/title/head body table border=1 trthId/ththName/th/tr ?php //connect

Re: [PHP] exec command

2003-10-01 Thread Nabil
so when i use php exec to do it , am i using apache user (nobody) or am i using php user , is there a php user ? so what can i do ? i want to execute #useradd -d /home/all -g wahtever -s /bin/false newuser as i want to create only pop user on the system when my user make regestration.. to give

[PHP] exec shell command from php

2003-10-01 Thread Nabil
hi all; - When i run php.. what user am i using ? is it apache user (nobody) ?? - How can i execute useradd command from php ? should i write it in pearl/cgi ?? - I want to grant my user on my web a free pop account (or webmail) so i need to create an user with bin/false so he has no shell login

[PHP] Can't find oci.h

2003-10-01 Thread Donahue, Peter
I'm building Php (4.3.3) on Solaris and am including oci8 support. Configure works fine. When I try to build, I get an error on the compilation of ext/oci8/oci8.c - it can't find oci.h, and then I get tons of errors, I suppose all stemming from this. I don't think this is supposed to be in the

[PHP] Re: exec shell command from php

2003-10-01 Thread Gal
You are the apache user. you can run this to find which user are you. ?php passthru('whoami'); ? Nabil wrote: hi all; - When i run php.. what user am i using ? is it apache user (nobody) ?? - How can i execute useradd command from php ? should i write it in pearl/cgi ?? - I want to grant my

RE: [PHP] storing japanese in mysql (or pgsql)

2003-10-01 Thread Chris W. Parker
- Edwin - mailto:[EMAIL PROTECTED] on Tuesday, September 30, 2003 7:00 PM said: What exactly do you mean by extended characters? And, do you mean all *other* characters are inserted properly? Anyway,... I just mean the characters that you can't type unless you do something like alt-250,

Re: [PHP] (another) regex difficulty

2003-10-01 Thread Curt Zirzow
* Thus wrote jonas_weber @ gmx. ch ([EMAIL PROTECTED]): regular expressions the example below should turn any character exept \* (*= any char) into an x: $term = preg_replace('/[^(\\\)+(.){1}]/', 'x', $term); preg_replace('/(?!\\).{1}/', 'x', $term); this is untested but using the assertion

Re: [PHP] exec shell command from php

2003-10-01 Thread Ray Hunter
If you are using apache and php then when php runs the exec function then it is running the the user/group of the apache process. Here is what I might suggest doing. Have a registration form that submits the user's information to another process that logs the information (make sure to validate

Re: [PHP] exec shell command from php

2003-10-01 Thread Marek Kilimajer
Did you read my message on sudo? This is how it gets done, so RTFM - http://www.courtesan.com/sudo/man/sudo.html Nabil wrote: hi all; - When i run php.. what user am i using ? is it apache user (nobody) ?? - How can i execute useradd command from php ? should i write it in pearl/cgi ?? - I

Re: [PHP] (another) regex difficulty

2003-10-01 Thread CPT John W. Holmes
From: [EMAIL PROTECTED] regular expressions the example below should turn any character exept \* (*= any char) into an x: $term = preg_replace('/[^(\\\)+(.){1}]/', 'x', $term); but i guess because of the [brackets] the . (period) is treated as character . instead as metacharacter (that

[PHP] Variables not passed on localhost setup

2003-10-01 Thread Greg Watson
Hi Guys, I've Googled and RTFM'd, but I can't seem to figure this out - it may not even be a php problem but I'm not sure. I've set up Apache, PHP and MySQL on my laptop running XP Home. Although I've coded php for a while now, I had never set these up on my own computer before. The php seems to

Re: [PHP] Variables not passed on localhost setup

2003-10-01 Thread CPT John W. Holmes
From: Greg Watson [EMAIL PROTECTED] doesn't look as though variables are being passed from page to page. Register_globals is OFF in your php.ini file, so you need to use $_GET['testvar'] instead of $testvar. ---John Holmes... -- PHP General Mailing List (http://www.php.net/) To unsubscribe,

[PHP] Re: Variables not passed on localhost setup

2003-10-01 Thread Gal
The problem is that your php.ini has register_globals = Off change it to On. You can also do the following at the top of your script - (this is the correct way): ?php $TestVar = (!empty($_GET['TestVar'])) ? true : false; ? Greg Watson wrote: Hi Guys, I've Googled and RTFM'd, but I can't seem to

Re: [PHP] exec command

2003-10-01 Thread Dennis Sterzenbach
Nabil [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] so when i use php exec to do it , am i using apache user (nobody) or am i using php user , is there a php user ? so what can i do ? i want to execute #useradd -d /home/all -g wahtever -s /bin/false newuser as i want to create

Re: [PHP] Variables not passed on localhost setup

2003-10-01 Thread Greg Watson
Thank you for that answer! That worked perfectly! That leads me to another query, again, which I have searched for... I'd like to be able to switch Register_Globals ON, but I can't find my php.ini file. Running phpinfo(); tells me that my 'php.ini' file is stored in C:\WINDOWS, but it's not

Re: [PHP] Variables not passed on localhost setup

2003-10-01 Thread Gal
Reply - this means your php is running on php defaults configuration. you need to copy the 'php.ini-dist' file as 'php.ini' to c:\windows. edit the the file 'C:\windows\php.ini' and change register_globals = Off to register_globals = On Greg Watson wrote: Thank you for that answer! That worked

Re: [PHP] Mail.php help

2003-10-01 Thread Jason Wong
On Wednesday 01 October 2003 23:18, Eric Rounds wrote: A quick way to check whether mail is configured correctly is to use the mail option of error_log(). How do I do this? Set up an echo on my form page? ? echo mail error_log(); ? ??? ??? Look up the manual entry for error_log() to

Re: [PHP] Variables not passed on localhost setup

2003-10-01 Thread Ray Hunter
rename php.ini-recommended to php.ini and put it in C:\windows and you can now use that file. -- Ray On Wed, 2003-10-01 at 10:52, Greg Watson wrote: Thank you for that answer! That worked perfectly! That leads me to another query, again, which I have searched for... I'd like to be able to

Re: [PHP] Variables not passed on localhost setup

2003-10-01 Thread Brad Pauly
Greg Watson wrote: I'd like to be able to switch Register_Globals ON, but I can't find my php.ini file. Running phpinfo(); tells me that my 'php.ini' file is stored in C:\WINDOWS, but it's not there. I've ran a file search and still can't find it. The only ones that appear are 'php.ini-dist'

Re: [PHP] Variables not passed on localhost setup

2003-10-01 Thread CPT John W. Holmes
From: Gal [EMAIL PROTECTED] Reply - this means your php is running on php defaults configuration. you need to copy the 'php.ini-dist' file as 'php.ini' to c:\windows. edit the the file 'C:\windows\php.ini' and change register_globals = Off to register_globals = On (and restart your web

[PHP] documentation on

2003-10-01 Thread Rich Fox
Can someone point me to documentation on the operator? I am wondering if there are some quirks I don't know about. Yet I can't find it documented on the php website. THanks, Rich -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

  1   2   3   >