RE: [PHP] fullname

2002-07-29 Thread David Freeman
> is there some other easyer way to do in one line than this?: > > $fullname = $session["f_name"]; > $fullname .= " "; > $fullname .= $session["l_name"]; $fullname = $session["f_name"] . " " . $session["l_name"]; CYA, Dave -- PHP General Mailing List (http://www.php.net/) To unsub

RE: [PHP] MySQL password()

2002-07-29 Thread David Freeman
> Mmm.. think you misinterpreted my question... > > > http://www.mysql.com/doc/M/i/Miscellaneous_functions.html > > PASSWORD(str) > how do you unPASSWORD(str) in PHP? Basically, you don't. Instead, what you do is use the password that was provided as user input. You create a suitable

Re: [PHP] fullname

2002-07-29 Thread Wee Keat
Is this easier for you? $fullname = $session["f_name"]." ".$session["l_name"]; - Original Message - From: "Mantas Kriauciunas" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: 30 July, 2002 7:11 PM Subject: [PHP] fullname > Hey php-general, > > is there some other easyer way t

[PHP] fullname

2002-07-29 Thread Mantas Kriauciunas
Hey php-general, is there some other easyer way to do in one line than this?: $fullname = $session["f_name"]; $fullname .= " "; $fullname .= $session["l_name"]; P.S the thing is to add line in the middle of the first and last names :) Thanks -- Best regards, Mantas

[PHP] Re: MySQL password()

2002-07-29 Thread Lars Olsson
To my knowledge it isn't possible to "decrypt" the PASSWORD function in MySQL (you need to use MySQL ENCRYPT/DECRYPT for that). However, it's possible to use PASSWORD on the user-provided string too. You could try the following code: $query="SELECT * FROM users where username='$PHP_AUTH_USER'

[PHP] php extension problem

2002-07-29 Thread p . williams
We've successfully installed and run PHP 4.0.6. However when we add an extension for win9x printing we get the message "PHP Warning: Unable to load dynamic library 'c:\php\extensions/php_printer.dll' a device attached to the system is not functioning". The php.ini file has extension_dir=c:\php\ex

[PHP] Image out of LDAP

2002-07-29 Thread Manuel Vazquez
Good morning, I'm running a OpenLDAP database which includes JPEG photos for some entries. The purpose is to view these images on a web page. Unfortunately I do not have much experience with PHP so any help would be very appreciated. Thanks in advance, Manuel Vazquez -- PHP General Mailing Li

Re: [PHP] MySQL password()

2002-07-29 Thread Liam MacKenzie
Mmm.. think you misinterpreted my question... http://www.mysql.com/doc/M/i/Miscellaneous_functions.html PASSWORD(str) how do you unPASSWORD(str) in PHP? - Original Message - From: "Negrea Mihai" <[EMAIL PROTECTED]> To: "Liam MacKenzie" <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sen

[PHP] Re: ORDER BY from 2 tables

2002-07-29 Thread Paul Dionne
I am not sure what exactly you mean. If you are talking about a regular query then: SELECT tblTable1.hits, tblTable2.hits FROM tblTable1, tblTable2 ORDER BY tblTable1.hits; If you are talking about combining the two tables so that all your 'hits' are in one column then there are a few

RE: [PHP] Resetting ID

2002-07-29 Thread David Freeman
> What i want to do is delete the entire IDs and > generate them again so that they are in one single > order like 1,2,3,4,5... .like this. I suspect that if your table, as you use it, needs this ordering then you've got something wrong. It really shouldn't matter much what the internal IDs

[PHP] Re: MYSQL natsort() ?

2002-07-29 Thread lallous
Well, you can do something like: SELECT * FROM tablename ORDER BY fieldname [ASC|DESC] => [ASC|DESC] optional, put either of theses without the brackets. //Elias. "Joel Colombo" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > This is a mysql question, cause

[PHP] Re: Resetting ID

2002-07-29 Thread lallous
Save all the entries somewhere programmatically, then do DELETE * FROM tablename; re insert all the entries (of course do not enter the ID field, cause it will be auto assigned). gl, "Thomas Edison Jr." <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Glory! >

[PHP] MySQL password()

2002-07-29 Thread Liam MacKenzie
Hi all, I do this: dbconnect(); $query="SELECT * FROM users where username='$PHP_AUTH_USER'"; $result=mysql_query($query); $list=mysql_fetch_array($result); if ($PHP_AUTH_PW !== $list[passwd] || "" == $PHP_AUTH_PW || "all" != $list[domain]){ Header("WWW-authenticate: basic realm=\"EM

Re: [PHP] [Fwd: Can you help me about the installation of apache/php/MySQl/ssl ?]

2002-07-29 Thread Jason Wong
On Tuesday 30 July 2002 14:17, [EMAIL PROTECTED] wrote: > Can you help me about this problem ? Try google. -- Jason Wong -> Gremlins Associates -> www.gremlins.com.hk Open Source Software Systems Integrators * Web Design & Hosting * Internet & Intranet Applications Development * /* Before bor

RE: [PHP] [Fwd: Can you help me about the installation of apache/php/MySQl/ssl ?]

2002-07-29 Thread Peter
> -Original Message- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, 30 July 2002 4:17 PM > To: [EMAIL PROTECTED] > Subject: [PHP] [Fwd: Can you help me about the installation of > apache/php/MySQl/ssl ?] > > > Hello, > > Can you help me about this problem ? > > Tha

[PHP] RE: One more question

2002-07-29 Thread Martin Towell
You'll have to check that the results you get back from the database actually contains something before you echo anything out. Another way would be something like this $numcols = 2; $counter = 0; while (($results = mysql_results(...)) !== false) // haven't used mysql, so you'll have to fix t

[PHP] [Fwd: Can you help me about the installation of apache/php/MySQl/ssl ?]

2002-07-29 Thread EdwardSPL
Hello, Can you help me about this problem ? Thanks, Edward. --- Begin Message --- Hello, My system is Red Hat 6.2 system... Now, I'm going to setup WebMail with IMP 3.x ( http://www.horde.org/imp ), so I must install apache, php, MySQL and SSL by sources code packages ! These is my installa

Re: [PHP] Submitting form in new window!

2002-07-29 Thread Thomas Edison Jr.
Glory, 2 Problems with this : 1. I have a PHP/MySQL statement within my PHP Code, which is in the Body part of the page. This generates the Form Fields & Thier Values.. there are a lot of hidden fields who's values are defined by Database Variables.. If i place the FormSubmit()Function in the

[PHP] Resetting ID

2002-07-29 Thread Thomas Edison Jr.
Glory! I have a table, with 4 columns. One of the column is ID, a Primary Key, which has Auto_Increment set on it. Now i have a lot of rows deleted and a lot of duplicate rows that will be deleted, and all sorts of stuff happening in the table.. the result is, that the IDs have become inconsist

[PHP] One more question

2002-07-29 Thread César Aracena
Martin. Hoping you are still there, I would like to ask you one more question about the last mail you answered me about Table Formatting (maybe you missed my last question ;). After I used what you told me for nesting FOR loops, I end up getting one blank image (NOT DISPLAYED) whenever I have an

RE: [PHP] What is REGEX ?

2002-07-29 Thread Martin Towell
REGEX is short for "Regular Expressions" It gives you a "smarter" way to manupulate strings. The PHP manual has some good docs on reg.ex. - see section LXXXIV and LXXXVI HTH Martin -Original Message- From: Lord Loh. [mailto:[EMAIL PROTECTED]] Sent: Tuesday, July 30, 2002 5:07 PM To: [EM

RE: [PHP] Re: Public Scripts in a commercial product

2002-07-29 Thread David Freeman
> Yes, I am afraid that regarding GPL I have to agree with > Microsoft when they say it is a cancer. The problem is that if you want to > distribute something that incorporates GPL licensed components, your > software also needs to be distributed as GPL and so it gets contaminated. > Thi

[PHP] Mail issues

2002-07-29 Thread Yves Vrancken
Greetings, I have read up on using mail with PHP because I would like to implement it on my website. I was wondering though, if I should implement safety measures and if so, what kind of measures, under the following conditions: 1. If I want to give visitors the opportunity to sign up for a news

[PHP] What is REGEX ?

2002-07-29 Thread Lord Loh.
Hello! I am new to REGEX. I tried to read several posts on REGEX. However none were descriptive. What is Regex ? Is it a part of the php? or an additional module? What can it be used for ? Please let me know Thank you. Lord Loh. -- PHP General Mailing List (http://www.php.net/) To unsubscri

RE: [PHP] Not a Valid File-Handle Resource

2002-07-29 Thread Martin Towell
1. Take out the @ before fopen(), this may shed some light on your problem 2. What does "/home/blurredv/data/".$username."Contact.txt" expand out to actually be? 3. Does the script have write access to the directory/file? -Original Message- From: Chris Carlson [mailto:[EMAIL PROTECTED]] S

[PHP] Re: Public Scripts in a commercial product

2002-07-29 Thread Manuel Lemos
Hello, On 07/29/2002 07:16 PM, Richard Lynch wrote: >>If someone is going to be using scripts that they grabbed > >>from a public forum (PHP Builder, PHPClasses, etc) in a > >>commercial product (that is going to be compiled with the >>Zend encoder and released), what is the protocol, if any?

[PHP] Re: Public Scripts in a commercial product

2002-07-29 Thread Manuel Lemos
Hello, On 07/29/2002 05:29 PM, Chris Boget wrote: > If someone is going to be using scripts that they grabbed > from a public forum (PHP Builder, PHPClasses, etc) in a > commercial product (that is going to be compiled with the > Zend encoder and released), what is the protocol, if any? > Do yo

[PHP] Not a Valid File-Handle Resource

2002-07-29 Thread Chris Carlson
I am trying to create a php program and am getting an error in this area of my script: $dataFile = @fopen("/home/blurredv/data/".$username."Contact.txt","w"); fputs($dataFile, $line); fclose ($dataFile); These are the errors: Warning: Supplied argument is not a valid File-Handle resource

Re: [PHP] Re: need help with uploading images

2002-07-29 Thread Deadsam
This looks good but I just have one question about it if you don't mind, what if someone was uploading a gif or a PNG file? can it be made to only detect jpgs? Thanks in advance Deadsam > Try it this way, it will check if it is a jpeg and it has a horizontal > and vertical size so you can be pret

[PHP] Re: Sendmail "return-path" from my virtual webhost

2002-07-29 Thread Manuel Lemos
Hello, On 07/29/2002 01:54 PM, Al wrote: > Emails sent from my php scripts, using sendmail, all have a goofy > "return-path" variable in the header. > > Is there a way I can correct this, or does it require a change to the > sendmail config file that I can't get to? Yes, you can use mail() 5t

[PHP] Re: REGEX for credit card number

2002-07-29 Thread Manuel Lemos
Hello, On 07/28/2002 05:02 PM, Mike Mannakee wrote: > Does anyone have a regular expression that works to validate credit card > numbers? No, there is not regular expression for that. You may want to use this class instead for validation credit card numbers in forms: http://www.phpclasses.org/

Re: [PHP] Re: OT - javascript question..

2002-07-29 Thread Jason Wong
On Tuesday 30 July 2002 05:54, Jome wrote: > >Is there any way, when the upload window is closed, to force a reload of > > the other page, so the dynamic pop-up reflects > > >the recent upload? > > This link may help some: > http://www.hwg.org/resources/faqs/jsFAQ.html#popup-talk > > Please don't

Re: [PHP] Update of the problem w/ code - conditional image generation problem?!

2002-07-29 Thread Jason Wong
On Tuesday 30 July 2002 04:47, Joseph Rosenblum wrote: > Do you know you have a typo in that conditional there? Was that your > real code? You misspelled 'else' as 'esle'. (To OP): If you're going to post code that you want someone to debug, please copy & paste. Introducing spurious typos wastes

RE: [PHP] PHP-MySQL connection problem

2002-07-29 Thread Manisha
Hi, I tried to display phpinfo and I am getting following values display_errors On On display_startup_errors On On error_append_string no value no value error_logno value no value error_prepend_string no value

[PHP] Credit Card Validation Solution updated

2002-07-29 Thread Analysis & Solutions
Hi Folks: I'm happy to announce the latest versions of my Credit Card Validation Solution. This includes a new JSP Edition and reworking the PHP and Perl Editions into an Object Oriented paradigm. If you're using a version prior to the following, please upgrade: Ed. Ver URI --- -

Re: [PHP] Re: ENCRYPT() in MySQL

2002-07-29 Thread Justin French
on 30/07/02 7:45 AM, Richard Lynch ([EMAIL PROTECTED]) wrote: > You're barking down the wrong well. :-) LMAO > AES_ENCRYPT/AES_DECRYPT is using 128-bit encryption, which would be fine, > but *ANYBODY* who manages to read your "password" (aka "key_string" in the > arg_list) could snatch the CC#s

Re: [PHP] Encrypting Passwords - Is it really necessary??

2002-07-29 Thread Michael Sims
On Mon, 29 Jul 2002 17:30:48 -0400, you wrote: >Is it really necessary to store passwords encrypted in a mySQL DB for a >membership site if you're not storing sensitive info such as credit card >numbers? How much security does that offer, really, and for whom? [...] >The reason I ask is because I

Re: [PHP] Re: need help with uploading images

2002-07-29 Thread Tom Rogers
Hi, Tuesday, July 30, 2002, 3:52:23 AM, you wrote: D> maybe it would be easier to show you the part of code I'm using, D> } D> /** Check for the type of the image : only allow jpeg's */ D> if($_FILES['uploadFile']['name']['type']!="image/jpeg"){ D> echo "You can only upload jpg images."; D>

[PHP] Re[2]: File Browser like Win Explorer in php

2002-07-29 Thread Evgeny Chuykov
Look at the HTML_TreeMenu http://pear.php.net/package-info.php?pacid=77. >>I am wondering if anyone has created or know where I can get a code for >>browsing files and directory in using php in linux. The one I am looking >>for is file browsing capability that is similar to Window Explorer, >>mea

Re: [PHP] OT - javascript question..

2002-07-29 Thread Justin French
on 30/07/02 6:11 AM, Martin Clifford ([EMAIL PROTECTED]) wrote: > > echo "\n\n"; > > ?> > > Something similar will work fine. Wouldn't the $PHP_SELF be that of the popped-up window, not of the opener? Justin French -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] OT - javascript question..

2002-07-29 Thread Justin French
Yes, this is way OT you can refer back to the original window with opener (or it may me window.opener) I used it once to change the location of the parent window with something like: show me somethi

Re: [PHP] ENCRYPT() in MySQL

2002-07-29 Thread Justin French
on 30/07/02 1:05 AM, Analysis & Solutions ([EMAIL PROTECTED]) wrote: > On Mon, Jul 29, 2002 at 10:06:29PM +1000, Justin French wrote: >> >> I'm on a shared server which does not have mcrypt... not good, since i want >> to temporarily store credit card numbers in an encrypted manner, either in a

RE: [PHP] Re: libphp4.so

2002-07-29 Thread Peter
> >howdy, > > > >i've got it all configured correctly .. well it doesn't spit any > errors out > >on make > >but when i got to view a web page it opens a down load box ..so > i added this > > > >LoadModule php4_modulelibexec/libphp4.so > > > >to httpd.conf as per the manual and restarted a

[PHP] Re: Passing PHP variables into javascript

2002-07-29 Thread Richard Lynch
>echo "$chon_pet[7]"; JavaScript won't let you use [] in a name, so you'll have to refer to the elements by number. -- Like Music? http://l-i-e.com/artists.htm I'm looking for a PRO QUALITY two-input sound card supported by Linux (any major distro). Need to record live events (mixed already)

Re: [PHP] Re: sessions and https

2002-07-29 Thread Chris Shiflett
Richard Lynch wrote: >But Cookies sent to the HTTPS are not on the HTTP and vice versa. > >That ain't PHP, that's just how cookies work. > Are you sure about this? That's definitely not how the specification reads (assuming I'm interpreting what you're trying to say correctly), and that is not

Re: [PHP] Public Scripts in a commercial product

2002-07-29 Thread Tech Support
Uhhh but you really should ask the author too. ;-) Jim Grill Support Web-1 Hosting http://www.web-1hosting.net - Original Message - From: "Tech Support" <[EMAIL PROTECTED]> To: "Chris Boget" <[EMAIL PROTECTED]>; "PHP General" <[EMAIL PROTECTED]> Sent: Monday, July 29, 2002 5:38 PM Sub

Re: [PHP] Public Scripts in a commercial product

2002-07-29 Thread Tech Support
There are many types of licensing and it really depends on what the author licensed it under. Most are GPL. Normally the first few lines of the LICENSE file typically included with the dist will explain the details of the license. If there is not one always assume that if you use any part of it in

Re: [PHP] PHP5?

2002-07-29 Thread Tech Support
You could join the developer's list and just read. I joined just to keep up with what's coming in future releases and it's also pretty interesting. They are constantly talking about what features/bugs need work and when they want to do a release and who will be on vacation and can't help and blah

[PHP] Re: Public Scripts in a commercial product

2002-07-29 Thread Richard Lynch
>If someone is going to be using scripts that they grabbed >from a public forum (PHP Builder, PHPClasses, etc) in a >commercial product (that is going to be compiled with the >Zend encoder and released), what is the protocol, if any? >Do you have to get permission from the author or anything? >I

[PHP] Re: OT - javascript question..

2002-07-29 Thread Richard Lynch
>Sorry for the off topic post, but this is by far the most experienced list >I've found. > >I've got a php page that show all the .gif and .jpeg files in an directory >via a form based drop down menu. > >On the same page, I've also got a link that opens a new window, and allows >the user to upl

[PHP] Re: Preg replace & Query Problem

2002-07-29 Thread Richard Lynch
> $style_1 = preg_replace('/\[url\]/', "index.php?catID=$category_id", >$style_1); > $style_1 = preg_replace('/\[title\]/', "$category_name", $style_1); Why use preg at all? http://php.net/str_replace will do it faster/easier... -- Like Music? http://l-i-e.com/artists.htm I'm looking for a

[PHP] Re: How would I do this?

2002-07-29 Thread Richard Lynch
>Blink 182 >- > >Whats my age again?GuitarBassDrumLyricsBuy >at Amazon. >DammitGuitarBassDrumLyrics >Buy at Amazon. >MnMs GuitarBassDrumLyrics >Buy at Amazon. > >

[PHP] Re: major problem using mv command to a directory

2002-07-29 Thread Richard Lynch
>hi guys i have a big problem i need to fix , i was moving a tar ball to >another dir , using >mv ImageMagick-i686-pc-linux-gnu.tar.gz /home/usr, i now cannot move into >the usr directory, it has somehow appended the tar ball into the driectory >strucuture and cant undo this ? please help Like, y

[PHP] Re: Brain Fart- table formatting help

2002-07-29 Thread Richard Lynch
>The one constant is that if ($row->show_title) is true the table row will >have a background color then I need to make the rows after that alternate >until if ($row->show_title) is true again. > >Roughly I have the whole thing laid out like this right now: > >echo "\n"; $colors[0] = 'FF'; $c

[PHP] Re: ENCRYPT() in MySQL

2002-07-29 Thread Richard Lynch
>Sorry to be slightly OT, but I've prolly answered 1000 OT posts in the last >year, and this IS related for all those without mycrypt, so... > >I'm on a shared server which does not have mcrypt... not good, since i want >to temporarily store credit card numbers in an encrypted manner, either in a

Re: [PHP] Encrypting Passwords - Is it really necessary??

2002-07-29 Thread Danny Shepherd
Ok, here's how I do it: 1. User clicks the lost password page: 2. Email is sent to user's registered email address. Email contains a url to the newpassword page and has a validation code. This validation code is also stored in the userinfo table (it's the MD5 of current date + time + random chars

Re: [PHP] Encrypting Passwords - Is it really necessary??

2002-07-29 Thread Chris Wesley
On Mon, 29 Jul 2002, Monty wrote: > Is it really necessary to store passwords encrypted in a mySQL DB for a > membership site if you're not storing sensitive info such as credit card > numbers? How much security does that offer, really, and for whom? I'm going to go with "YES" on this one. The

[PHP] Re: OT - javascript question..

2002-07-29 Thread Jome
>Is there any way, when the upload window is closed, to force a reload of the other page, so the dynamic pop-up reflects >the recent upload? This link may help some: http://www.hwg.org/resources/faqs/jsFAQ.html#popup-talk Please don't poste OT-questions though, there is better mailing lists if y

[PHP] Re: Auto Increment Problems....

2002-07-29 Thread Jome
> my primary key column ("id") is set to auto_increment as usual which is very > handy. But when I delete a row, the auto_increment just keeps incrementing > and there's this 'hole' left where I deleted the row! This is the way it should be, and it's like that for a reason - if you have other tab

[PHP] Re: Encrypting Passwords - Is it really necessary??

2002-07-29 Thread Jome
> Is it really necessary to store passwords encrypted in a mySQL DB for a > membership site if you're not storing sensitive info such as credit card > numbers? How much security does that offer, really, and for whom? The most important reason in my humble opinion is that users may use the same pa

[PHP] Re: Public Scripts in a commercial product

2002-07-29 Thread Jome
> If someone is going to be using scripts that they grabbed > from a public forum (PHP Builder, PHPClasses, etc) in a > commercial product (that is going to be compiled with the > Zend encoder and released), what is the protocol, if any? > Do you have to get permission from the author or anything?

[PHP] Encrypting Passwords - Is it really necessary??

2002-07-29 Thread Monty
Is it really necessary to store passwords encrypted in a mySQL DB for a membership site if you're not storing sensitive info such as credit card numbers? How much security does that offer, really, and for whom? The reason I ask is because I'm trying to implement a "forgot password" feature on a m

[PHP] Most compatible way to set cookies?

2002-07-29 Thread Leif K-Brooks
I am trying to use cookies for logins (I would use sessions, but the free host this site is on doesn't support them). With all of the bugs in various browsers influencing cookies, what does everyone think is the most compatible way to set cookies? -- PHP General Mailing List (http://www.php

[PHP] Passing PHP variables into javascript

2002-07-29 Thread Bill Hudspeth
I am having a problem passing a variable from PHP to Javascript and getting my JS function to recognize a form element object. I am trying to use the selection of a particular option in a dropdown menu to control the visibility of another form control element (another select box). In other words,

RE: [PHP] Update of the problem w/ code - conditional image generation problem?!

2002-07-29 Thread Joseph Rosenblum
Do you know you have a typo in that conditional there? Was that your real code? You misspelled 'else' as 'esle'. -Joseph Rosenblum President, 25th Street Networks Get Easy, Reliable PHP Web Hosting at: http://www.25thstreet.net -Original Message- From: Alex Maslov [mailto:[EMAIL PROTECTE

[PHP] Update of the problem w/ code - conditional image generation problem?!

2002-07-29 Thread Alex Maslov
Thank everyone for suggestions. I followed through on them but unsuccessfully. I looked for any mistake but couldn't find it. I tried commenting out lines in chunks and one by one, without any effect. the problem stays the same, if the conditional statement is present then image is not generated

Re: [PHP] Help Please

2002-07-29 Thread 1LT John W. Holmes
Show us the first 6 lines of processing.php. ---John Holmes... - Original Message - From: "Varsha Agarwal" <[EMAIL PROTECTED]> To: "Dennis Moore" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Monday, July 29, 2002 4:27 PM Subject: Re: [PHP] Help Please > Hi, > I did not find any prin

Re: [PHP] Help Please

2002-07-29 Thread Martin Clifford
Copy and paste the code (minus and indisclosurables) and we can take a look at it :o) Martin Clifford Homepage: http://www.completesource.net Developer's Forums: http://www.completesource.net/forums/ >>> Varsha Agarwal <[EMAIL PROTECTED]> 07/29/02 04:27PM >>> Hi, I did not find any print or ech

RE: [PHP] Help Please

2002-07-29 Thread Matt Schroebel
> -Original Message- > From: Varsha Agarwal [mailto:[EMAIL PROTECTED]] > Sent: Monday, July 29, 2002 4:27 PM > To: Dennis Moore; [EMAIL PROTECTED] > Subject: Re: [PHP] Help Please > > > Hi, > I did not find any print or echo stetement in the > sample example before hearder or setcookie

[PHP] Public Scripts in a commercial product

2002-07-29 Thread Chris Boget
If someone is going to be using scripts that they grabbed from a public forum (PHP Builder, PHPClasses, etc) in a commercial product (that is going to be compiled with the Zend encoder and released), what is the protocol, if any? Do you have to get permission from the author or anything? I've re

Re: [PHP] Help Please

2002-07-29 Thread Varsha Agarwal
Hi, I did not find any print or echo stetement in the sample example before hearder or setcookie function. Is there any way to find out what really is causing error or trace the program. Actually i am very new to this cookies and all stuff. Is there any way of tracing the program? I am using it on

[PHP] PHP5?

2002-07-29 Thread Chris Boget
In the following article: http://www.computerwoche.de/index.cfm?pageid=254&artid=38819&category=84 Zeev says that PHP5 is expected as early as 1stQ next year. Is there anything anywhere that discusses the new version and any new possible features? Chris -- PHP General Mailing List (http://

Re: [PHP] Help Please

2002-07-29 Thread Martin Clifford
That's not entirely correct, though. If you are using output bufferng, then you can. Also, for example, say this is your file, with the makeshift line representing the top of the text editor: —Start —-End That will produce the same error as b

Re: [PHP] OT - javascript question..

2002-07-29 Thread Martin Clifford
\n\n"; ?> Something similar will work fine. Martin Clifford Homepage: http://www.completesource.net Developer's Forums: http://www.completesource.net/forums/ >>> Kelly Meeks <[EMAIL PROTECTED]> 07/29/02 04:00PM >>> Sorry for the off topic post, but this is by far the most experienced list I'v

Re: [PHP] Help Please

2002-07-29 Thread Martin Clifford
You can't send headers after the page has left the server. If you try to write to the HTML file in ANY way, even a hard return in your code, then you are telling the server that the headers have been completed and should be sent to the client (browser). Martin Clifford Homepage: http://www.com

Re: [PHP] Help Please

2002-07-29 Thread 1LT John W. Holmes
> Hi, > I am trying to run a sample program. It connects to a > postgres database verifies user name and password and > if correct, displays the login screen. > But in that program wherever there there are > setcookies() or header() functions, I get following > error > > Warning: Cannot add header

[PHP] Re: ORDER BY from 2 tables

2002-07-29 Thread Philip Hallstrom
See if your database supports the UNION clause... On Mon, 29 Jul 2002, Georgie Casey wrote: > i assume this is a simple question... > > how can I SELECT * FROM 2 different tables in the same query, ORDER BYing > the 'hits' column, which both tables have. > > eg, 2 tables i have are similiar and

[PHP] PHP Consulting Quote Format (fro mprevious discussion)

2002-07-29 Thread Matt Babineau
I seem to remember a previous thread about quotes and how much other people are charging etc for PHP development. Someone posted a link to a quote they had recently done, I am looking for a standard format that I can use to send out my quotes with. Does anyone have anything like this or remember t

Re: [PHP] Help Please

2002-07-29 Thread Dennis Moore
you cannot print or echo anything back to the browser before running the header() function... - Original Message - From: "Varsha Agarwal" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, July 29, 2002 4:00 PM Subject: [PHP] Help Please > Hi, > I am trying to run a sample pro

RE: [PHP] Auto Increment Problems....

2002-07-29 Thread cteubner
-Original Message- >From: Georgie Casey [mailto:[EMAIL PROTECTED]] >Apart from this looking ugly, it poses another problem. In my PHP script >where I can add new rows, I query the table, checking how many rows in the >table altogether and set the new id as the next number, but this doesnt

[PHP] Help Please

2002-07-29 Thread Varsha Agarwal
Hi, I am trying to run a sample program. It connects to a postgres database verifies user name and password and if correct, displays the login screen. But in that program wherever there there are setcookies() or header() functions, I get following error Warning: Cannot add header information - he

[PHP] Help Please

2002-07-29 Thread Varsha Agarwal
Hi, I am trying to run a sample program. It connects to a postgres database verifies user name and password and if correct, displays the login screen. But in that program wherever there there are setcookies() or header() functions, I get following error Warning: Cannot add header information - he

[PHP] OT - javascript question..

2002-07-29 Thread Kelly Meeks
Sorry for the off topic post, but this is by far the most experienced list I've found. I've got a php page that show all the .gif and .jpeg files in an directory via a form based drop down menu. On the same page, I've also got a link that opens a new window, and allows the user to upload an im

[PHP] ORDER BY from 2 tables

2002-07-29 Thread Georgie Casey
i assume this is a simple question... how can I SELECT * FROM 2 different tables in the same query, ORDER BYing the 'hits' column, which both tables have. eg, 2 tables i have are similiar and i want to merge them and then select everything ordering by hits -- PHP General Mailing List (http:/

Fw: [PHP] MYSQL natsort() ?

2002-07-29 Thread Kevin Stone
I know that MySQL will do a natural sort on INT fields becuase I often use an integer for my index. But I don't know about a FLOAT field. Seems like it should doesn't it? Sorry I don't have a direct answer for you. You might want to check www.mysql.com if you haven't already. -Kevin - Or

[PHP] Auto Increment Problems....

2002-07-29 Thread Georgie Casey
rite, my primary key column ("id") is set to auto_increment as usual which is very handy. But when I delete a row, the auto_increment just keeps incrementing and there's this 'hole' left where I deleted the row! Apart from this looking ugly, it poses another problem. In my PHP script where I can

[PHP] MYSQL natsort() ?

2002-07-29 Thread Joel Colombo
This is a mysql question, cause i can do it with a natsort in php. question is can u do it directly in the MYSQL SELECT ? I am wondering if the SELECT statement can have a natural order by. Table has 5 rows. field name "number" values : 10 2 15 30 150 a regular order by "numb

Re: [PHP] comparing a variable to value in DB

2002-07-29 Thread Kevin Stone
No trust me you're on the right track. You don't need the double == operator in the SQL query. Try something like this... $query = "SELECT * FROM membersWHERE username = '$username'"; $result = mysql_query($query, $db); if (mysql_num_rows($result) == 0) { echo "The username $username does n

[PHP] comparing a variable to value in DB

2002-07-29 Thread Tyler Durdin
I have a column in my DB named username and i am trying to compare a session ID called $username to the field in my DB called username. The way i had done it before was SELECT * from tablename WHERE Tablename.username == $username, but this does not seem to be working is there a better way to d

[PHP] Re: Sendmail "return-path" from my virtual webhost

2002-07-29 Thread Joel Boonstra
> Emails sent from my php scripts, using sendmail, all have a goofy > "return-path" variable in the header. > > Is there a way I can correct this, or does it require a change to the > sendmail config file that I can't get to? You should be able to use the fifth parameter ("additional parameters")

[PHP] Preg replace & Query Problem

2002-07-29 Thread Alex Beauclair
Hi, I'm having trouble with preg_replace and a mysql query. Here's my code : $query = $db->query("SELECT style FROM ".$table_styles." WHERE id = '1'"); $r = $db->fetch_array($query); $style_1 = $r[style]; $query = $db->query("SELECT id, name, description FROM ".$table_categories.""); while($r =

Re: [PHP] php.exe from command line

2002-07-29 Thread Evan
I didn't thought about this, but it's logic (as always). However I solved my problem: I've developed a really simple program with C++Builder6 (only ~15 lines of code :-P) that every X seconds calls the php file (agent.php). And finally it works! Thanks for your help, Evan <[EMAIL PROTECTED]

[PHP] Re: need help with uploading images

2002-07-29 Thread Deadsam
maybe it would be easier to show you the part of code I'm using, echo $HTTP_POST_FILES['uploadFile']['size'] . "::". $HTTP_POST_FILES['uploadFile']['name']['type'] . "::"; echo $HTTP_POST_FILES['uploadFile']['name'] . "::". $HTTP_POST_FILES['uploadFile']['tmp_name']; */ ?> http://www.php.net/) T

[PHP] How would I do this?

2002-07-29 Thread Tony Harrison
Hi. I have a problem with my tab/lyric site, I need to create an artist page, where users can view all lyrics/tabs by a certain artist. Now because im likely to get guitar/drum/bass tabs / lyrics for the same song, I want to have a table with links as follows (e.g): Blink 182 - Whats my

Re: [PHP] php.exe from command line

2002-07-29 Thread cteubner
Simple. Parameters of the type you described, with the ?, = and &, etc. are specific to URLs and are handled by CGI, common gateway interface, i.e. the web server. See the PHP documentation on $argc[] and $argv[] if you want to pass parameters on the command line. http://us2.php.net/manual

Re: [PHP] php.exe from command line

2002-07-29 Thread Andrey Hristov
Inspect $argc & $argv arrays (var_dump() them). Andrey - Original Message - From: "Evan" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, July 29, 2002 8:06 PM Subject: [PHP] php.exe from command line > I've made a simple php file that creates a file named 'agent_1.txt' where

[PHP] php.exe from command line

2002-07-29 Thread Evan
I've made a simple php file that creates a file named 'agent_1.txt' where the number is taken from $_GET["num"]. I've tried to run it in this way: http://localhost/agent.php?num=1 And it works perfectly I thought that from from command line it would work so i tried this (WinXP + PHP 4.1.2): c:\

[PHP] Sendmail "return-path" from my virtual webhost

2002-07-29 Thread Al
Emails sent from my php scripts, using sendmail, all have a goofy "return-path" variable in the header. Is there a way I can correct this, or does it require a change to the sendmail config file that I can't get to? Thanks... -- PHP General Mailing List (http://www.php.net/) To unsu

RE: [PHP] Disturbing parsing problems

2002-07-29 Thread cteubner
Sorry to double-post but this brought up something I didn't realize wasn't clear in my original post. When I say: if () ; I am using the one-line if/elseif/else syntax, which works like this: if($foo) echo $bar; elseif($x) echo $y; else echo $z; This is a self-contained if statement, as in C,

Re: [PHP] Disturbing parsing problems

2002-07-29 Thread Steve Edberg
At 12:19 PM -0400 7/29/02, <[EMAIL PROTECTED]> wrote: > I added a few number_format() statements to previously working code (not >having changed any {}s ) and it started getting parse errors, 'unexpected >t_if, expected t_while'. In other words, it thinks the do statement shown >below has been

  1   2   3   >