[PHP] Require SAMPLE Script for Macromedia Generator2 Flash using PHP ?

2001-05-10 Thread Manisha
Hi, This is a question regarding Macromedia Generator 2 using PHP 4. I have created a PNG and using a URL method to call .php file. In documentation they are saying ' You can call any file but content that returns must be in a text file and in proper format' What do you mean by that ? Is

[PHP] Compiling PHP 4.0.5 on Tru64

2001-05-10 Thread Daniel Solin
Hi all! I'm having problems compiling PHP 4.0.5 on Tru64, and was hoping that someone could help me. Here's the info: OS: OSF1 bob V5.0 1094 alpha COMPILER: gcc version 2.9-gnupro-99r1 COMPILER: Compaq C V6.1-020 on Compaq Tru64 UNIX V5.0A (Rev.1094) MAKE: GNU

[PHP] SESSIONS: Why does PHP not erase session files in /TMP

2001-05-10 Thread Davor Pleskina
I have /TMP configured as tmp dir for session files. However, each time I try my program there is a new file; not one is being removed, either. How to tell PHP to remove session files when they are not needed any more? TIA, Davor -- PHP General Mailing List (http://www.php.net/) To

[PHP] SESSIONS: What does this error mean

2001-05-10 Thread Davor Pleskina
Fatal error: The script tried to execute a method or access a property of an incomplete object. Please ensure that the class definition cl_korisnik_data of the object you are trying to operate on was loaded _before_ the session was started in user_info.php on line 72 I declared class like

[PHP] Newbie... Executing UNIX commands...

2001-05-10 Thread macky
im using PHP + APACHE on Linux Box i wonder what command in PHP can i use to execute Unix commands i got to read also exec(), system(), passthru(),popen(), and excapeshellcmd() but what if i want to use the command ls and store ALL output in a variable i thought system() is

RE: [PHP] SESSIONS: What does this error mean

2001-05-10 Thread Taylor, Stewart
This error occurrs when you start a session that recreates an object variable but does not know the class definition for it. You need to make sure you include the class source before you start the session. -Stewart -Original Message- From: Davor Pleskina [mailto:[EMAIL PROTECTED]] Sent:

Re: [PHP] Newbie... Executing UNIX commands...

2001-05-10 Thread Jack Dempsey
for your specific example, check out http://www.php.net/manual/en/function.readdir.php lots of simple functions like that have already been written for you...the joy of php ;-) -jack macky wrote: im using PHP + APACHE on Linux Box i wonder what command in PHP can i use to execute Unix

RE: [PHP] PC MAG article - what a crap!

2001-05-10 Thread Ralph Guzman
Why don't we write to zdnet and tell them what a lousy article this was? -Original Message- From: Maxim Maletsky [mailto:[EMAIL PROTECTED]] Sent: Wednesday, May 09, 2001 8:36 PM To: 'Tyrone Mills'; PHP List Subject: RE: [PHP] PC MAG article - what a crap!

[PHP] Can PHP top limited Windows Explorer? (Visual not filelistlike Image selectiosn for upload forms)

2001-05-10 Thread Helmut Ott
Are there any visual Image select solutions for upload forms topping the limited Windows Explorer? If you have an input type=file the explorer opens and gives you a list of files in the directory. Thats nice exept u need to select a specific image from a larger number of image files. Is

[PHP] --with-sablot where can i find lxmltok?

2001-05-10 Thread Gyozo Papp
Hello folks, I've found some mail in the archive (php-install), but much fewer replies that helps me. I'd like to install my PHP 4.0.4pl1 with sablotron support on debian (frozen). After ./configure --with-apxs --with-pgsql --with-sablot, I got the following error (in debug.log)

[PHP] PHP + GD + FreeBSD

2001-05-10 Thread Kasper Kristiansson
When i compile PHP on my FreeBSD with the following confgoptions, i don't get png support. Whats wrong? ./configure --with-jpeg-dir=/usr/local/src/jpeg --with-png-dir=/usr/local/sr c/libpng --with-gd=/usr/local/src/gd checking whether to include GD support... yes (static) checking for compress

Re: [PHP] multiple domain handling with php

2001-05-10 Thread Daniel BI
You might want to take a look to apache's documentation, like virtual hosts, and multiple ip. then check it with environment variables, as 'Adaran' told you. anyway, I did not try it yet... Daniel BI -- Scott Does anybody have any scripts or tips on hosting multiple domains on

[PHP] protect a pdf-document

2001-05-10 Thread Jochen Kaechelin
How can I protect a pdf-doc with passwords after creating it with pdflib? -- Jochen Kaechelin - Ihr WEBberater Stuttgarter Str.3, D-73033 Goeppingen Tel. 07161-92 95 94, Fax 07161-92 95 98 http://www.wa-p.de, mailto:[EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To

[PHP] bulletin board or forum

2001-05-10 Thread Kian On
Hi, Does anyone know a FREE forum or bulletin board that written in PHP? Please give the name or URL. I would like to download and try it out... Thanks! Yong -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL

[PHP] Netscape shows only one result of a MySQL-question

2001-05-10 Thread Lilly Weinberg
Hi, Our new MySQL-databasesystem (just one table) runs very well with PHP4 - when accessed with MS Internet Explorer. I just tested it with Navigator 4.7 and found that it always shows only ONE dataset! It tells correctly the number of found sets and will show others when I sort the results

Re: [PHP] SESSIONS: What does this error mean

2001-05-10 Thread Davor Pleskina
Thanks, Stewart, I will check for that! Taylor, Stewart [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... This error occurrs when you start a session that recreates an object variable but does not know the class definition for it. You need to make sure you

[PHP] Domino db

2001-05-10 Thread Are Haugsdal
Ho I am on my way to a project where data is stored/will be stored on a Domino database. The problem is that I am not familiar with this database, or what it can do. 1. Is it simple to connect to a database like that by using php (or perl), compared to a mysql connection ? 2. What is the

RE: [PHP] bulletin board or forum

2001-05-10 Thread Matt Williams
phorum.org M@ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]

RE: [PHP] Domino db

2001-05-10 Thread indrek siitan
Hi, 1. Is it simple to connect to a database like that by using php (or perl), compared to a mysql connection ? PHP, as far as I know, doesn't support Domino directly. but you should be able to connect to Domino via ODBC (ODBC support on Windows PHP binaries is built in, for Unix it might be

[PHP] Defining the Return-Path in an email header?

2001-05-10 Thread Kevin Price-Ward
Hi, I am setting up a php emailer facility using the 'mail' function, I have defined the 'Return-Path:' in the fourth argument of 'mail', but this keeps getting overwritten by sendmail: my code says: $headers .= Return-Path: [EMAIL PROTECTED]\n; but the source on the resulting email says:

Re: [PHP] bulletin board or forum

2001-05-10 Thread Sandeep Hundal
there's a simple and free one i'm releasing very soon from my homepage : http://www.wde.org/me/php/ its got a working example too. /sunny --- Kian On [EMAIL PROTECTED] wrote: Hi, Does anyone know a FREE forum or bulletin board that written in PHP? Please give the name or URL. I would

[PHP] i need some help with extracting data from mysql

2001-05-10 Thread Sandeep Hundal
hi all, i've got a simple problem, yet it doesn't work, so i hope someone can help me out here. i've got a table with id, group, and name. each group has many names ofcourse. now i need to output the data like : group1 name1 name2 name3 group2 name4 name5 group3 name6

RE: [PHP] PHP Mysql query data conversion newbie

2001-05-10 Thread Don Read
On 09-May-01 Jon Haworth wrote: snip be sure to check for the NULL : if (isset($amyrow[date])) { if ($amyrow[date] == -00-00 00:00:00) { echo no date; } else { echo $amyrow[date]; } } else {

Re: [PHP] bulletin board or forum

2001-05-10 Thread Phil Driscoll
www.phorum.org -- Phil Driscoll Dial Solutions +44 (0)113 294 5112 http://www.dialsolutions.com http://www.dtonline.org -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list

[PHP] Newbie redirect/variable question

2001-05-10 Thread Steve Wade
I'm trying to get a redirect working - never done one before. Here's the line from the referring page (index.php3): a href=redirect.php?fred=www.fusion.org.autest link/a Here's redirect.php: ?php echo $fred; if ($fred != ) { # $statement = UPDATE links SET hits=hits+1 WHERE href=\$u\; #

[PHP] redeclare array_push

2001-05-10 Thread Theo Richel
I have transferred to another host, changed the db name and the password but when I call my database I get the message 'Cannot redeclare array_push()in /home/(...) /brokenlink/functions.php3 on line 3' Can abyone please telle me what this means and what I can possibly do about it? Thanks Theo

[PHP] Php manual in XML

2001-05-10 Thread Ovidiu EFTIMIE
Hi, Anyone knows if there is a XML version of the PHP manual ? Ovidiu -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]

Re: [PHP] Newbie redirect/variable question

2001-05-10 Thread Rares
hey! what's that 'echo' doing there? if you want to use header (and you want to) it must be the firts thing you output from your script so.. first of all loose the 'echo' stuff - Original Message - From: Steve Wade [EMAIL PROTECTED] Here's redirect.php: ?php echo $fred; -- PHP

Re: [PHP] Newbie redirect/variable question

2001-05-10 Thread bill
On Thu, 10 May 2001, Steve Wade wrote: I'm trying to get a redirect working - never done one before. Here's the line from the referring page (index.php3): a href=redirect.php?fred=www.fusion.org.autest link/a Here's redirect.php: ?php echo $fred; I don't think you can output anything

RE: [PHP] Newbie redirect/variable question

2001-05-10 Thread Steve Wade
Ok - thanks - my new redirect.php is ?php if ($fred != ) { # $statement = UPDATE links SET hits=hits+1 WHERE href=\$u\; # mysql_query($statement); Header(Location: $fred); exit; } else { Header(Location: $HTTP_REFERRER); exit; } ? I get the following message...

RE: [PHP] Newbie... Executing UNIX commands...

2001-05-10 Thread Don Read
On 10-May-01 macky wrote: im using PHP + APACHE on Linux Box i wonder what command in PHP can i use to execute Unix commands $foo=`ls` thats a back-tick Regards, -- Don Read [EMAIL PROTECTED] -- It's always darkest before the dawn. So if you are

Re[2]: [PHP] PC MAG article

2001-05-10 Thread Adaran (Marc E. Brinkmann)
Hi all, Mark seeing as how zdnet is owned by microsoft, you can decide how much Mark credibility you can give their articles. Well, remember the article where they say, that the Microsoft web server solutions are a zillion times faster than Apache ? =) Well, is PHP the only scripting language

RE: [PHP] redeclare array_push

2001-05-10 Thread Jon Haworth
guess Maybe the new host has a different compile setup for PHP, one that includes a function named array_push(). Try renaming yours (push_array(), perhaps?) and seeing if it works then. /guess HTH Jon -Original Message- From: Theo Richel [mailto:[EMAIL PROTECTED]] Sent: 10 May 2001

Re: [PHP] Search a string between foo/foo

2001-05-10 Thread Luiz Vitor
Thanks to all you guys who helped me. I don't know if it's the best way, but the important is that works perfect. It does search a string between foo/foo in a MySQL database and, if it finds the string, will replace for the URL. I'm posting it below: function search4url($source) { $pattern =

Re: [PHP] PHP + GD + FreeBSD

2001-05-10 Thread Kees Hoekzema
Hmm, i had the same problem here, running FreeBSD and php-4.0.x + GD. Here is what i did, and it worked: make sure there is only 1 static gd-library on the system (search for libgd). second, install GD (make install after the compilation) make also sure that libpng is correctly installed and

RE: [PHP] PHP + GD + FreeBSD

2001-05-10 Thread Don Read
On 10-May-01 Kasper Kristiansson wrote: When i compile PHP on my FreeBSD with the following confgoptions, i don't get png support. Whats wrong? ./configure --with-jpeg-dir=/usr/local/src/jpeg --with-png-dir=/usr/local/sr c/libpng --with-gd=/usr/local/src/gd checking whether to

Re: [PHP] Netscape shows only one result of a MySQL-question

2001-05-10 Thread Adaran (Marc E. Brinkmann)
Hi Lilly, Lilly Hi, Lilly Our new MySQL-databasesystem (just one table) runs very well with PHP4 - when accessed with MS Internet Explorer. Lilly I just tested it with Navigator 4.7 and found that it always shows only ONE dataset! It tells correctly the number of found sets and will show

Re[2]: [PHP] Newbie redirect/variable question

2001-05-10 Thread Adaran (Marc E. Brinkmann)
Hi Steve, Thursday, May 10, 2001, 1:39:36 PM, you wrote: Steve Ok - thanks - my new redirect.php is Steve ?php Steve if ($fred != ) { Steve # $statement = UPDATE links SET hits=hits+1 WHERE href=\$u\; Steve # mysql_query($statement); Steve Header(Location: $fred); Steve exit;

Re[2]: [PHP] Newbie redirect/variable question

2001-05-10 Thread Adaran (Marc E. Brinkmann)
Hi Steve, Thursday, May 10, 2001, 1:39:36 PM, you wrote: Steve Ok - thanks - my new redirect.php is Steve ?php Steve if ($fred != ) { Steve # $statement = UPDATE links SET hits=hits+1 WHERE href=\$u\; Steve # mysql_query($statement); Steve Header(Location: $fred); Steve exit;

RE: [PHP] Defining the Return-Path in an email header?

2001-05-10 Thread Taylor, Stewart
Maybe try using Reply-To instead of Return-Path -Stewart -Original Message- From: Kevin Price-Ward [mailto:[EMAIL PROTECTED]] Sent: 10 May 2001 11:18 To: [EMAIL PROTECTED] Subject: [PHP] Defining the Return-Path in an email header? Hi, I am setting up a php emailer facility using the

RE: Re[2]: [PHP] Newbie redirect/variable question

2001-05-10 Thread Steve Wade
Ahh - thanks - that's helped :-) (Line 9 was the http_referrer line) Now the only trouble is, it seems to still treat $fred as null. The passing line is from index.php: a href=redirect.php?fred=www.fusion.org.autest link/a Should this work? Thanks, Steve

[PHP] require_once , include_once Vs irix

2001-05-10 Thread Miguel Loureiro
Hello all, when I use the functions require_once and include_once in Linux I have no problem (php 4.0.2), but using it in irix and in older version of php (4.04bl1) I have problems, any idea? Best Regards Miguel Loureiro [EMAIL PROTECTED]

[PHP] Location Header

2001-05-10 Thread Johan Vikerskog (ECS)
ok. I have this problem of mine which i dont know how to solve. therefor i use this great mailing list. Lets say i have a URL that looks something like this. http://adam:9000//usr/local/test/test.html and i want to change this with a PHP script to

[PHP] zlib.output_compression, how to turn it OFF?

2001-05-10 Thread Jakob Kruse
Hi. I have turned on zlib.output_compression in my PHP 4.0.5 php.ini file, and it works beautifully. But if I want to turn off all buffering/compression for a single page, how do I do that? Regards, Jakob Kruse -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL

Re: [PHP] i need some help with extracting data from mysql

2001-05-10 Thread bill
Sandeep, Try: $sql=SELECT group, name FROM $tablename WHERE approved='yes' ORDER BY group, name; Don't know what fieldname folder is in your original SQL. You said that the table had only id, group, name. But I note that you must also have a fieldname called approved. In any case, assuming

Re: Re[2]: [PHP] Newbie redirect/variable question

2001-05-10 Thread Jakob Kruse
You should probably urlencode the address first, like this: a href=redirect.php?fred=?php echo urlencode(www.fusion.org.au) ?test link/a Not sure if it solves the problem though. Regards, Jakob Kruse Steve Wade [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...

Re: [PHP] WEIRD, WEIRD problem with upgrade to 4.0.5

2001-05-10 Thread Jakob Kruse
Ehm... did you enable the ? ? tags in the php.ini file? If the code is being shown on the page it stands to reason that PHP did not process the page at all. Regards, Jakob Kruse Maxim Maletsky [EMAIL PROTECTED] wrote in message

Re: [PHP] SESSIONS: Why does PHP not erase session files in /TMP

2001-05-10 Thread Jakob Kruse
This has to do with session garbage collection. Check the session.gc_probability option in your php.ini. I suspect the default value of 1 means 1% chance of a collection on each session start. Changing it to 100 did the trick for me. But do consider whether you really *want* to do garbage

Re[2]: [PHP] Newbie redirect/variable question

2001-05-10 Thread Steve Wade
Thanks - hmm - doesn't seem to do it though. My current code is: ?php if ($HTTP_GET_VARS['fred'] != ) { # $statement = UPDATE links SET hits=hits+1 WHERE href=\$u\; # mysql_query($statement); header(Location: $HTTP_GET_VARS['fred']); exit; } else { header(Location:

Re: Re[2]: [PHP] Newbie redirect/variable question

2001-05-10 Thread Jakob Kruse
Well, that just means you have to rewrite the line: header(Location: $HTTP_GET_VARS['fred']); like this: header(Location: . $HTTP_GET_VARS['fred']); But have you tried it with just $fred? You shouldn't have to use $HTTP_GET_VARS. Regards, Jakob Kruse Steve Wade [EMAIL PROTECTED] wrote

[PHP] PHP as shell script - generating exit status

2001-05-10 Thread Dave VanAuken
yes I know, PHP wasn't meant for this task... the question has been asked a number of tmes since V2... we have exit() which, all though you can place a variable or string in it, only prints it to the screen prior to killing itself (not sending as an exit code)... same with die AFAIK. is there

[PHP] array limits????

2001-05-10 Thread shaun
is there a limit to the number of fields one can put in an array?? heres the code im using to create the array $arrResIDs = explode(,,$RESID,300); now $RESID has at least 100 different values in it but when i print out the array i only get 80 can anyone shed some light on this subject??? --

Re: Re[2]: [PHP] Newbie redirect/variable question

2001-05-10 Thread James Holloway
Steve, The way you are doing things could leave yourself open with all kinds of problems - one of which is address spoofing. A better way would be to TEST the link against values in the database before updating the link with a hit and exiting. Have the URL's marked against an auto-incremented

Re: [PHP] zlib.output_compression, how to turn it OFF?

2001-05-10 Thread Zeev Suraski
At 16:53 10/5/2001, Jakob Kruse wrote: Hi. I have turned on zlib.output_compression in my PHP 4.0.5 php.ini file, and it works beautifully. But if I want to turn off all buffering/compression for a single page, how do I do that? The only way to selectively configure zlib.output_compression for

Re: Re[2]: [PHP] Newbie redirect/variable question

2001-05-10 Thread bill
On Fri, 11 May 2001, Steve Wade wrote: Thanks - hmm - doesn't seem to do it though. My current code is: ?php if ($HTTP_GET_VARS['fred'] != ) { # $statement = UPDATE links SET hits=hits+1 WHERE href=\$u\; # mysql_query($statement); header(Location: $HTTP_GET_VARS['fred']);

RE: [PHP] WEIRD, WEIRD problem with upgrade to 4.0.5

2001-05-10 Thread PHPBeginner.com
php.ini was only touched in few places such as include_path, auto_prepend, append, exec time, memory limit, upload limit, post ... I think this is it. I haven't touched anything else. Therefore others are the default ones. PHP DID process the file, when there are no comments '//', if there are,

[PHP] myPhpAdmin question

2001-05-10 Thread bill
Importing table data with PHPAdmin always fails wherever a \ character appears in the data values. I create the table dump with PHPAdmin, but when I try to insert the data into a new database, it keeps failing with the following error: You have an error in your SQL syntax near 't blah blah

RE: [PHP] Apache error when installing PHP 4.0.5

2001-05-10 Thread Joseph Bannon
you need to recompile apache too, unless you want to run php as cgi, in which case you just leave out the --with-apache part Can I call PHP like normal if I don't install it with Apache? Also, is there any way of cheating this? Joseph -- PHP General Mailing List

RE: [PHP] bulletin board or forum

2001-05-10 Thread ..s.c.o.t.t.. [gts]
blaze board is what i use: http://www.bbhacks.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]

[PHP] multiselects and arrays

2001-05-10 Thread Max Vysotskiy
Hi. Why doesn't PHP convert mutiselect values with plain names (not array-like) to arrays. Is there any reason to not doing this? Example: I have a page with multiselect, which name is SEL1 (I cannot use square brackets because I need to use a JavaScript on the page, so, it's not allowed in

[PHP] Forms and PHP_SELF

2001-05-10 Thread Chad Guilette
I'm currently working on a project and I've come across a problem which I'm sure has been discussed several times before but I still need some assistance on it. I have a page with a form whose action is $PHP_SELF so the form and the form action are all in the same pagethis works fine but in

RE: [PHP] if $index=1 how can I create a variable named $column_1

2001-05-10 Thread ..s.c.o.t.t.. [gts]
And even though it's much less elegant than the solution by Sean below, you could also use 'eval' $toast = array(wheat, rye, pumpernickel); $numbreads = count($toast); for ($index = 0; $index $numbreads; $index++) { eval(\$column$index = '$toast[$index]'; echo

RE: [PHP] Forms and PHP_SELF

2001-05-10 Thread Sandeep Hundal
surely all you need to do is put the php right at the top, and say if (isset($variable) { print this message } else {do this header (); } i've done that loads of times so the form data goes back to the page, and once its inserted into the db, it sends a header to redirect. /sunny

RE: [PHP] Forms and PHP_SELF

2001-05-10 Thread ..s.c.o.t.t.. [gts]
or if you're hellbent on using one form, you could set a cookie db_insert_formname=1; so that if the page refreshes, you can check the value of the cookie to make sure you dont re-insert the data -Original Message- From: Sandeep Hundal [mailto:[EMAIL PROTECTED]] Sent: Thursday,

Re: [PHP] Forms and PHP_SELF

2001-05-10 Thread Max Vysotskiy
Chad Guilette [EMAIL PROTECTED] wrote in message 000701c0d962$d28fb670$0100a8c0@optimus">news:000701c0d962$d28fb670$0100a8c0@optimus... I'm currently working on a project and I've come across a problem which I'm sure has been discussed several times before but I still need some assistance on

[PHP] Shopping cart search

2001-05-10 Thread Todd Cary
Can someone pass on the URL for searching for PHP shopping cart programs and shopping cart related questions. Many thanks... Todd -- Todd Cary Ariste Software [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional

Re: [PHP] myPhpAdmin question

2001-05-10 Thread bill
Found what appears to be the answer to this over at phpwizard.net. http://phpwizard.net/phorum/search.php?f=1search=magic_quotesmatch=1date=30fldauthor=1fldsubject=1 Apparently, you need to upgrade to version 2.1.0 of phpmyadmin AND you have to enable magic_quotes in php.ini or in .htaccess

RE: [PHP] Shopping cart search

2001-05-10 Thread Jeff Oien
http://www.hotscripts.com/PHP/ Jeff Oien http://www.webdesigns1.com/php/ Can someone pass on the URL for searching for PHP shopping cart programs and shopping cart related questions. Many thanks... Todd -- Todd Cary Ariste Software [EMAIL PROTECTED] -- PHP General

[PHP] Unix timestamp

2001-05-10 Thread TV Karthick Kumar
Hi List.. How do I convert this Sep 20 2000 00:00:00 into UNIX timestamp so that I can use the toDate() function to again convert it to the earlier format. I need to do this becoz I am moving from one table to another table where I get error, if I already have the converted date value with

Re: [PHP] multiselects and arrays

2001-05-10 Thread Rouvas Stathis
Actually, you *can* use brackets ([]) in names and javascript can handle them just fine. -Stathis. Max Vysotskiy wrote: Hi. Why doesn't PHP convert mutiselect values with plain names (not array-like) to arrays. Is there any reason to not doing this? Example: I have a page with

Re: [PHP] Defining the Return-Path in an email header?

2001-05-10 Thread Dan Lowe
Previously, Kevin Price-Ward said: I am setting up a php emailer facility using the 'mail' function, I have defined the 'Return-Path:' in the fourth argument of 'mail', but this keeps getting overwritten by sendmail: my code says: $headers .= Return-Path: [EMAIL PROTECTED]\n; but the

Re: [PHP] Shopping cart search

2001-05-10 Thread Steve Werby
Todd Cary [EMAIL PROTECTED] wrote: Can someone pass on the URL for searching for PHP shopping cart programs and shopping cart related questions. google.com? Or search the php list archives at http://marc.theaimsgroup.com/. Many thanks... Here are some shopping carts written in PHP. I

Re: [PHP] Unix timestamp

2001-05-10 Thread Jack Dempsey
mktime -- Get UNIX timestamp for a date Description int mktime (int hour, int minute, int second, int month, int day, int year [,int is_dst]) Parse that list of values into the respective variables and pass them to mktime -jack TV Karthick Kumar wrote: Hi List.. How do I convert

[PHP] i need some help with extracting data from mysql desperately!!

2001-05-10 Thread Sandeep Hundal
unfortunately, that doesn't seem to work either. it basically only gives me on name per group. here's my php: $query = SELECT * FROM $tablename WHERE approved='yes' GROUP BY group ORDER BY group, name; $result2 = mysql_query($query2); if ($result2) { while ($r2 =

RE: [PHP] i need some help with extracting data from mysql desperately!!

2001-05-10 Thread Sandeep Hundal
doh! i just realised the difference in $query number, but thats not an issue in the actual code, i just cleaned that up a bit /sunny -Original Message- From: Sandeep Hundal [mailto:[EMAIL PROTECTED]] Sent: 10 May 2001 16:49 To: 'bill'; [EMAIL PROTECTED] Subject: [PHP] i need some

Re: [PHP] i need some help with extracting data from mysql

2001-05-10 Thread Steve Werby
Sandeep Hundal [EMAIL PROTECTED] wrote: i've got a simple problem, yet it doesn't work, so i hope someone can help me out here. i've got a table with id, group, and name. each group has many names ofcourse. Are these *all* of the field names? now i need to output the data like : group1

Re: [PHP] Shopping cart search

2001-05-10 Thread Todd Cary
Many thanks to all. Exactly what I need!! Todd -- Todd Cary Ariste Software [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL

[PHP] Problems with session

2001-05-10 Thread Rodrigo Reis da Rocha
Hi, I have a problem with the session variables. ? class Autorizacao { //Atributos--- var $nome_usuario; var $webmaster_mail; var $acao; var $url_sistema;

RE: [PHP] Shopping cart search

2001-05-10 Thread Andrew Hill
You may wish to check here for comparsons: http://www.l-i-e.com/compare/ Plus, there was a discussion set up in onelist - phpcart. It's idle now but may be searchable. Best regards, Andrew Hill Director of Technology Evangelism OpenLink Software http://www.openlinksw.com Universal Data Access

Re: [PHP] Manipulating Images into JPG

2001-05-10 Thread Sterling
H- A good place to start would be GD.pm and ImageMagick http://stein.cshl.org/WWW/software/GD/GD.html http://www.wizards.dupont.com/ -- This is the website but it's not pulling up right now. There are many others but this will give ya a start. HTH, -Sterling Adam Plocher wrote: I want

RE: [PHP] i need some help with extracting data from mysql

2001-05-10 Thread Sandeep Hundal
-Original Message- From: Steve Werby [mailto:[EMAIL PROTECTED]] Sent: 10 May 2001 17:04 To: Sandeep Hundal; php Subject: Re: [PHP] i need some help with extracting data from mysql Sandeep Hundal [EMAIL PROTECTED] wrote: i've got a simple problem, yet it doesn't work, so i hope

[PHP] ereg issues

2001-05-10 Thread Jerry Lake
I'm feeling a bit stupid today how do I truncate a string to the first two [a-zA-Z] characters ? this sure isn't working snip $test = jerry; $test = ereg_replace(^\w*, ^[a-zA-Z]{2} ,$test); /snip Jerry Lake Interface Engineering Technician Europa Communications - http://www.europa.com Pacifier

[PHP] Check this out - http://www.hotscripts.com/webpoll/results.php

2001-05-10 Thread SED
...of course M$ is worried about PHP, see this: http://www.hotscripts.com/webpoll/results.php SED -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL

[PHP] regex pattern match and extract

2001-05-10 Thread Michael Roark
$sql=select nfo_gname from galaxy_nfo limit 1; $result=db_query($sql); if ($result) { while (list($nfo_gname)=mysql_fetch_row($result)) { echo ($nfo_gname); ereg (\[[a-zA-Z0-9]\], $nfo_gname, $regs); echo $regs[1]; I'm trying to match any thing between [] and pull it from the string and

[PHP] PHP 4.0.5 Install problem and MySQL

2001-05-10 Thread Dominic Schanen
Hello, I'm attempting to upgrade my version of PHP from 4.0.4pl1 to 4.0.5. My configure command is the following for both versions: --- ./configure --with-mysql --with-apxs=/usr/local/apache/bin/apxs --with-zlib= /usr/local --with-gd=/usr/local --with-jpeg-dir=/usr

Re: [PHP] PHP 4.0.5 Install problem and MySQL

2001-05-10 Thread Darron Froese
On 5/10/01 10:39 AM, Dominic Schanen [EMAIL PROTECTED] wrote: With v4.0.4pl1, everything works great. With v4.0.5, everything builds and compiles just fine. However, when I go to a page that try to access MySQL, the page stops loading and the first instance of trying to access MySQL and it

Re: [PHP] i need some help with extracting data from mysql

2001-05-10 Thread Steve Werby
Sandeep Hundal [EMAIL PROTECTED] wrote: my query is SELECT group, name FROM $tablename WHERE approved='yes' GROUP BY folder ORDER BY folder; Sorry, substitute folder for Group. I just wrote that by mistake. Data is such: 1 | friends | name1 | yes 2 | misc| name2 | yes 3 | friends |

Re: [PHP] multiselects and arrays

2001-05-10 Thread Toby Miller
You can use javascript with this naming convention, just not the way you're probably doing it. Here's a working example: html head title/title /head body script language=javascript type=text/javascript function getValue(field) { var form = document.testform; var temp =

RE: [PHP] ereg issues

2001-05-10 Thread ..s.c.o.t.t.. [gts]
print preg_replace('/(.*?)(\w{2})(.*)/', '\\2', $blah); works for: $blah = *9 scott 777zxsdf; and $blah = scott; -Original Message- From: Jerry Lake [mailto:[EMAIL PROTECTED]] Subject: [PHP] ereg issues I'm feeling a bit stupid today how do I truncate a string to the first two

RE: [PHP] regex pattern match and extract

2001-05-10 Thread ..s.c.o.t.t.. [gts]
use match_all to get an array of matches. $s = [VET]We r NOT [PA]-Crew [TC]; preg_match_all('/\[.*?\]/', $s, $matches); while (list($k,$v) = each($matches[0])) { print $k = $vBR\n; } prints: 0 = [VET] 1 = [PA] 2 = [TC] -Original Message- From: Michael Roark

RE: [PHP] bulletin board or forum

2001-05-10 Thread James Atkinson
http://www.phpbb.com :D - James -Original Message- From: Matt Williams [mailto:[EMAIL PROTECTED]] Sent: May 10, 2001 3:14 AM To: Kian On; [EMAIL PROTECTED] Subject: RE: [PHP] bulletin board or forum phorum.org M@ -- PHP General Mailing List (http://www.php.net/) To

RE: [PHP] Check this out - http://www.hotscripts.com/webpoll/results.php

2001-05-10 Thread ..s.c.o.t.t.. [gts]
that's an extremely biased poll... considering that it's a *scripting* website. it's only logical that a majority of people going there would choose a scripting language (and since PHP is so newbie friendly, it also makes sense that it has such broad appeal to the newbie web-programmers at the

[PHP] Cannot find mysqlclient library

2001-05-10 Thread Joseph Bannon
What exactly is the problem? I don't understand this error message configure: error: Cannot find mysqlclient library under /usr/local/mysql-3.23.37 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL

[PHP] Question on php.ini.max_execution_time

2001-05-10 Thread Johnson, Kirk
I have a PHP script that opens a socket to another (non-PHP) process. This process has been having problems of late, and can take 10 minutes or more to execute. I have max_execution_time set to 300 seconds in php.ini. However, users report to me that the PHP script does not always time-out after

Re: [PHP] Cannot find mysqlclient library

2001-05-10 Thread Alexander Wagner
Joseph Bannon wrote: What exactly is the problem? I don't understand this error message configure: error: Cannot find mysqlclient library under /usr/local/mysql-3.23.37 Before installing PHP --with-mysql=/usr/local/mysql-3.23.37 , you have to install mysql there first. regards Wagner

[PHP] Please help

2001-05-10 Thread Rodrigo Reis da Rocha
Hi, I have a problem with the session variables. ? class Autorizacao { //Atributos--- var $nome_usuario; var $webmaster_mail; var $acao; var $url_sistema;

RE: [PHP] Please help

2001-05-10 Thread Johnson, Kirk
I think this question was answered by Stewart Taylor earlier today. Here is his response: This error occurrs when you start a session that recreates an object variable but does not know the class definition for it. You need to make sure you include the class source before you start the session.

[PHP] exit code generation, php shell script/standalone

2001-05-10 Thread Dave VanAuken
to tie in web based scripts and database updates with some server side maintenance and authentication issues, we need to have a PHP script be called from another program. The program expects a return or exit value to be transmitted back on completion or termination of the script. 0 indicating

RE: [PHP] Problem with PHP 4.0.5

2001-05-10 Thread biscut
Jack All I am using is: html headtitlePHP Test/title/head body ?php echo $HTTP_USER_AGENT; ? /body /html thats all that is in the file, and it was simply called hello.php, as I say, works fine in IE and not in netscape...I dont get it... Regards and thanks for your help biscut -Original

Re: [PHP] Check this out - http://www.hotscripts.com/webpoll/results.php

2001-05-10 Thread Michael Kimsal
Do you trust a poll that classifies XML as a scripting language? SED wrote: ...of course M$ is worried about PHP, see this: http://www.hotscripts.com/webpoll/results.php SED -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional

  1   2   >