[PHP] Re: Forms and Netscape -- spacing problem -- Help!

2001-10-22 Thread James Cave
form tag in NS (4x - 6x) there is some additional space The form tag is a block level tag, thus white space will be appended after the closing tag. To avoid this, I use a style on the form element. I do this for both IE and Navigator, in different ways, as I've found they seem to react

Re: [PHP] generating charts/graphics

2001-10-22 Thread Philippe Saladin
Phil Davis has developed HTML_graphs : it draws various html base charts. See his website at http://www.webguys.com/pdavis/programs/html_graphs/ Philippe Mirek Novak [EMAIL PROTECTED] a écrit dans le message news: [EMAIL PROTECTED] Try this http://www.aditus.nu/jpgraph/ M.N. ---

[PHP] Max int value of char field? How to find...

2001-10-22 Thread Kraa de Simon
Hello all, How can I find the highest integer value in a result set like: 1 10 11 2 3 a ab abc I'm looking for the value 11. The statement 'select max(field) from table' gives me 'abc' so this won't do. Any ideas for a SQL statement that will do the trick? I'm using PHP / MySQL. Thanks!

[PHP] SV: Max int value of char field? How to find...

2001-10-22 Thread Terje Kristensen
How about select max(floor(field)) from table ? TK -Opprinnelig melding- Fra: Kraa de Simon [mailto:[EMAIL PROTECTED]] Sendt: 22. oktober 2001 08:44 Til: Php-General (E-mail); MySQL (E-mail) Emne: Max int value of char field? How to find... Hello all, How can I find the

[PHP] Update onBlur or onChange

2001-10-22 Thread KING OGNAJD
Helo: I¹m working on a form that I¹d like to have a feature that adds your total as items are selected. Currently, I¹ve got some javascript doing the job but it only works in ie, and besides, I¹d rather use php if possible. The current prototype form lives at http://www.seatthole.com/order2.php

[PHP] Re: Max int value of char field? How to find...

2001-10-22 Thread James Cave
How can I find the highest integer value in a result set like: 1 10 11 2 3 a ab abc If the table isn't huge, you could pull back all the values and try PHP's natsort() function. That will apply a natural sort algorithm, ordering the numbers as you expect, but I'm unsure whether the

[PHP] Re: Date-TimeStamp

2001-10-22 Thread * RzE:
Original message From: Daniel Harik [EMAIL PROTECTED] Date: Sat, Oct 20, 2001 at 09:10:05AM -0800 Message-ID: [EMAIL PROTECTED] Subject: [PHP] Re:Date-TimeStamp I've tried this code: $timea = explode( ,$timepostsed); $timea1 = explode(-,$timea[0]); $timea2 = explode(:,$timea[1]);

Re: [PHP] Update onBlur or onChange

2001-10-22 Thread Stefan Rusterholz
From: KING OGNAJD [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, October 22, 2001 9:33 AM Subject: [PHP] Update onBlur or onChange Helo: I¹m working on a form that I¹d like to have a feature that adds your total as items are selected. Currently, I¹ve got some javascript doing the job

[PHP] unset Cookies

2001-10-22 Thread Michael . Thanry
Hello everyone! Is there a way to unset or expire a cookie which was not set by my pages? Michael -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL

[PHP] Sv: ezmlm response

2001-10-22 Thread Din Web Udbyder
Will you please stop sending your mail to us immidiately -and we would not accept you can't find our e-mail address in your databse - because how can you send e-mail to us on this e-mail account if you don't have it in your database STOP IT AND DO IT NOW! Regards Frank Mikkelsen -

[PHP] MessageBox in PHP?

2001-10-22 Thread Silvia Mahiques
Hi!, How can I make a messagebox in PHP to print errors or warning (such as in VB or VC++)?. Is it possible? Silvia Mahiques

[PHP] Re: MessageBox in PHP?

2001-10-22 Thread _lallous
you can use JavaScript to do that... script alert('your message goes here'); /script embed this in your HTML source code. it is not possible to do so in PHP since it is server side. Silvia Mahiques [EMAIL PROTECTED] wrote in message

RE: [PHP] Re: MessageBox in PHP?

2001-10-22 Thread Fatih Ustundag
But you can write javascript code with php like this: if ($err) { echo "htmlbody" echo "script\n"; echo "alert('ERRORR');\n"; echo "/script\n"; echo "/body/html\n"; exit(); } -Original Message- From: _lallous [mailto:[EMAIL PROTECTED]]

[PHP] Re: Thick arc with PHP

2001-10-22 Thread _lallous
try this: ImageSetThickness() Ville Mattila [EMAIL PROTECTED] wrote in message 009801c15a31$e7f56140$0100a8c0@ville">news:009801c15a31$e7f56140$0100a8c0@ville... Hi there, How it would be possible to draw a thich arc with PHP GD? You can see a picture here about thing I mean:

[PHP] Funny thing with variables

2001-10-22 Thread Niklas Lampn
What causes this: I have a page getting variable $BackLink with string http://www.domain.com/my_page.php4;. I accidentaly wrote ?=~$BackLink? and what I got out was —‹‹ÅÐЈˆˆÑ™–‘“ž‘›š‡‹ŒÑœ’А™™š šŽŠšŒ‹ ™‘‹Ñ—Ë. What causes this? What does that ~ sign do before a variable?

[PHP] validating form data...

2001-10-22 Thread Toke Herkild
I've made a script which ought to validate if there is data in the fields or not... but it doesn't seem to work... the validation is following: if ((email_is_valid($Email)) and ($Name != ) and ($Message != )){ do stuff ... } But even if I submit an empty form it executes do stuf... I have

[PHP] Re: unset Cookies

2001-10-22 Thread Christian Kuhtz
Michael Thanry wrote: Hello everyone! Is there a way to unset or expire a cookie which was not set by my pages? Overriding an existing cookie with setcookie()and 1 sec expiry should do the trick. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED]

Re: [PHP] Funny thing with variables

2001-10-22 Thread Tomy Wagner
rtfm :o http://www.php.net/manual/en/language.operators.bitwise.php Wagner Tomy Web Developer Editus Luxembourg S.A. - Original Message - From: Niklas Lampén [EMAIL PROTECTED] To: Php-General [EMAIL PROTECTED] Sent: Monday, October 22, 2001 1:59 PM Subject: [PHP] Funny thing with

re: [PHP] validating form data...

2001-10-22 Thread nicolas costes
hellorghh !!! I think that : if ((email_is_valid($Email)) ($Name != ) ($Message != )){ do stuff ... } ...should be better . (, not and) Toke Herkild [EMAIL PROTECTED] a écrit dans le message news: [EMAIL PROTECTED] I've made a script which ought to validate if there is data in the

Re: [PHP] Re: unset Cookies

2001-10-22 Thread Andrey Hristov
Depends on that if the cookie is set on your server or not. If it is set on your server and the cookie_domain is set to /, that means - every script from the server has right to access it, if the path is more restrictive you cannot access it. And of course if the cookie is from another domain

Re: [PHP] validating form data...

2001-10-22 Thread Andrey Hristov
and and are same except that they stay at different levels in the precedence table. But if the programmer is skilled he will never write code which depends on the precedence table but put brackets here and there, everywhere they are needed. -- Andrey Hristov Web Developer Icygen Corporation

[PHP] language question

2001-10-22 Thread David Otton
why does this work: foreach ($table as $row) list ($a, $b) = $row; but this doesn't? foreach ($table as list ($a, $b)); it seems to me that the two are equivalent. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED]

Re: [PHP] validating form data...

2001-10-22 Thread Miles Thompson
Divide and conquer Have you tried it one function at a time -- e.g. if (email_is_valid($Email) { do stuff ... also, what values do these tests return? have you echoed the values? HTH - Miles At 02:07 PM 10/22/01 +0200, Toke Herkild wrote: I've made a script which ought to

[PHP] Re: validating form data...

2001-10-22 Thread Toke Herkild
Very embaressing The error where not in my if-statement... but in what I did later on in the else-clause... so boys and girls... remember you do not set variables like this: $Var = = Avariable; // Doesn't work. (slap me!) the correct is : $Var = Avariable; Sorry for vasting your time...

Re: [PHP] HTTP Authentication

2001-10-22 Thread Stig-Ørjan Smelror
Wilbert Enserink wrote: Hi all, is it possible to do a HTTP Authentication with my own loginform instead of using the ugly pop up window? regards, Wilbert With a lot of thought, yes. You need to consider a few factors before you start. Security: Checking the IP address of the

[PHP] Re: AW: PHP/CGI problem: #!/path/php at top of CGI script appears in output

2001-10-22 Thread Philippe
Hi, Yes I have used --enable-discard-path, the script work with #!/usr/local/bin/php I'll give the full configuration later Philippe Stefan Siefert writes: Hi, well I do understand your needing. First a question. What are your compile options, e.g. your configure call? Do you

[PHP] Re: PHP/CGI problem: #!/path/php at top of CGI script appears in output

2001-10-22 Thread Philippe
Hi, You're right Dave But nobody had already used PHP with CGI and with Apache ??? I searched on the net, but I've found no documentation on this problem Bye Philippe Dave Goodrich writes: Nope it fails when he removes the line. It fails on me as well, I tried it. Also note I did say

RE: [PHP] Funny thing with variables

2001-10-22 Thread Niklas Lampn
F... read it and got it! ;) I had no idea what to look for.. Niklas P.S. Thanks -Original Message- From: Tomy Wagner [mailto:[EMAIL PROTECTED]] Sent: 22. lokakuuta 2001 15:16 To: Niklas Lampén; Php-General Subject: Re: [PHP] Funny thing with variables rtfm :o

[PHP] format date

2001-10-22 Thread Caleb Carvalho
Hi all, i would like a simple way to get date field formatted from my little sybase, for some reason the output of it is showing the wrong date example Jan 1 1900 12:00:00:000AM thanks Caleb Carvalho Application Engineer LoadRunner/APM

[PHP] php code to fax

2001-10-22 Thread Glenn Antoine
I am working on a project that will require the ability to take input from a web interface and then fax the content out to some of the members. If anyone has had any experience with a similar project, I would greatly appreciate any assistance. Thanks in advance, Glenn -- PHP General Mailing

[PHP] DATE FORMAT ISSUES

2001-10-22 Thread Beeman
I have inserted the date into MySQL using now() in the query. However, when I retrieve the using MySQL_Date_Format in the query the time is always wrong. on the other hand, if I format the date using Date() in PHP it always makes the date DEC 31 1969 at 700PM. Please Help -- PHP General

[PHP] Re: DATE FORMAT ISSUES

2001-10-22 Thread _lallous
maybe you have in your database a DATE field instead of DATETIME field? Beeman [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... I have inserted the date into MySQL using now() in the query. However, when I retrieve the using MySQL_Date_Format in the query the

Re: [PHP] language question

2001-10-22 Thread Christian Reiniger
On Monday 22 October 2001 14:28, David Otton wrote: why does this work: foreach ($table as $row) list ($a, $b) = $row; but this doesn't? foreach ($table as list ($a, $b)); because the correct syntax is foreach ($table as $key = $val) { ...

[PHP] PHP on fu!$#@ing PWS

2001-10-22 Thread German Benzano
How do I run *.php on PWS I download php4, edit php.ini reg and NOTHING! Please someone HELP ME! My OS is Win 98 PWS 4.0 (Sorry by my poor English, I speak spanish 8o( /G£rmÅn// German Benzano [EMAIL PROTECTED] Montevideo - Uruguay -- PHP General Mailing List (http://www.php.net/)

[PHP] Getting session to work

2001-10-22 Thread Sean LeBlanc
I'm trying to use my own session handler. I tried several examples before trying it out on my local box. It worked, and I don't know why it didn't work on the other. Here are the setups: My local box (where it works): OS: Windows 2000 PHP 4.0.6 Apache 1.3.x I didn't even have to set the handler

[PHP] Re: DATE FORMAT ISSUES

2001-10-22 Thread Beeman
No it is definitely a DATETIME and the date and time are correct in the database, but when I try to format and display them the date is correct but the time is not _lallous [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... maybe you have in your database a DATE

Re: [PHP] PHP on fu!$#@ing PWS

2001-10-22 Thread Sam Masiello
I am going to make the assumption that you did not download the installer from the following URL (only the zip package).. http://www.php.net/downloads.php If you downloaded both the zip package and the installer and are still having a problem, please post the error message(s) that you are

RE: [PHP] php hosting

2001-10-22 Thread Andrew Chase
They've been mentioned on the list before, but I had a great experience with Cedant.com. Apache, PHP4, MySQL, and shell access via SSH (and the ability to compile your own software in a /home/youraccount/bin directory). I hosted a site with them for a few months earlier this year before taking

RE: [PHP] Getting session to work

2001-10-22 Thread Sean LeBlanc
I wanted to add some more details: Apache on Windows 2000 box is 1.3.20 Database connection to MySQL IS working, so that's not the problem. -Original Message- From: Sean LeBlanc [mailto:[EMAIL PROTECTED]] Sent: Monday, October 22, 2001 9:53 AM To: [EMAIL PROTECTED] Subject: [PHP]

Re: [PHP] Re: DATE FORMAT ISSUES

2001-10-22 Thread Rasmus Lerdorf
Are you retrieving it using MySQL's UNIX_TIMESTAMP() function? PHP's date() function needs a unix timestamp to work with. -Rasmus On Mon, 22 Oct 2001, Beeman wrote: No it is definitely a DATETIME and the date and time are correct in the database, but when I try to format and display them

[PHP] RE: Forms and Netscape -- spacing problem -- Help!

2001-10-22 Thread Andrew Chase
It's almost certainly not W3C compliant, but if your form is inside a table (I know, I know - you're not supposed to use tables for layout) you can hide the FORM tags outside the TD tags of the cell containing the form: E.G.: table tr form action='somescript.php'

Re: [PHP] Re: DATE FORMAT ISSUES

2001-10-22 Thread Beeman
Yeah, I select it using UNIX_TIMESTAMP(creation_datetime) and then I am using date(M d, Y g:ia,$myrow[creation_datetime]) at the end of a printf statement but the date comes back as Dec 31 1969 7:00pm for all entries. When the date was inserted I used now() in the insert statement. Rasmus Lerdorf

Re: [PHP] Re: DATE FORMAT ISSUES

2001-10-22 Thread Rasmus Lerdorf
Yeah, I select it using UNIX_TIMESTAMP(creation_datetime) and then I am using date(M d, Y g:ia,$myrow[creation_datetime]) at the end of a printf statement but the date comes back as Dec 31 1969 7:00pm for all entries. When the date was inserted I used now() in the insert statement. You

[PHP] Html email

2001-10-22 Thread Benny
Please help me. I have problem with html email. I send email to 3 email address : [EMAIL PROTECTED], [EMAIL PROTECTED] and [EMAIL PROTECTED] The email client for yahoo eudoramail is their web. And for the last destination, the email client is ms outlook. The html email for yahoo eudoramail

Re: [PHP] Re: DATE FORMAT ISSUES

2001-10-22 Thread Beeman
That worked. Thanks a lot... You rock -Beeman Rasmus Lerdorf [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Yeah, I select it using UNIX_TIMESTAMP(creation_datetime) and then I am using date(M d, Y g:ia,$myrow[creation_datetime]) at the end of a printf

[PHP] What attribute is used ... when a session will expire?

2001-10-22 Thread Jason Caldwell
Just curious -- What system attribute is used to help in determining when a session file will be cleaned up (GTC) or in other words, deleted? Is it the delete time calculated based on the file's CREATED or MODIFIED time? Thanks Jason [EMAIL PROTECTED] -- PHP General Mailing List

[PHP] Re: validating form data...

2001-10-22 Thread Mike Frazer
To verify the existence of both a name and message, try a test similar to the following: if ((email_is_valid($email)) (strlen($name) 0) (strlen($name) 0)) { ... } I've found that using in a conditional block tends to be a bit buggy. strlen() seems to be pretty solid for verifying the

Re: [PHP] Re: MessageBox in PHP?

2001-10-22 Thread Mike Frazer
Or shorten your code: put the Javascript into a separate file, then use if ($err) { include(/javascript/file/path/here); } Use it over and over again via this method. Fatih Ustundag [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... But you can write

Re: [PHP] Update onBlur or onChange

2001-10-22 Thread Mark
On Mon, 22 Oct 2001 00:33:39 -0700, KING OGNAJD wrote: Helo: I¹m working on a form that I¹d like to have a feature that adds your total as items are selected. Currently, I¹ve got some javascript doing the job but it only works in ie, and besides, I¹d rather use php if possible. The current

[PHP] Copying to network drive (Win32)

2001-10-22 Thread Ville Mattila
Hi there, Referring to one question I sent here over a month ago, I'd like to get back with subject: I need to copy a image file from the server box to another computer in our local network. All computers have WinNT 4.1 on it (also the server box PHP Apache running) expect that file server

[PHP] Logic/method question...

2001-10-22 Thread Jeff Lewis
It's not really, but kind of, a PHP question. I mean it is being written in PHP :) I am putting together a search feature for our classified ads and there are about 4000 each day. Now I am bulding a query to search by newspaper, date, and keywords. One last thing is categories. Curious how

[PHP] Print statements , syntax , usage, etc

2001-10-22 Thread Ricardo Fitzgerald
Hi, ¡'m new to php, but not to programming, I'm having problems using a simple print statement : *print 'td width=25% bgcolor=#FcaF00bfont face=Tahoma, Verdana, Arial, Sans SerifRef:/fontb//td';* *print 'td width=25% bgcolor=#00bfont face=Tahoma, Verdana, Arial, Sans

[PHP] Re: Print statements , syntax , usage, etc

2001-10-22 Thread CC Zona
In article [EMAIL PROTECTED], [EMAIL PROTECTED] (Ricardo Fitzgerald) wrote: *print 'td width=25% bgcolor=#FcaF00bfont face=Tahoma, Verdana, Arial, Sans SerifRef:/fontb//td';* *print 'td width=25% bgcolor=#00bfont face=Tahoma, Verdana, Arial, Sans Serif$reference/fontb//td';* the

RE: [PHP] php code to fax

2001-10-22 Thread Jerry Lake
I could be wrong, but it would seem easiest to have an an email to fax gateway and use your php to send mail Regards, Jerry Lake Interface Engineering Technician -Original Message- From: Glenn Antoine [mailto:[EMAIL PROTECTED]] Sent: Monday, October 22, 2001 6:39 AM To: [EMAIL

[PHP] *** I want a swanky icon in the address bar, like major sites (e.g. php.net, google.com)...

2001-10-22 Thread Robin McKenzie
Anyone out there know how to set the icon that is shown in the address bar, to the left of the URL? It's also used in the favourites pane. I know this isn't really the right place to make this post, but I figured that there are so many experienced programmers out there writing websites, that

Re: [PHP] *** I want a swanky icon in the address bar, like major sites (e.g. php.net, google.com)...

2001-10-22 Thread Kurt Lieber
Um...this isn't php related and I already get a ton of emailcould we keep things on-topic? that said, check out www.favicon.com -- it should have the info you need. --kurt On Monday 22 October 2001 11:37, you wrote: Anyone out there know how to set the icon that is shown in the address

Re: [PHP] php code to fax

2001-10-22 Thread Chris Carbaugh
Check out phpfax.sourceforge.net This is a project I have pretty much abandoned, and never even posted the code. I have had some people interested in it though, and would like to give the code to the community, I just never found the time. Drop me a line if your interested, and I'll do my

[PHP] PHP3 file upload

2001-10-22 Thread rpruitt
This is from the manual -- ?php function is_uploaded_file($filename) { if (!$tmp_file = get_cfg_var('upload_tmp_dir')) { $tmp_file = dirname(tempnam('', '')); } $tmp_file .= '/' . basename($filename); } if

[PHP] syntax for checking if string contains something

2001-10-22 Thread Peter
Hi, I was just going through my PHP book and I noticed that there was a way to check whether or not a form was filled out after pressing submit. Things worked okay when I used the form checking method of just checking if a particular field was filled in. for example if ($email ==) checks

Re: [PHP] Copying to network drive (Win32)

2001-10-22 Thread Mark
On Mon, 22 Oct 2001 20:11:32 +0300, Ville Mattila wrote: Hi there, Referring to one question I sent here over a month ago, I'd like to get back with subject: I need to copy a image file from the server box to another computer in our local network. All computers have WinNT 4.1 on it (also the

[PHP] str_replace binary safe??

2001-10-22 Thread heinisch
Hi folks, following problem appeared on PHP 3.0.16 on LINUX I have a binary file, where I want to replace some letters I do the following: $filename = xyz.sdc; $fd = fopen( $filename, r+b ); // also tried r $x=filesize( $filename ); // this shows the correct filesize 22528 byte $contents =

[PHP] Session control issue

2001-10-22 Thread Gaylen Fraley
I am experiencing a problem of trying to run several variants of the same code and keep the sessions separate. Here is the scenario. I am launching all of this from a CMS. So, the CMS displays a page that has 3 links on it. Link 1 is version A of an application, Link 2 version B, etc. The

Re: [PHP] str_replace binary safe??

2001-10-22 Thread DL Neil
Hi folks, following problem appeared on PHP 3.0.16 on LINUX I have a binary file, where I want to replace some letters I do the following: $filename = xyz.sdc; $fd = fopen( $filename, r+b ); // also tried r $x=filesize( $filename ); // this shows the correct filesize 22528 byte $contents

Re: [PHP] str_replace binary safe??

2001-10-22 Thread Oliver Heinisch
At 22.10.01 21:36, you wrote: Hi folks, following problem appeared on PHP 3.0.16 on LINUX I have a binary file, where I want to replace some letters I do the following: $filename = xyz.sdc; $fd = fopen( $filename, r+b ); // also tried r $x=filesize( $filename ); // this shows the

[PHP] Re: syntax for checking if string contains something

2001-10-22 Thread CC Zona
In article [EMAIL PROTECTED], [EMAIL PROTECTED] (Peter) wrote: for example if ($email ==) checks if the $email variable was inputted by the user. Better: if(!empty($email)) http://php.net/empty However I was wondering how can I refine it so that it will also check if the $email

Re: [PHP] Form Question

2001-10-22 Thread Jason G.
Chip, I read all of the posts regarding this topic that I could find, and just *had* to reply. (Take the TIME to look at this. It is about the most Efficient, Powerful way I know of) Do this! __ ?php //If the hidden variable ACTION ==

[PHP] require include

2001-10-22 Thread jtjohnston
Coverting from perl ... What's the differencw between require and include? Where, when, why? John? Email post reply always appreciated -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To

[PHP] Wicked, Array add problem!

2001-10-22 Thread Emile Bosch
I was wondering if someone could help me with the following problem I want to add values to an array, overwriting the existing ones and keeping the original intact. array 1 looks like: text posted = Posted by source = Bron array 1 looks like: text posted = Posted by1 Now i would

Re: [PHP] require include

2001-10-22 Thread Steve Cayford
http://www.php.net/manual/en/function.require.php require() pulls in the target file when the source file is parsed/compiled, include() pulls in the target file when the source file is executed. So an include() nested in an if statement will only be included if the if statement evaluates to

Re: [PHP] str_replace binary safe??

2001-10-22 Thread DL Neil
following problem appeared on PHP 3.0.16 on LINUX I have a binary file, where I want to replace some letters I do the following: $filename = xyz.sdc; $fd = fopen( $filename, r+b ); // also tried r $x=filesize( $filename ); // this shows the correct filesize 22528 byte

Re: [PHP] PHP on PWS

2001-10-22 Thread juliet
I use PWS on a Win 95; to be able to run php files here, I have to specify that the virtual directory in my machine can, not only read and run scripts, but also *execute* (Advanced | Edit properties | checkbox execute). Also, I have to type the http address, not the filename:

[PHP] HTTP_RAW_POST_DATA / Content-type

2001-10-22 Thread Ryan
Hello, I'm running into a problem accessing $HTTP_RAW_POST_DATA in my scripts. I am interfacing with an external system that is doing a HTTP POST to my php script (I'm running 4.0.6). The variable $HTTP_RAW_POST_DATA is always blank even though the external system is sending me data. The

[PHP] Re: Wicked, Array add problem!

2001-10-22 Thread Emile Bosch
Uhm found a solution for my own problem somewere else on this list.. credits go2 Andrey Hristov ? echo pre; $array1 = array(text=array(posted=Posted by,source=Bron)); $array2 = array(text=array(posted=Posted by1)); print_r($array1); print_r($array2); function array_overlay($ar1,$ar2){

[PHP] Re: Wicked, Array add problem!

2001-10-22 Thread Emile Bosch
I was wondering if someone could help me with the following problem I want to add values to an array, overwriting the existing ones and keeping the original intact. array 1 looks like: text posted = Posted by source = Bron array 1 looks like: text posted = Posted by1 Now i would

[PHP] Re: Odd is_int() behaviour

2001-10-22 Thread Yasuo Ohgaki
Yasuo Ohgaki wrote: This is expected behaviour. Ashley M. Kirchner wrote: I have the following snippet in my file: if ($PATH_INFO == ) { $PATH_INFO = /; } echo PATH_INFO: $PATH_INFObr\n; // All we want is the fist element, call it $section list($section)

[PHP] Re: What attribute is used ... when a session will expire?

2001-10-22 Thread Yasuo Ohgaki
Jason Caldwell wrote: Just curious -- What system attribute is used to help in determining when a session file will be cleaned up (GTC) or in other words, deleted? Is it the delete time calculated based on the file's CREATED or MODIFIED time? Modified time is used for mod_files.

[PHP] Re: require include

2001-10-22 Thread Yasuo Ohgaki
Jtjohnston wrote: Coverting from perl ... What's the differencw between require and include? Where, when, why? I forgot from which version, but current PHP's require/include works the same way except - require() raise fatal error, if it can't find file - include() raise warning, if it

Re: [PHP] Wicked, Array add problem!

2001-10-22 Thread Mark
you want array_merge() On Tue, 23 Oct 2001 00:27:29 +0200, Emile Bosch wrote: I was wondering if someone could help me with the following problem I want to add values to an array, overwriting the existing ones and keeping the original intact. array 1 looks like: text posted = Posted by

Re: [PHP] format date

2001-10-22 Thread David Robley
On Mon, 22 Oct 2001 22:38, Caleb Carvalho wrote: Hi all, i would like a simple way to get date field formatted from my little sybase, for some reason the output of it is showing the wrong date example Jan 1 1900 12:00:00:000AM thanks Perhaps if you could show what you are doing and

[PHP] preg_match_all...grrrr!!!

2001-10-22 Thread PHPGalaxy.com
I've never had good luck with this function. I first learned how to (sorta) use it from looking at other code. It worked fine when I made a meta search engine, but when I tried on expanding on it, well, I've started losing hair. =) Here's the scenario: I'm trying to parse results from Yahoo's

Re: [PHP] Update onBlur or onChange

2001-10-22 Thread John Monfort
Try this: *** 'varname' is equivalent to input name='varname' type=text value='var_value'*** //adding var total; //html input name=varname1 type=text value=5 onChange=javascript: total=total+form.varname1.value //once the content of varname1 is changed, the value will be added to

[PHP] Apache Request Ids?

2001-10-22 Thread Brian White
I am pretty sure I am dreaming here but I once wrote a locking tool for UNIX that kept as part of it's information the process ID. If another process went to grab the lock, one thing it would do was check if the process that had taken it was still running. If it wasn't, it knew it could

[PHP] won't erase $

2001-10-22 Thread jtjohnston
Marc, I have prepared a function to erase syntax from a input type=text But it won't erase $ in its output when I echo. What am I doing wrong? A post-reply would be real handy, Thanks, John $filename = stripslashes(strip_punctuation($filename)); $filename = $filename...randString(5)..htm; echo

Re: [PHP] won't erase $

2001-10-22 Thread Rasmus Lerdorf
Oh man, use str_replace() please and to remove the $ just use '$' -Rasmus On Mon, 22 Oct 2001, jtjohnston wrote: Marc, I have prepared a function to erase syntax from a input type=text But it won't erase $ in its output when I echo. What am I doing wrong? A post-reply would be real handy,

Re: [PHP] Re: syntax for checking if string contains something

2001-10-22 Thread Peter
Thanks for your reply. But I tried it and it seems to pass right through the if condition without checking if the string is empty or not. Here is another PHP file where I tried using the empty function The input form contains the following: h2QTY:/h2input type=text name=qty size=7br Here is

[PHP] Error POP3 Class

2001-10-22 Thread Aku
Hello, I try pop3 class to access pop3 server, why error result like, Fatal error: Maximum execution time of 30 seconds exceeded in c:\new\sample\oh\pop3.php on line 23 before finish. file: pop3.php /* Private methods - DO NOT CALL */ Function GetLine(){ for($line=;;){

[PHP] Re: Session control issue

2001-10-22 Thread Grant Boggs
Gaylen Fraley [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... I am experiencing a problem of trying to run several variants of the same code and keep the sessions separate. Here is the scenario. I am launching all of this from a CMS. So, the CMS displays a

[PHP] Matching strings in a flat/text file?

2001-10-22 Thread Nick Richardson
Hey everyone, Anyone out there know how i could do this: I have a client who is an import car tuner. They would like to feature the cars they work on in their website. Instead of creating a new .html or .php file for every car they add to include the background setup, and the general content

RE: [PHP] Matching strings in a flat/text file?

2001-10-22 Thread Jack Dempsey
lots of ideas nick, but can you use a database? MySQL is free and i've found its almost always better to use databases when you can... if you can't, you could do something like this: 1. find the pos of the string you need using strpos 2. find the pos of the ending delimiter 3. substr from the

[PHP] RE: Help with Query

2001-10-22 Thread De Necker Henri
Hi there. I have the following question for u. I want to join two tables but it must be displayed in the a specific format. The data of the tables are as follow : Table employee : idsurname initialsba 1 PoepH ER 2 Snot

Re: [PHP] won't erase $

2001-10-22 Thread jtjohnston
:) Thanks. Just learning. Suggestions for improvement anyone? Oh man, use str_replace() please and to remove the $ just use '$' $filename = stripslashes(strip_punctuation($filename)); $filename = $filename...randString(5)..htm; echo here it is: .$filename.!!;

RE: [PHP] Matching strings in a flat/text file?

2001-10-22 Thread Nick Richardson
Jack, thanks for the response: I can use a database if really really needed. The main reason for wanting to use a flat file is for ease of update from the client's side. They are not technical in the least, and this will save me from having to update a database everytime. Although i guess i

[PHP] NEXT Page and BACK page

2001-10-22 Thread Tshering Norbu
Dear list, I would like to query only the last 50 records/rows (order by ID desc) in the following script file which uses MySQL, and I want to have NEXT page for the 50 rows earlier than last 50 queried and go on. I think I can use JavaScript for BACK page to go back. Could you pl add for me

Re: [PHP] won't erase $

2001-10-22 Thread CC Zona
In article [EMAIL PROTECTED], [EMAIL PROTECTED] (Jtjohnston) wrote: Suggestions for improvement anyone? $mystring = ereg_replace (.html, , $mystring); $mystring = ereg_replace (.htm, , $mystring); $mystring = ereg_replace ( , , $mystring); $mystring = ereg_replace (}, ,

Re: [PHP] Re: require include

2001-10-22 Thread Jason G.
From the manual: Unlike include(), require() will always read in the target file, even if the line it's on never executes. If you want to conditionally include a file, use include(). The conditional statement won't affect the require(). However, if the line on which the require() occurs is

Re: [PHP] Re: require include

2001-10-22 Thread Rasmus Lerdorf
That's outdated. The only difference today is that if a file can't be included/required for some reason it is a fatal error with require and a warning with include. -Rasmus On Tue, 23 Oct 2001, Jason G. wrote: From the manual: Unlike include(), require() will always read in the target

[PHP] Root Certificate

2001-10-22 Thread Adam . Whitehead
Hi All- I recently went to a website which popped up with a dialog in Internet Explorer asking if I wanted to install their root certificate into IE's list of trusted root certificates. I now need to do this with a website I am developing but for the life of me cannot find the code (either

[PHP] Print statement : Thanx for all who helped ;)

2001-10-22 Thread root
I'd like to thank all those who helped me with the print statement prob, it was simple a matter of adding the appropriate string joiner and it worked flawlessly ;))) Regards, Rick -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional