Re: [PHP] Insecurity with PHP authorization

2001-08-08 Thread Stefen Lars
I just have just found this article, that describes this technique: http://apachetoday.com/mailprint.php3?action=pvltsn=2000-06-14-002-01-PS#SetEnvIf Thank you all for your help. :-)) S From: Maxwell Hung [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: Re: [PHP] Insecurity with PHP

Re: [PHP] user's ip

2001-08-08 Thread Adrian D'Costa
On Tue, 7 Aug 2001, Renze Munnik wrote: On Tue, Aug 07, 2001 at 03:55:25PM +0530, Adrian D'Costa wrote: Hi, I am trying to get the ip address of any user browsing a particular page. I tried $REMOTE_ADDR but that give me only the remote address. What would be the best way?

Re: [PHP] Multiple line spanning regexp

2001-08-08 Thread Brad Hubbard
On Wed, 8 Aug 2001 14:41, Brad Hubbard wrote: I'm trying to delete everything in a UL that spans multiple lines. I just want to get rid of the whole thing and thought it would be relatively straight forward but I'm getting nowhere. The list takes the form; UL LI

Re: [PHP] IP security check

2001-08-08 Thread René Moonen
Try this code: if(getenv(HTTP_X_FORWARDED_FOR)) { $ip=getenv(HTTP_X_FORWARDED_FOR); } else { $ip=getenv(REMOTE_ADDR); } $host = gethostbyaddr($ip); And check out http://www.php.net/manual/en/function.getenv.php However, I think it is very unsafe to base your payment transactions on these

Re: [PHP] checking for null form fields fails

2001-08-08 Thread Renze Munnik
On Tue, Aug 07, 2001 at 11:58:51AM -0600, mike cullerton wrote: i don't use echo either. i use printf. i was just trying to pass along some things i learned reading the manual that were related to the topic. Cool... finaly. You won't believe how many people use echo(). And I realy don't know

[PHP] Bug?

2001-08-08 Thread \[Intent A/S\] Tais M. Hansen
Hi! I just came across this weird thing. Bug? You tell me! print (int)((8.85-8)*100); I would think the line above would print 85. But for some reason, it prints 84?? Can anyone tell me why that is? -- Intent A/S Tais M. Hansen Web Developer -- PHP General Mailing List

Re: [PHP] large commercial websites that use php?

2001-08-08 Thread B. van Ouwerkerk
I've seen some posts on this, but since this mailing list keeps getting bigger- I wanted to put the question out again: What large commercial websites use php? about two weeks ago there was a thread called Example high-profile PHP sites A few links were provided.. Bye, B. -- PHP General

Re: [PHP] checking for null form fields fails

2001-08-08 Thread Renze Munnik
On Tue, Aug 07, 2001 at 09:26:48AM -0700, Mark Maggelet wrote: This isn't right, empty() won't give an error if $input isn't set. That's true. Empty() doesn't return an error when $input isn't defined. I didn't RT(F)M on this one. I always use (!isset($something) empty($something)) to check

Re: [PHP] checking for null form fields fails

2001-08-08 Thread Renze Munnik
On Wed, Aug 08, 2001 at 10:06:51AM +0200, Renze Munnik wrote: (...) checks the returnvalue of printf() and stuff (another thread in this list). oops... it's the same thread... I NEED COFEE!!! -- * RzE: -- -- Renze Munnik -- DataLink BV -- -- E: [EMAIL

RE: [PHP] selecting words

2001-08-08 Thread Jon Farmer
There was a post earlier very similar to this. If you have a database, you could use SELECT LEFT(mycolumn, 100) FROM mytable WHERE ... Without a db, you can use the PHP substring function: substr() Except that would return the first 100 characters and not the first 100 words as requested. To

Re: [PHP] user's ip

2001-08-08 Thread Renze Munnik
On Wed, Aug 08, 2001 at 12:45:32PM +1000, Chris Birmingham wrote: I would use $HTTP_SERVER_VARS[REMOTE_ADDR] or $HTTP_SERVER_VARS[HTTP_X_FORWARDED_FOR] to return the IP address.. I have seen, people using if($ip == $REMOTE_ADDR) { // do whatever } but in some configurations of PHP

Re: [PHP] SSL encryption type in PHP?

2001-08-08 Thread Dr. Evil
You can tell it using the variables from the server. Using Apache you can access the variables specs at: http://www.apache-ssl.org/docs.html With Apache SSL is SSL_CIPHER returns the variable about SSL/TLS ciphersuite. Do you know how I would access that variable from PHP? Is that

Re: [PHP] Passing HTTP_POST from one script to another

2001-08-08 Thread Renze Munnik
On Tue, Aug 07, 2001 at 11:27:51PM +0500, Vikram Vaswani wrote: Hi, 'nother question: if I have a form which submits data in POST to script a.php, and I now want to pass this POSTed data to b.php - how do I do this? I have tried the technique of iterating through $HTTP_POST and

Re: [PHP] Passing HTTP_POST from one script to another

2001-08-08 Thread A.T.Z.
Try using sessions. Put the values/variables from $HTTP_POST_VARS into the session and then U can use 'm again on b.php. Or.. put the post vars into hidden textfields.. these do get posted to the next page.. If you run out of luck and have to deal with PHP3.. sessions doesn't seem to work

Re: [PHP] Bug?

2001-08-08 Thread ReDucTor
you must use float not int :D - Original Message - From: Maxim Maletsky [EMAIL PROTECTED] To: '[Intent A/S] Tais M. Hansen' [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Wednesday, August 08, 2001 7:01 PM Subject: RE: [PHP] Bug? good point. ...and try this out: echo

Re: [PHP] Bug?

2001-08-08 Thread Renze Munnik
On Wed, Aug 08, 2001 at 07:06:13PM +1000, ReDucTor wrote: you must use float not int :D Using float doesn't solve the problem, does it? Point is that when using int, the damn thing doesn't get it straight. And that's WEIRD. I mean the result of (8.85-8)*100 is already an integer and not

Re: [PHP] Bug?

2001-08-08 Thread ReDucTor
if you use echo (float)((8.85-8)*100); it works because 8.85 go's to 0.85 and times that by 100, and you get 85 which is what you get... - Original Message - From: Renze Munnik [EMAIL PROTECTED] To: ReDucTor [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Wednesday, August 08, 2001 7:14 PM

[PHP] PHP 4 released date

2001-08-08 Thread Deependra B. Tandukar
Greetings! Can anybody give me, PHP4 released date? Looking forward to hearing from you. Warm Regards, DT -- 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,

Re: [PHP] Apache Directives

2001-08-08 Thread Tom Carter
What you are looking for isn't a php function, but a module in apache called mod_rewrite..this is usually installed in most apaches, if not can be done easily. so in the stie .htaccess (or indeed in the master conf) you would do something like RewriteEngine On RewriteRule ^/login/[a-zA-z0-9]*

Re: [PHP] Bug?

2001-08-08 Thread ReDucTor
i found this http://www.php.net/manual/en/language.types.double.php#warn.float-precision it explains the problem ?php $q = ((8.85-8)*100); echo $q.br; echo (float)($q).br; echo (int)($q).br; echo var_dump($q).br; ? gives out 85 85 84 float(85) - Original Message - From: Darius

Re: [PHP] IP security check

2001-08-08 Thread Tom Carter
Another point is to remember that each page request may come from a different IP address. For example, where I work in IBM, every out going connection goes from one of 30 or so boxes, each with their iwn IP, so in the process of browsing a site each request for a file can come from one of those

Re: [PHP] PHP 4 released date

2001-08-08 Thread ReDucTor
4.0.6 is out, and has been from the 23rd of June 2001.. - Original Message - From: Deependra B. Tandukar [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, August 08, 2001 7:31 PM Subject: [PHP] PHP 4 released date Greetings! Can anybody give me, PHP4 released date?

Re: [PHP] Bug?

2001-08-08 Thread Renze Munnik
On Wed, Aug 08, 2001 at 07:18:26PM +1000, ReDucTor wrote: if you use echo (float)((8.85-8)*100); it works because 8.85 go's to 0.85 and times that by 100, and you get 85 which is what you get... Maybe you've heard about dynamic pages and stuff... Say: $a = 8.85; $b = 8; $c = 100; $result

RE: [PHP] not null

2001-08-08 Thread Slavomir Slizik
if (empty($value)) { ... } On Wed, 1 Aug 2001, Craig Vincent wrote: When a field is declared as an integer, not null and is the primary, how would I address it's empty set? ex: if($value == ???) { bla bla bla } My condition

[PHP] blank form

2001-08-08 Thread David Ovens
in my php scripts I am using forms which are posted to itself, each time fields are submitted the php scripts checks the syntax before moving onto the next part of the form, if there is an error the script will tell the user that there is an error and to use the back button to correct the

[PHP] Re: blank form

2001-08-08 Thread David Ovens
oops sorry, dont think it was a php problem but a problem with my browser !! - Original Message - From: David Ovens To: php Sent: Wednesday, August 08, 2001 10:56 AM Subject: blank form in my php scripts I am using forms which are posted to itself, each time fields are

[PHP] Upload of files gives Mimetype on header

2001-08-08 Thread Thomas Mejer Hansen
Hi When I try to upload files using the example in the PHP documentation, i get uploaded files with the first two lines being e.g.: Content-type : image/jpeg How can I remove this mime type from the images that I upload (so I can perform some manipulation of the images) The code : echo FORM

[PHP] Detecting browser language

2001-08-08 Thread Jeroen Geusebroek
Hi there, Lately you see a lot of sites that detect the language of the client browser. For example if i visit google it's in dutch. I know they detect this using the browser, but i'm not sure on how it's done. Can someone shed some light on this? Thanks, Jeroen -- PHP General Mailing List

[PHP] How to post unknown amount of data ?

2001-08-08 Thread vz
Hello all, I'm having a trouble. I'm programming an CMS for one pc company. So in example i'm doing a pc category catalog admin. They can add/delete/modify theese category's. But also they want one feature: they want to edit all category's in one form. So i made a form that displays all

[PHP] Non english european character conversion

2001-08-08 Thread Tom Carter
Hi All, I was wondering if there exists, either in PHP (I can't find anything) or something someone has written (again, my searches have been fruitless) to convert non-english european characters to the english equivalents eg å to a etc. TIA, Tom -- PHP General Mailing List

[PHP] PHP Editor

2001-08-08 Thread Nic Skitt
Hi all, What tool do you recommend to compose PHP pages? I am traditionaly an ASP developer and I have always used Ultradev and Interdev. What is available?? Cheers Nic (Answers by email would be prefered) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL

[PHP] Re: PHP Editor

2001-08-08 Thread Henrik Hansen
[EMAIL PROTECTED] (Nic Skitt) wrote: Hi all, What tool do you recommend to compose PHP pages? I am traditionaly an ASP developer and I have always used Ultradev and Interdev. What is available?? some are found here (under editors :): http://www.alt-php-faq.org/links.html --

Re: [PHP] How to post unknown amount of data ?

2001-08-08 Thread Tom Carter
The best way of doing this is to name the fields catid[] The [] means that they are inserted into an array in the order they appear on the page, so on the page with deals results you just have to cycle through the array. As a side point, there is no way of telling what has been modified and what

RE: [PHP] How to post unknown amount of data ?

2001-08-08 Thread Bruin, Bolke de
You can enumerate the form vars for example if you have an unkown amount of comments for($i=0;$isizeof($comments);$i++) { echo input type=text name=commentid$i; } etc Bolke (sorry I'm not going to look at your code, better split HTML creation and data(-retrieval)) Bolke

[PHP] associative arrays in html forms and javascript

2001-08-08 Thread Daniel James
Hi everyone :) imagine this if you will.. html body onload=document.formname.inputfield.focus() form name=formname input type=text name=inputfield /form /body /html ugly form with a text input field that is focussed when the form loads, erm.. nice. now, I like to put all my

Re: [PHP] PHP Editor

2001-08-08 Thread B. van Ouwerkerk
What tool do you recommend to compose PHP pages? I am traditionaly an ASP developer and I have always used Ultradev and Interdev. Welcome to the club.. If you take a moment to search the archive.. this question has ben answered quite a few times in the last month. Bye, B. -- PHP

RE: [PHP] How to post unknown amount of data ?

2001-08-08 Thread Bruin, Bolke de
forgot something to enumerate them in your script use something like for ($i=0;$isizeof($comments);$i++) { $cmt = $HTTP_FORM_VARS[commentid . $i]; } Bolke -Oorspronkelijk bericht- Van: Bruin, Bolke de [mailto:[EMAIL PROTECTED]] Verzonden: Wednesday, August 08, 2001 1:20

Re: [PHP] close browser

2001-08-08 Thread kath
I knew it was a joke yeah... really... I did ;) - k - Original Message - From: Ryan Fischer [EMAIL PROTECTED] To: kath [EMAIL PROTECTED]; [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Tuesday, August 07, 2001 11:20 PM Subject: Re: [PHP] close browser You wrote: You wrote:

RE: [PHP] associative arrays in html forms and javascript

2001-08-08 Thread Taylor, Stewart
This is because you currently only have one field on your form named arraystuff. The browser only creates an array of elements if there is more than one of them. arraystuff.focus(), would work at present. -Stewart -Original Message- From: Daniel James [mailto:[EMAIL PROTECTED]] Sent:

[PHP] Re: Non english european character conversion

2001-08-08 Thread Yasuo Ohgaki
Although, I haven't used and don't know it at all. I think recode extension will do that. http://www.php.net/manual/en/ref.recode.php -- Yasuo Ohgaki Tom Carter [EMAIL PROTECTED] wrote in message 015601c11ffb$61fedeb0$0a00a8c0@bjorn">news:015601c11ffb$61fedeb0$0a00a8c0@bjorn... Hi All, I

[PHP] Time problem

2001-08-08 Thread pierre-yves
Hello, I convert the time in seconds to do some calculations, now I want to convert a number of seconds in a presentable HH:MM:SS format. In other words, how do you change this 997271630.08651 in 08:14:32 ? py p.s. I use this to get the number of seconds. function getmicrotime() {

Re: [PHP] SSL encryption type in PHP?

2001-08-08 Thread Sean C. McCarthy
Hi, Use getenv() since it is a CGI variable. Look at the manual. Sean C. McCarthy SCI, S.L. (www.sci-spain.com) Dr. Evil wrote: You can tell it using the variables from the server. Using Apache you can access the variables specs at:

Re: [PHP] Time problem

2001-08-08 Thread Gianluca Baldo
Pierre - py In other words, how do you change this 997271630.08651 py in 08:14:32 ? you can use date() in conjunction with mktime(). Have a look at the manual there are good examples and users comments there. Cheers, Gianluca [EMAIL PROTECTED] BcnInédita EURO RSCG INTERACTION

Re: [PHP] splitting text after 25 words

2001-08-08 Thread Justin French
Thanks to all who replied, this solution by Chris was bar far the easiest to implement. Really appreciate it :) Chris Lambert wrote: $teaser = explode( , $article, 26)); array_pop($teaser); $teaser = implode( , $teaser); Justin French -- PHP General Mailing List (http://www.php.net/)

[PHP] code to see files in directories

2001-08-08 Thread Eduardo Kokubo
I think I saw a code to list the files, subdirectories and the files in the subdirectories of a simple directory in this list some time ago, but I didn't save it. Considering the quantitie of messages in this list, It's quite dificult to find this specific code, so ask the person who did it or

Re: [PHP] installation on windows

2001-08-08 Thread karthik
Hi, The best way would be to create a dir inside inetpub\wwwroot\ and give this directory execute permission in PWS. It should start working then. If it doesnt check ur php.ini for settings. best of luck, Karthik. - Original Message - From: [EMAIL PROTECTED] To: [EMAIL PROTECTED]

[PHP] Re: code to see files in directories

2001-08-08 Thread Henrik Hansen
[EMAIL PROTECTED] (Eduardo Kokubo) wrote: I think I saw a code to list the files, subdirectories and the files in the subdirectories of a simple directory in this list some time ago, but I didn't save it. Considering the quantitie of messages in this list, It's quite dificult to find

Re: [PHP] MySQL connection

2001-08-08 Thread BRACK
Yes that is what I mean, but also When I played with my Apache I saw ALL my information on the screen without any error message. Actually it maybe that my PHP server was down at that moment as well, well, I must check it up Youri On 7 Aug 2001, at 13:00, Bjorn Van Simaeys wrote: Hi,

Re: [PHP] PHP Editor

2001-08-08 Thread Richard Baskett
I would have had no clue that there was an archive, so it's good to know. Thanks! What tool do you recommend to compose PHP pages? I am traditionaly an ASP developer and I have always used Ultradev and Interdev. Welcome to the club.. If you take a moment to search the archive.. this

Re: [PHP] associative arrays in html forms and javascript

2001-08-08 Thread Tim McGuire
Yes, I find I have to do this a lot if I have multiple rows in a form and I want to do anything with javascript. I use commands like this: document.formname[the_checkbox[9]].checked = true and if you needed to stick a variable in the index: theform[the_checkbox[+the_index+]].checked = true;

[PHP] Archives

2001-08-08 Thread Andrew Hill
Richard, Check out http://marc.theaimsgroup.com The WWW section contains many PHP list archives. I couldn't live without this resource. Best regards, Andrew Hill Director of Technology Evangelism OpenLink Software http://www.openlinksw.com Universal Data Access Data Integration Technology

RE: [PHP] Session problem

2001-08-08 Thread Chad Day
I wish it did. Still the same problem. ?php session_start(); global $count; session_register (count); $count++; ? Hello visitor, you have seen this page ?php echo $HTTP_SESSION_VARS[count]; ? times.p http://www.militarycity.com/classified/realtors/count.php Chad -Original Message-

[PHP] Alternate way of calling php scripts

2001-08-08 Thread Evan Nemerson
I seem to recall that you can call a PHP script with a slash after it then variables. For instance http://localhost/script.php/your=mom. I can't find it in the manual, and was wondering if anyone knows how it works. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail:

Re: [PHP] MySQL connection

2001-08-08 Thread BRACK
I mean he will know all your sensitive information to enter your SQL server in couple of hours when server will be up again. Youri On 7 Aug 2001, at 14:40, Tyler Longren wrote: If the SQL server is down how will he hack it? That's like hacking a webserver that doesn't exist. Tyler

RE: [PHP] MySQL connection

2001-08-08 Thread BRACK
If you have Apache and MySQL servers make this experiment - start Apache but forget to start SQL and go to your site http://localhost/... you will see yourself all the information on the screen. Youri On 7 Aug 2001, at 12:53, Ryan Christensen wrote: I'm curious as to how the hacker would

[PHP] SNMP OID translation

2001-08-08 Thread Peter Hicks
Hi folks Something I find confusing about using UCD-SNMP with PHP 4.0.6 is that I can't pass something such as: enterprises.cisco.workgroup.ciscoStackMIB.portGrp.portTable.portEntry.portName to snmpwalkoid - it sits around, then complains that this is an invalid object identifier. Is it

[PHP] Regular expressions

2001-08-08 Thread Marc Davenport
Hello all, I've been trying to find a good regular expression pattern to find URLs. I have found some that work fine when the protocol is included ie http://www.php.net . But I can not find one that will find www.php.net . Does anyone know where a good database of Regular expressions can be

[PHP] Re: selecting words

2001-08-08 Thread bill
function TrimString($sString,$iLen=125){ $retstring=strtok($sString, ). ; do { if(!$tmp=strtok( ). ) break; $retstring.=$tmp; } while(strlen($retstring)$iLen); if(strlen($retstring)strlen(trim($sString))) $retstring .=...; return $retstring; } // end function Jamie Saunders

Re: [PHP] Regular expressions

2001-08-08 Thread ReDucTor
$line = htmlentities(stripslashes($line)); $line = nl2br($line); $line = eregi_replace(\[(link|url)=(.*)\](.*)\[/(link|url)\],a href=\\\2\ target=\_blank\\\3/a,$line); $line = eregi_replace(\[color=(.*)](.*)\[/color\], font color=\\\1\\\2/font, $line); $line =

RE: [PHP] splitting text after 25 words

2001-08-08 Thread Robert V. Zwink
For future reference using explode and counting the words is not the correct way to do this. Your array could be huge, and if you have multiple requests to the page this would be a horrible idea. I believe the correct way to do this is to use MySQL inherent function

[PHP] Test

2001-08-08 Thread By Proxy
Testing.. Check, check, 1 2..2.. -- 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 PROTECTED]

RE: [PHP] Detecting browser language

2001-08-08 Thread Don Read
On 08-Aug-2001 Jeroen Geusebroek wrote: Hi there, Lately you see a lot of sites that detect the language of the client browser. For example if i visit google it's in dutch. I know they detect this using the browser, but i'm not sure on how it's done. Can someone shed some light on

RE: [PHP] selecting words

2001-08-08 Thread Robert V. Zwink
If you are using MySQL use the function: SELECT SUBSTRING_INDEX(column_name, ' ', 100) FROM table_name would return the first 100 words. This is in the MySQL manual, this was also answered earier on the list. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - From MySQL manual:

[PHP] Strange session problems. Please help.

2001-08-08 Thread By Proxy
Hi. Does anybody know of any issues in PHP 4.0B2 regarding to the handling of session variables on different networks? Here is the problem. I have written a user authentication system using session variables. When the user logs in their name and pass are stored as an associative array (with

Re: [PHP] PHP Editor

2001-08-08 Thread B. van Ouwerkerk
At 06:19 8-8-01 -0700, Richard Baskett wrote: I would have had no clue that there was an archive, so it's good to know. Thanks! It's on the same page where you subscribed to this list.. Bye, B. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For

RE: [PHP] code to see files in directories

2001-08-08 Thread Karl Phillipson
Try this ?php $level1 = 0; $baseurl = http://$HTTP_HOST;; $base = './'; $basedir = opendir($base); while ($file = readdir($basedir)){ if ($file != '.' $file != '..' eregi(.htm,$file)) { print(a href=$baseurl/$file$baseurl/$file/aBR\n);

Re: [PHP] Alternate way of calling php scripts

2001-08-08 Thread Jean-Arthur Silve
I think you think to the GET method : http://www.mysite.com/script.php?your=mom At 06:13 08/08/01 -0700, Evan Nemerson wrote: I seem to recall that you can call a PHP script with a slash after it then variables. For instance http://localhost/script.php/your=mom. I can't find it in the manual,

RE: [PHP] Session problem

2001-08-08 Thread Brian Dunworth
On Wednesday, August 08, 2001 at 9:16 AM, Chad Day said: I wish it did. Still the same problem. ?php session_start(); global $count; session_register (count); $count++; ? Hello visitor, you have seen this page ?php echo $HTTP_SESSION_VARS[count]; ? times.p You're asking the

RE: [PHP] PHP 4 released date

2001-08-08 Thread Mark Roedel
-Original Message- From: Deependra B. Tandukar [mailto:[EMAIL PROTECTED]] Sent: Wednesday, August 08, 2001 4:31 AM To: [EMAIL PROTECTED] Subject: [PHP] PHP 4 released date Can anybody give me, PHP4 released date? The NEWS file in your PHP directory gives the date of each

[PHP] parse and fatal errors don't seem to touch my handler

2001-08-08 Thread Darius Ivanauskas
Any ideas ? Regards, Darius Ivanauskas -- 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 PROTECTED]

RE: [PHP] Session problem

2001-08-08 Thread Chad Day
Nope. Same problem. I'm seriously thinking there's a bug in the version of PHP I am running at this point, but I searched php.net and found no mention of anything .. Chad -Original Message- From: Brian Dunworth [mailto:[EMAIL PROTECTED]] Sent: Wednesday, August 08, 2001 10:37 AM To:

Re: [PHP] Time problem

2001-08-08 Thread pierre-yves
Thanks, I feel a bit moron ;) it seems like I missed it while reading the manuel, sometimes the solution is so obvious that it becomes trivial! py - Original Message - From: Thomas Schmid [EMAIL PROTECTED] To: 'pierre-yves' [EMAIL PROTECTED] Sent: Wednesday, August 08, 2001 8:23 AM

Re: [PHP] parse and fatal errors don't seem to touch my handler

2001-08-08 Thread Thies C. Arntzen
On Wed, Aug 08, 2001 at 04:43:15PM +0200, Darius Ivanauskas wrote: Any ideas ? fatal errors cannot be caught in user-space as of now. tc -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To

Re: [PHP] splitting text after 25 words

2001-08-08 Thread jose d lopez
someting i've used. ?php $storywords = explode( , $storytext); for ($i=0;$i25;$i++) { $teaser = $teaser . . $storywords[$i]; } ? ? echo $teaser...;? At 03:57 PM 8/8/2001 +1100, Justin French wrote: Hi all, I'd like to split a text block at 25 words, as a teaser for the full

Re: [PHP] array + checkbox

2001-08-08 Thread Colin Viebrock
If( strcmp($voorraad[1],'on') == 0 ) // it's checked else // it's not Alternatively, fix your HTML by using quotes and a value attribute: INPUT TYPE=checkbox name=voorraad value=something checked Then: if ($voorraad=='something') { // checked } - Colin -- PHP General Mailing

RE: [PHP] 3rd include

2001-08-08 Thread Mark Roedel
-Original Message- From: Drew P. Vogel [mailto:[EMAIL PROTECTED]] Sent: Tuesday, August 07, 2001 8:51 PM To: [EMAIL PROTECTED] Subject: [PHP] 3rd include Has the 3rd include bug (where variable definitions are lost at the 3rd include), been fixed yet? The obvious way to

Re: [PHP] associative arrays in html forms and javascript

2001-08-08 Thread Colin Viebrock
html body onload=document.formname.arraystuff[inputfield].focus() form name=formname input type=text name=arraystuff[inputfield] /form /body /html and like that the text field won't focus and the parser tells me that arraystuff has no properties and that inputfield is

Re: [PHP] Alternate way of calling php scripts

2001-08-08 Thread Tim
It works pretty much as you described. :) Make a script like that and run phpinfo() from it and you'll see all the variations on $PHP_SELF and $HTTP_SERVER_VARS[] that allow you to retrieve the extra parameters from the URL. Note that if your page displays images, you'll need to include a base

Re: [PHP] Strange session problems. Please help.

2001-08-08 Thread Tim
Does anybody know of any issues in PHP 4.0B2 regarding to the handling of session variables on different networks? That little B2 in the version number almost guarantees that there will be problems of some sort. Does anyone have any suggestions (except for 'Upgrade PHP on the 4.0B2

[PHP] Newsgroup / Mailing list

2001-08-08 Thread Soeren Nielsen
B. Van Ouwerkerk [EMAIL PROTECTED] wrote in message It's on the same page where you subscribed to this list.. Actually this is also a newsgroup that don't require subscription: Server: news.php.net Group: php.general Best regards, Søren Nielsen -- PHP General Mailing List

[PHP] Re: Newbie: Simple site search To bit more Complex...

2001-08-08 Thread Inércia Sensorial
You might want to have a look on this script: http://www.digitalgenesis.com/software/dgssearch.html It can search specified directories/file extensions/databases, or deny search for the same, and many other options. -- Julio Nobrega. 2B||!BB - That's the question. Steve Wright

[PHP] require using url

2001-08-08 Thread Nigel_Soon
Hi, I'm having a problem using require with a url. What I'm trying to do is have a php script on a server that calls a file on another server using require. The file that is called on the other server contains php functions that the calling php script uses. I my attempts so far I get: Fatal

Re: [PHP] require using url

2001-08-08 Thread Tyler Longren
What's on line 51? The error is on line 51 in survey.php. require() Tyler Longren Captain Jack Communications [EMAIL PROTECTED] www.captainjack.com isn't on line 51. The error occurs because there's no login() function. On Wed, 8 Aug 2001 10:08:01 -0600 (Mountain Daylight Time) [EMAIL

Re: [PHP] Bug?

2001-08-08 Thread Bjorn Van Simaeys
Hello, I remember there was a warning in the PHP Manual about this. This is it: ** Never cast an unknown fraction to integer, as this can sometimes lead to unexpected results. ** echo (int) ( (0.1+0.7) * 10 ); // echoes 7! So do your calculations first, and then echo the results. This way

Re: [PHP] checking for null form fields fails

2001-08-08 Thread Bjorn Van Simaeys
Hey Renze, Don't you think that checking too much is useless and takes a bite out of your performance too? Don't waste your time. Greetz, Bjorn Van Simaeys www.bvsenterprises.com --- Renze Munnik [EMAIL PROTECTED] wrote: On Tue, Aug 07, 2001 at 09:26:48AM -0700, Mark Maggelet wrote:

[PHP] Image Generation Library

2001-08-08 Thread ignacio . estrada
Hi to all, I need to create web pages containing images which should be updated periodically, but the image contents may vary as data coming from a database varies. What is that?, well the image will contain dynamic objects and static objects. The dynamic objects can be text (representing

Re: [PHP] require using url

2001-08-08 Thread Nigel_Soon
Line 51 has a call to login(). The login() function is in functions.php which lives on a different server. I try to use functions.php by putting the require statement in survey.php. This works when they both live on the same server but when I try using require with the url to a remote server it

RE: [PHP] Image Generation Library

2001-08-08 Thread Bruin, Bolke de
Hi, read the manual on the GD-library (www.php.net/image) it wont do any GIFS anymore, but it'll all the rest Bolke -Oorspronkelijk bericht- Van: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Verzonden: Wednesday, August 08, 2001 6:14 PM Aan: [EMAIL PROTECTED] Onderwerp: [PHP] Image

RE: [PHP] require using url

2001-08-08 Thread Bruin, Bolke de
Is that file living on a HTTP server which PARSES the function? Eg do you get the source code when directly requesting it from a browser or an empty page (or whatever) Bolke -Oorspronkelijk bericht- Van: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Verzonden: Wednesday, August 08, 2001

RE: [PHP] 3rd include

2001-08-08 Thread Johnson, Kirk
Has the 3rd include bug (where variable definitions ar lost at the 3rd include), been fixed yet? --Drew Vogel Drew, I hadn't heard about this one. If you find anything, would you please post back your results to the list? TIA Kirk -- PHP General Mailing List (http://www.php.net/) To

Re: [PHP] Re: blank form

2001-08-08 Thread Bjorn Van Simaeys
Hi David, This is indeed not a php problem, but a browser feature. The browser forces a reload whenever you have a '?' in your code! (unless you use some proxy..). I would also like to know how to overcome this - if possible. Greetz, Bjorn Van Simaeys --- David Ovens [EMAIL PROTECTED]

RE: [PHP] require using url

2001-08-08 Thread Nigel_Soon
Yeah the file is on a HTTP server. I don't exactly get the source code showing though as it is enclosed in php tags and the HTTP server is running php. Thanks, Nigel On Wed, 8 Aug 2001, Bruin, Bolke de wrote: Is that file living on a HTTP server which PARSES the function? Eg do you get the

[PHP] Is there a debugger ???

2001-08-08 Thread Peter Dowie
Hi, I noticed in php.ini there was a setion for debugger, I tried enabling this and connecting to the specified port, but no joy. Anyone know how to get this working ? Pete -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands,

[PHP] RANDOM MOVIE?

2001-08-08 Thread Kyle Smith
Could somebody please show me, send me an example or redirect me to a page which shows how to show a random FLASH movie from a text file which contains different names of different movies so that when i go on the page it shows lets say, 1 of the 5 movies in the text document. Finally and

[PHP] newbie

2001-08-08 Thread Jeremy Morano
Hi, I'm a real newbie at this stuff and I have a little problem... I read the manual but the answer to my questions were not clear. What I am trying do do is track down a user when he or she visits my site. I would like to store some information about them into mySql...Information like,

Re: [PHP] RANDOM MOVIE?

2001-08-08 Thread Tim
Use file() to load in the names of the movies from your text file into an array. Use rand() to pick one of them from the array. - Tim On 08 Aug 2001 17:47:36 -0700, Kyle Smith wrote: Could somebody please show me, send me an example or redirect me to a page which shows how to show a random

Re: [PHP] newbie

2001-08-08 Thread Tim
http://www.phpbuilder.com is loaded with goodies that should be able to help you. - Tim On 08 Aug 2001 12:49:56 -0400, Jeremy Morano wrote: Can anyone give me some information or a link other than php.net PLEASEthank you. -- PHP General Mailing List (http://www.php.net/)

RE: [PHP] MySQL connection

2001-08-08 Thread Bjorn Van Simaeys
Hey Jouri, I don't agree with this one. I tested it out on my localhost and got the two error messages I told you I was going to get: Warning: Unknown MySQL Server Host... Warning: MySQL Connection Failed... No usernames/passwords. I have to say however that I always include my connect.php

RE: [PHP] 3rd include

2001-08-08 Thread Drew P. Vogel
I searched the database and did not find anything. I was not sure if the bug could possibly be entered under a different title, though. It is discussed in the manual errata for the include() function, so I would assume the developers at least know of it. --Drew Vogel On Wed, 8 Aug 2001, Mark

RE: [PHP] Session problem

2001-08-08 Thread Bjorn Van Simaeys
Maybe you have your cookies turned off in your browser? Something that is easily forgotten.. Greetz, Bjorn Van Simaeys www.bvsenterprises.com --- Chad Day [EMAIL PROTECTED] wrote: Nope. Same problem. I'm seriously thinking there's a bug in the version of PHP I am running at this point,

  1   2   >