AW: [PHP] convert TIFF to JPEG

2002-02-18 Thread Norbert Eder
thx. but i know imagemagick. the problem: IM needs about 3 hours to convert a tiff group 4 image to a jpeg-image and that is too much time. maybe there is a other way.. greets > -Ursprüngliche Nachricht- > Von: Meir Kriheli [mailto:[EMAIL PROTECTED]] > Gesendet: Montag, 18. Februar 20

[PHP] compiling the php sources

2002-02-18 Thread Marc Cuypers
Hello, I'm using FreeBSD 4 on an intel machine. I'd like to use phpgroupware. It makes use of IMAP. How can I find out that PHP4 on my server is compiled with the IMAP option? I tried to compile the PHP4 source, and it complains about an rfc822.h file. What IMAP sources should I install? Marc

Re: [PHP] "nullifying" php and html tags?

2002-02-18 Thread Janet Valade
Yes, there is a function strip_tags(). Also look at the functions, htmlentities() and htmlspecialchars(). Janet - Original Message - From: "Police Trainee" <[EMAIL PROTECTED]> To: "PHP" <[EMAIL PROTECTED]> Sent: Monday, February 18, 2002 9:47 PM Subject: [PHP] "nullifying" php and html t

RE: [PHP] PHP_SELF Undefined

2002-02-18 Thread Niklas Lampén
I had this problem while running PHP under windows. I solved (well, rounded :) the problem with $SCRIPT_NAME (if I remember it right) which gives the very same result. Niklas -Original Message- From: Greg Donald [mailto:[EMAIL PROTECTED]] Sent: 19. helmikuuta 2002 8:05 To: [EMAIL PROT

Re: [PHP] Sendmail and setting From

2002-02-18 Thread Todd Cary
Greg - On careful reading of the php.ini file, I now realize that the settings for the "From" is for WIN32 *only*. So, as a newbie to the world or Linux/Unix, I am not sure where I place the setting for the default "From". I can add it as the fourth argument in the mail() function, but I would

Re: [PHP] "nullifying" php and html tags?

2002-02-18 Thread Greg Donald
> Hello. I just finished creating a simple input form in > which the contents of a textarea get written to a file > which in turn gets read by a particular page. is there > anyway to "disable" any html or php tags that the user > might have typed in? it seems pretty dangerous to > allow a user to

Re: [PHP] PHP_SELF Undefined

2002-02-18 Thread Greg Donald
> When I execute the code below, why is PHP_SELF undefined? I will appretiate > any help on this. I can get its value by: > echo $_SERVER["PHP_SELF"];Thanks in advance! -Teresa Is your PHP install >= version 4.1.0 ? You can test with a call to phpinfo(); If your version is less than 4.

Re: [PHP] Sendmail and setting From

2002-02-18 Thread Greg Donald
> I have RH 7.2 with Apache and PHP. The mail() function in PHP worked > out of the box!! Fantastic! The setting in the php.ini is being over > written with Apache. > > Where can I change the setting? What setting is being overwritten by apache? the mta setting? On my RH 7.2 box, my php.ini i

Re: [PHP] Avoid the session mechanism?

2002-02-18 Thread Greg Donald
> Found this article and need the experts to consult on the statement "avoid > the session mechanism". Is this a true problem? And what should we do if > we cannot have a dedicated server to ourselves? > > http://www.dwheeler.com/secure-programs/Secure-Programs-HOWTO/php.html > > > Avoid the ses

Re: [PHP] get_browser();

2002-02-18 Thread Greg Donald
> > Use this to identify Netscape 4.x: > > > > if(strstr($HTTP_USER_AGENT,"Mozilla/4") && > > !strstr($HTTP_USER_AGENT,"MSIE")){ > > // is Netscape 4 > > } else { > > // is something else > > } > > > > Is that going to catch the Mozilla spoofers, like webtv and opera? Err, no... if they

Re: [PHP] Logging Users In - What is the Best Way

2002-02-18 Thread Greg Donald
> Okay Gents and Ladies, > > I am looking for more information on how best to do this. > > I have a MyQSL back end. > It houses a users user_name and password. > > I have a secure area of the site that I only want members to view. > > The way I have it now is that the user logs in. > If user_name

RE: [PHP] "nullifying" php and html tags?

2002-02-18 Thread Jason Murray
> Would strip_tags() do? Easily gotten-around then by not closing your PHP tags. J -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] "nullifying" php and html tags?

2002-02-18 Thread Jason Murray
> Hello. I just finished creating a simple input form in > which the contents of a textarea get written to a file > which in turn gets read by a particular page. This is a Really Bad Idea(tm). > it seems pretty dangerous to allow a user to enter any > amount of php programming at their will.

Re: [PHP] "nullifying" php and html tags?

2002-02-18 Thread Richard Crawford
Would strip_tags() do? On Mon, 2002-02-18 at 21:47, Police Trainee wrote: > Hello. I just finished creating a simple input form in > which the contents of a textarea get written to a file > which in turn gets read by a particular page. is there > anyway to "disable" any html or php tags that the

[PHP] "nullifying" php and html tags?

2002-02-18 Thread Police Trainee
Hello. I just finished creating a simple input form in which the contents of a textarea get written to a file which in turn gets read by a particular page. is there anyway to "disable" any html or php tags that the user might have typed in? it seems pretty dangerous to allow a user to enter any am

Re: [PHP] Re: help with Header call

2002-02-18 Thread hugh danaher
David, I hope that Robbie was able to solve your problem. But, if not, try isolating the variables from the text in the header. e.g. header("Location: ".$relative."/...?II=".$II.""); Hugh - Original Message - From: "David Robley" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, F

RE: [PHP] Logging Users In - What is the Best Way

2002-02-18 Thread scott
A way i've done things like this is to setup sessions, and when a user logs in correctly, issue a randomly generated value "id" and set that as a cookie. in the database, there's a row "id" (same as the cookie) that holds the user name and any other data that i might want to store. Since none o

RE: [PHP] RE: [PHP-DB] I cant get the logic for this...

2002-02-18 Thread Martin Towell
try this - in pseudo-code, can't do everything for you :) max = 3 col = 0 echo "table" while (row = db_results) if (col == 0) echo "tr" echo "td data /td"; if (col == max - 1) echo "/tr" col = (col + 1) % max wend if col > 0 for i = 1 to max - col echo "td nbsp td" next ec

Re: [PHP] PDF4PHP Class

2002-02-18 Thread Joel Boonstra
> Hi there, > > someone have some experience with this class?? I've never used that one, but I just had a wondrous experience with: http://ros.co.nz/pdf/ I downloaded it, and got it running and working (as a non-privileged user in a SAFE_MODE environment) in about 15-20 minutes. No extra mod

RE: [PHP] RE: [PHP-DB] I cant get the logic for this...

2002-02-18 Thread David Redmond
If you use the following code it should work well. I used 2 counters, one for the columns and one for the row. It's a bit messy but it works. Cheers NB: Code is untested but copied from a working example with unnecessary bits removed. \n"; $counterRow = 0; $counterCol = 0; $counterResults = m

[PHP] Re: Has anyone created or called a Web Service from PHP? (SOAP)

2002-02-18 Thread Manuel Lemos
Hello, Eric wrote: > > I have a PHP webstore that I want to call my web service that is running on > an IIS machine. The web service returns XML. > > Has anyone called or written a web service with PHP? http://phpclasses.upperdesign.com/browse.html/class/33/ -- PHP General Mailing List (htt

[PHP] PHP form forbidden

2002-02-18 Thread Ironfroggy
im working on a login script. the problem is more with the form itself, PHP, and or my server. The same page displays the login form and handles the login operation itself. The submit button is named "login" and in my PHP, if $login exists it will set the cookie and display the right page. oth

[PHP] smtp server and socket connections

2002-02-18 Thread Matthew Delmarter
I just wanted to come to grips with how sockets/SMTP works. Is it like this... 1. I open the socket to the SMTP server 2. I fire the mail through - a few thousand emails 3. I close the socket Also, is step 3 necessary? Regards, Matthew Delmarter -- PHP General Mailing List (http://www.php.

[PHP] curl

2002-02-18 Thread wm
does anybody know how to have the browser serve up the page that is posted to using curl? i mean, instead of the script waiting for the results, is there a way to jump to that url like with a form post? is there a setopt for this? thanks. -- PHP General Mailing List (http://www.php.net/) To

[PHP] PDF Fonts Files

2002-02-18 Thread Richard Lynch
Please Cc: me on replies... I recently installed PHP 4.1.0 + PDF 4.0.1 on my development box. I can't seem to get the PDF fonts to work properly at all... Here are a lot of details about things I understand, and a lot of remarks about what I half-understand. Note that, as a rule, font technol

[PHP] Re: Logging Users In - What is the Best Way

2002-02-18 Thread Michael Kimsal
Phillip S. Baker wrote: > Okay Gents and Ladies, > > I am looking for more information on how best to do this. > > I have a MyQSL back end. > It houses a users user_name and password. > > I have a secure area of the site that I only want members to view. > > The way I have it now is that the u

[PHP] smtp server and socket connections

2002-02-18 Thread Matthew Delmarter
I just wanted to come to grips with how sockets/SMTP works. Is it like this... 1. I open the socket to the SMTP server 2. I fire the mail through - a few thousand emails 3. I close the socket Also, is step 3 necessary? Regards, Matthew Delmarter -- PHP General Mailing List (http://www.php.

[PHP] RE: [PHP-DB] I cant get the logic for this...

2002-02-18 Thread SpamSucks86
I had this same problem. It's very aggravating. Jason G's solution won't work, because $oRow will always be true as long as there is more results, NOT if there are less than 3 results left. Why don't you true something like this 0) { //echo your row with 3 cells $numevenrows = $

Re: [PHP] Logging Users In - What is the Best Way

2002-02-18 Thread Erik Price
On Monday, February 18, 2002, at 09:17 PM, Phillip S. Baker wrote: > Now first question is - how secure is this? > > Second question - what is a better more secure way to handle this. Then > most importantly where do I get information on how to go about doing > that? > I know nothing about se

Re: [PHP] Browser Sniff (Code Review Encouraged)

2002-02-18 Thread Erik Price
Just a quick question -- the outsidemost if/elseif sequence of the function "sniff()" doesn't seem to have an "else" (it ends with "elseif" and then does another "if", before its "return"). Did you mean to include an "else" in that? Erik On Monday, February 18, 2002, at 04:37 PM, Robert

[PHP] Logging Users In - What is the Best Way

2002-02-18 Thread Phillip S. Baker
Okay Gents and Ladies, I am looking for more information on how best to do this. I have a MyQSL back end. It houses a users user_name and password. I have a secure area of the site that I only want members to view. The way I have it now is that the user logs in. If user_name and password match

[PHP] Re: help with Header call

2002-02-18 Thread David Robley
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] says... > Hello everyone, > > This is my first post to this list, so I hope that someone is awake enough to help >me out. > > I am new to PHP and I have a file that uses a command "header". It isn't working >like it is supposed to but I can't

[PHP] Re: Include file for MySQL insert rows

2002-02-18 Thread David Robley
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] says... > I am very new at this and am having trouble migrating to php and mysql from > a different system (WebCatalog). > > I want to start dumping files to text and let php use them to populate mysql > on the fly as I start migrating. > > -

[PHP] Browser Sniff (Code Review Encouraged)

2002-02-18 Thread Robert Miller
Hello, Below is code I hacked up to read a user agent string (i.e. Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:0.9.8) Gecko/20020204 ) and return several items including: - the browser name, - the browser version, - the browser's major version number, and - user definable compatibility li

Re: [PHP] Mysql_num_rows

2002-02-18 Thread Phillip S. Baker
At 06:05 AM 2/18/2002 Monday, Frank Miller wrote: >Next I say if ($num == 0) >{ > echo " There are no events scheduled today!"; >} >else > { > echo "blah, blah, blah"; >} Try this if (empty($num)) echo "Nothing today!"; else echo "blah, blah, blah"; I belie

[PHP] Re: ".htaccess login id"

2002-02-18 Thread David
Mohamed Ismail Bulale said something on 19 Feb 2002, in php.general: > > To get username and password with php, use this below code: > Best regards, > > Bulale Or you could use the varibles $PHP_AUTH_USER & $PHP_AUTH_PW & $PHP_AUTH_TYPE. http://www.php.net/manual/en/features.http-auth.php

[PHP] Sendmail and setting From

2002-02-18 Thread Todd Cary
I have RH 7.2 with Apache and PHP. The mail() function in PHP worked out of the box!! Fantastic! The setting in the php.ini is being over written with Apache. Where can I change the setting? Many thanks... -- Dr. Todd Cary Ariste Software 707-773-4523 [EMAIL PROTECTED] "It is a worthy thi

Re: [PHP] get_browser();

2002-02-18 Thread Gary
Greg Donald wrote: >>Ultimately, I'm trying to figure out how I can determine if the >>user is using NS 4.x or not... >> > > Use this to identify Netscape 4.x: > > if(strstr($HTTP_USER_AGENT,"Mozilla/4") && > !strstr($HTTP_USER_AGENT,"MSIE")){ > // is Netscape 4 > } else { > // is som

Re: [PHP] Sendmail, I've had enough of it!

2002-02-18 Thread Liam MacKenzie
www.extremail.com Best MTA out there! Join the mailing list too, it's pretty funny at times. Yeah, with the SMTP thing, I think that because I'm using Linux, PHP defaults to Sendmail. In my php.in I've got the following... [mail function] ; For Win32 only. SMTP = localhost ; For Win32 only. se

Re: [PHP] PHP_SELF Undefined

2002-02-18 Thread Matt
> The other reason is that the parser needs help resolving ambiguity with > more complex expressions inside strings. If you use this syntax all the > time, you won't get bitten in the butt later. I've used the ${$var} to resolve the ambiguity of variable variables, but I wasn't aware that if coul

RE: [PHP] NULL Apache environment variables

2002-02-18 Thread Narvaez, Teresa
Erik, Thanks for your response. No I did not install a pre-compiled binary. I got the tar ball and compiled it myself. By the way, I am running PHP version 4.1.1. Thanks for all the help! -Teresa -Original Message- From: Erik Price [mailto:[EMAIL PROTECTED]] Sent: Monday, Feb

[PHP] PHP4 Step by Step Installation for Windows running CGI or ASPI

2002-02-18 Thread Andre Amaral
PHP4 Step by Step Installation for Windows running CGI or ASPI http://www.experttek.com/php/installation.php

RE: [PHP] code

2002-02-18 Thread Martin Towell
shouldn't matter - php would type cast one to other and then compare -Original Message- From: DL Neil [mailto:[EMAIL PROTECTED]] Sent: Wednesday, February 20, 2002 10:24 AM To: Tyler Longren; John Gurley; [EMAIL PROTECTED] Subject: Re: [PHP] code Is $inst an int or a string? =dn > ma

Re: [PHP] PHP_SELF Undefined

2002-02-18 Thread Erik Price
On Monday, February 18, 2002, at 06:14 PM, Lars Torben Wilson wrote: > Sorry, but I do have to correct you here--this isn't true. ;) In double- > quoted strings and heredocs, you can do the following: > > $foo = "This page is $_SERVER[PHP_SELF]"; > > Or, better: > > $foo = "This page is {$_

Re: [PHP] NULL Apache environment variables

2002-02-18 Thread Erik Price
On Monday, February 18, 2002, at 06:11 PM, Narvaez, Teresa wrote: > The function call phpinfo() shows register_globals=off for master and > local > value on my system. I installed PHP and did not change anything because > I > do not know enough to make changes so I believe off is the default >

Re: [PHP] PHP_SELF Undefined

2002-02-18 Thread Lars Torben Wilson
On Mon, 2002-02-18 at 15:29, Matt wrote: > > $foo = "This page is $_SERVER[PHP_SELF]"; > > > > Or, better: > > > > $foo = "This page is {$_SERVER['PHP_SELF']}"; > > > > You do have to concat to do this in single-quoted (noninterpolated) > > strings, though. > > > > > http://www.php.net/manual/

Re: [PHP] code

2002-02-18 Thread DL Neil
Is $inst an int or a string? =dn > make sure you're doing it like this: > if ($inst == "1") { > // do this > } > else { >// do something else > } > > instead of this: > if ($inst = "1") { > // do this > } > else { > // do this > } > > Just a thought. > > Tyler > > - Origi

Re: [PHP] PHP_SELF Undefined

2002-02-18 Thread Matt
> $foo = "This page is $_SERVER[PHP_SELF]"; > > Or, better: > > $foo = "This page is {$_SERVER['PHP_SELF']}"; > > You do have to concat to do this in single-quoted (noninterpolated) > strings, though. > > http://www.php.net/manual/en/language.types.string.php#language.types.string .parsing Ca

FW: [PHP] PHP_SELF Undefined

2002-02-18 Thread SHEETS,JASON (Non-HP-Boise,ex1)
You probably do not have register globals set to on, this is often times set to off for security purposes. Instead you can use $_GET, $_POST, $SERVEr, etc, these are documented on the PHP website. Also instead of echoing all that HTML from PHP you should consider jumping out of PHP and then use

Re: [PHP] PHP_SELF Undefined

2002-02-18 Thread Lars Torben Wilson
On Mon, 2002-02-18 at 15:02, Erik Price wrote: > > On Monday, February 18, 2002, at 05:50 PM, Narvaez, Teresa wrote: > > > When I execute the code below, why is PHP_SELF undefined? I will > > appretiate > > any help on this. I can get its value by: > > echo $_SERVER["PHP_SELF"];Thanks

RE: [PHP] NULL Apache environment variables

2002-02-18 Thread Narvaez, Teresa
The function call phpinfo() shows register_globals=off for master and local value on my system. I installed PHP and did not change anything because I do not know enough to make changes so I believe off is the default value. Thanks, -Teresa -Original Message- From: Erik Price [mailto

Re: [PHP] NULL Apache environment variables

2002-02-18 Thread Lars Torben Wilson
On Mon, 2002-02-18 at 14:58, Erik Price wrote: > > On Monday, February 18, 2002, at 05:44 PM, Lars Torben Wilson wrote: > > > On Mon, 2002-02-18 at 08:56, Narvaez, Teresa wrote: > >> Hello, > >>I'm running PHP version 4.1.1. When I invoke this function, >> phpinfo()?>, all variables are s

Re: [PHP] PHP_SELF Undefined

2002-02-18 Thread Erik Price
On Monday, February 18, 2002, at 05:50 PM, Narvaez, Teresa wrote: > When I execute the code below, why is PHP_SELF undefined? I will > appretiate > any help on this. I can get its value by: > echo $_SERVER["PHP_SELF"];Thanks in advance! -Teresa > > > > > Feedback > > > $form_block

Re: [PHP] NULL Apache environment variables

2002-02-18 Thread Erik Price
On Monday, February 18, 2002, at 05:44 PM, Lars Torben Wilson wrote: > On Mon, 2002-02-18 at 08:56, Narvaez, Teresa wrote: >> Hello, >> I'm running PHP version 4.1.1. When I invoke this function, > phpinfo()?>, all variables are set. However, when I try to retrieve a >> value >> of a ce

[PHP] PHP_SELF Undefined

2002-02-18 Thread Narvaez, Teresa
When I execute the code below, why is PHP_SELF undefined? I will appretiate any help on this. I can get its value by: echo $_SERVER["PHP_SELF"];Thanks in advance! -Teresa Feedback Your Name: Your E-Mail Address: Your Message: "; ?>

Re: [PHP] NULL Apache environment variables

2002-02-18 Thread Lars Torben Wilson
On Mon, 2002-02-18 at 08:56, Narvaez, Teresa wrote: > Hello, > I'm running PHP version 4.1.1. When I invoke this function, phpinfo()?>, all variables are set. However, when I try to retrieve a value > of a certain variable like this: > > > > It returns NULL. Is there a missi

[PHP] Avoid the session mechanism?

2002-02-18 Thread B Richards
Found this article and need the experts to consult on the statement "avoid the session mechanism". Is this a true problem? And what should we do if we cannot have a dedicated server to ourselves? http://www.dwheeler.com/secure-programs/Secure-Programs-HOWTO/php.html Avoid the session mechanis

RE: [PHP] Novice Question

2002-02-18 Thread Martin Towell
window.document.frmName.elements["poly[]"].value !!! -Original Message- From: JSheble [mailto:[EMAIL PROTECTED]] Sent: Tuesday, February 19, 2002 9:41 AM To: [EMAIL PROTECTED] Subject: RE: [PHP] Novice Question with this type of naming convention, how would you write a javascript fun

RE: [PHP] Novice Question

2002-02-18 Thread JSheble
with this type of naming convention, how would you write a javascript function to access these form elements for client side validation? JavaScript vomits when accessing window.document.frmName.poly[].value??? At 03:35 PM 2/18/2002 -0600, Rick Emery wrote: >name each field with an array name.

[PHP] Re: stupid problem

2002-02-18 Thread Eric
How are you getting the variable from the web page? "John Gurley" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > I am getting a variable from a web page ($inst) which is looked at by the > loop: > > if ($inst == 2) > { > do stuff > } > > the problem is that no

[PHP] Has anyone created or called a Web Service from PHP? (SOAP)

2002-02-18 Thread Eric
I have a PHP webstore that I want to call my web service that is running on an IIS machine. The web service returns XML. Has anyone called or written a web service with PHP? TIA Eric -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Unique Numbers

2002-02-18 Thread Steven Walker
Thanks for the input. I just replaced time() with uniqid(""), and I think that will work great. Steven J. Walker Walker Effects www.walkereffects.com [EMAIL PROTECTED] On Monday, February 18, 2002, at 01:38 PM, Lars Torben Wilson wrote: > On Mon, 2002-02-18 at 13:14, Steven Walker wrote: >> I

Re: [PHP] Novice Question

2002-02-18 Thread Corey Eiseman
yeah, it definitely works with text fields too. You can also do something like: where $i will then be the key of the resulting array $poly. it doesn't seem necessary in this case, since the numbers will probably be consecutive, but if you wanted an associative array for some reason this can be

Re: [PHP] Unique Numbers

2002-02-18 Thread Lars Torben Wilson
On Mon, 2002-02-18 at 13:14, Steven Walker wrote: > Is it safe to use time() to generate a unique id number? > > My thinking is that the call to the server will take enough time that no > two users will get the same time stamp (although they may be very > close). Even though the likelyhood of

[PHP] Problem with popen on php-4.1.1

2002-02-18 Thread php stuffies
Hi all, I have a very small example which was working on php-4.0.6 (actually taken from the documentation, was one of the user examples) - please find it below: Files in directory: writer.php textfile.txt -- This little snippet simply refuses to work on php-4.1.1. I h

RE: [PHP] Novice Question

2002-02-18 Thread Rick Emery
name each field with an array name. I know the following works with checkboxes; try it with text fields: then, in your php script called from the form, you'll access the polynomials using poly[0], poly[1], poly[2], poly[3], etc. You know how many fields were created, because you created th

Re: [PHP] ereg_replace

2002-02-18 Thread Erik Price
On Monday, February 18, 2002, at 03:44 PM, Mitch Tishaw wrote: > I need a little help with the ereg_replace function. I have the > following code: > > $text = ereg_replace("[[:alpha:]]+://[^<>[:space:]]+[[:alnum:]/]"," href=\"\\0 > \">\\0", $text); > > which pads a url with an href tag to mak

Re: [PHP] Shared Memory Error.

2002-02-18 Thread Lars Torben Wilson
On Sun, 2002-02-17 at 23:34, Paul J. Stevens wrote: > I am using PHP Version 4.0.4pl1 with an Embedded Linux (PeeWee Linux, > which is based on Red Hat 6.2 w/ a 2.2.18 Kernel). > > I have tried using shmop_open(), shm_open() & shm_attach(). All of these > give an error message of "function not d

[PHP] Unique Numbers

2002-02-18 Thread Steven Walker
Is it safe to use time() to generate a unique id number? My thinking is that the call to the server will take enough time that no two users will get the same time stamp (although they may be very close). Even though the likelyhood of two users entering at the same time is very slim, I don't

[PHP] PDF4PHP Class

2002-02-18 Thread fitiux
Hi there, someone have some experience with this class?? cheers, (o_ / /\ tuxcl en yahoo punto com V_/_ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Shared Memory Error.

2002-02-18 Thread Paul J. Stevens
I am using PHP Version 4.0.4pl1 with an Embedded Linux (PeeWee Linux, which is based on Red Hat 6.2 w/ a 2.2.18 Kernel). I have tried using shmop_open(), shm_open() & shm_attach(). All of these give an error message of "function not defined". It is not clear form the documentation that I have s

[PHP] why no create_method ?

2002-02-18 Thread Crawley
Is there anyway to create a class method, I want to return an object which has a number of 'runtime' methods. What I want to do is parse a WSDL and generate an interface object ( with the correct functions ), the way I see it I cant do this as we lack a create_method call. I can parse the WSDL a

RE: [PHP] Novice Question

2002-02-18 Thread Rick Emery
Do you wish to create multiple forms or multiple input fields on a single form? -Original Message- From: brendan conroy [mailto:[EMAIL PROTECTED]] Sent: Monday, February 18, 2002 2:48 PM To: [EMAIL PROTECTED] Subject: [PHP] Novice Question Hi thanks for reading this. This problem is di

[PHP] ereg_replace

2002-02-18 Thread Mitch Tishaw
I need a little help with the ereg_replace function. I have the following code: $text = ereg_replace("[[:alpha:]]+://[^<>[:space:]]+[[:alnum:]/]","\\0", $text); which pads a url with an href tag to make it clickable. Here's what I would like to do: In the case of the url ending with .gif or

[PHP] Novice Question

2002-02-18 Thread brendan conroy
Hi thanks for reading this. This problem is difficult to get across, this is what happens: A) On a html page I ask users how many inputs they wish to enter, say 3. The 3 is stored as a variable called $NoPols. B) Then in the code below, a loop creates $NoPols (3) forms to take the users input

[PHP] pdf4php class

2002-02-18 Thread fitiux
Hi there, someone have some experience with this class?? cheers, (o_ / /\ tuxcl en yahoo punto com V_/_ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: Polymorphism in PHP

2002-02-18 Thread Lars Torben Wilson
On Mon, 2002-02-18 at 12:12, Richard Fox wrote: > That's right, the difference between C++ "pure virtual" and "virtual" is > that a virtual function has an implementation but pure virtual only defines > an interface. > > But can we get back to my original PHP question: Can I do something like the

RE: [PHP] NULL Apache environment variables

2002-02-18 Thread Narvaez, Teresa
Thank you ... that worked! I did not know this because I looked at a sample in www.php.net and the sample fails to call getenv(). Thanks! -Teresa -Original Message- From: Neil Freeman [mailto:[EMAIL PROTECTED]] Sent: Monday, February 18, 2002 12:54 PM To: Narvaez, Teresa Cc: [EMAIL PR

Re: [PHP] Timed Redirect

2002-02-18 Thread Steven Walker
Here's what I found: This does not work: > header("Location: http://www.google.com/";, "5"); > That would redirect you to www.google.com in 5 seconds. According to the documentation, the second param is bool replace, for replacing header information. This does work: http://www.example.com/";>

[PHP] Re: Timed Redirect

2002-02-18 Thread J Smith
As far as I know, you can't do this directly through a header. Try using a meta tag, i.e. http://www.example.com/";>, where x is the delay in seconds. J Steven Walker wrote: > Is there way to have a page automatically redirect the user to another > page, but with a timed delay? > > I'm worki

RE: [PHP] Php Enum Field

2002-02-18 Thread Rick Emery
mysql> show columns from mytable like "myfield"; +---+-+--+-+-+---+ | Field | Type| Null | Key | Default | Extra | +---+-+--+-+-+---+ | myfield | enum('Add','Read','D

[PHP] Re: PHP and HTTPS

2002-02-18 Thread wm
hi. i actually found some info at http://www.mail-archive.com/modssl-users@modssl.org/msg12769.html in case anybody in interested. this problem can be fixed. J Smith wrote: > Sourceforge has a bit on this, too. Basically, they have a checkbox that > lets you drop out of SSL after you login, so y

Re: [PHP] Timed Redirect

2002-02-18 Thread Tyler Longren
header("Location: http://www.google.com/";, "5"); That would redirect you to www.google.com in 5 seconds. Tyler - Original Message - From: "Steven Walker" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, February 18, 2002 2:16 PM Subject: [PHP] Timed Redirect > Is there way t

Re: [PHP] get_browser();

2002-02-18 Thread Greg Donald
> Ultimately, I'm trying to figure out how I can determine if the > user is using NS 4.x or not... Use this to identify Netscape 4.x: if(strstr($HTTP_USER_AGENT,"Mozilla/4") && !strstr($HTTP_USER_AGENT,"MSIE")){ // is Netscape 4 } else { // is something else } -

RE: [PHP] Timed Redirect

2002-02-18 Thread Rick Emery
http://www.mydomain.com/newpage.html";> will redirect after 15 seconds -Original Message- From: Steven Walker [mailto:[EMAIL PROTECTED]] Sent: Monday, February 18, 2002 2:16 PM To: [EMAIL PROTECTED] Subject: [PHP] Timed Redirect Is there way to have a page automatically redirect the u

[PHP] Timed Redirect

2002-02-18 Thread Steven Walker
Is there way to have a page automatically redirect the user to another page, but with a timed delay? I'm working on a purchasing system. After a successful purchase, a thank you page is shown, and then I want to take the user to a download page a few seconds afterward. Thanks! Steven J. Wal

Re: [PHP] get_browser();

2002-02-18 Thread Erik Price
On Monday, February 18, 2002, at 12:47 PM, Chris Boget wrote: > > Isn't working as described in the example output provided on > the page. In fact, half the time, get_browser() is returning > nothing. And HTTP_USER_AGENT is only returning: > > Mozilla/4.7 [en] (Win95; I) > > for Netscape. Why

RE: [PHP] Re: Polymorphism in PHP

2002-02-18 Thread Rick Emery
I must be missing something in your question, because I just tried your script below and it worked as advertised. Did you try the script and it failed? -Original Message- From: Richard Fox [mailto:[EMAIL PROTECTED]] Sent: Monday, February 18, 2002 2:13 PM To: PHP Subject: [PHP] Re: Polym

Re: [PHP] Php Enum Field

2002-02-18 Thread Chris Lott
> Sorry, my question was "how can I retrieve the preset Enum values from > AccessRight field property?" Thanks. Untested, but I think I remember: $result = mysql_query("SHOW COLUMNS FROM main LIKE `colname`"); c -- Chris Lott http://www.chrislott.org/ -- PHP General Mailing List (http://www.

[PHP] Re: Polymorphism in PHP

2002-02-18 Thread Richard Fox
That's right, the difference between C++ "pure virtual" and "virtual" is that a virtual function has an implementation but pure virtual only defines an interface. But can we get back to my original PHP question: Can I do something like the following in php: class Base { function Foo() { echo

RE: [PHP] Php Enum Field

2002-02-18 Thread Wee Chua
Sorry, my question was "how can I retrieve the preset Enum values from AccessRight field property?" Thanks. -Original Message- From: Rick Emery [mailto:[EMAIL PROTECTED]] Sent: Monday, February 18, 2002 2:51 PM To: 'Wee Chua'; PHP (E-mail) Subject: RE: [PHP] Php Enum Field I must not un

RE: [PHP] Php Enum Field

2002-02-18 Thread Rick Emery
I must not understand your question. As you've asked it, the answer is: SELECT AccessRight FROM tableA; -Original Message- From: Wee Chua [mailto:[EMAIL PROTECTED]] Sent: Monday, February 18, 2002 1:27 PM To: PHP (E-mail) Subject: [PHP] Php Enum Field Hi all, How can I get the preset v

[PHP] Re: got the code

2002-02-18 Thread J Smith
Could you please leave the subject alone when you're following up on a thread. It's hard to follow what you're talking about when we can't see the references to the other parts of the thread. As for your problem, try removing the semi-colon after the "if ($inst == '2')" statement. It's a simp

Re: [PHP] code

2002-02-18 Thread Tyler Longren
make sure you're doing it like this: if ($inst == "1") { // do this } else { // do something else } instead of this: if ($inst = "1") { // do this } else { // do this } Just a thought. Tyler - Original Message - From: "John Gurley" <[EMAIL PROTECTED]> To: <[EMAIL PROTECT

[PHP] Re: PHP and HTTPS

2002-02-18 Thread J Smith
Sourceforge has a bit on this, too. Basically, they have a checkbox that lets you drop out of SSL after you login, so your username and password aren't sent over the wire in plaintext. However, after that, everything is plaintext, no SSL at all. Useful if you want to keep your password safe d

[PHP] Php Enum Field

2002-02-18 Thread Wee Chua
Hi all, How can I get the preset values for Enum field inside the table. For example, table A has a field called AccessRight, the enum fields are "Read,Add,Delete". How can I write the query to get these values out from AccessRight field? Thanks, Wee -- PHP General Mailing List (http://www.php.

Re: [PHP] php blocking functions

2002-02-18 Thread Sofhian Mahat
Hey List, That is a great question. I too would like to know. Does anyone on this list know anything about this? Thanks, Chad - Original Message - From: Sofhian Mahat To: [EMAIL PROTECTED] Sent: Saturday, February 16, 2002 9:33 PM Subject: [PHP] php blocking functions

[PHP] Re: preg_match vs ereg etc

2002-02-18 Thread CC Zona
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] (Digitalkoala) wrote: > I was just wondering what your opinions were on using preg_match, preg_split > instead of ereg and explode? > > I have to write a script to parse a lot of html and text files.. and I'm > looking to use the fastest possib

Re: [PHP] http_referer

2002-02-18 Thread Erik Price
In PHP4.1 or later, try: echo $_SERVER['HTTP_REFERER']; Erik Erik Price Web Developer Temp Media Lab, H.H. Brown [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] zend studio 2.0

2002-02-18 Thread Scott
FYI- My two cents. I have been running the demo version since a day or two after it was released. On Windows 2000 it has been solid as a rock. I have not tried it on my XP laptop yet, but will soon. Zend Studio is really helping to make PHP 'legitimate' in the corporate world since it no

  1   2   >