[PHP] http_post

2003-02-28 Thread Diana Castillo
Hi , I am trying the following code but get no response from the server, can someone tell me what I am doing wrong? thank you. "obese bob", "age" => "20") // ); $urlencoded = ""; while (list($key,$value) = each($vars)) $urlencoded.= urlencode($key) . "=" . urlencode($value) .

Re: [PHP] virtual() test

2003-02-28 Thread Ernest E Vogelsinger
At 03:09 28.02.2003, John W. Holmes said: [snip] >Can anyone with Apache verify that you can pass arguments inside of a >virtual() call? Something like: > >Virtual("script.pl?id=1") > >And have $id available within script.pl. > >I don't have access to an Apac

Re: [PHP] Read

2003-02-28 Thread Ernest E Vogelsinger
At 05:11 28.02.2003, Karl James said: [snip] >Hey does anyone know if you can use PHP and ASP 3.0 or I.I.S on the same >hard drive on XP pro? > >I need to know for school, because I m taking classes for both languages. [snip]---

Re: [PHP] Can't run PHP cli script from Cron

2003-02-28 Thread Ernest E Vogelsinger
At 05:30 28.02.2003, Justin Michael Couto said: [snip] >Here is my crontab entry: > >* * * * * /path/to/file/file_name.php > >I also have > >* * * * * /path/to/file/bash_test_script [snip] Did you try to run the p

[PHP] quick check - by ref vs by value with objects

2003-02-28 Thread neko
Hi guys, If I have an object that has another object as a variable (eg, a dbConn object), then I create another object and pass this dbConn in the constructor, if that second class sets that arg to it's own variable, is it true in 4.3.1 that they will NOT be sharing the same object reference? I t

[PHP] http_post

2003-02-28 Thread Diana Castillo
I also tried the following code and get no response, can anyone tell me what I did wrong? set_port("8080"); # #Set the filename of the URI you wish topost to. see also set_action() #ie. # # set_action(string ACTION) #Returns true on success. #$a->set_action("http://www.someh

[PHP] Mysql Date problem...weird..

2003-02-28 Thread Dhaval Desai
Hello, Please read the below query and the information that I have mentioned. This is really weird... select date_format(date_add(arrivaldate1, INTERVAL nights1 DAY), '%Y- %m-%d') as dept_date1 from mytable where ('dept_date1' BETWEEN '2003-02-01' AND '2003-02-10') When it goes to databa

[PHP] Mysql Date got prob!

2003-02-28 Thread Dhaval Desai
Hello, As related to my earlier question select date_format(date_add(arrivaldate1, INTERVAL nights1 DAY), '%Y- %m-%d') as dept_date1 from mytable where ('dept_date1' BETWEEN '2003-02-01' AND '2003-02-10') The above query is valid but returns 0 because 'dept_date1' is treated as a string. I want

Re[3]: [PHP] Help!! with array's Please

2003-02-28 Thread Tom Rogers
Hi, Friday, February 28, 2003, 5:39:39 PM, you wrote: RK> Hello Tom, RK> Thursday, February 27, 2003, 7:39:52 PM, you wrote: TR>> Hi, TR>> Friday, February 28, 2003, 12:20:38 PM, you wrote: RK>>> I really need somebody to help me with this I am totally lost on what RK>>> to do RK>>> I need a

[PHP] posting from php

2003-02-28 Thread Diana Castillo
I found an excellent article and explanation http://zend.com/zend/spotlight/mimocsumissions.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Capitalising Personal Names

2003-02-28 Thread Geoff Caplan
Hi folks, I need to clean up the capitalisation of user-entered personal names. Once you start thinking about it, you realise it is a non-trivial issue, but previous discussions on the list presented only very partial solutions. In Perl, there are Cpan modules such as namecase and nameparse whic

Re: [PHP] Preventing the "hijacking" of pictures

2003-02-28 Thread MIKE YRABEDRA
on 2/27/03 10:18 AM, merlin at [EMAIL PROTECTED] wrote: > I recently discovered the reason why the traffic is rising so high on my > server. Some people are "stealing" bandwidth. They include > the link of an image into a forum posting. Now everytime somebody reads this > threat on the other site

RE: [PHP] Preventing the "hijacking" of pictures

2003-02-28 Thread Jon Haworth
Hi, > $_SERVER[HTTP_REFERRER] does not help. Not sure if you've got it that way in your code, but that might be because it's spelt "HTTP_REFERER" - yes, it's wrong, you're right, but you have to live with it :-) I think you may also need to quote it like this, but I'm not sure: $_SERVER['HTT

Re: [PHP] Capitalising Personal Names

2003-02-28 Thread Danny Shepherd
Hi, Well it's hardly rocket science - a flick through the manual and I came up with : $name=ucwords(strtolower($name)); HTH Danny. - Original Message - From: "Geoff Caplan" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, February 28, 2003 10:31 AM Subject: [PHP] Capitalising

[PHP] sessions and mysql: easy question

2003-02-28 Thread php
i'm using session on my page basically my need is this: certain values wil be set for every visitor some for only certain visitors (for example: only if they fill out their name&adress) when the session is closed i want the ones that have those values filled out (let's say their name&address) sto

Re: [PHP] Capitalising Personal Names

2003-02-28 Thread Justin French
What about DeSilva And McSomething? Justin on 28/02/03 10:11 PM, Danny Shepherd ([EMAIL PROTECTED]) wrote: > Hi, > > Well it's hardly rocket science - a flick through the manual and I came up > with : > > $name=ucwords(strtolower($name)); > > HTH > > Danny. > > - Original Message -

RE: [PHP] Capitalising Personal Names

2003-02-28 Thread Jon Haworth
Hi Danny, > > I need to clean up the capitalisation of user-entered personal names. > > Well it's hardly rocket science - a flick through the manual and I > came up with : > $name=ucwords(strtolower($name)); While that would work in many cases, how do you catch exceptions such as the following?

[PHP] MYSQL_CLIENT_COMPRESS not working?

2003-02-28 Thread Sebastian Stadtlich
Hi all Is this a Bug? or a feature that i don't understand ? This is what I do: mytest.php : -- $mycmsconn=mysql_connect("$dbip","$dblogin","$dbpass",false,MYSQL_CLIENT _COMPRESS) ; $mycmsdataquery="SELECT * FROM foo"; $mycmsdataresult = mysql_query($mycmsdataquery,$mycmsconn

[PHP] Capitalising Personal Names

2003-02-28 Thread Geoff Caplan
Danny, DS> Well it's hardly rocket science - I'm afraid it's a bit more complicated than that. There are hypenated names, names with lower-case words like de and von, Irish style names (O'Connell), Scots style names (MacDonald, McCalman) etc etc. And there are exceptions in most of these cases to

Re: [PHP] Capitalising Personal Names

2003-02-28 Thread Joshua Moore-Oliva
What is someone spells their name Desilva? On February 28, 2003 06:21 am, Justin French wrote: > What about DeSilva And McSomething? > > Justin > > on 28/02/03 10:11 PM, Danny Shepherd ([EMAIL PROTECTED]) wrote: > > Hi, > > > > Well it's hardly rocket science - a flick through the manual and I cam

Re: [PHP] Capitalising Personal Names

2003-02-28 Thread Joshua Moore-Oliva
Make a perl script that does what you want and use exec to pipe to it then :) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re[2]: Capitalising Personal Names

2003-02-28 Thread Geoff Caplan
Scott, SM> can you list the conditions in pseudocode where you want to change a SM> lower-case character to an uppercase character? This is part of the problem. There are a lot of complex rules in different cultures with many exceptions- and I can't find them documented anywhere. Even once you ha

Re: [PHP] Capitalising Personal Names

2003-02-28 Thread Awlad Hussain
Have a javascript alert like "Are you 100% sure you haven't typed your name wrong :)" Other option is to create name dictionary then compare.. - Original Message - From: "Joshua Moore-Oliva" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, February 28, 2003 11:35 AM Subject: Re:

Re: [PHP] Preventing the "hijacking" of pictures

2003-02-28 Thread merlin
Thanx! This is an excellent solution! Merlin "Daniel Kushner" <[EMAIL PROTECTED]> schrieb im Newsbeitrag news:[EMAIL PROTECTED] > Hi Merlin, > > What you are describing is named Hot Linking. A quick search on Google gave me this: > http://www.htmlbasix.com/disablehotlinking.shtml > > > Regards,

[PHP] Re: PHP+COM (formating excel)

2003-02-28 Thread DJ GJ
thanx for no response. forget it. It was realy so simple. > Hi, All, > > I would be very appreciated if you could help me to find information about > formating excel cells (like merge cells, Autofit columns, etc.). I am using > excel from php like com object. > Thanks in advance. > > gytis > >

Re: [PHP] + com (formating excel cells)

2003-02-28 Thread DJ GJ
thanks for no response. forget it please. "Dj Gj" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > hi, all, > > does anybody know: > how to merge excel cells from php code? > how to make excel columns "autofited" from php code? > where to find the information about all of this kind tr

Re[2]: [PHP] Capitalising Personal Names

2003-02-28 Thread Geoff Caplan
Joshua, JMO> Make a perl script that does what you want and use exec to pipe to it then :) This is certainly a sensible solution. But I'd have to learn enough about Perl to do it. And I think it would be slow for large volumes of names - exec seems to be slow in general, for some reason. It woul

Re: [PHP] Capitalising Personal Names

2003-02-28 Thread Joshua Moore-Oliva
well, as a last resort if you can find the perl module that does that conver the code to php... it's probably just a bunch of regular expressions, and php has a perl compat regular expressions interface.. Josh. On February 28, 2003 07:01 am, Geoff Caplan wrote: > Joshua, > > JMO> Make a perl s

Re: [PHP] Capitalising Personal Names

2003-02-28 Thread Chris Hayes
> What is someone spells their name Desilva? > > On February 28, 2003 06:21 am, Justin French wrote: > > What about DeSilva And McSomething? I found another thread on this subject here: http://www.phpbuilder.com/mail/php-general/2002102/2138.php, but i did not read it. Looking at all the exampl

RE: [PHP] Re: PHP+COM (formating excel)

2003-02-28 Thread John W. Holmes
> thanx for no response. > forget it. > It was realy so simple. You're welcome. Really, it was nothing. How about sharing the solution with the group that way you help other people? ---John W. Holmes... PHP Architect - A monthly magazine for PHP Professionals. Get your copy today. http://www.p

[PHP] rand/mt_rand oddity

2003-02-28 Thread David Otton
I wrote a simple function to randomize the order of an array. In pseudo-code, it looks like this : def _array_rand (a) : for i = 0 to len (a) j = rand (len (a)) temp = a[i] a[i] = a[j] a[j] = temp return(a) Can anyone tell me if I'm missing the obvious here

RE: [PHP] Capitalising Personal Names

2003-02-28 Thread John W. Holmes
> DS> Well it's hardly rocket science - > > I'm afraid it's a bit more complicated than that. There are hypenated > names, names with lower-case words like de and von, Irish style names > (O'Connell), Scots style names (MacDonald, McCalman) etc etc. And > there are exceptions in most of these case

RE: [PHP] virtual() test

2003-02-28 Thread John W. Holmes
> At 03:09 28.02.2003, John W. Holmes said: > [snip] > >Can anyone with Apache verify that you can pass arguments inside of a > >virtual() call? Something like: > > > >Virtual("script.pl?id=1") > > > >And have $id available within script.pl. > > > >I don't ha

RE: Re[2]: [PHP] virtual() test

2003-02-28 Thread John W. Holmes
> TR> Friday, February 28, 2003, 12:09:30 PM, you wrote: > JWH>> Can anyone with Apache verify that you can pass arguments inside of > a > JWH>> virtual() call? Something like: > > JWH>> Virtual("script.pl?id=1") > > JWH>> And have $id available within script.pl. > > JWH>> I don't have access to

[PHP] open /dev/port: operation not permitted

2003-02-28 Thread ati ati
Hello all, I've installed PHP 4.1.2 to the Apache Web server, and I wanted to control IO ports. But I always got "error: Cannot open /dev/port: Operation not permitted " or "error: ioperm: Operation not permitted " I played with the httpd.conf - ... ... no success. I have root access. Any

[PHP] fsockopen() with SSL?

2003-02-28 Thread Michael Temeschinko
Hello, is it possible to fetch a Website via SSL? Greetings fom Germany Micha -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] fsockopen() with SSL?

2003-02-28 Thread Ernest E Vogelsinger
At 14:11 28.02.2003, Michael Temeschinko said: [snip] >Hello, >is it possible to fetch a Website via SSL? [snip] Sure - have a look at cUrl... -- >O Ernest E. Vogelsinger (\)ICQ #13394035 ^ ht

Re: [PHP] Read

2003-02-28 Thread Bryan Brannigan
yes - Original Message - From: Karl James To: [EMAIL PROTECTED] Sent: Thursday, February 27, 2003 11:11 PM Subject: [PHP] Read Hey does anyone know if you can use PHP and ASP 3.0 or I.I.S on the same hard drive on XP pro? I need to know for school, because I'm tak

Re[4]: [PHP] virtual() test

2003-02-28 Thread Tom Rogers
Hi, Friday, February 28, 2003, 10:41:24 PM, you wrote: >> TR> Friday, February 28, 2003, 12:09:30 PM, you wrote: >> JWH>> Can anyone with Apache verify that you can pass arguments inside JWH> of >> a >> JWH>> virtual() call? Something like: >> >> JWH>> Virtual("script.pl?id=1") >> >> JWH>> And h

[PHP] passing arrays to a session-variable

2003-02-28 Thread Michiel van Heusden
I'm using this script to test passing arrays to a Session-variable. "; echo $array2[0]; ?> method 1 doesn't work until another PHP is loaded, only then the var is ouputted... method 2 works fine, but i'd prefer using $_SESSION all the way instead of session_register any suggestions? grace michie

[PHP] exec/passthru: io operation not permitted

2003-02-28 Thread ati ati
Hello all, I've installed PHP 4.1.2 to the Apache Web server, and I wanted to control IO ports. But I always got "error: Cannot open /dev/port: Operation not permitted " or "error: ioperm: Operation not permitted " I played with the httpd.conf - ... ... no success. I have root access. Any h

Re: [PHP] passing arrays to a session-variable

2003-02-28 Thread Joshua Moore-Oliva
Try looking at this page http://www.php.net/manual/en/function.serialize.php Josh. On February 28, 2003 08:22 am, Michiel van Heusden wrote: > I'm using this script to test passing arrays to a Session-variable. > > session_start(); > > // method 1 > $_SESSION['array1'] = array("item1", "item2");

[PHP] Mailling question

2003-02-28 Thread Mathieu Dumoulin
Allright, we managed to get to send emails thru an SMTP, but now we need to know which email DID get to the recipient and which didn't. Our smtp class supports basic error message but as soon as the message is outbound from this server, which is most oftenly the case, the class always returns succe

Re[2]: [PHP] Capitalising Personal Names

2003-02-28 Thread Geoff Caplan
John, JWH> The best solution I see is to start building yourself some JWH> arrays... Looks like a sensible approach, at least for the kind of rough and ready solution I need. My only comment would be to make use of the placement of the words. If the names are fielded ( first_name, middle_name, l

[PHP] solution to bad phpDocumentor tarball in windows

2003-02-28 Thread Greg Beaver
Hi all, We have finally isolated the problem with bad tarballs of phpDocumentor releases in windows. The tarball is fine. A user who was getting files with cut off names was unzipping using PKzip, switched to Winzip and the tarball extraction worked! Here's the complete information: Thanks

[PHP] SORT_NUMERIC

2003-02-28 Thread Jim Long
Hi, Does anyone know how to make the flag "sort_numeric" work? Will it work with asort? asort ($numeric_array, SORT_NUMERIC); I've tried this but it looks like it's having problems with the comma in big numbers. I'm not absolutely sure, but it looks like it's ignoring everything after a comma

[PHP] Sorting a file

2003-02-28 Thread Beauford.2002
I have the file below which I need to sort by player and then rewrite it, this file will then be used as part of another part of my input process on my site. A couple of things. I am able to read the file into an array using 'file', I think, but I am not able to sort it. I have tried different vari

[PHP] authentication problem

2003-02-28 Thread Oliver Witt
Hi again, My problem was about authentication without the default popup, but with a form that submits the credentials. I still didn't get it to work, so I'd like to know if anyone has ever done anything like that. I just can't get it to work right and I'd like to see a working script thx, Olive

[PHP] strip http headers

2003-02-28 Thread Diana Castillo
is there any predefined procedure to strip http headers from a response? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Help with Sessions

2003-02-28 Thread Poon, Kelvin (Infomart)
Hi I just have a little problem with sessions. my code: TEST \n"; echo "\n"; echo "\n"; } ?> my error msgs: Warning: Cannot send session cookie - headers already sent by (output started at d:\apache_docroots\internal.infomart.ca\infodesk\test.php:6) in d:\apache_docroots\internal.infom

Re: [PHP] Sorting a file

2003-02-28 Thread Ernest E Vogelsinger
At 16:41 28.02.2003, Beauford.2002 spoke out and said: [snip] >I have the file below which I need to sort by player and then rewrite it, >this file will then be used as part of another part of my input process on >my site. A couple of things. I am able to rea

Re: [PHP] strip http headers

2003-02-28 Thread Ernest E Vogelsinger
At 16:46 28.02.2003, Diana Castillo spoke out and said: [snip] >is there any predefined procedure to strip http headers from a response? [snip] A valid HTTP response is a MIME message comprised of two parts - the head

Re: [PHP] Capitalising Personal Names

2003-02-28 Thread Dave O'Meara
Maybe a script that tests the entry, and asks the user to reconfirm nonstandard spelling and capitalization. Something like... if ($name != ucwords($name) { //script that suggests ucwords($name) as a possible correction //but allows the user to confirm nonstandard capitalization scheme //by re-en

Re: [PHP] Help with Sessions

2003-02-28 Thread Tom Rogers
Hi, Saturday, March 1, 2003, 1:54:24 AM, you wrote: PKI> Hi PKI> I just have a little problem with sessions. PKI> my code: PKI> PKI> TEST PKI> PKI> PKI> session_start(); PKI> if ($submit) { PKI> echo 'Hello '.$_SESSION['ID']; PKI> } else { PKI> $_SESSION['ID']=2; PKI> echo "\n"; PKI>

[PHP] Spaces collapsed in database

2003-02-28 Thread Alberto Brea
Hi, list I had certain information in a text file, which showed ok upon fopen() and parsing, but when I put it into a MySQL database, instead of echoing directly into the browser, the spaces in the strings collapsed, so that "One Two & Three" became "OneTwo&Three" in the database table. When I r

RE: [PHP] Help with Sessions

2003-02-28 Thread Poon, Kelvin (Infomart)
Thanks everyone! it worked fine now! -Original Message- From: Tom Rogers [mailto:[EMAIL PROTECTED] Sent: Friday, February 28, 2003 10:58 AM To: Poon, Kelvin (Infomart) Cc: '[EMAIL PROTECTED]' Subject: Re: [PHP] Help with Sessions Hi, Saturday, March 1, 2003, 1:54:24 AM, you wrote: PKI>

[PHP] Re: PHP graphs

2003-02-28 Thread Steve Magruder
"K" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hi guys, > I would like to read the IP address from a PC that connects to my web site. > Any function does that in PHP? SuperGlobal var in >= 4.1.0: $_SERVER['REMOTE_ADDR'] Global var in < 4.1.0: $HTTP_SERVER_VARS['REMOTE_ADDR'] S

RE: [PHP] Destroying COM objects

2003-02-28 Thread Sterling Anderson
Tried setting it to NULL and unset(com_onject). Neither are working. I'm stumped. On Thu, 27 Feb 2003 23:35:23 +, Rich Gray wrote: >> When using the COM functions in PHP what is the equivalent of >> ASPs "set object=nothing"? >> I am using the Crystal Report objects and I cannot seem to >>

RE: [PHP] authentication problem

2003-02-28 Thread Daniel Masson
Is it the Win IIS authentication system ??? or apache .htaccess Daniel E Massón. Ingeniero de desarrollo [EMAIL PROTECTED] Imagine S.A. Su Aliado Efectivo en Internet www.imagine.com.co (57 1)2182064 - (57 1)6163218 Bogotá - Colombia __

[PHP] How can I detetct if session cookies are enabled?

2003-02-28 Thread Don
Hi, I have a site that requires a user to login in for extended function. The site uses sessions. I note that if a user configures his/her browser block all cookies, he/she will not be able to navigate the extended part of the site. Is there a way (PHP code if possible please) to verify if sess

[PHP] Any function that gives the coordinates of the cursor?

2003-02-28 Thread Minghua Yao
Hi, all, Are there any functions in PHP which can give us the coordinates of the cursor when we click the mouse? Thanks for the replys. Minghua

RE: [PHP] Can't run PHP cli script from Cron

2003-02-28 Thread Justin Michael Couto
I can run it from the shell prompt perfectly fine. I just won't run from cron. I do have the statement: #!/usr/local/php In the beginning of my script. Like I said it works perfect when I run it by hand from the shell prompt. I think the reason it is not running has to do with the cron envi

Re: [PHP] Sorting a file

2003-02-28 Thread Beauford.2002
Yep, that did it. Thanks. - Original Message - From: "Ernest E Vogelsinger" <[EMAIL PROTECTED]> To: "Beauford.2002" <[EMAIL PROTECTED]> Cc: "PHP General" <[EMAIL PROTECTED]> Sent: Friday, February 28, 2003 10:50 AM Subject: Re: [PHP] Sorting a file > At 16:41 28.02.2003, Beauford.2002 spo

Re: [PHP] Any function that gives the coordinates of the cursor?

2003-02-28 Thread Hugh Danaher
A basic html input command using an image will enable you to send the coordinates of the mouse to the next script. your x,y variables will become $coordinate_x,$coordinate_y - Original Message - From: "Minghua Yao" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, February 28,

[PHP] strip comma from $value

2003-02-28 Thread Jim Long
Hi, I've figured out the way to solve my problem is to get rid of the commas before I sort. Trying to use this: //strip the commas--- foreach ($numeric_array as $key => $value) { if (stristr($value, ",")){ //test to see if it worked echo("comma striped"); } } -- I

[PHP] Mac PHP problems

2003-02-28 Thread bionicegg
Hello, I posted the other day with a problem about an problem with PHP being accessed via Flash. I did get it working, actually the problem was what John Nichel Suggested with the hosting company not setting up to parse php with *.html . Now the problem I have is that one person on a Mac told

Re: [PHP] strip comma from $value

2003-02-28 Thread Hugh Danaher
try ereg_replace(",","",$value); - Original Message - From: "Jim Long" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, February 28, 2003 9:17 AM Subject: [PHP] strip comma from $value > Hi, > > I've figured out the way to solve my problem is to get rid of the commas > before I

Re: [PHP] Can't run PHP cli script from Cron

2003-02-28 Thread R'twick Niceorgaw
Shouldn't it be #!/usr/local/bin/php Or was it just a typo here? - Original Message - From: "Justin Michael Couto" <[EMAIL PROTECTED]> To: "'Ernest E Vogelsinger'" <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Friday, February 28, 2003 12:09 PM Subject: RE: [PHP] Can't run PHP cli

Re: [PHP] Spaces collapsed in database

2003-02-28 Thread Hugh Danaher
perhaps you are parsing out the spaces before inserting the vars in the database? - Original Message - From: "Alberto Brea" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, February 28, 2003 7:58 AM Subject: [PHP] Spaces collapsed in database Hi, list I had certain information in

[PHP] re: strip comma from $value

2003-02-28 Thread Jim Long
Hi, Trying this: //strip the commas from numeric array so it can sort properly--- foreach ($numeric_array as $key => $value) { if (ereg_replace ("," , "", $value)){ echo("comma striped"); } } Does the same thing as before, echo's comma stripped, but does not actually remove the commas THAN

RE: [PHP] re: strip comma from $value

2003-02-28 Thread Matt Honeycutt
ereg_replace returns a string, regardless of whether or not any replacement occured. If no replacement occurs, the original string is returned. Additionally, it does not modify the original string, so you need to store the string it returns: foreach($numeric_array as $key => $value ) { i

RE: [PHP] re: strip comma from $value

2003-02-28 Thread Matt Honeycutt
I hit send right as I saw a typo (the ')' in the echo statement. Should be this: foreach($numeric_array as $key => $value ) { if(strstr($value,",")) { $value = ereg_replace(",","",$value); echo "comma stripped"; } } -Original Message--

[PHP] re: strip comma from $value

2003-02-28 Thread Jim Long
Hi, Thanks to those who are helping me. Matt, Same result, echo's sucess, but commas are still out put in the $numeric_array. Jim Long Matt Wrote: > foreach($numeric_array as $key => $value ) { > if(strstr($value,",")) > { > $value = ereg_replace(",","",$value)

RE: [PHP] Can't run PHP cli script from Cron

2003-02-28 Thread Justin Michael Couto
The path is #!/usr/local/bin/php -q But like I said, that can't be the problem because when I run it from the command line, it runs fine. The only problem I am having is that it won't run from cron. That is why I think it is an issue with the cron environment. All other types of scripts like

RE: [PHP] re: strip comma from $value

2003-02-28 Thread Matt Honeycutt
I'm sorry, I missed a really big problem with what you're doing. When you use foreach(), the value that it gives you (in your case, via the $value variable) is not a reference to the array item, its a copy of it, so modifying the copy doesn't modify your original array. Use this (this should work

Re: [PHP] Can't run PHP cli script from Cron

2003-02-28 Thread Ray Hunter
You might want to post some code so we can see why it is not running... What do you get when you run the code from the commandline? -- Ray On Thu, 2003-02-27 at 21:30, Justin Michael Couto wrote: > I am trying to run a PHP CLI script from cron using PHP 4.3 and FreeBSD > 5.0 > > This is what

[PHP] re: sort comma from $value

2003-02-28 Thread Jim Long
Hi, Figured it out. I needed to reset my output array $numeric_array. //strip the commas from numeric array so it can sort properly--- foreach($numeric_array as $key => $value ) { if(strstr($value,",")) { $value = ereg_replace(",","", "$value");

[PHP] testing for < 0

2003-02-28 Thread Steve Buehler
I have a form that has input for minutes. My problem is that I am trying to test to see if the field is blank or not and if they enter a "0" (zero), my test always show it as blank. I have tried !$timemb and !is_numeric($timemb). Thank You Steve -- PHP General Mailing List (http://www.php.net

RE: [PHP] How can I detetct if session cookies are enabled?

2003-02-28 Thread Johnson, Kirk
> Is there a way (PHP code if possible please) to verify > if session > cookies are enabled in the user's browser? On the *second* request, check if $_COOKIES['PHPSESSID'] is set. On the initial request, PHP sends the 'PHPSESSID' cookie as part of the response. The browser then returns that co

RE: [PHP] Can't run PHP cli script from Cron

2003-02-28 Thread CodersNightMare
I am sure you have tried this, but, Do you call the full path to php for cron. something like: 40 * * * * /usr/local/bin/php -q /home/user/phpcliscript Hope this helps. At 10:10 AM 2/28/2003 -0800, you wrote: The path is #!/usr/local/bin/php -q But like I said, that can't be the problem becaus

Re: [PHP] How can I detetct if session cookies are enabled?

2003-02-28 Thread Ernest E Vogelsinger
At 17:52 28.02.2003, Don spoke out and said: [snip] >I have a site that requires a user to login in for extended function. The >site uses sessions. I note that if a user configures his/her browser block >all cookies, he/she will not be able to navigate the

RE: [PHP] testing for < 0

2003-02-28 Thread Bryan Lipscy
See isset() and empty() -Original Message- From: Steve Buehler [mailto:[EMAIL PROTECTED] Sent: Friday, February 28, 2003 10:29 AM To: PHP Subject: [PHP] testing for < 0 I have a form that has input for minutes. My problem is that I am trying to test to see if the field is blank or not

Re: [PHP] testing for < 0

2003-02-28 Thread Leif K-Brooks
Try $timeb <> ''. Steve Buehler wrote: I have a form that has input for minutes. My problem is that I am trying to test to see if the field is blank or not and if they enter a "0" (zero), my test always show it as blank. I have tried !$timemb and !is_numeric($timemb). Thank You Steve -- Th

Re: [PHP] testing for < 0

2003-02-28 Thread Ernest E Vogelsinger
At 19:28 28.02.2003, Steve Buehler spoke out and said: [snip] >I have a form that has input for minutes. My problem is that I am trying >to test to see if the field is blank or not and if they enter a "0" (zero), >my test always show it as blank. I have t

RE: [PHP] testing for < 0

2003-02-28 Thread Steve Buehler
There we go. Thank You so much. I also found that I had another error in my script and !is_numeric($timemb) did work after all. Steve At 10:41 AM 2/28/2003 -0800, you wrote: See isset() and empty() -Original Message- From: Steve Buehler [mailto:[EMAIL PROTECTED] Sent: Friday, February

Re: [PHP] Any function that gives the coordinates of the cursor?

2003-02-28 Thread 1LT John W. Holmes
> Are there any functions in PHP which can give us the coordinates of the cursor when we click the mouse? > Thanks for the replys. If you use an image as your submit for your form, you can. When that image is clicked on, you'll have $_POST['image_x'] and $_POST['image_y'] as the coordinates wh

[PHP] loosing mysql connection with PHP 4.3.1

2003-02-28 Thread Pablo A. Godel
Hello, We recently upgraded a development server running RH Linux 7.2 from Apache 1.3.26/PHP 4.2.3 to Apache 1.3.27/PHP 4.3.1. A day after the upgrade, we started experiencing lost of connections to MySQL DB. The DB server is in a remote server. The error that I am getting is: PHP Warning: my

[PHP] Re: Very basic If statement still not working VERIFIED VARIABLES

2003-02-28 Thread Sunfire
hmmm the question too is where do the variables get assigned and where is the "form" or the query statements to the database for the info you need to print out... maybe its something with that... - Original Message - From: "Stitchin'" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Frid

Re: [PHP] PHP to read MS-SQL (solution)

2003-02-28 Thread Bryan Koschmann - GKT
On Thu, 27 Feb 2003, Michael Sims wrote: |That's actually pretty cool, from a tech standpoint, but why not |access the MS-SQL database directly? From Windows it's easy, you just |need the SQL .dll's installed on the server, and from Linux/Unix you |can build PHP with FreeTDS support (--with-sybas

[PHP] Is it an apache or a php-problem?

2003-02-28 Thread Henning
Hello I use Apache/1.3.27 Server I use to use a mysql-connection, but now the apache support is gone. Trying to connect to my MySQL-database gives following result: Fatal error: Call to undefined function: mysql_pconnect() in... How do I get the MySQL-support back? Henning (newbie) -- PHP Genera

[PHP] Redirecting STDOUT to a file pointer

2003-02-28 Thread Jeff Bearer
I'm working on a shell script in php. The script has an option to write to standard output, or to a file. If the filehandle is opened I'd like to redirect standard output to the file pointer. This would allow me not to have to handle every output statement twice, once with an echo and again with

[PHP] PHP Project for a newbie (me) or for hire?

2003-02-28 Thread Dan Sabo
Hi, I have a huge potential project and I'm fairly new to PHP. I've been managing shopping carts for years for people, Miva Merchant, doing sites, etc., but would like to try my hand at a custom PHP cart if possible. I Was wondering if for the project requirements below ... a.) Any PHP ready m

[PHP] Mail() Failing to connect

2003-02-28 Thread Gary
Does anyone have any idea of why I may be getting this error, when my scripts ran perfectly fine before (i don't know what). Is there some kind of setting in my mail program that may have changed? I'm using Outlook with Exchange Server. Warning: Failed to Connect in d:\apache\htdocs/emailtest.php

[PHP] A PHP page counter / statistics app

2003-02-28 Thread Michael Zornek
I'm ether looking to find or build my own open source php based script, that would allow you to include a small code chunk on every page of a site and then view statistics from the info, on what pages were viewed, how many times, etc... First, if there are any you know of and want to recommend, pl

Re: [PHP] Redirecting STDOUT to a file pointer

2003-02-28 Thread Jeff Bearer
Argh, I was thinking about the problem backwards, redirect the fp to stdout is the way to do it. if(!$argv[1]) $argv[1] = "php://stdout"; $fp = fopen($argv[1], "w"); fputs($fp,"blah\n"); fclose($fp); On Fri, 2003-02-28 at 15:11, Jeff Bearer wrote: > I'm working on a shell script in php. The scri

[PHP] Distance Calculator

2003-02-28 Thread Arkady
Hey guys, Can anyone here point me to a resource (not geozip) that can be used to calculate the distance between two zip codes? Thank you! Arkady

[PHP] Post method

2003-02-28 Thread Alex Shi
Hi, Any one know in a php script, if it is possible to simulate a post method? I mean I want to header() to an url but don't like to embed the parameters into that url. Thanks in advance! Alex Shi -- == Cell Phone Batteries at 30-50%+ off retail

Re: [PHP] Post method

2003-02-28 Thread Joseph W. Goff
Why not use sessions? - Original Message - From: "Alex Shi" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, February 28, 2003 3:09 PM Subject: [PHP] Post method > Hi, > > Any one know in a php script, if it is possible to simulate a post method? > I mean I want to header() to an

[PHP] Re: A PHP page counter / statistics app

2003-02-28 Thread Guy Haynes
Take a look here http://www.unf.edu/~hayg0001/php/pagetracker.php. I have a script that you can use as a starting point. It is nothing fancy, but it works. Every thing is stored in a database, where I can then produce real time reports for the site. ~Guy Haynes Michael Zornek wrote: I'm ether

Re: [PHP] PHP Project for a newbie (me) or for hire?

2003-02-28 Thread Chris Edwards
you should check out www.x-cart.com its sweet. another is www.oscommerce.com if you need something for reference, www.php.net -- Chris Edwards Web Application Developer Outer Banks Internet, Inc. 252-441-6698 [EMAIL PROTECTED] http://www.OuterBanksInternet.com - Original Message - Fr

  1   2   >