Re: [PHP] Seating chart registration system?

2003-06-21 Thread Don Read
On 21-Jun-2003 Jay Fitzgerald wrote: I am writing a php event registration system for lanparties and I believe I have everything written that I need except for a seating selection chart. snip As a person goes through the event registration system, they will come to a page that displays

[PHP] Header, Directory, and SESSIONs

2003-06-21 Thread nabil
Hi all, wish u all a good weekend.. Guys I have a question as the following: 1- In my wwwroot I have two folders : folder1 and folder2 (actually I have 14 folders) 2- In the same two folders there are same PHP files do the same job, as db jobs with different databases.. 3- I log in the users by

[PHP] Header, Directory, and SESSIONs

2003-06-21 Thread nabil
Hi all, wish u all a good weekend.. Guys I have a question as the following: 1- In my wwwroot I have two folders : folder1 and folder2 (actually I have 14 folders) 2- In the same two folders there are same PHP files do the same job, as db jobs with different databases.. 3- I log in the users by

[PHP] MAIL( ) - Send mail using another SMTP

2003-06-21 Thread Chinmoy Barua
Hello Everybody, I don't have sendmail/qmail on my web server where i installed PHP. But I want to send mails from web server using PHP. Can anybody tell me, how can i use another SMTP server to send mails? I don't like to change php.ini on my web server. Thank You, - Chinmoy

[PHP] Fw: Help

2003-06-21 Thread Tirnovanu Aurel
Can anyone tell why this script: $query = INSERT INTO mos_articles (catid, title, content, date, author, approved, published) VALUES ('5','$title','$content','$data','$author','1','1'); $result = mysql_query($query); add in title field array and not the input. -- PHP General Mailing

RE: [PHP] Fw: Help

2003-06-21 Thread Naintara Jain
You possibly have a select list box named 'title[]' remove the brackets [] and rename the list box 'title'. That should work. -Naintara -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Tirnovanu Aurel Sent: Saturday, June 21, 2003 12:28 PM To: [EMAIL

[PHP] saving TEXTAREA data into mysql database

2003-06-21 Thread Artoo
Hey, How do you save the data from a TEXTAREA of a form into a mysql database so that when you retrieve the data later you get the same format that the user entered EXAMPLE user enters the following and cliks save Line 1 testing Line 2 TEST Line 4 test line 5 test test testing result when

Re: [PHP] securing a graphic

2003-06-21 Thread Justin French
I'm with Steve on this. Call them (the numerous hacks mentioned in this thread) deterrents if you like, but there is NO WAY to secure images. You can brand them with a big watermark, and make sure your copyright and terms of use notice are prominent on the page, but the nature of the web is that

[PHP] making image smaller with same aspect ratio

2003-06-21 Thread Artoo
Hey all, How do you reduse an image while keeping the same aspect ratio so not to distort the image Thanks -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: GD library update

2003-06-21 Thread Yury B .
Thank you the problem is solved, I just downloaded php_gd2.dll from gd site and inabled it in php.ini Now everything is working as it should. Yury On 19 Jun 2003 at 17:24, Andrei BEJENARU wrote: Yury B . [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hi, I need to use

Re: [PHP] securing a graphic

2003-06-21 Thread Lars Torben Wilson
On Sat, 2003-06-21 at 00:51, Justin French wrote: I'm with Steve on this. Call them (the numerous hacks mentioned in this thread) deterrents if you like, but there is NO WAY to secure images. You can brand them with a big watermark, and make sure your copyright and terms of use notice are

php-general Digest 21 Jun 2003 10:29:11 -0000 Issue 2130

2003-06-21 Thread php-general-digest-help
php-general Digest 21 Jun 2003 10:29:11 - Issue 2130 Topics (messages 152352 through 152375): Chomp, Chomp, Chomp 152352 by: Sparky Kopetzky 152353 by: Sparky Kopetzky 152354 by: Lars Torben Wilson 152356 by: Lars Torben Wilson 152357 by: Aaron

[PHP] Re: making image smaller with same aspect ratio

2003-06-21 Thread azero
Hey all, How do you reduse an image while keeping the same aspect ratio so not to distort the image Thanks Original image: x - 800 y - 600 New size: x1 -100 y1 - ? y1 = 600*100/800 = 75 formula is: y1 = y*x1/x the same if you want to find x1 when know y1. -- PHP General Mailing List

[PHP] search-and-highlight issue (byt tes)

2003-06-21 Thread 457945
hello! i have a problem with a search-and-highlight script (see code below): a search for byt tes matches entries that contain bytes but only highlights byt*. *) because after the first search term (byt) is found the line is modified into span class=highlightbyt/spanes and therefore the secound

[PHP] Re: saving TEXTAREA data into mysql database

2003-06-21 Thread Catalin Trifu
Hi, See the manual nl2br() function. http://www.php.net/manual/en/function.nl2br.php Cheers, Catalin Artoo [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hey, How do you save the data from a TEXTAREA of a form into a mysql database so that when you retrieve the data

Re: [PHP] search-and-highlight issue (byt tes)

2003-06-21 Thread Milan Reznicek
And what about highlighting the whole word which contains the searched term. - Original Message - From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Saturday, June 21, 2003 12:31 PM Subject: [PHP] search-and-highlight issue (byt tes) hello! i have a problem with a

[PHP] Returning TWO variables from function

2003-06-21 Thread Roy W
Can someone let me know how to return TWO variables from a function I tried: return $var1, $var2; But I get parse errors and other errors. Thanks!

[PHP] Re: MAIL( ) - Send mail using another SMTP

2003-06-21 Thread Verdon Vaillancourt
I think you can do this with an .htaccess file instead of the php.ini file :) On 6/21/03 6:29 AM, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: From: Chinmoy Barua [EMAIL PROTECTED] Date: Fri, 20 Jun 2003 23:46:06 -0700 (PDT) To: [EMAIL PROTECTED] Subject: MAIL( ) - Send mail using another

Re: [PHP] Re: MAIL( ) - Send mail using another SMTP

2003-06-21 Thread Verdon Vaillancourt
Something like this... Add the following into a .htaccess file for your domain(s) php_value SMTP smtp.yourhost.com On 6/21/03 7:51 AM, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: how do you do this please explain

[PHP] Re: saving TEXTAREA data into mysql database

2003-06-21 Thread Artoo
Thanks, Is it better to use that function before the INSERT query and save it to the database like that or use that nl2br() function while displaying the results of the SELECT query, Thanks agian. Artoo Catalin Trifu [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hi,

[PHP] Problem receiving notification emails to mails sent with php

2003-06-21 Thread czamora
Hi there, I'm sending emails to the subscribers of my site using mail() with a fourth parameter to specify the From: and Reply-To: headers. They seem to be sent correctly and the users may reply to them and I get the replies in the mailbox identified by these headers. The problem is some email

Re: [PHP] Problem receiving notification emails to mails sentwith php

2003-06-21 Thread Lowell Allen
From: czamora [EMAIL PROTECTED] I'm sending emails to the subscribers of my site using mail() with a fourth parameter to specify the From: and Reply-To: headers. They seem to be sent correctly and the users may reply to them and I get the replies in the mailbox identified by these headers.

[PHP] Re: MAIL( ) - Send mail using another SMTP

2003-06-21 Thread Joseph Szobody
Here is a class that you could use. http://phpmailer.sourceforge.net/ Joseph Chinmoy Barua [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hello Everybody, I don't have sendmail/qmail on my web server where i installed PHP. But I want to send mails from web server using PHP.

[PHP] Coercing a date calc - problem - or am I just dumb tryin g it this way

2003-06-21 Thread George Pitcher
Hi all, I've just written this function: $term='Michaelmas'; function f_week($w,$t) { $P=7*($w-1); if( $t == 'Michaelmas'){ $D = 06; $M = 10; $Y = 2003; } else { $D = 12; $M = 01;

[PHP] Passing Variables

2003-06-21 Thread Jay Fitzgerald
I have been searching for an answer to this for a couple of hours now and cant find anything. I believe that there is a secure way of doing this but I think my brain is having a momentary lapse... I have these variables: $eventid = 1; $age = 15; Is there a way to pass these variables to the

[PHP] Re: Passing Variables

2003-06-21 Thread Thomas Seifert
If you don't want them seen anywhere, then you've got to use sessions. Thomas On Sat, 21 Jun 2003 08:53:12 -0500 [EMAIL PROTECTED] (Jay Fitzgerald) wrote: I have been searching for an answer to this for a couple of hours now and cant find anything. I believe that there is a secure way of

[PHP] Re: Passing Variables

2003-06-21 Thread nabil
use hidden field (pure html) and then u have it as $yourhiddenfield on the next page even u have the register global off.. Nabil Jay Fitzgerald [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] I have been searching for an answer to this for a couple of hours now and cant find

RE: [PHP] Re: Passing Variables

2003-06-21 Thread George Pitcher
Nabil, That is one way but it means that Jay would have to use a form and not a link. You could set a cookie. That would work, but it relies on the user allowing cookies. George -Original Message- From: nabil [mailto:[EMAIL PROTECTED] Sent: 21 June 2003 2:58 pm To: [EMAIL

RE: [PHP] Coercing a date calc - problem - or am I just dumb tryin g it this way SOLVED

2003-06-21 Thread George Pitcher
Yeah - just dumb!. I'd put my date vars into mktime in the european order. Once I switched them it worked fine. Chers George -Original Message- From: George Pitcher [mailto:[EMAIL PROTECTED] Sent: 21 June 2003 2:50 pm To: [EMAIL PROTECTED] Subject: [PHP] Coercing a date calc -

RE: [PHP] Re: Passing Variables

2003-06-21 Thread Jay Fitzgerald
That was my thought too, George. But if the user does not have cookies enabled, then I believe, as Thomas pointed out, that a SESSION is the only way to handle the variables. I have never done a correct session so I am trying to learn how to do them without having a userid and password for

[PHP] correct session format?

2003-06-21 Thread Jay Fitzgerald
is this the correct way to register variables via a session? [code] session_start (); $_SESSION['eventid'] = 'arma2'; print_r ($_SESSION); echo P $_SESSION; [/code] [result] Array ( [eventid] = arma2 ) Array [/result] I apologize for the numerous questions, but I am trying to learn...If anyone

RE: [PHP] Re: Passing Variables

2003-06-21 Thread George Pitcher
Jay, I've never ventured into 'sessions' (not ones without drinks) but I've a feeling that if the user has turned cookies off then sessions are out as well as they require a cookie being stored on the user's machine. Someone will surely correct me if I am wrong. I went to the PHP conference in

[PHP] Re: Returning TWO variables from function

2003-06-21 Thread Hugh Bothwell
Roy W [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Can someone let me know how to return TWO variables from a function I tried: return $var1, $var2; But I get parse errors and other errors. function ReturnMultiValues($a, $b, $c, $d) { return array($a, $b, $c, $d); }

[PHP] Re: correct session format?

2003-06-21 Thread Thomas Seifert
yeah its the right way. though I don't know what you'r trying to do with echo P $_SESSION; Thomas On Sat, 21 Jun 2003 09:22:39 -0500 [EMAIL PROTECTED] (Jay Fitzgerald) wrote: is this the correct way to register variables via a session? [code] session_start (); $_SESSION['eventid'] =

[PHP] PHP Code inside Zend_API

2003-06-21 Thread Suhas Pharkute
I have a custom extension for windows (dll which can be used in PHP). I want to run some php code inside this dll module. I searched for Zend_API Docs, but I could not find any way to run php code inside this API. Any Ideas how to do this, Please help! Thanks Suhas -- PHP General Mailing

Re: [PHP] Re: Passing Variables

2003-06-21 Thread Thomas Seifert
you can transfer the session-id (which is unique) through the url too. but then its only the session-id and not the actual data and the session-id can't be guessed that simple to reach another user's data. Thomas On Sat, 21 Jun 2003 15:31:56 +0100 [EMAIL PROTECTED] (George Pitcher) wrote:

[PHP] Text files vs other types

2003-06-21 Thread Sparky Kopetzky
If there an ability like Perl to determine if a file is a text file (-T) or any other type?? Robin E. Kopetzky Black Mesa Computers/Internet Services www.blackmesa-isp.net

[PHP] AOL

2003-06-21 Thread rml
I have recently created a site that has some PHP in it. It works fine in all browsers except AOL. I can see some of the PHP page in AOL except the one that fetches information from MySQL database. I also host my own server for this site. Maybe this is a server setting or securtity issue.

[PHP] reference a function in a class from array_walk()

2003-06-21 Thread Thomas Hochstetter
Hi guys. I want to call this generic echo function within a class, but have trouble referencing the output function with $this- . Any suggestions? Maybe there is a better solution to this? This is within a class: [snip] # generic WALK functions function walkit($array) {

Re: [PHP] AOL

2003-06-21 Thread Michael Geier
How many times do people have to respond to your same email before you get a clue? http://marc.theaimsgroup.com/?l=php-generalm=105621501902618w=2 http://marc.theaimsgroup.com/?l=php-generalm=105593686426998w=2 http://marc.theaimsgroup.com/?l=php-generalm=105556674131637w=2 PHP is server side.

Re: [PHP] Passing Variables

2003-06-21 Thread John W. Holmes
Jay Fitzgerald wrote: I have been searching for an answer to this for a couple of hours now and cant find anything. I believe that there is a secure way of doing this but I think my brain is having a momentary lapse... I have these variables: $eventid = 1; $age = 15; Is there a way to pass

Re: [PHP] Re: saving TEXTAREA data into mysql database

2003-06-21 Thread John W. Holmes
Artoo wrote: Is it better to use that function before the INSERT query and save it to the database like that or use that nl2br() function while displaying the results of the SELECT query, Use it while displaying. You generally want to save the data in the database exactly as it was entered. This

Re: [PHP] Re: saving TEXTAREA data into mysql database

2003-06-21 Thread Jeff Harris
On Jun 21, 2003, John W. Holmes claimed that: |Artoo wrote: | Is it better to use that function before the INSERT query and save it to the | database like that or use that nl2br() function while displaying the results | of the SELECT query, | |Use it while displaying. You generally want to save

Re: [PHP] reference a function in a class from array_walk()

2003-06-21 Thread David Otton
On Sat, 21 Jun 2003 19:24:26 +0200, you wrote: I want to call this generic echo function within a class, but have trouble referencing the output function with $this- . Any suggestions? Maybe there is a better solution to this? This is within a class: [snip] # generic WALK functions

RE: [PHP] Re: Passing Variables

2003-06-21 Thread Jeff Harris
On Jun 21, 2003, George Pitcher claimed that: |Jay, | |I've never ventured into 'sessions' (not ones without drinks) but I've a |feeling that if the user has turned cookies off then sessions are out as |well as they require a cookie being stored on the user's machine. | |Someone will surely

[PHP] Re: Header, Directory, and SESSIONs

2003-06-21 Thread Andrew Warner
At 9:43 AM +0300 6/21/03, nabil wrote: 4- I want if any user jumped to the other directory and logged in with the correct requested password TO HAVE THE FIRST SESSION UNREGISTERED automatically, so he can't be logged in in both at same time.. and keep only the new.. and ofcourse have to re logging

[PHP] Is there a way to get rid of \' and \ ?

2003-06-21 Thread Dan Anderson
I have a form which feeds into an e-mail. When I use the mail function all 's turn into \'s and all s turn into \s. I tried set_magic_quotes_runtime(0) and it didn't do anything, neither did urldecode(). Is there a function to strip escape charechters? Thanks, Dan -- PHP General Mailing

Re: [PHP] Is there a way to get rid of \' and \ ?

2003-06-21 Thread Brad Pauly
On Sat, 2003-06-21 at 16:00, Dan Anderson wrote: I have a form which feeds into an e-mail. When I use the mail function all 's turn into \'s and all s turn into \s. I tried set_magic_quotes_runtime(0) and it didn't do anything, neither did urldecode(). Is there a function to strip escape

Re: [PHP] reference a function in a class from array_walk()

2003-06-21 Thread Leif K-Brooks
Thomas Hochstetter wrote: Hi guys. I want to call this generic echo function within a class, but have trouble referencing the output function with $this- . Any suggestions? Maybe there is a better solution to this? This is within a class: [snip] # generic WALK functions function

php-general Digest 21 Jun 2003 22:55:26 -0000 Issue 2131

2003-06-21 Thread php-general-digest-help
php-general Digest 21 Jun 2003 22:55:26 - Issue 2131 Topics (messages 152376 through 152412): Re: making image smaller with same aspect ratio 152376 by: azero search-and-highlight issue (byt tes) 152377 by: 457945.gmx.ch 152379 by: Milan Reznicek Re: saving

[PHP] Now what's wrong with this?

2003-06-21 Thread Kyle Babich
The following code obtains lists of files from two different directories and reverse numerically sorts them. Then bellow it takes one file and dumps the contents into an array, which works fine. The problem is where it takes the entire content of the matching file from the second directory

Re: [PHP] Now what's wrong with this?

2003-06-21 Thread Brad Pauly
On Sat, 2003-06-21 at 16:59, Kyle Babich wrote: $entry = fread($entryGet, filesize(postEntries/{$entriesIndex}); //67, line /w parse error Missing a ')' Brad -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] PHP on Microsoft Windows 2003 Server

2003-06-21 Thread Ben Johnston
How do i get PHP to work on my Microsoft Windows Server 2003?

Re: [PHP] PHP on Microsoft Windows 2003 Server

2003-06-21 Thread John W. Holmes
Ben Johnston wrote: How do i get PHP to work on my Microsoft Windows Server 2003? Read the installation instructions: http://www.php.net/ -- ---John Holmes... Amazon Wishlist: www.amazon.com/o/registry/3BEXC84AB3A5E/ PHP|Architect: A magazine for PHP Professionals www.phparch.com -- PHP

Re: [PHP] search-and-highlight issue (byt tes)

2003-06-21 Thread 457945
And what about highlighting the whole word which contains the searched term. yes - like i said - this would be a solution: - or: displays entries that contain bytes and highlights bytes do you have any idea how to manage it? best wishes philipp www.ipdraw.org am 21.06.2003 12:57 Uhr

RE: [PHP] Convert KB to MB?

2003-06-21 Thread Sævar Öfjörð
Actually, if we want too go into details, according to the international standard for units, there is a big difference in 'M' and 'm'. 'M' means Mega and 'm' means milli. You are probably aware of that Mega is 10 in the power of 3 but milli is 10 in the power of -3. The difference is, like, a

[PHP] from a textfile/textarea to a mysql INSERT

2003-06-21 Thread Øystein Håland
From Excel you can save a table as a tab separated txt-file. I want to take this and execute INSERT queries (by uploading the file or by copying the content into a textarea). Anyone who has a script to do this? My platform is Windows, but the script will be used on a Linux web server. -- PHP

[PHP] Lel Bruce Peto updating more energy news...

2003-06-21 Thread info
Lel Bruce Peto updating more energy news... S Korean SK Global's domestic creditors agree to keep firm afloat Domestic creditors of South Korean conglomerate SK group's debt-ridden trading arm SK Global Tuesday voted in favor of keeping the company afloat by rescheduling its debt and converting

[PHP] Small problem with date and location information?

2003-06-21 Thread Philip J. Newman
I run a website from New Zealand. The problem is when ?php echo date(F j, Y, g:i a); ? it shows the time of the server, that just happens to be located in Dallas USA. Is there a way that I can change the time so it matchs New Zealand Time?

Re: [PHP] from a textfile/textarea to a mysql INSERT

2003-06-21 Thread John W. Holmes
ystein Hland wrote: From Excel you can save a table as a tab separated txt-file. I want to take this and execute INSERT queries (by uploading the file or by copying the content into a textarea). Anyone who has a script to do this? My platform is Windows, but the script will be used on a Linux web

Re: [PHP] correct session format?

2003-06-21 Thread Jay Fitzgerald
what about for version 4.3.1?? Jay At 01:41 PM 6/22/2003 +1000, you wrote: Yes, for PHP = 4.1 Justin on 22/06/03 12:22 AM, Jay Fitzgerald ([EMAIL PROTECTED]) wrote: is this the correct way to register variables via a session? [code] session_start (); $_SESSION['eventid'] = 'arma2';

[PHP] return all non-tag characters

2003-06-21 Thread Matt Palermo
I want to be able to retrieve and return all character that are not located in html tags. For example: font size=\3\ color=\#336699\1234567/font or marquee1234567/marquee I would just like it to be equal to 1234567, but I would need it to work with any tags and attributes. Is there a way to

Re: [PHP] return all non-tag characters

2003-06-21 Thread Mike Migurski
I want to be able to retrieve and return all character that are not located in html tags. For example: font size=\3\ color=\#336699\1234567/font or marquee1234567/marquee I would just like it to be equal to 1234567, but I would need it to work with any tags and attributes. A good starting

Re: [PHP] Small problem with date and location information?

2003-06-21 Thread Don Read
On 22-Jun-2003 Philip J. Newman wrote: I run a website from New Zealand. The problem is when ?php echo date(F j, Y, g:i a); ? it shows the time of the server, that just happens to be located in Dallas USA. Is there a way that I can change the time so it matchs New Zealand Time? ?php echo

Re: [PHP] Problem while retrieving data from cookie with unserialize

2003-06-21 Thread Tom Rogers
Hi, Friday, June 20, 2003, 7:42:48 AM, you wrote: SÖ Hi, I’m having this problem: SÖ I set a cookie using this: SÖ $sql = UPDATE member SET cookie=$cookie WHERE SÖ . SÖ id = $this-id; SÖ $this-mysql-query($sql); SÖ