Re: [PHP] function to post data

2002-02-06 Thread val petruchek
Or use such method: 1. create form with $PHP_SELF as action 2. in the beginning of php script check if form was posted and if was check it for correctness 3. if form is ok, save post data and then redirect user with Header(to certain page) 4. if form is bad, stay at this script and display both: e

Re: [PHP] MySQL Install Problem

2002-02-06 Thread Dave Barry
On 20 0, Ben Clumeck <[EMAIL PROTECTED]> wrote: > I am trying to install MySQL on WinXP, I get the following error message: > > Microsoft(R) Windows DOS > (C)Copyright Microsoft Corp 1990-2001. > > C:\DOCUME~1\BEN>cd c:\mysql\bin > > C:\MYSQL\BIN>mysqld--standalone > 'MYSQLD--STANDALONE' is not

[PHP] MySQL Install Problem

2002-02-06 Thread Ben Clumeck
I am trying to install MySQL on WinXP, I get the following error message: Microsoft(R) Windows DOS (C)Copyright Microsoft Corp 1990-2001. C:\DOCUME~1\BEN>cd c:\mysql\bin C:\MYSQL\BIN>mysqld--standalone 'MYSQLD--STANDALONE' is not recognized as an internal or external command, operable program o

[PHP] Server Loading Question...

2002-02-06 Thread Jason G.
Hello List, Does anyone know of a Really Good way to determine what kind of loads your Webserver/network can handle before degrading performance or flaking out? I would like to find this out about our server before it fails us under heavy load. Thanks, Jason Garber Univo.biz -- PHP Gener

[PHP] Need XML info for PHP -- XML Newbie

2002-02-06 Thread Navid Yar
Hello everyone, I'm a "newbie" when it comes to XML. I need to know if there's an easy-to-understand documentation/tutorial online that will help me understand how PHP and XML work together, what software technologies PHP uses to parse XML/XSLT documents, and how to actually build PHP to have sup

Re: [PHP] Get file download time.

2002-02-06 Thread Jason Wong
On Thursday 07 February 2002 13:19, J.F.Kishor wrote: > Hi all, > > Is there any way to get file download time, using php functions?, > if not, could any one help to get it done. If you mean "how long it had taken for someone to download a file from your site" then yes. You need to handle

[PHP] Get file download time.

2002-02-06 Thread J.F.Kishor
Hi all, Is there any way to get file download time, using php functions?, if not, could any one help to get it done. Thanks for sparing your precious time. Cheers, - JFK kishor Nilgiri Networks -- PHP General Mailing List (h

Re: [PHP] secure form handling

2002-02-06 Thread CC Zona
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] (Wm) wrote: > Cc Zona wrote: > > > In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] (Obo) > > wrote: > > > > > > Sorry, perhaps I've misunderstood. You would like to charge a customer's > > > > card without the customer knowing how much you're

RE: [PHP] File upload

2002-02-06 Thread Jason Murray
Hi Balaji, > I am trying to upload a file from remote machine. > Could you please help out me. Two things: > upload.html > - > This also needs to have a maximum file size specified: > upload.php > In this script, you'll want to copy $file to "/pa

[PHP] File upload

2002-02-06 Thread Balaji Ankem
Hi, I am trying to upload a file from remote machine. Could you please help out me. Thanks in advance -Balaji upload.html - FileUpload File:

Re: [PHP] GetImageSize and iptcparse problems

2002-02-06 Thread Jason Wong
On Thursday 07 February 2002 05:02, Steven Jarvis wrote: > 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: >

Re: [PHP] secure form handling

2002-02-06 Thread Lars Torben Wilson
On Wed, 2002-02-06 at 19:35, obo wrote: > sorry lars. i accidentally just emailed you back instead of posting this. > > i want the user to be able to see the amount being charged on the screen, but > not to be able > to view it in a hidden field in the source code. most shopping cart > applicatio

Re: [PHP] secure form handling

2002-02-06 Thread wm
amazon.com vitaminworld Cc Zona wrote: > In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] (Obo) > wrote: > > > > Sorry, perhaps I've misunderstood. You would like to charge a customer's > > > card without the customer knowing how much you're charging them? > > > i want the user to be able to se

[PHP] create dynamic pulldown menu?

2002-02-06 Thread John P. Donaldson
I am trying to create a pulldown menu based on the contents of a directory. Is there any way for PHP to read a directory and create the menu based on the files in that directory. It should create this menu dynamically each time the page is viewed, so if a file is deleted from that directory, it d

Re: [PHP] secure form handling

2002-02-06 Thread CC Zona
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] (Obo) wrote: > > Sorry, perhaps I've misunderstood. You would like to charge a customer's > > card without the customer knowing how much you're charging them? > i want the user to be able to see the amount being charged on the > screen, but not

Re: [PHP] secure form handling

2002-02-06 Thread obo
sorry lars. i accidentally just emailed you back instead of posting this. i want the user to be able to see the amount being charged on the screen, but not to be able to view it in a hidden field in the source code. most shopping cart applications are like this. ?? Lars Torben Wilson wrote: >

[PHP] function to post data

2002-02-06 Thread obo
is there a command in php to post form data to a script? example: i have a form. once the submit is hit i use php to check the values. if the values are ok i then call a function to post the data. thanks. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php

Re: [PHP] secure form handling

2002-02-06 Thread Lars Torben Wilson
On Wed, 2002-02-06 at 17:36, wm wrote: > hi, > > i'm fairly new to this. > > what i want to do is use a form so the user can specify a few different > choices > of things they want to buy. maybe a few radio buttons with dollar > amounts and > then possibly a couple of quantity fields for items.

[PHP] secure form handling

2002-02-06 Thread wm
hi, i'm fairly new to this. what i want to do is use a form so the user can specify a few different choices of things they want to buy. maybe a few radio buttons with dollar amounts and then possibly a couple of quantity fields for items. this can then be passed to a script and total added up e

Re: [PHP] Differences between PHP, ASP, JSP

2002-02-06 Thread Tyler Longren
PHP could be used for online banking. Banks use ASP because there is software already written in ASP for what they need. Also, they use it because it's from Microsoft. Tyler - Original Message - From: "Ben Clumeck" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, February 0

[PHP] Differences between PHP, ASP, JSP

2002-02-06 Thread Ben Clumeck
I know there must be a tone of articles on the subject. Can anyone give me brief advantages and disadvantages between the 3 languages. Is there something that one language specifically does that another doesn't? Could PHP be used for online banking? Usually banks use JSP or ASP, why don't bank

[PHP] form > summary !!

2002-02-06 Thread Pablo Petek
Hello, well, here i have my first project and my first problem i write 2 litlte pages. The error consists that if the first item is not selected, "receptor.php" dont print nothing page 1 "; print $articulo[$contador]; print " $ "; print $precio[$contador];

Re: [PHP] Array !!!

2002-02-06 Thread hugh danaher
if you created a "number" array then just input number between the brackets: echo $array_name['some_number_goes_here']; if you want all array values to print: for ($i=0;$i<=count($array_name);$i++) { echo $array_name[$i]; } if it's an associate array then input the name of the array

RE: [PHP] cURL and XML?

2002-02-06 Thread Martin Towell
this is what I'm using: $ch = curl_init($gat_url); // url to post to curl_setopt($ch, CURLOPT_POST, 1); curl_setopt($ch, CURLOPT_POSTFIELDS, $post_data); // contains the XML curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); $x = curl_exec($ch); curl_close($ch); -

[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

[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] 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

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

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

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 s

[PHP] Re: XML closing elements called for

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 rather than ? > no, i don't think so. It means exactly the same in the XML-sense, so why should there be a difference in reporting it..

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 PRO

[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

[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" bu

[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

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

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

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($handl

[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 an

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] 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 p

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 trie

[PHP] XML closing elements called for

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

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 d

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

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: wh

[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] 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 throu

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 t

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 0

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
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)

[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 throu

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

[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 4\n"; } Chris -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[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 vari

[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

[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 f

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] 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 enabl

[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: Gives me the following error on php 4.0.6: Warning: Call-time

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 a

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] 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 > do

[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) : The problem I can see is that some of the earlier 4+ versions had a funny number scheme - i.e. 4.0.1

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] 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

[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 > (!i

[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 whe

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: \n"; echo " \n"; ?> IMHO would be better:

[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

[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 ther

[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 Li

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 deals

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)

[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 i

[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

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 P

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

[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 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 c

[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 mime-

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] 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 o

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]

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 fo

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 th

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 producttabl

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 user

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 don

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 s

[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] 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 test

Re: [PHP] Online tutorials for form validation in PHP

2002-02-06 Thread John Fulton
Laurie, You should use the funtions isset() and empty() along with the appropriate conditionals. I have a tutorial which demonstrates a way to do this: http://www.rci.rutgers.edu/~jfulton/php1/forms.html John -- John Fulton, Webmaster, Rutgers University Computing Services. On Wed, 6

[PHP] Online tutorials for form validation in PHP

2002-02-06 Thread [EMAIL PROTECTED]
Greetings, I'm a beginner in PHP, so forgive me if I ask really basic questions! I've created a form that inserts data into a database, and so far, the form works. However, I don't have form validation included into this form, so I was wondering if someone can point me to an online tutorial on h

[PHP] Re: Multi Threading in PHP

2002-02-06 Thread J Smith
Technically that would be multiplexing and not really multithreading, but it's a good idea. (One I had a few months ago -- I wrote a search engine for work in PHP that works prety much exactly as you both describe.) The sockets extension for PHP will allow such functionality using socket_sele

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

2002-02-06 Thread Jerry Verhoef (UGBI)
Heheh... Nice problem :) But the approach I would take (ALERT PERSONAL OPINION) step one: Check in which row an item order by row desc (C first L last) is located (ROW C,F,I,L in your Xcel sheet) step two: Loop in list of row. And let him always start at the first row! step three: Three options!

[PHP] in_array algorithm

2002-02-06 Thread John Fulton
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 binary search which takes about lg(n) comparisons? Is

[PHP] Re: Caching in php?

2002-02-06 Thread Michael Kimsal
Erick Papadakis wrote: > 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 databa

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

2002-02-06 Thread Erik Price
On Wednesday, February 6, 2002, at 01:06 AM, Zhunbao Zhi wrote: > if ($need_to_know_your_email) { > //popup one window to get the user' email > JavaScript:window.open(leave your email address); insert PHP code to store variable as a session variable here -- will require the user to "s

[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) fr

  1   2   >