Re: [PHP] Mail.php help

2003-10-01 Thread Jason Wong
On Thursday 02 October 2003 01:28, Eugene Lee wrote: > On Wed, Oct 01, 2003 at 08:31:49AM -0700, Eric Rounds wrote: > : On Wednesday, October 01, 2003, at 08:26AM, Eugene Lee wrote: > : >Make sure that Sendmail is enabled and running on OS X. By default, > : >Sendmail is disabled on OS X. > : > :

Re: [PHP] Variables not passed on localhost setup [FIXED]

2003-10-01 Thread Greg Watson
Thank you all so much! That sorted it! Cheers! I didn't see that before because I'm blind. Metorphorically speaking. Put it down to code-blindness from staring at the screen too long. Weird thing is, my searches took me to http://www.php.net/configuration, which didn't mention the moving ini fi

[PHP] question on set_uid

2003-10-01 Thread R'twick Niceorgaw
Hi all, I'm trying to run a php application in cgi mode which will use posix_set_uid function to set its user id to different users. I have set the user and group of the program to root:root and set the permissions as -rws--sr-x1 root root 1096 Oct 1 12:58 test2.cgi here's my

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

2003-10-01 Thread Gerard Samuel
CPT John W. Holmes wrote: 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 : &foo; : : Yes it displays correctly in the browser for some

[PHP] upapck() woes

2003-10-01 Thread Jay Blanchard
I have kibitzed and kaboodles all morning seeking the answer to the unpack question. I need to unpack some binary data and make sense of it. Unfortunately I am unsure how the binary for this was created. I have tried converting ascii but I am thinking (after much frustration) that I should go hex a

Re: [PHP] Mail.php help

2003-10-01 Thread Eugene Lee
On Wed, Oct 01, 2003 at 08:31:49AM -0700, Eric Rounds wrote: : : On Wednesday, October 01, 2003, at 08:26AM, Eugene Lee wrote: : > : >Make sure that Sendmail is enabled and running on OS X. By default, : >Sendmail is disabled on OS X. : : Thank you! I will let the administrator know. : : By th

[PHP] Re: documentation on "<<<"

2003-10-01 Thread Dennis Sterzenbach
Sorry forgot about the heredoc, just waste my post unterneath -- Dennis "Dennis Sterzenbach" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > "Rich Fox" <[EMAIL PROTECTED]> wrote in message > news:[EMAIL PROTECTED] > > Can someone point me to documentation on the <<< operator? I am

RE: [PHP] documentation on "<<<"

2003-10-01 Thread Chris W. Parker
Rich Fox on Wednesday, October 01, 2003 10:08 AM said: > 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. I don't know the answer to your que

Re: [PHP] documentation on "<<<"

2003-10-01 Thread Eugene Lee
On Wed, Oct 01, 2003 at 01:07:35PM -0400, Rich Fox wrote: : : 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. Try searching for "heredoc". -- PHP General Mailing List (h

[PHP] Re: documentation on "<<<"

2003-10-01 Thread Dennis Sterzenbach
"Rich Fox" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > 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 I've never seen a <<< operator

[PHP] OpenSSL questions

2003-10-01 Thread Carlos Serrao
Dear all, I have some questions concerning the usage of OpenSSL within PHP. I'm a litle confused by the fact that I couldn't find any function capable of verifying if a X.509 certificate is valid or not. For instance, I wish to develop some applications were some X.509 certificates will be exchan

Re: [PHP] (another) regex difficulty

2003-10-01 Thread CPT John W. Holmes
From: <[EMAIL PROTECTED]> > it's pretty simple: i need a regex that matches any character in a > string except "\*" (* stands for any char that follows the "\"). > > example: "this is \ba test" > should match: this a is test > > isn't there a way to do this? Turn that around. What you need to do

Re: [PHP] (another) regex difficulty

2003-10-01 Thread jonas_weber
01.10.03 at 18:17 Curt Zirzow wrote: preg_replace('/(?01.10.03 at 18:27 CPT John W. Holmes wrote: $term = preg_replace('/[^\\]./','x',$term); they don't work (thanks anyway) it's pretty simple: i need a regex that matches any character in a string except "\*" (* stands for any char that follows t

[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

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 w

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' an

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 abl

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_

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 perf

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 th

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

[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): $TestVar = (!empty($_GET['TestVar'])) ? true : false; ?> Greg Watson wrote: Hi Guys, I've Googled and RTFM'd, but I can't seem to fig

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 unsubscr

[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 b

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 metac

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 want

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 al

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('/(?http://php.net/manual/en/pcre.pattern.syntax.php Curt --

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

2003-10-01 Thread Chris W. Parker
- Edwin - 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-2

[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. 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 user on my web a free pop acco

[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 Ora

[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 b

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 him

[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: Test DB Class - PEAR IdName getMessage()); } //issue the query $sql ="SELECT * FROM test O

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 runnin

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 Sen

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. > > > >> name="Dec 2

[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). anyo

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 error_lo

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 t

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, vi

[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] 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 p

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 ins

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. > > name="Dec 28 am" > value=""> > Thanks, someone else suggested this and I think this is the met

[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 messa

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 li

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 /b

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 > checkbo

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 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 > requi

[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 sh

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 ex

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 (http

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 not

[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 /hom

[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 pa

[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

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 man

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] 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 > : &foo; > : > : Yes it displays correctly in the browser for some content, but

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 S

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 PROTECT

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 i

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 \"B\""; echo ""; echo var_dump($array1_result_diff); echo ""; echo ""; echo ""; $array2_result_diff=array_intersect($array1, $array2); echo "This is an array with colors starting with \"B\""; echo ""; echo var_dump($

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: I would asume that $var would be an array, containing the offsets of the found matches. Instead it is just a simple intege

[PHP] Re: removing an element from an array

2003-10-01 Thread Dennis Sterzenbach
> for ($i=$elpos; $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, $offset); $ar

[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: 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 'non-o

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

[PHP] PHP_OFFSET_CAPTURE

2003-10-01 Thread Joerg H. Baach
Hi, I have this litte tiny test-script test.php: 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 number of matches. Pretty much looks like preg_match_all is not returning the right thing. [EMAIL PROTECTE

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 'non-

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

[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] 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 mista

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] 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] remo

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 pag

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 ar

[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 = preg_rep

[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.

[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. Server side. In the ser

[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 crea

[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

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 P

[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] 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 ins

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 diff

[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

[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 compo

[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 runni

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 somet

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 using

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 t

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 i

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 (h

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] 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 ti

[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] 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, yo

<    1   2   3   >