[PHP] PhP 4.2.1 (and various)

2002-05-15 Thread Olav Bringedal
Hi! I've recently upgraded to 4.2.1, but i have gotten a lot of problems with it. First of all my pbpBB 2.0 forums stopped working (http://utge.dyndns.org/phpbb2/index.php). When you try to log in i get an error, malfomed header request? (im not on the actual machine now :)). I also have

[PHP] More 4.2.1 (Note to myself:think before pressing send!)

2002-05-15 Thread Olav Bringedal
Sorry about this, but i forgot one thing in my last post. With 4.2.1 (as opposed to 4.2.0), gd2 stopped working. When i run the server I get could not find freetype.dll(? Still not on the actual machine) and then gd2.dll(?) module could not be found. phpinfo at http://jaggu.org/info.php I

Re: [PHP] PhP 4.2.1 (and various)

2002-05-15 Thread Analysis Solutions
On Wed, May 15, 2002 at 07:34:13AM +0100, Olav Bringedal wrote: First of all my pbpBB 2.0 forums stopped working Do they use variables straight up, rather than via the new superglobals such as $_POST? Simple solution, change your php.ini to have register_globals = on.

[PHP] php performance

2002-05-15 Thread Michal Dvoracek
Hello, what is better syntax (for perfomance option, not code-style) e.g. html code out of php tags table ?php while (...) { ? tr td?php echo $something; ?/td tdtext/td /tr ?php } ? /table or ?php $table = 'table'; while (...) $table .=

[PHP] how to get to POST request from PHP?

2002-05-15 Thread peter tatischev
Help :-) I am sending a POST request from PHP to another PHP script through a socket, something like - $request = Content-type: text/xml\n; $request .= blah...blah...blah; $request .= \n\n--asdlfkjiurwghasf; // Build the header $header = POST

Re: [PHP] Newbie challenge to brainiacs

2002-05-15 Thread Josh Edwards
The challenge is to do it without SQL. Which blog do you recommend? David Jackson [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Jay Blanchard wrote: The burning issue that begs to be answered is, why reinvent the wheel? There is a least a dozen blogs on

[PHP] RE: array_search in 2-d arrays

2002-05-15 Thread Tim Ward
First this is not a 2d array it is a single d array each element of which is another array. If you search the array for a value you won't find it as each element is an array. $layerDes[1][0] is not an element of $layerDes it is an element of the array $layerDes[1]. As far as I know there is no

[PHP] Session destroy/close

2002-05-15 Thread Ake
I'm trying to close a session without the logged in surfer clicking log out (through a onunLoad javascript function which loads i different php document with the otherwise working php code for destryoing a session). I have a working Log out link which destroys the session and the variables in

Re: [PHP] Cool PHP Tricks/Features ?

2002-05-15 Thread Danny Shepherd
No, that's not a problem either! snip from manual Before ob_gzhandler() actually sends compressed data, it determines what type of content encoding the browser will accept (gzip, deflate or none at all) and will return it's output accordingly. All browsers are supported since it's up to the

[PHP] can't upload files

2002-05-15 Thread Diana Castillo
I am using this script: to upload a picture file and I get the error below: Unable to create 'hgh6.gif': Permission denied in /home/vhtdocs/archipro/do_upload.php on line 13 Couldn't copy the file! - What am I doing wrong form enctype=multipart/form-data method=post action=do_upload.php

Re: [PHP] PhP 4.2.1 (and various)

2002-05-15 Thread Vincent Oostindie
On Wed, 15 May 2002 08:52:49 +0200, Analysis Solutions wrote: So my question is, why has that changed, and what do we do now to authenticate users and redirect them to anothe page? And what the hell is this thingy, i cant see to find anything on it in the manual, and search doesnt work for

[PHP] counting max word length fails on line brake

2002-05-15 Thread andy
Hi there, I would like to check user input for to long words. Therefore I did code a function returning a string seperated by dash if it is more than $maxlength. If it is 2 times maxlength it returns false. Works good execept on line brakes. So if the input is: test

[PHP] Newbie - Spot the error

2002-05-15 Thread Josh Edwards
if I have $time = 21 then $timespread =array(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0); if ($time = = 21) $timespread[22]=($timespread[22]+1); echo $timespread[22] ; I get 0 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] PhP 4.2.1 (and various)

2002-05-15 Thread Olav Bringedal
--- Vincent Oostindie [EMAIL PROTECTED] wrote: Not only that: if you are running a production server, you will probably want to log your error messages to a file (or syslog, or whatever), instead of printing them. So 'display_errors' should be off. If that is the case, you don't need to

Re: [PHP] Newbie - Spot the error

2002-05-15 Thread Olav Bringedal
--- Josh Edwards [EMAIL PROTECTED] wrote: if I have $time = 21 then $timespread =array(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0); if ($time = = 21) $timespread[22]=($timespread[22]+1); echo $timespread[22] ; I get 0 It might be = = which should be ==. If not, try:

Re: [PHP] DOMXML in 4.2.0 problems

2002-05-15 Thread Danny Shepherd
Well it works just fine for me :) PHP 4.2.0 / Apache 2.0.36 / FreeBSD 4.5 DOM/XML enabled libxml Version 2.4.21 HTML Support enabled XPath Support enabled XPointer Support enabled As you can see, I'm using a later version of libxml than you are - maybe that's the problem. I am also forced to

Re: [PHP] Newbie - Spot the error

2002-05-15 Thread Josh Edwards
If I // $time==21 the count goes up by 1 so it's not recognizing the 21. Any ideas Olav bringedal [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... --- Josh Edwards [EMAIL PROTECTED] wrote: if I have $time = 21 then $timespread

[PHP] byte order of integers

2002-05-15 Thread John Horton
Hi! Is there any way of decomposing an integer into it's constituent bytes so that a new byte order can be created? tia JohnH John Horton Software Engineer BITbyBIT International Limited [EMAIL PROTECTED] Tel: + 44 (0) 1865 865400 Fax: + 44 (0) 1865 865450 www.bitbybit.co.uk Disclaimer:

[PHP] HTTPS spoofing and $_SERVER

2002-05-15 Thread George Whiffen
Hi, I want to know if the user is connected on a secure socket and have two problems: 1. My Apache (Stronghold), variables are not turning up in $_SERVER or $HTTP_SERVER_VARS although they are in $GLOBALS e.g. I have $GLOBALS[SERVER_PORT] but not $_SERVER[SERVER_PORT]. This is with track vars

Re: [PHP] can't upload files

2002-05-15 Thread Jason Wong
On Wednesday 15 May 2002 18:33, Diana Castillo wrote: I am using this script: to upload a picture file and I get the error below: Unable to create 'hgh6.gif': Permission denied in /home/vhtdocs/archipro/do_upload.php on line 13 Couldn't copy the file! - What am I doing wrong form

Re: [PHP] Newbie challenge to brainiacs

2002-05-15 Thread Jason Wong
On Wednesday 15 May 2002 16:20, Josh Edwards wrote: The challenge is to do it without SQL. Which blog do you recommend? David Jackson [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Jay Blanchard wrote: The burning issue that begs to be answered is, why

Re: [PHP] Session destroy/close

2002-05-15 Thread 1LT John W. Holmes
Look at the session manual page and maybe set a shorter time limit for the session cookie. If the user isn't going to click on the Logout link, then there's really nothing you can do until they close the browser (which will stop the session / delete cookie automatically). Maybe you can check for

Re: [PHP] HTTPS spoofing and $_SERVER

2002-05-15 Thread 1LT John W. Holmes
Well, if you fix #1, that will fix #2 because you can use $_SERVER[HTTPS], which can't be spoofed by the user. What versions of PHP and Apache are you using, on what OS? ---John Holmes... - Original Message - From: George Whiffen [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday,

Re: [PHP] Cool PHP Tricks/Features ?

2002-05-15 Thread George Whiffen
Ummm, This output compression sounded cool to me when I came across it, but I wasn't sure it really helped or was appropriate for us to use: 1. My biggest concern is the slowest user i.e. at the end of a modem on the other side of the planet. I thought they would almost certainly have modem

Re: [PHP] HTTPS spoofing and $_SERVER

2002-05-15 Thread George Whiffen
1LT John W. Holmes wrote: Well, if you fix #1, that will fix #2 because you can use $_SERVER[HTTPS], which can't be spoofed by the user. What versions of PHP and Apache are you using, on what OS? ---John Holmes... Oops, Just run up phpinfo and this appears to be php 4.0.1pl2, Stronghold

[PHP] How YaBB logs in

2002-05-15 Thread Matthew Ward
I'm currently integrating my site with YaBB so that when you log into my YaBB forums it also logs you into the whole site. I'm also developing a script that I'm integrating into my main page that checks the password in the cookie with the one in the database as a security check. The problem is,

[PHP] PHP and HTML

2002-05-15 Thread Alia Mikati
Hi everybody Plz can u help me with this? I have an html file that diplays images. And I want to use PHP to parse this file: i.e. to display those images and their sources. How can this be done? Thx a lot Alia -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] How YaBB logs in

2002-05-15 Thread Rasmus Lerdorf
You can't. You have to have the non-crypted password which you then run the crypt() function on. Say the password is banana. You then run: crypt('banana','ba') = baGGlRhhSFzk2 crypt('banana','ys') = ysu0jnfX9fp2. You make sure these two match the two crypted strings stored in the

RE: [PHP] Cool PHP Tricks/Features ?

2002-05-15 Thread David Freeman
It's quite some time since I dealt directly with modems and packets moving over networks per se so some of this may well prove wrong - feel free to point it out if I am someone. 3. But surely, ASDL, cable, the backbone and decent intranets must all do hardware compression, don't they? Or

[PHP] GD and Freetype on Win2k.

2002-05-15 Thread Michael Barker
I'm using the phpdev distribution on Win2k which shows Freetype Linkage = with freetype under GD in phpinfo(). When I try to use a freetype font with ImageTTFText() I get an error stating that php could not find/open font. Do I need to obtain Freetype seperately as I would on linux or am I

Re: [PHP] Cool PHP Tricks/Features ?

2002-05-15 Thread Danny Shepherd
Modem compression will only affect data between the modem and the ISP. A point you don't appear to have considered is that by compressing at the server a host can significantly reduce outgoing bandwidth (i.e. the stuff they pay for) - the less you use, the less you pay. Compressing pages is very

[PHP] SQL Server test tool

2002-05-15 Thread Scott St. John
Has anyone seen or know if it is possible to use PHP to test if a SQL server is alive on port 1433? I know I could run a query, but was looking for something to actually test on the port. Thanks, -Scott -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] can't upload files

2002-05-15 Thread heinisch
At 15.05.2002 12:33, you wrote: I am using this script: to upload a picture file and I get the error below: Unable to create 'hgh6.gif': Permission denied in /home/vhtdocs/archipro/do_upload.php on line 13 Couldn't copy the file! - What am I doing wrong form enctype=multipart/form-data

[PHP] The Apache PHP problem

2002-05-15 Thread Eric
Hi Just a couple of hours ago I had Apache 1.3 on windows 95 going (with the PWS switched off), I could get the HTML content of a index.php file to work, by typing in http://localhost/index.php (and http://localhost/ worked well with the Apache notice) but the code in the PHP file did not work

[PHP] shell command

2002-05-15 Thread Roman Duriancik
How to execute dos\winnt command in php script, i need disk map in php excample : ? some code . and now i need do this : 'net use I: \\server\shere_folder\' ..? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] shell command

2002-05-15 Thread Juan Pablo Aqueveque
http://www.php.net/manual/en/ref.exec.php At 09:30 15/05/02, you wrote: How to execute dos\winnt command in php script, i need disk map in php excample : ? some code . and now i need do this : 'net use I: \\server\shere_folder\' ..? -- PHP General Mailing List (http://www.php.net/) To

Re: [PHP] Cool PHP Tricks/Features ?

2002-05-15 Thread Michael Kimsal
George Whiffen wrote: 1. My biggest concern is the slowest user i.e. at the end of a modem on the other side of the planet. I thought they would almost certainly have modem compression so doing our own compression doesn't really help them at all i.e. actual download speeds stay the same,

Re: [PHP] shell command

2002-05-15 Thread 1LT John W. Holmes
Read the manual. www.php.net/exec among others... ---John Holmes... - Original Message - From: Roman Duriancik [EMAIL PROTECTED] To: PHP-General [EMAIL PROTECTED] Sent: Wednesday, May 15, 2002 9:30 AM Subject: [PHP] shell command How to execute dos\winnt command in php script, i

RE: [PHP] shell command

2002-05-15 Thread Jared Boelens
Here are the functions you need: http://www.php.net/manual/en/ref.exec.php -Jared -Original Message- From: Roman Duriancik [mailto:[EMAIL PROTECTED]] Sent: Wednesday, May 15, 2002 9:30 AM To: PHP-General Subject: [PHP] shell command How to execute dos\winnt command in php script, i

RE: [PHP] SQL Server test tool

2002-05-15 Thread Jared Boelens
I would imagine that you could use fsockopen to open a socket connection on that port in order to test it. -Jared -Original Message- From: Scott St. John [mailto:[EMAIL PROTECTED]] Sent: Wednesday, May 15, 2002 8:53 AM To: [EMAIL PROTECTED] Subject: [PHP] SQL Server test tool Has

Re: [PHP] Cool PHP Tricks/Features ?

2002-05-15 Thread Michael Kimsal
Danny Shepherd wrote: No, that's not a problem either! snip from manual Before ob_gzhandler() actually sends compressed data, it determines what type of content encoding the browser will accept (gzip, deflate or none at all) and will return it's output accordingly. All browsers are

[PHP] Striphigh in PHP?

2002-05-15 Thread Steven Apostolou
Hello Everybody, Is there a function/library in PHP that does this? The module striphigh.pm (Perl module): The Text::Striphigh module exports a single function: Cstriphigh. This function takes one argument, a string possibly containing high ASCII characters in the

Re: [PHP] Newbie - Spot the error

2002-05-15 Thread Shaun Thomas
On Wed, 15 May 2002, Josh Edwards wrote: $timespread =array(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0); if ($time = = 21) $timespread[22]=($timespread[22]+1); echo $timespread[22] ; It should be ==, not = =. Secondly, you don't need to quote the 21, it's a number. You should use

[PHP] Tellwhich browser

2002-05-15 Thread Diana Castillo
What is the code to tell whether the user is on IE or Netscape? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] IF Statements

2002-05-15 Thread Jon Yates
People, hope you can help. The below IF statement is getting a PARSE error. Can anyone spot why? Cheers. Jon if (($this-checkReferralCB($this-benefitRef, $this-benefitNo, $this-childDOB)) (!$this-checkLocation($this-post, W)) (!empty($this-childDOB))) ||

Re: [PHP] IF Statements

2002-05-15 Thread Rasmus Lerdorf
Your brackets don't match up. Use an editor that lets you do bracket-matching. Hit '%' in vi, for example. -Rasmus On Wed, 15 May 2002, Jon Yates wrote: People, hope you can help. The below IF statement is getting a PARSE error. Can anyone spot why? Cheers. Jon if

Re: [PHP] IF Statements

2002-05-15 Thread Steven Apostolou
if (($this-checkReferralCB($this-benefitRef, $this-benefitNo, $this-childDOB)) (!$this-checkLocation($this-post, W)) (!empty($this-childDOB))) || ($this-checkPregnancy($this-benefitRef, $this-benefitNo)) must be: if (($this-checkReferralCB($this-benefitRef, $this-benefitNo,

Re: [PHP] IF Statements

2002-05-15 Thread Michal Dvoracek
Hello, try this version :) if (($this-checkReferralCB($this-benefitRef, $this-benefitNo, $this-childDOB)) (!$this-checkLocation($this-post, W)) (!empty($this-childDOB)) || ($this-checkPregnancy($this-benefitRef, $this-benefitNo))) Regards, Michal Dvoracek [EMAIL

RE: [PHP] IF Statements

2002-05-15 Thread Jay Blanchard
[snip] People, hope you can help. The below IF statement is getting a PARSE error. Can anyone spot why? if (($this-checkReferralCB($this-benefitRef, $this-benefitNo, $this-childDOB)) (!$this-checkLocation($this-post, W)) (!empty($this-childDOB))) ||

RE: [PHP] Sessions Without Cookies or SID Passing...

2002-05-15 Thread Garth Dahlstrom
maintain state accross requests. This is done in 3 different ways. 1. Cookies 2. URL Mangling 3. HTTP Authentication #4 Passing a SID/Session info in hidden fields, but it means you must push every page move through a submit (which can be done with Javascript, image buttons, etc),

Re: [PHP] IF Statements

2002-05-15 Thread 1LT John W. Holmes
When in doubt, add in some carriage returns to space everything out to see if your braces match up. if ( ($this-checkReferralCB($this-benefitRef, $this-benefitNo, $this-childDOB)) (!$this-checkLocation($this-post, W)) (!empty($this-childDOB)) )

Re: [PHP] PhP 4.2.1 (and various)

2002-05-15 Thread Analysis Solutions
Olav: On Wed, May 15, 2002 at 11:53:06AM +0100, Olav Bringedal wrote: $user=$Session[user]; if(!$Authorized) { header (Location: http://jaggu.org;); } As I was saying before, write your code in a way that doesn't generate error messages. For example, the above passage would be

[PHP] PHP editor (win)

2002-05-15 Thread Juan Pablo Aqueveque
Hi guys I know this question it's very recurrent but the problem of Jon Yates make me think again this stuff. Somebody knows a quick editor, simply and with highlight? :) Jp I have tried : PHPEdit, DevPad Juan Pablo Aqueveque [EMAIL

Re: [PHP] counting max word length fails on line brake

2002-05-15 Thread Analysis Solutions
On Wed, May 15, 2002 at 12:49:30PM +0200, andy wrote: test ölakjdfölakjdöfkjaödlfkjöaksdjföl it asumes thtat the word is: test ölakjdfölakjdöfkjaödlfkjöaksdjföl $word = explode( ,$string); Because you're splitting on spaces only. If you want to split on more than just spaces, you

Re: [PHP] counting max word length fails on line brake

2002-05-15 Thread 1LT John W. Holmes
You might want to look into wordwrap(), too www.php.net/wordwrap ---John Holmes... - Original Message - From: Analysis Solutions [EMAIL PROTECTED] To: PHP List [EMAIL PROTECTED] Sent: Wednesday, May 15, 2002 10:42 AM Subject: Re: [PHP] counting max word length fails on line brake

[PHP] Newbie help please!

2002-05-15 Thread John
Hello, I am about 3 hrs old with php and have a very simple question. I have a test.html page that is just an href and I want to put the variables into php variables on the next page but I get an error. Could someone please correct my code or tell me what is wrong. We use IIS NT 4.0

RE: [PHP] Newbie help please!

2002-05-15 Thread Tommy Claasens - Q Data KZN
Hi, Try this ?php $username = $_GET['user']; $password = $_GET['pass']; echo $username; echo $password; ? -Original Message- From: John [mailto:[EMAIL PROTECTED]] Sent: Wed, 15 May 2002 16:46 To: [EMAIL PROTECTED] Subject: [PHP] Newbie help please!

RE: [PHP] Newbie help please!

2002-05-15 Thread Jay Blanchard
[snip] test.html code html head titleUntitled/title /head body /body a href=test.php?user=adminpass=123456Click here/a /html test.php code ?php $username = user; $password = pass; echo $username; echo $password; ? [/snip] $user will be 'admin' $pass will be '123456'

RE: [PHP] Newbie help please!

2002-05-15 Thread Collins, Robert
this will do it: ?php $username = $_GET['user']; $password = $_GET['pass']; echo $username; echo $password; ? Robert W. Collins II Webmaster New Orleans Regional Transit Authority Phone : (504) 248-3826 Email : [EMAIL PROTECTED] -Original Message-

[PHP] Security in virtual host server

2002-05-15 Thread James Arthur
Hi I have a server with multiple users, each with user space that may contain a public_html directory. The main site also has a web page, but I'm having trouble configuring PHP securely. Anyone with access to PHP can write a script to find and print out any file in the main page, and one of

RE: [PHP] PHP editor (win)

2002-05-15 Thread Brian McGarvie
html-kit... http://www.chami.com/html-kit/ -Original Message- From: Juan Pablo Aqueveque [mailto:[EMAIL PROTECTED]] Sent: 15 May 2002 15:39 To: [EMAIL PROTECTED] Subject: [PHP] PHP editor (win) Hi guys I know this question it's very recurrent but the problem of Jon Yates make me

RE: [PHP] Newbie help please!

2002-05-15 Thread Brian McGarvie
or this ?php echo $user; echo $pass; ? -Original Message- From: Tommy Claasens - Q Data KZN [mailto:[EMAIL PROTECTED]] Sent: 15 May 2002 15:57 To: John; [EMAIL PROTECTED] Subject: RE: [PHP] Newbie help please! Hi, Try this ?php $username = $_GET['user'];

Re: [PHP] Newbie help please!

2002-05-15 Thread John
Tommy, Thanks that was it. Tommy Claasens - Q Data Kzn [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Hi, Try this ?php $username = $_GET['user']; $password = $_GET['pass']; echo $username; echo $password; ? -Original Message- From:

[PHP] Compiling PHP on Solaris 7

2002-05-15 Thread Thomas Finley
Pleas help. I'm installing php on a Solaris 7 server that is running iplanet 4.1. PHP Version 4.2.1 Configure: (I had more compiled in (gd, gdbm...) but error below occured so I cut it down) ./configure --with-nsapi=/usr/netscape/server4 --enable-libgcc \ --prefix=/usr

[PHP] make install

2002-05-15 Thread Shanti Kunchaparty
Hello I am trying to install PHP version 4.2.1 on redhat linus version 7.2 with mysql and apache version 2.0.35 The configure command used was: ./configure --prefix=/usr/local/php/ --with-mysql=/srv/local/mysql/mysql-3.23.49a-pc-linux-gnu-i686 --with-xml\ --with-apxs2=/usr/local/apache/bin/apxs

Re: [PHP] Tellwhich browser

2002-05-15 Thread Mark Gallagher
Diana Castillo wrote: What is the code to tell whether the user is on IE or Netscape? It's slightly more complicated than that (I'm a newbie too, but I know a very little about user-agent strings), but it *will* involve using http://www.php.net/manual/en/function.get-browser.php As you may be

Re: [PHP] Tellwhich browser

2002-05-15 Thread Danny Shepherd
$_SERVER['HTTP_USER_AGENT'] That's the variable which holds the browser's user agent string (browser name, version, platform etc); You may also find this helpful http://www.php.net/manual/en/function.get-browser.php HTH Danny. - Original Message - From: Diana Castillo [EMAIL

[PHP] Logging Errors to a File

2002-05-15 Thread Jonathan Rosenberg
I am using an Apache webserver w/ PHP provided by a hosting company I can't seem to get PHP errors logged to a file. From reading the docs, my understanding is that I need to set error_log to the name of a file set log_errors to on in the php.ini file (.htaccess, in my case). Is this

[PHP] trans-sid .. help

2002-05-15 Thread Joshua E Minnie
I have been using some simple session management for some of my pages. I am inquiring about the use of transparent session id usage. I have read the manual and I am still a little confused on how to go about using it. I did run phpinfo() to make sure that trans-id was enabled. It outputed:

[PHP] Using Sessions under Win98/Apache

2002-05-15 Thread Edward Marczak
I've been developing a PHP driven site that will ultimately run under Solaris and Linux - no problems there. But I set up a small development/test environment on my laptop running Win98. Downloaded the PHP binary (v 4.1.2) along with Apache (v 1.3.24) and MySQL. Everything works

[PHP] Re: Need help with Arrays

2002-05-15 Thread Michael Virnstein
1. your while loop should have {} brackets i can't see where it starts and where it ends. so does PHP. leaving brackets away tells PHP that only the next line is part of the while loop. i don't know if your file has only the three lines ($cust_name, $cust_area, $cust_code) or if

[PHP] Re: byte order of integers

2002-05-15 Thread Austin Marshall
decbin() will convert an integer to it's corresponding binary representation of 32 bits. Divide that into 4 groups and you have it separated into bytes. John Horton wrote: Hi! Is there any way of decomposing an integer into it's constituent bytes so that a new byte order can be created?

RE: [PHP] Logging Errors to a File

2002-05-15 Thread Jonathan Rosenberg
OOps ... typo in the message below. What I meant to say was I tried setting these two parameters in my .htaccess file. When I do a phpinfo() I see that error_log has been set, but the log_errors value doesn't seem to change. It remains off no matter what I do.

Re: [PHP] trans-sid .. help

2002-05-15 Thread Jason Wong
On Thursday 16 May 2002 00:04, Joshua E Minnie wrote: I have been using some simple session management for some of my pages. I am inquiring about the use of transparent session id usage. I have read the manual and I am still a little confused on how to go about using it. I did run

[PHP] security checks with sessions...

2002-05-15 Thread Jas
I am wondering if someone can help me understand a good way to use sessions to check to see if a user has entered a user name and password before allowing them to view the rest of the page. I need to have this check on each page, just not sure how I can pass the sessions to each page, as of yet

[PHP] Finding out what week it is

2002-05-15 Thread David Orn Johannsson
Is there any way to determin what week of the year it is, for example to day it is the 20th week of the year. Thanks http://www.atom.is/ Davíð Örn Jóhannssson Vefforritari Atómstöðin hf. Austurstræti 12 101 Reykjavík

Re: [PHP] Finding out what week it is

2002-05-15 Thread PHP lists
$week = date(W); DOJ Is there any way to determin what week of the year it is, for example to DOJ day it is the 20th week of the year. DOJ Thanks DOJ http://www.atom.is/ DOJ Davíð Örn Jóhannssson DOJ Vefforritari DOJ DOJ Atómstöðin hf. DOJ

Re[2]: [PHP] PHP 4.2.1 release announcement

2002-05-15 Thread Olexandr Vynnychenko
Hello Steve, Tuesday, May 14, 2002, 6:28:06 PM, you wrote: SB Sorry, I forgot to move my php4ts.dll to the windows/system32 directory. SB Steve SB ---snip--- SB I know that I just saw something like this last week on the list, but can't SB find it now. Anyway, I have just installed PHP 4.2.1

Re: [PHP] Finding out what week it is

2002-05-15 Thread PHP List
but remember, this wasn't added until PHP version 4.1.0 Jim Lucas www.zonedzero.net www.giantmaps.com - Original Message - From: PHP lists [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, May 15, 2002 9:43 AM Subject: Re: [PHP] Finding out what week it is $week = date(W);

[PHP] building php

2002-05-15 Thread Michal Dvoracek
Hello, i can't get php binary when installing php on my server. my configure: ./configure --prefix=/usr/local \ --with-config-file-path=/usr/local/etc \ --with-openssl=/usr/local \ --with-zlib-dir=/usr/local \ --with-zlib=/usr/local \ --with-bz2=/usr/local

[PHP] header() -- function failed to due caching.

2002-05-15 Thread Scott Fletcher
I tried to use this script but it failed due to the caching. Does anyone know the way around hte problem or have a solution to the problem? --- example script $url_address = $GLOBALS[HTTP_HOST]; switch ($url_address) { case www.php.net: $url_address =

[PHP] php-4.2.1-Win32.zip has been changed

2002-05-15 Thread Olexandr Vynnychenko
I noticed that php-4.2.1-Win32.zip on www.php.net has been changed since I began downloading. So I downloaded it again. But what for? And why wasn't we all notified about that? If I completed downloading a little bit earlier I had a different release. I think people must be notified

[PHP] tag img and php

2002-05-15 Thread Maciej Przybycien
Hi, I included php file as html img: img src=/smtMonitoring/jpgraph_cache/try_param.php width=340 height=240 and Netscape brawser seems not to interpret that. However if I change try_param.php - try_param.png then image can be desplayed. According to the documentation 'try_param.php' should

RE: [PHP] XML: Similiar Multiple Tags With Different Data

2002-05-15 Thread Sebastian A.
I hope I didn't sound impolite, I really didn't mean to offend you, because if it weren't for your tutorial I would probably still be trying to figure out how to parse attributes and get XML Content into variables. Anyway, the performance and efficiency doesn't really interest me at this point. I

Re: [PHP] security checks with sessions...

2002-05-15 Thread Edward Marczak
On 5/15/02 12:38 PM, Jas [EMAIL PROTECTED] pressed the keys forming the message: I am wondering if someone can help me understand a good way to use sessions to check to see if a user has entered a user name and password before allowing them to view the rest of the page. I need to have this

Re: [PHP] XML: Similiar Multiple Tags With Different Data

2002-05-15 Thread Analysis Solutions
On Wed, May 15, 2002 at 07:49:58PM +0200, Sebastian A. wrote: performance and efficiency doesn't really interest me at this point. I just want to get the thing working before I work on improving it. But your haste is making waste. Even funnier, in your haste, you're making more work for

RE: [PHP] XML: Similiar Multiple Tags With Different Data

2002-05-15 Thread Sebastian A.
Ok I see where you're going with this. Thanks a lot. I will be sure to improvise my code. -Original Message- From: Analysis Solutions [mailto:[EMAIL PROTECTED]] Sent: Wednesday, May 15, 2002 8:10 PM To: PHP List Subject: Re: [PHP] XML: Similiar Multiple Tags With Different Data On Wed,

[PHP] How program automatic 'filler forms' robots?

2002-05-15 Thread M
Hello, I am interested on some info - how do robots work to fill web forms authomatically? Sometimes I notice a blurr code to be manually writen to avoid these robots when filling forms, but I am interested in programm just one of these machines. Is it necessary PHP of another script for this

[PHP] newbie: dynamically building associative arrays

2002-05-15 Thread ROBERT MCPEAK
I'm trying to build what I think is an associative array from a set of mySQL results. It looks like this: //First, a mySQL results loop for a select statement return unique occurrences of data in the field term: for ($i=0; $i $num_results; $i++) { $row = mysql_fetch_array($result); echo

[PHP] array search in 2-D arrays

2002-05-15 Thread Pushkar Pradhan
I've a 2 D array and would like to search for vals. in the first dimension only i.e. myArray[0][0] myArray[1][0] myArray[2][0] myArray[3][0] . . . and not in the elements myArray[0][1] CODE: for($l = 0; $l count($layer); $l++) { $key = array_search($layer[$l], $layerDes); // $layerDes

Re: [PHP] Using Sessions under Win98/Apache

2002-05-15 Thread 1LT John W. Holmes
You probably want to get 4.2, or 4.2.1 if it's out. How are you registering variables for the session? Is register_globals on or off in your php.ini. If it's off, you register a variables just by using $_SESSION[var] = value; instead of using session_register(var); $var = value; If register

Re: [PHP] tag img and php

2002-05-15 Thread 1LT John W. Holmes
Yes, that does work, but the big question is if try_param.php is outputting an image? How are you doing it? Are you setting the appropriate headers()? ---John Holmes... - Original Message - From: Maciej Przybycien [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, May 15, 2002

Re: [PHP] newbie: dynamically building associative arrays

2002-05-15 Thread 1LT John W. Holmes
Heh...you have to learn some SQL!! Try this query: SELECT term, count(*) AS cnt FROM table GROUP BY term; ---John Holmes... - Original Message - From: ROBERT MCPEAK [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, May 15, 2002 2:16 PM Subject: [PHP] newbie: dynamically

Re: [PHP] Uploading JPEG's - Security Issues?

2002-05-15 Thread Miguel Cruz
On Tue, 14 May 2002, Andre Dubuc wrote: My question will probably expose my woeful lack understanding of security breaches, but perhaps someone can enlighten me. On my site, registered members will be allowed to upload jpg/jpeg pictures. I'm concerned about possible security problems.

Re: [PHP] array search in 2-D arrays

2002-05-15 Thread Pushkar Pradhan
Oops! Sorry I got a reply for this but didn't read my mail carefully enough. Thanks to Tim Ward for pointing out the problem. I've a 2 D array and would like to search for vals. in the first dimension only i.e. myArray[0][0] myArray[1][0] myArray[2][0] myArray[3][0] . . . and not in the

[PHP] Re: header() -- function failed to due caching.

2002-05-15 Thread Scott Fletcher
Never mind, I'll just javascript instead! location.replace('url'); Scott Fletcher [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... I tried to use this script but it failed due to the caching. Does anyone know the way around hte problem or have a solution to

Re: [PHP] How program automatic 'filler forms' robots?

2002-05-15 Thread 1LT John W. Holmes
Well, the robots we have in the Army are controlled by wireless neural networks run by tiny chips implanted into our brains while at basic training. This controls the army of robots hidden under the mountains of Colorado that actually do all of our typing for us... anyway... You need to get a

[PHP] Formatting Time

2002-05-15 Thread Devin Atencio
I want to a kewl script that will format time from seconds. I have a script that returns the number of seconds a person has been an employee and I want to format it in human readable format like: 1 year 6 months 14 days, etc. Any help would be appreciated it.

Re: [PHP] building php

2002-05-15 Thread Miguel Cruz
On Wed, 15 May 2002, Michal Dvoracek wrote: i can't get php binary when installing php on my server. my configure: ./configure --prefix=/usr/local \ --with-apache=../apache_1.3.24 \ configure pass with no errors, make too make install - module is installed, everything is ok but no

[PHP] php and servlets (fwd)

2002-05-15 Thread Maciej Przybycien
The problem seems to come because I generate html and include img src=/smtMonitoring/jpgraph_cache/try_param.php ... from Java servlets. If my 'img src=/smtMonitoring/jpgraph_cache/try_param.php ..' is included in html file and I load that html the image appears on the screen with no

  1   2   >