Re: [PHP] Why my gd can not work?help please!!!

2002-04-18 Thread Jan Peuker
GIF is licensed by Unisys(it is a compuserve format). This is very expensive, so it has been cut out of php. Solution: a) use PNG b) get an old version of php. regars, Jan Peuker P.S.: In future, please don't post 3 times using courier-extrabig. - Original Message - From: "zhaoxd" <[E

Re: [PHP] Variable Inside Variable

2002-04-18 Thread Jason Wong
On Friday 19 April 2002 09:31, Jeff Oien wrote: > I have a script which retrieves the body of an email message from > a MySQL database to be sent to someone who applies using a form. > The script contains this: > > $url = " href=\"http://$HTTP_HOST$SCRIPT_NAME\";>http://$HTTP_HOST$SCRIPT_NAME"; >

[PHP] Why my gd can not work?help please!!!

2002-04-18 Thread zhaoxd
I have installed gd-1.8.4 in apache server without any problems.To check if the gd can work,I write some codes in php like this: . However,the output in IE is the warning message:" Warning: ImageGif: No GIF create support in this PHP build in /usr/local/apache/htdocs/index.php on line 9".why

[PHP] Why my gd can not work?help please!!!

2002-04-18 Thread zhaoxd
I have installed gd-1.8.4 in apache server without any problems.To check if the gd can work,I write some codes in php like this: . However,the output in IE is the warning message:" Warning: ImageGif: No GIF create support in this PHP build in /usr/local/apache/htdocs/index.php on line 9".why

[PHP] Why my gd can not work?help please!!!

2002-04-18 Thread zhaoxd
I have installed gd-1.8.4 in apache server without any problems.To check if the gd can work,I write some codes with php like this: . However,the output in IE is the warning message:" Warning: ImageGif: No GIF create support in this PHP build in /usr/local/apache/htdocs/index.php on line 9".w

[PHP] How long does a session last? Need to have it at 20mins

2002-04-18 Thread Phil Powell
I had thought that a session would last only 20 mins if session.gc_maxlifetime is set at 1440. Was I wrong in assuming this? I have pages that have session_start() at the top to persist the session throughout the life-cycle of these pages, however, I want the session to expire after 20 mins or s

Re: [PHP] fopen() question

2002-04-18 Thread Jason Wong
On Friday 19 April 2002 08:04, David McInnis wrote: > I am having a problem reading a remote file using fopen and http://. I > suspect this is because the remote file is sending back a cookie. Can > anyone confirm and/or offer a solution? If it is indeed sending back a cookie then you need some

Re: [PHP] how to popup a new browser window from php

2002-04-18 Thread Mirek Novak
Martin Towell wrote: >use vbscript :P >otherwise no - php = server - [java|vb]script = client > <:o)> of course there IS way how to do it from php .. put into your code something like this special secret code stolen from M$ PRESS CTRL+N N O W ! ! I don't how to put desired content into

[PHP] Help With postgresql

2002-04-18 Thread Jr
Hello, I need help with a website that I had design as a E-commerce tool. There's a credit card option in the shopping cart, That I would like to remove. The guy that design the site said that It would need to be turned off in the database. Any help would be great. I know the database is pos

[PHP] Thank

2002-04-18 Thread zhaoxd
Thank u all,I've got it!!! :)

[PHP] Re: php printer functions...

2002-04-18 Thread Yasuo Ohgaki
Jimmy wrote: > I'm running PHP 4.1.1 on a Win2K box. If I understand the manual correctly, > the printer functions have been integrated into PHP as of v4.0.4. However, > when I try to call any of the printer functions, nothing works. > > Any ideas or suggestions? > You need to build/install e

[PHP] Why not success?Need your help,please!!!

2002-04-18 Thread zhaoxd
I met with some problems when I tried to compile php into apache web server.In a words,my php can not worked in the apache server,apache server can not recognize php file. help,please!!! In httpd.conf of apache server,after I make install,I found only a few php information ,as follow:

Re: [PHP] how to popup a new browser window from php

2002-04-18 Thread Jason Wong
On Friday 19 April 2002 07:14, Wo Chang wrote: > Dear All, > > One simple question: > > Is there any easy way to popup a new browser from PHP > without using any Javascript? No. -- Jason Wong -> Gremlins Associates -> www.gremlins.com.hk Open Source Software Systems Integrators * Web Design & H

RE: [PHP] how to popup a new browser window from php

2002-04-18 Thread Martin Towell
use vbscript :P otherwise no - php = server - [java|vb]script = client -Original Message- From: Wo Chang [mailto:[EMAIL PROTECTED]] Sent: Friday, April 19, 2002 9:15 AM To: [EMAIL PROTECTED] Subject: [PHP] how to popup a new browser window from php Dear All, One simple question: Is th

[PHP] Sorry Testing Please DELETE ... No PHP mail for awhile now

2002-04-18 Thread Daniel Negron/KBE
Thank You <><><><><><><><><><><><><><><><> Daniel Negrón Lotus Notes Administrator / Developer KB Electronics, Inc. 954.346.4900x122 http://www.kbelectronics.com <><><><><><><><><><><><><><><><> -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/un

[PHP] storing session variables in a database

2002-04-18 Thread Randy Johnson
anybody have a good tutorial/example of storing sessions in a database? Randy -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Variable Inside Variable

2002-04-18 Thread Jeff Oien
I have a script which retrieves the body of an email message from a MySQL database to be sent to someone who applies using a form. The script contains this: $url = "http://$HTTP_HOST$SCRIPT_NAME\";>http://$HTTP_HOST$SCRIPT_NAME"; $url = addslashes("$url"); $msg1 .= "$body"; //to be sent via mail

[PHP] Tagi It!

2002-04-18 Thread Jason Whitaker
I am looking for a pre-wrote script thats does the same thing as what this company offers: http://www.tagit-board.com any one know where i can get one? to give ya an idea i want a script that will take a visitors name and message(maybe another field for a website) and write it to a page heres an

[PHP] fopen() question

2002-04-18 Thread David McInnis
I am having a problem reading a remote file using fopen and http://. I suspect this is because the remote file is sending back a cookie. Can anyone confirm and/or offer a solution? Here is what I am doing. $CP_url is a full url in the form http://blah.com/footer.html $filename = "$CP_url"; $f

[PHP] how to popup a new browser window from php

2002-04-18 Thread Wo Chang
Dear All, One simple question: Is there any easy way to popup a new browser from PHP without using any Javascript? Any helps would be greatly appreciated. --Wo -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Number checker

2002-04-18 Thread Philip Olson
use is_numeric() http://uk.php.net/is_numeric -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Reading Session File from /tmp directory

2002-04-18 Thread Devin Atencio
I am trying to read a session file from the /tmp directory then restore the PHP variables from this but I can't get it to work, i'm doing the following: $acontents = file("/tmp/sess_$sessid"); $data = $acontents[0]; unserialize($data); $sessid is a valid session id, but unserialize d

Re: [PHP] Array Question

2002-04-18 Thread Steve Cayford
On Thursday, April 18, 2002, at 04:38 PM, Jason Lam wrote: > $arr2 is a 2d array. > > $arr1[0] = 1; > $arr1[1] = 10; > $arr2[0] = $arr1; > print $arr2[0][1]; > > Result will be 10 > > But, > > $arr1[0] = 1; > $arr1[1] = 10; > $arr2[0] = $arr1; > $arr3 = each($arr2); > print $arr3[1]; What are

Re: [PHP] Newline features and differences between php3 and php4

2002-04-18 Thread Jason Wong
On Friday 19 April 2002 04:58, Richard Archer wrote: > Note that (IMHO) the manual page for mail() is wrong. I believe the > line endings used to separate headers should be the system's native > line endings. Not "\r\n". Using "\r\n" on a Unix box can cause some > MTA's (qmail, in particular) to

[PHP] Re: Executing a time intensive script

2002-04-18 Thread CC Zona
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] (Zach Curtis) wrote: > Is there a way to get the function to > execute and let it run on its own within login.php and let the user continue > on to the authenticated area without that delay?

[PHP] Array Question

2002-04-18 Thread Jason Lam
$arr2 is a 2d array. $arr1[0] = 1; $arr1[1] = 10; $arr2[0] = $arr1; print $arr2[0][1]; Result will be 10 But, $arr1[0] = 1; $arr1[1] = 10; $arr2[0] = $arr1; $arr3 = each($arr2); print $arr3[1]; Result is not 10. So, function "each" is not taking the whole $arr2[0] out.. My question is wh

RE: [PHP] Directory

2002-04-18 Thread Demitrious S. Kelly
Use the dir class -Original Message- From: Jeroen Timmers [mailto:[EMAIL PROTECTED]] Sent: Tuesday, April 16, 2002 4:57 AM To: [General] Subject: [PHP] Directory Hello, can i read a directory for files and other directory's with a php function for exameple d:\localhost\ had the foll

[PHP] Executing a time intensive script

2002-04-18 Thread Zach Curtis
I have three scripts login.php, auth_user.php, and function.php. The login.php script does user authentication and routes the user to auth_user.php. The function.php script, which contains process_function(), does some very intensive data processing and may take from 30 seconds to 3 minutes to run

[PHP] Re: How to create, name and start PHP sessions

2002-04-18 Thread Michael Virnstein
you have to call session_start() before you send any output to the browser, because it sends some headers. "Phil Powell" <[EMAIL PROTECTED]> schrieb im Newsbeitrag [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > I am now getting the following errors on every page: > > Warning: Cannot send session

[PHP] Trouble w/Apache PHP on WinME

2002-04-18 Thread Ken Villines
I am doing some php development and testing it on my WinME system. I have Apache installed and the only way I can get anything to execute is with a shebang at the beginning of the file. Then the shebang is printed in the page:( Anyone know how to get around this. I don't have this trouble with

Re: [PHP] Nasty DoS in PHP

2002-04-18 Thread Paul Roberts
Also win2k and apache(cgi) i got an internal server error, due to the malformed header, CPU usage peaked at 100% and then dropped off. So i changed the code to the loop below and max execution time came up but CPU usage didn't drop straight off, so i had closer look, php exits after 30 second

RE: [PHP] Forms in PHP

2002-04-18 Thread Demitrious S. Kelly
Use an array 1 2 3 $numberofitemids=count($itemid); echo $itemid[0]; // == 1 echo $itemid[1]; // == 2 echo $itemid[2]; // == 3 cheers -Original Message- From: Alia Mikati [mailto:[EMAIL PROTECTED]] Sent: Wednesday, April 17, 2002 2:20 AM To: [EMAIL PROTECTED] Subject: [PHP] Forms in PH

Re: [PHP] Newline features and differences between php3 andphp4

2002-04-18 Thread Richard Archer
At 8:24 AM -0700 18/4/02, Chris Hall wrote: >I'm using the mail() function on a project for a client. His hosting >provider currently offers php3, meanwhile I've been developing in php4. So >far, I don't haven't found any problems other than the following: >In php4, inside the mail function I

[PHP] Re: alphabetizing titles when first word begins with 'The','A',etc.

2002-04-18 Thread Joel Boonstra
Steph, > Hi. Im using MySQL and as part of my tables I have titles (of stories). > My question os in regards to outputing those titles. Some of the titles > begin with words such as 'The', 'A', 'An', etc. Is there a way to order > these particular titles based on the second word in the title?? L

Re: [PHP] Re: verify file types when uploading to server...

2002-04-18 Thread Vince LaMonica
On Thu, 18 Apr 2002, Miguel Cruz wrote: } Not sure what you're tring to achieve, but that only checks the file's } name. You might want to use file (man 1 file) to verify that it actually } is a JPEG, since people can put malicious data into a file named xxx.jpg } and perhaps fool IE into doing b

[PHP] Re: How to create, name and start PHP sessions

2002-04-18 Thread Phil Powell
OK thanx figured out a workaround in the meantime, I am setting and retaining part of the session, but not all session variables, am I doing this wrong??? $ip = $REMOTE_ADDR; // Check for session - if session is set user has already logged in session_start(); $login_state = &$_SESSION["logi

Re: [PHP] limit on extended classes

2002-04-18 Thread Robert Cummings
Erik Price wrote: > > On Thursday, April 18, 2002, at 03:10 PM, Robert Cummings wrote: > > >> Is there a limit on how many times you can extend a class in PHP 4? > > > > Was there ever? Curious to know! > > I could be completely mistaken, since I can't provide a source, but I > thought that PH

Re: [PHP] Re: verify file types when uploading to server...

2002-04-18 Thread Jason Wong
On Thursday 18 April 2002 15:37, Jas wrote: > Ok, I understand how it works at least, however I am not familiar enough > with unix systems to know how to effectively use that command. Could you > give me an example in code so I can mess around with it? Probably easier to just use the getimagesiz

Re: [PHP] limit on extended classes

2002-04-18 Thread Erik Price
On Thursday, April 18, 2002, at 03:10 PM, Robert Cummings wrote: >> Is there a limit on how many times you can extend a class in PHP 4? > > Was there ever? Curious to know! I could be completely mistaken, since I can't provide a source, but I thought that PHP 3 only allowed one level of exten

[PHP] jklingler@secureworks.com

2002-04-18 Thread Casey Allen Shobe
-- Casey Allen Shobe / Network Security Analyst & PHP Developer SecureWorks, Inc. / 404.327.6339 x169 / Fax: 404.728.0144 [EMAIL PROTECTED] / http://www.secureworks.net Content is my own and does not necessarily represent my company. -- PHP General Mailing List (http://www.php.net/) To unsubscri

[PHP] Re: Random number Question

2002-04-18 Thread Joel Colombo
actually if (intval($guess) == $number { would be more acuate then the trim ( ) you would eliminate all alpha characters and floating points saying it has to be a whole integer Joel "Ralph Friedman" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > In ar

Re: [PHP] Images don't save

2002-04-18 Thread Jason Wong
On Friday 19 April 2002 02:25, Fifield, Mike wrote: > This is not PHP so does not really belong here but since you asked. Here is > a java script that will disable right clicking and display a copyright. > > >