Re: [PHP] Sessions and Classes

2002-02-06 Thread Wolfram Kriesing
What is the proper way to transfer class properties through-out my pages... if (!session_is_registered(myCart)){ $myCart = new ShoppingCart(); (some other stuffs...) session_register(myCart); } you dont need to do this, else { $myCart = new ShoppingCart(); } as

php-general Digest 6 Feb 2002 08:35:33 -0000 Issue 1155

2002-02-06 Thread php-general-digest-help
php-general Digest 6 Feb 2002 08:35:33 - Issue 1155 Topics (messages 83631 through 83684): Duplicate e-mails 83631 by: Anthony Rodriguez 83633 by: Analysis and Solutions Books on PHP 83632 by: Ronald D Wahlen 83634 by: Kevin Stone 83641 by:

[PHP] Out of the box algorithms

2002-02-06 Thread Stefan Rusterholz
Hi As part of a class I'm building I need to parse a file where following line occurrs: users: username username with spaces anotherusername I need to parse that into a structure like $users = array( 'username', 'username with spaces', 'anotherusername' ); The issue is

[PHP] Multi Threading in PHP

2002-02-06 Thread Bart Frackiewicz
Hi, a few days ago i saw here a thread about multi threading, but this didn´t answer my question. I have a page, that must search the best price in multiple databases/plain text files and perhaps one day xml-interfaces, some of them can be located on extern hosts, every search can be a

RE: [PHP] Convert 24hr to 12hr

2002-02-06 Thread Jerry Verhoef (UGBI)
RTFM http://www.mysql.com/doc/D/a/Date_and_time_functions.html select date_format(DATEFIELD,%r) from TABLE or select time_format(TIMEFIELD,%r) from TABLE Look in the manual for more options... MUCH MORE :) Anyone know the difference between %h: 01-12 hour notation and %I: 01-12 hour

Re: [PHP] show something

2002-02-06 Thread bvr
By default, PHP's output is buffered. To disable output buffering use ob_implicit_flush(); somewhere in your script. This flushes previous output to the client and disables buffering. For more info look at the manual's chapter on 'Output buffering'. bvr. On Wed, 6 Feb 2002 09:32:29

Re: [PHP] Out of the box algorithms

2002-02-06 Thread Wolfram Kriesing
users: username username with spaces anotherusername I need to parse that into a structure like $users = array( 'username', 'username with spaces', 'anotherusername' ); try preg_match i think the expression could look something like this:

[PHP] socket - e-mailaddress validation

2002-02-06 Thread B. Verbeek
Question: Is it possible to validate an e-mailaddress by opening a socket-connection to the specified domein (@domain.com) and then search for username ([EMAIL PROTECTED]) to validate an e-mailaddress? I know how to set up a socket-connection, but how do I search for the user in the given

Re: [PHP] Check if var is a domain name

2002-02-06 Thread Jon Farmer
Hi, I would use a regular expression to check it. This is a pretty general one, but I think it should do the trick. It searches for 1 or more upper or lowercase letters, followed by a literal dot, followed by 2 or 3 lowercase letters. Of course there are valid domains that would not match

Re: [PHP] show something

2002-02-06 Thread val petruchek
Thanks! Exactly what i need! Thanks a lot! By default, PHP's output is buffered. To disable output buffering use ob_implicit_flush(); somewhere in your script. This flushes previous output to the client and disables buffering. For more info look at the manual's chapter on 'Output

Re: [PHP] socket - e-mailaddress validation

2002-02-06 Thread bvr
Yes, this is possible. However you would need to connect to the users mailserver instead of just the domain. Use getmxrr() to retrieve the mail exchanger associated with the domain. To check if the user is accepted on that server you can issue a RCPT TO: command on it and see what happens.

Re: [PHP] Check if var is a domain name

2002-02-06 Thread bvr
You can online check for a valid domain using if (checkdnsrr($mydomain, SOA)) { echo(is valid domain); } note that www.mynewdomain.com CAN be a valid domain also. bvr. On Tue, 5 Feb 2002 07:59:22 -0800, Brandon Orther wrote: Hello, Does anyone know a function or how I could make

Re: [PHP] Check if var is a domain name

2002-02-06 Thread Jon Farmer
note that www.mynewdomain.com CAN be a valid domain also. Err... sub-domain. -- Jon Farmer Systems Programmer, Entanet www.enta.net Tel 01952 428969 PGP Key available, send email with subject: Send PGP Key -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

[PHP] Array length

2002-02-06 Thread David Orn Johannsson
Isin’t there a function to determine the length of an array? I can’t seem to find it in the manual http://www.atom.is/ Davíð Örn Jóhannssson Vefforritari Atómstöðin hf. Garðastræti 37 101 Reykjavík sími: 595-3643 fax:

Re: [PHP] Array length

2002-02-06 Thread pioneer
On Wed, 6 Feb 2002, David Orn Johannsson wrote: Isin’t there a function to determine the length of an array? I can’t seem to find it in the manual http://www.php.net/manual/en/function.count.php -- Nick Winfield. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] Array length

2002-02-06 Thread val petruchek
count($array) Valentin Petruchek (aki Zliy Pes) http://zliypes.com.ua mailto:[EMAIL PROTECTED] - Original Message - From: David Orn Johannsson [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, February 06, 2002 1:50 PM Subject: [PHP] Array length Isin't there a function to

[PHP] Create Mysql Records From a Comma separated Values String

2002-02-06 Thread Simos Varelakis
Hi to everyone i have the following problem i have a string $foo which contains (n variable) comma separated values (example 1,17,23,45) and i want to insert these values in a mysql table . The destination field is int type and i need to insert one record per value Do you know which php

Re: [PHP] Create Mysql Records From a Comma separated Values String

2002-02-06 Thread Edward van Bilderbeek - Bean IT
$array_foo = explode(,, $foo); for ($i=0; $icount($array_foo); $i++) { mysql_query(INSERT INTO table VALUES ( . $array_foo[$i] . )); } Greets, Edward - Original Message - From: Simos Varelakis [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, February 06, 2002 1:54 PM

[PHP] Firewall

2002-02-06 Thread Thomas Franz
Hi, i hope this is the right group for my question. i've written a php-program with a ftp-connection to a mysql database. now there is one problem. the local network has a firewall. Now, if i try to connect to the database via ftp there is an error. There are no problems if i try to connect

[PHP] Caching in php?

2002-02-06 Thread Erick Papadakis
hello, i used asp and it seems there is an application object which can help in caching of data. (e.g., http://www.aspfaqs.com/aspfaqs/ShowFAQ.asp?FAQID=142). is this possible using php? what can i do to use caching on my website which is totally database driven? thanks/erick

[PHP] start a session crash

2002-02-06 Thread Pablo Petek
Hello, when i start a session ?php session_start(); ? at the begining of the documente *.php i receive this: in a dialog box: PHP provocó un error de página no válida en el módulo PHP4TS.DLL de 0177:10054363. Registros: EAX=0028 CS=0177 EIP=10054363 EFLGS=00010206 EBX=00760050 SS=017f

Re: [PHP] Caching in php?

2002-02-06 Thread Wolfram Kriesing
is this possible using php? what can i do to use caching on my website which is totally database driven? try PEAR::Cache http://pear.php.net -- Wolfram -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Books on PHP

2002-02-06 Thread Erik Price
On Tuesday, February 5, 2002, at 04:07 PM, Ronald D Wahlen wrote: Hello, I am new to PHP and was wondering if anyone can point me the right direction with PHP urls and books to learn how to develop web sites using PHP. I read some of the information on www.php.net web site and have

Re: [PHP] Firewall

2002-02-06 Thread John S. Huggins
On Wed, 6 Feb 2002, Thomas Franz wrote: -Hi, - -i hope this is the right group for my question. - -i've written a php-program with a ftp-connection to a mysql database. - -now there is one problem. the local network has a firewall. Now, if i try to -connect to the database via ftp there is an

[PHP] Re: Multi Threading in PHP

2002-02-06 Thread John Lim
Hi Bart This can be simulated using non-blocking sockets. However this is one time when using Perl or Python might be a better solution (sigh). Bart Frackiewicz [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Hi, a few days ago i saw here a thread about multi

[PHP] how to pass value from popup window to php program

2002-02-06 Thread Zhunbao Zhi
Hi all, I met one problem as below. To express clearly i use some psu-code instead: //this is php code if ($need_user_email_address) { //we popup a window to let user fill his/her email popup_window($give_me_your_email); //we get the user email from the popup window echo your email

Re: [PHP] breaking out of two loops

2002-02-06 Thread Chris Worth
Dang... That is so cool. i'd never noticed that before. well I've learned enough for today. maybe my boss'l let me go home. LOL On 04 Feb 2002 16:00:53 -0800, Lars Torben Wilson wrote: On Mon, 2002-02-04 at 15:54, Erik Price wrote: Short and sweet: If I have an if statement inside a

[PHP] Satellite PHP module

2002-02-06 Thread Remigiusz Sokolowski
Hi! Anybody knows, where can I find this module? In PHP sources from CVS I've found, that this module is in PEAR. I 've tried to find out it on pear.php.net, but I've failed and now I'm really confused, where it can be accesible. TIA rems -- PHP General Mailing List

Re: [PHP] how to pass value from popup window to php program

2002-02-06 Thread Erik Price
On Wednesday, February 6, 2002, at 10:52 AM, Zhunbao Zhi wrote: I do not know whether it can be implemented or not, if it can be done, i really do not know how to produce the popup window and how to pass value from the popup window to the php main code. One way to do it is to store the

[PHP] how to pass value from popup window to php program

2002-02-06 Thread Zhunbao Zhi
Hi all, I am a new comer for PHP. now my situation like below, to express clearly i used some expression instead of PHP code in below php code: if ($need_to_know_your_email) { //popup one window to get the user' email JavaScript:window.open(leave your email address); //then i try

[PHP] how pass value from popup window to php program

2002-02-06 Thread Zhunbao Zhi
Hi all, I am a new comer for PHP. now my situation like below, to express clearly i used some expression instead of PHP code in below php code: if ($need_to_know_your_email) { //popup one window to get the user' email JavaScript:window.open(leave your email address); //then i try

[PHP] php help needed, is there a bright spark out there!

2002-02-06 Thread hamish
Hello All, I have been asked to do a project that seems to be baffling me. It's not really the php which is the hard part, but the mathematical problem behind the project that is causing me to have a headache! Imagine an ecommerce site where a user can pick 5 products (it must be 5) from

Re: [PHP] php help needed, is there a bright spark out there!

2002-02-06 Thread DL Neil
Hello hamish, [msg converted from HTML to simple-text format] I have been asked to do a project that seems to be baffling me. It's not really the php which is the hard part, but the mathematical problem behind the project that is causing me to have a headache! ... =This reminds me of the

[PHP] Is this possible?

2002-02-06 Thread Raymond Lilleodegard
Hi! I have this tricky case, at lest for me : ) I'm trying to get some data out of two tables and listing the data in a product/price site. But. : I have one table with productinfo and one with prices. And it is several columns with the same id in the pricetable, because every product have

Re: [PHP] how to pass value from popup window to php program

2002-02-06 Thread bvr
For info on JavaScript functions, like window.open() use google to find resources. For passing back values to PHP you need a script that does 2 things: - Ask for the email address - Handle the address with PHP Because PHP will not wait for a user to put in it's e-mail address, these are two

Re: [PHP] how to pass value from popup window to php program

2002-02-06 Thread bvr
Storing variables on the client-side using JavaScript can be done by setting a cookie. The cookie data will ofcourse be available to PHP when the next script is executed (for example through a link or redirect). bvr. On Wed, 6 Feb 2002 11:13:01 -0500, Erik Price wrote: Sounds like if you

RE: [PHP] Mysql

2002-02-06 Thread Rick Emery
Look-up GRANT PRIVILEGES in the mysql manual. That should get ya going -Original Message- From: Roman Duriancik [mailto:[EMAIL PROTECTED]] Sent: Wednesday, February 06, 2002 1:11 AM To: [EMAIL PROTECTED] Subject: [PHP] Mysql Pleae help me ! I need delete record from table

Re: [PHP] Is this possible?

2002-02-06 Thread Erik Price
On Wednesday, February 6, 2002, at 12:16 PM, Raymond Lilleodegard wrote: So... how do I get only one row from the product table and two rows from the price table in one line in a page? Use this query: SELECT producttable.onerow, pricetable.onerow, pricetable.tworow FROM producttable,

Re: [PHP] how to pass value from popup window to php program

2002-02-06 Thread Erik Price
On Wednesday, February 6, 2002, at 12:26 PM, bvr wrote: Storing variables on the client-side using JavaScript can be done by setting a cookie. The cookie data will ofcourse be available to PHP when the next script is executed (for example through a link or redirect). Ahh... is this the

Re: [PHP] how to pass value from popup window to php program

2002-02-06 Thread Richard Crawford
There is no way of passing a variable from JS to PHP without sending something back to the server or using a cookie. I haven't followed the thread at all, but if I needed to pass a value from a pop-up window to a PHP program, I'd probably do something like this: In the pop-up window, once the

Re: [PHP] Is this possible?

2002-02-06 Thread val petruchek
Let prices(id,price etc.) be table of prices, products(NUM,name etc). Try smth like this: SELECT DISTINCT * FROM PRODUCTS P, PRICES P1, PRICES P2 WHERE P.NUM=P1.ID AND P.NUM=P2.ID AND P1.SIZE=SIZE1 AND P2.SIZE=P2 Valentin Petruchek (aki Zliy Pes) http://zliypes.com.ua mailto:[EMAIL PROTECTED]

[PHP] Re: Is this possible?

2002-02-06 Thread Dave
I believe you can do this using an INNER JOIN command. I have not done this in sometime, and I will give you a sample from my sql book. Inner joins extract rows that are common to both tables, based on values in the common column. For example, you could write a query that would extract a list

Re: [PHP] Re: Is this possible?

2002-02-06 Thread bvr
Yes, it's entirely possible to abuse the PHP mailinglist by sending MySQL tutorials and useless complaints like this one. bvr. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Sending MIME emails with base64 encoded attachments

2002-02-06 Thread Svarc, Petr
Title: Sending MIME emails with base64 encoded attachments Hello there My base64 encoded attachments in MIME emails come corrupted. I using PHP4 on SuSe Linux. I'm sending an MIME email (I generatate all the headers and so on) with attachments. The first part is7bit text, 2nd part is

Re: [PHP] Is this possible?

2002-02-06 Thread DL Neil
val, Surely this would only be possible if SIZE1 and P2 [sic - maybe SIZE2] were constants, ie that all small packs had SIZE=small and all large packs were defined as SIZE=large. (also that all products had no more than two sizes) Interesting thought though (subject to the =2 sizes

[PHP] Mysql question

2002-02-06 Thread Emiliano Marmonti
I have a site using PHP Mysql. About a month ago to now one of the tables gets corrupted with the message Got Error 127... I fix it and everything works OK, except every time I loose 1 record. Today I could obtain mysql.err from the machine and I could see whenever an error is produced by date,

Re: [PHP] Is this possible?

2002-02-06 Thread Raymond Lilleødegård
At last! : ) Thank you very much for all help! ; ) I made it with two mysql_query() Here are my queries if it is interesting. $varetabell = mysql_query(SELECT varetabell.tekstbilde, varetabell.varenavn, varetabell.varenr, varetabell.innhold, pristabell.pris FROM varetabell, pristabell WHERE

Re: [PHP] Mysql question

2002-02-06 Thread Emiliano Marmonti
Yes, sorry by the off-topic but I wanted to know if wnybody here could help me because in mysql I couldn´t find any answer. Also I have seen a lot of questions relative to mysql answered here. But you´re right it´s a off-topic. Emiliano. -Original Message- From: Sam Masiello [EMAIL

[PHP] RE: Sending MIME emails with base64 encoded attachments

2002-02-06 Thread Svarc, Petr
Title: RE: Sending MIME emails with base64 encoded attachments Hello. That's me, again. I found a reason of my problem..not solution. PHP use Cstyle string, where end of string si #0. Let say I have a small 4byte file with content AB#0C (ascii: #65,#66,#0,#67) I load it (using binary

[PHP] help!

2002-02-06 Thread Pat Hanna
This may or may not have anything to do with PHP but my goal deals with it. I have a box that I'm trying to turn into a linux box for php purposes. I have reformatted the hard drive so I could install it. The problem is that when I try to partition the disk during the installation, my hard drive

Re: [PHP] Sending MIME emails with base64 encoded attachments

2002-02-06 Thread Analysis and Solutions
Hi Petr: I using PHP4 on SuSe Linux. I'm sending an MIME email (I generatate all the headers and so on) with attachments. Your coding worked fine for me. When I then send it, the mail arrives, but the attached file (e.g. *.zip) is corrupted. In original there are #0 (char. ascii 0), in

RE: [PHP] help!

2002-02-06 Thread Stephano Mariani
Offtopic! Try a linux list, or the list for the distribution you are trying to install! -Original Message- From: Pat Hanna [mailto:[EMAIL PROTECTED]] Sent: Wednesday, 6 February 2002 7 8 To: php help Subject: [PHP] help! This may or may not have anything to do with PHP but my goal

[PHP] mktime() Algorithm

2002-02-06 Thread David A Dickson
I need to create a function in another programming language that takes the same input as the php mktime() function and produces the exact same output as the php mktime() function. Does anybody out there know what the algorithm is? -- David A Dickson [EMAIL PROTECTED] -- PHP General Mailing

[PHP] Re: mktime() Algorithm

2002-02-06 Thread Philip Hallstrom
You could look at the source code for PHP On Wed, 6 Feb 2002, David A Dickson wrote: I need to create a function in another programming language that takes the same input as the php mktime() function and produces the exact same output as the php mktime() function. Does anybody out there

[PHP] !isset ??

2002-02-06 Thread Erik Price
Hm. I hope I'm not opening an old wound: Curious about the proper way to test for the existence of a variable, I decided to read up on isset() at php.net's function manual pages. It seems at first to be a way to test whether or not a variable has been set. But reading the annotations below

Re: [PHP] Is this possible?

2002-02-06 Thread Julio Nobrega Trabalhando
I am sorry, this has nothing to do with the logic of your code, but instead with style (and a little bit of perfomance, both from you and your system). Isn't easier to escape PHP when you are going to enter html code lines? Like this: ?php if ($myrow = mysql_fetch_array($varetabell) AND

[PHP] Re: !isset ??

2002-02-06 Thread Julio Nobrega Trabalhando
If your purpose is to see if an user wrote or selected anything, you can do: if (ereg(^[[:blank:]]*$,$_POST['var'])) { // It has only spaces } I am sorry if does not fit your need like I interpreted. But, just for not getting flamed, !isset() works fine for me on both cases (so far

[PHP] Re: !isset ??

2002-02-06 Thread CC Zona
In article [EMAIL PROTECTED], [EMAIL PROTECTED] (Erik Price) wrote: Pretty confusing. Can anyone shed some light on whether or not there is a final definite way to do this? I've used (!($_POST['var'])) with no problems in the past, but does good coding style suggest that I use

[PHP] Re: mktime() Algorithm

2002-02-06 Thread Alan McFarlane
Most langauges have support for this type of function - i.e. the number of seconds since 1970. Check your language manual... David A Dickson [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... I need to create a function in another programming language that takes

Re: [PHP] socket - e-mailaddress validation

2002-02-06 Thread Mike Frazer
If the remote system has the finger service activated, that would work. However, most servers have stopped running this and also the user generally has a say in whether they want to be listed. Out of curiosity, why do you want to do this? Mike Frazer Bvr [EMAIL PROTECTED] wrote in message

[PHP] Version checking

2002-02-06 Thread Alan McFarlane
What's the best method for checking the PHP version number. I'm assuming that include() was available in all versions, so, from my main index.php script, I include a local script (common.php) : ?php // assume minimum version of PHP required is 4.0.5 if (phpversion() 4) { die(wrong version); }

Re: [PHP] Re: !isset ??

2002-02-06 Thread Erik Price
On Wednesday, February 6, 2002, at 03:28 PM, CC Zona wrote: PHP's loose typing means that !$somevar evalutes as true if the variable is null, if it has an (integer, float, or string) value of zero, if it's an empty string, or if it is set to boolean false. Or if the variable/index does

Re: [PHP] !isset ??

2002-02-06 Thread Michael Sims
At 03:06 PM 2/6/2002 -0500, Erik Price wrote: Pretty confusing. Can anyone shed some light on whether or not there is a final definite way to do this? I've used (!($_POST['var'])) with no problems in the past, but does good coding style suggest that I use (!isset($_POST['var'])) now? The

Re: [PHP] Version checking

2002-02-06 Thread Bogdan Stancescu
Check this one out (I use it to define functions for versions of PHP that don't have wordwrap defined for example): // Function to determine if the current version of PHP is // at least the one specified as a string in the parameter. // This is needed because string comparison isn't always

[PHP] GetImageSize and iptcparse problems

2002-02-06 Thread Steven Jarvis
I've read the manual, and I'm still stuck, partially due to the manual itself. This is the first time I've dealt with this particular issue (parsing IPTC info from JPEGs). The example provided in the manual entry on GetImageSize: ?php $size = GetImageSize (testimg.jpg,$info); if

[PHP] checking for off site image

2002-02-06 Thread sean
I'd like a test to see if an image not saved locally exists or not, but I'm beginning to wonder if there's a way. I've tried: getimagesize ('http://offsite.image.gif', $info); if ($info[3] != ) $title= 'print out image html'; else $title= 'give some text'; My URL fopen wrapper is

Re: [PHP] !isset ??

2002-02-06 Thread Erik Price
On Wednesday, February 6, 2002, at 03:42 PM, Michael Sims wrote: This is fine for most cases, but let's say that $_POST['var'] *is* set to either an empty string () or a string containing zero (0). Your test will fail, because both of these are evaluated as FALSE when cast as a

[PHP] RE: RE: Sending MIME emails with base64 encoded attachments

2002-02-06 Thread Svarc, Petr
Title: RE: RE: Sending MIME emails with base64 encoded attachments FINAL SOLUTION! Hello Ok. It's me, the last time :-) Let say I have a small 4byte file with content AB#0C (ascii: #65,#66,#0,#67) I load it (using binary save fread into $txt) When I try to get third character (#0),

[PHP] Manual input, to form, to array, to session register...

2002-02-06 Thread Floyd Baker
Before 4.1 we used an input form with default field values and manual override input to an array and then posted to an action page. All was good until global_register were turned off. Now I need to make this work using the session register. I have the all this working and passing defined

Re: [PHP] Manual input, to form, to array, to session register...

2002-02-06 Thread Erik Price
On Wednesday, February 6, 2002, at 04:08 PM, Floyd Baker wrote: Now I need to make this work using the session register. I have the all this working and passing defined variables ok. How is this done with a manual input? I have tried to use the same input line as before print INPUT

Re: [PHP] mktime() Algorithm

2002-02-06 Thread Lars Torben Wilson
On Wed, 2002-02-06 at 11:28, David A Dickson wrote: I need to create a function in another programming language that takes the same input as the php mktime() function and produces the exact same output as the php mktime() function. Does anybody out there know what the algorithm is? --

Re: [PHP] if variable is equal to 2 through 4

2002-02-06 Thread Erik Price
Also, it was excessive to cross-post to different lists, especially with this kind of question. It has nothing to do with MySQL. Cross-posting is really only relevant for certain kinds of important announcements, and even then probably aren't cool. Erik On Wednesday, February 6, 2002, at

Re: [PHP] Caching in php?

2002-02-06 Thread Jeff Bearer
There is Zend Cache, it expensive and you have to pay per processor. That drove folks to develop APC (Alternitive PHP Cache) which is open source. http://apc.communityconnect.com/ They take the PHP source and compile it into machine code and stores that code, which saves porcessor overhead when

[PHP] if variable is equal to 2 through 4

2002-02-06 Thread Jay Fitzgerald
i am currently using this code: if ($variable == 2) || ($variable == 3) || ($variable == 4) { echo hello; } how would I write it if I wanted to say this: if $variable == 2 through 4 ??? Should you have any questions, comments or concerns, feel free to call me at 318-338-2034. Thank you

[PHP] Re: [PHP-DB] if variable is equal to 2 through 4

2002-02-06 Thread Chris Boget
how would I write it if I wanted to say this: if $variable == 2 through 4 ??? if(( $variable = 2 ) ( $variable = 4 )) { echo Equals 2 through 4br\n; } Chris -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: [PHP-DB] if variable is equal to 2 through 4

2002-02-06 Thread Mihail Bota
try this: if ($v=2 $v=4) { echo ...; } mihai On Wed, 6 Feb 2002, Jay Fitzgerald wrote: i am currently using this code: if ($variable == 2) || ($variable == 3) || ($variable == 4) { echo hello; } how would I write it if I wanted to say this: if $variable == 2 through 4 ???

Re: [PHP] if variable is equal to 2 through 4

2002-02-06 Thread Erik Price
On Wednesday, February 6, 2002, at 04:10 PM, Jay Fitzgerald wrote: i am currently using this code: if ($variable == 2) || ($variable == 3) || ($variable == 4) { echo hello; } how would I write it if I wanted to say this: if $variable == 2 through 4 ??? if ($variable = 2) ($variable

Re: [PHP] if variable is equal to 2 through 4

2002-02-06 Thread hugh danaher
try: if ($variable=2 and $variable=4) echo hello; - Original Message - From: Erik Price [EMAIL PROTECTED] To: Jay Fitzgerald [EMAIL PROTECTED] Cc: PHP (E-mail) [EMAIL PROTECTED] Sent: Wednesday, February 06, 2002 1:33 PM Subject: Re: [PHP] if variable is equal to 2 through 4 Also,

[PHP] odbc_fetch_into(), is there a way to display each data while using this function?

2002-02-06 Thread Scott Fletcher
Hi! I want to know is is there a way to see the data per loop when using hte odbc_fetch_into() function? I want to see all of hte data. Thanks, Scott -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Fw: why !^ in email?

2002-02-06 Thread Martin Towell
I think it has something to do with the lines being too long, try throwing in a few carriage returns and see if that solve your problem Martin -Original Message- From: nina [mailto:[EMAIL PROTECTED]] Sent: Wednesday, February 06, 2002 5:21 PM To: [EMAIL PROTECTED] Subject: [PHP] Fw:

Re: [PHP] RE: RE: Sending MIME emails with base64 encoded attachments

2002-02-06 Thread Analysis and Solutions
Hey Petr: 2) I realize that in string obtained by fread() the following characters are changed: #0 () - #92#48 (\0) #34 () - #92#34 (\) #39 (') - #92#39 (\') #92 (\) - #92#92 (\\) WAIT A SECOND! You've got the magic_quotes_runtime configuration variable

Re: [PHP] in_array algorithm

2002-02-06 Thread Lars Torben Wilson
On Wed, 2002-02-06 at 08:26, John Fulton wrote: Does anyone know which algorithm in_array() uses? For example, if I say in_array(foo, $arr) Does in_array() do an unordered sequential serach of $arr for foo which takes up to n comparisons [where n = count($arr)], or does it do a

[PHP] XML closing elements called for tag /

2002-02-06 Thread Hammy
Is there any way to suppress or detect when the closing element event fires from tags in the form tag / rather than tag/tag?

Re: [PHP] Manual input, to form, to array, to session register...

2002-02-06 Thread Floyd Baker
On Wed, 6 Feb 2002 16:23:25 -0500, you wrote: On Wednesday, February 6, 2002, at 04:08 PM, Floyd Baker wrote: Now I need to make this work using the session register. I have the all this working and passing defined variables ok. How is this done with a manual input? I have tried to use

[PHP] Re: Newbie: Question about filesize()

2002-02-06 Thread Ben Crawford
You also seem to have an extra equals. Your loop should read: while (false != ($file=readdir($handle))){ It should come up as an error, but I'm not sure. Ben Manuel Ritsch wrote: Hello There I'm new to PHP and trying to code a function that reads all teh files out of a directory and

RE: [PHP] Re: Newbie: Question about filesize()

2002-02-06 Thread Martin Towell
that should be okay - it's to make sure that it is exactly equal to (as opposed to equates to be equal to) eg (0 === false) = false (0 == false) = true -Original Message- From: Ben Crawford [mailto:[EMAIL PROTECTED]] Sent: Thursday, February 07, 2002 2:28 AM To: [EMAIL PROTECTED]

[PHP] File Uploads

2002-02-06 Thread Ben Crawford
I apoligize if this question has already been asked but I am looking to upload files to my server. I use a form and can get the files to upload as user nobody with a random file name on my Linux box. That is the problem, the user is 'nobody'. This is either an Apache thing or a PHP thing

Re: [PHP] Re: Newbie: Question about filesize()

2002-02-06 Thread Jeff Sheltren
At 10:27 AM 2/6/2002 -0500, Ben Crawford wrote: You also seem to have an extra equals. Your loop should read: while (false != ($file=readdir($handle))){ I think you could eliminate the false != in the while condition... It should be just the same if you write while (($file = readdir($handle)))

Re: [PHP] Re: Newbie: Question about filesize()

2002-02-06 Thread Lars Torben Wilson
On Wed, 2002-02-06 at 07:27, Ben Crawford wrote: You also seem to have an extra equals. Your loop should read: while (false != ($file=readdir($handle))){ It should come up as an error, but I'm not sure. Ben No, that's the 'identical' operator, which returns true when its operands are

Re: [PHP] File Uploads

2002-02-06 Thread Jeff Sheltren
The username will be the same username that apache is running as, which you can specify in your httpd.conf file. -Jeff At 10:32 AM 2/6/2002 -0500, Ben Crawford wrote: I apoligize if this question has already been asked but I am looking to upload files to my server. I use a form and can

[PHP] Array !!!

2002-02-06 Thread Pavel Zvertsov
Help!! How to move an array's internal pointer to the required element not the first one or last one??? Thanks!!! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Writing PHP files from inside a PHP file

2002-02-06 Thread Georgie Casey
I want to extract information from a database table and create a half-static, half-dynamic PHP page from the info. I want to store the template for the new page in an external file with tags in the places where I want variables to be printed. What;s the best of achieving this?? I tried fread but

[PHP] Re: Create Mysql Records From a Comma separated Values String

2002-02-06 Thread Ben Crawford
The function you are looking for is 'explode'. It works like this, say you have a line of text stored in line of say pizza topping like this: $pizza_toppings = topping1,topping2,topping3 and now you want the toppings in an array just do this: $toppings = explode(,, $pizza_toppings); then you

RE: [PHP] Writing PHP files from inside a PHP file

2002-02-06 Thread Brandon Orther
Use include(); or require(); Brandon Orther WebIntellects Design/Development Manager [EMAIL PROTECTED] 800-994-6364 www.webintellects.com -Original Message- From: Georgie Casey [mailto:[EMAIL

[PHP] Re: XML closing elements called for tag /

2002-02-06 Thread Christian Stocker
In 000a01c1af5a$dbf70140$73fd883e@laptop, Hammy wrote: Is there any way to suppress or detect when the closing element event fires from tags in the form tag / rather than tag/tag? no, i don't think so. It means exactly the same in the XML-sense, so why should there be a difference in

Re: [PHP] Re: Newbie: Question about filesize()

2002-02-06 Thread Lars Torben Wilson
On Wed, 2002-02-06 at 15:33, Jeff Sheltren wrote: At 10:27 AM 2/6/2002 -0500, Ben Crawford wrote: You also seem to have an extra equals. Your loop should read: while (false != ($file=readdir($handle))){ I think you could eliminate the false != in the while condition... It should be

RE: [PHP] Re: XML closing elements called for tag /

2002-02-06 Thread Martin Towell
if you set up the xml_set_character_data_handler(), maybe this isn't called for tag /, but it will be called for tag/tag (??) you might want to check that 'cause I haven't :) Martin -Original Message- From: Christian Stocker [mailto:[EMAIL PROTECTED]] Sent: Thursday, February 07, 2002

[PHP] Re: Writing PHP files from inside a PHP file

2002-02-06 Thread J Smith
include() and require() were suggested, but you may also want to look into eval(), which parses a string as PHP code and returns the parsed PHP. Sounds like what you're looking for. (I.e. storing PHP code in a database, right?) J Georgie Casey wrote: I want to extract information from a

[PHP] Verisign / Payflow Pro

2002-02-06 Thread Lazor, Ed
Hi =) I saw PHP has built-in support for Cybercash, but that Verisign has purchased them. It looks like I'll have to go with Payflow Pro, but I'm wondering if PHP has built-in support, available modules, or what the best approach is. Any recommendations? Thanks, -Ed

[PHP] cURL and XML?

2002-02-06 Thread Petras Virzintas
Hi, has anyone successfully posted an XML data file using the PHP cURL functions? If so, could you please send an example of the curl_setopt function names used. Thanks in advance Petras

  1   2   >