[PHP] HTML module problem under Linux/APache2.0

2002-12-30 Thread Tiziano Crimella
Im' sorry but I discovered a problem when I try to send an HTML module to a PHP file. Watch the example below: module.html: !DOCTYPE HTML PUBLIC -//W3C//DTD HTML 4.01 Transitional//EN html head titleModule/title

Re: [PHP] HTML module problem under Linux/APache2.0

2002-12-30 Thread Leif K-Brooks
No idea what you mean html module, but it looks like a register_globals problem. Tiziano Crimella wrote: Im' sorry but I discovered a problem when I try to send an HTML module to a PHP file. Watch the example below: module.html:

Re: [PHP] HTML module problem under Linux/APache2.0

2002-12-30 Thread Tiziano Crimella
I mean that if you use the following code into welcome.php file: html head titleWelcome/title meta http-equiv=Content-Type content=text/html; charset=iso-8859-1 /head body ?php Print Welcome b$user/b; ? /body /html You can pass directly this line: http://domain/welcome.php?user=nameofuser into

Re: [PHP] HTML module problem under Linux/APache2.0

2002-12-30 Thread Jason k Larson
No idea what you mean html module, but it looks like a register_globals problem. I completely agree. But for the sake of beating a dead horse. The value you are looking for in this instance is located in the appropriate global arrays($_GET,$_POST,$_SERVER, etc, etc) So basically, you could

[PHP] Auto_incerement value

2002-12-30 Thread Cesar Aracena
Hi all, This is a fast question. Does anyone remembers how to obtain the ID auto assigned after an INSERT statement under MySQL? Thanks in advanced, Cesar L. Aracena [EMAIL PROTECTED] [EMAIL PROTECTED] (0299) 156-356688 Neuquén (8300) Capital Argentina -- PHP General Mailing List

Re: [PHP] Auto_incerement value

2002-12-30 Thread Jason k Larson
http://www.php.net/manual/en/function.mysql-insert-id.php Cesar Aracena wrote: Hi all, This is a fast question. Does anyone remembers how to obtain the ID auto assigned after an INSERT statement under MySQL? Thanks in advanced, Cesar L. Aracena [EMAIL PROTECTED] [EMAIL PROTECTED] (0299)

Re: [PHP] Auto_incerement value

2002-12-30 Thread Rick Widmer
At 06:41 AM 12/30/02 -0300, Cesar Aracena wrote: Hi all, This is a fast question. Does anyone remembers how to obtain the ID auto assigned after an INSERT statement under MySQL? http://www.php.net/manual/en/function.mysql-insert-id.php Rick -- PHP General Mailing List

[PHP] Serializing a DOM object

2002-12-30 Thread Boget, Chris
Consider the following: page1.php ?php // initializing soap server object, blah, blah, whatever here. // the important function, dumbed down to the barest essentials. // function test() { $retval = ; $xml = rootrowelementtest/element/row/root\n; $retval = serialize(

[PHP] PHP PostgreSQL

2002-12-30 Thread Boget, Chris
I'm switching from a MySQL environment to PGSQL and I'm going through and trying to learn the differences between the two. I've come across some issues that I can't seem to find the answers to in the docs or on the web. I'm hoping someone can help me out. * MySQL has a function to reset the

Re: [PHP] PHP PostgreSQL

2002-12-30 Thread Jason Wong
On Monday 30 December 2002 18:13, Boget, Chris wrote: I'm switching from a MySQL environment to PGSQL and I'm going through and trying to learn the differences between the two. I've come across some issues that I can't seem to find the answers to in the docs or on the web. I'm hoping someone

[PHP] Zerofill

2002-12-30 Thread Cesar Aracena
Hi all, Sorry to bother you all, but I need something I haven't used in quite a long time. Dows anyone remembers the PHP function to fill a number with zeros until it reaches a desired length? Thanks in advance, Cesar L. Aracena [EMAIL PROTECTED] [EMAIL PROTECTED] (0299) 156-356688 Neuquén

Re: [PHP] Zerofill

2002-12-30 Thread Jason k Larson
How about: http://www.php.net/manual/en/function.str-pad.php HTH, Jason k Larson Cesar Aracena wrote: Hi all, Sorry to bother you all, but I need something I haven't used in quite a long time. Dows anyone remembers the PHP function to fill a number with zeros until it reaches a desired

RE: [PHP] PHP PostgreSQL

2002-12-30 Thread Boget, Chris
pg_result_seek() should perform a similar function. In most cases you wouldn't need to use that because if you're going to be using the results more than once you could store them in an array. Sometimes yes, sometimes no. But a valid point nonetheless. * For PGSQL, you can get the

Re: [PHP] PHP PostgreSQL

2002-12-30 Thread Jason Wong
On Monday 30 December 2002 18:41, Boget, Chris wrote: * For PGSQL, you can get the database name, the field name even the *host name* but you can't get the table name from a particular query? Not sure what you're getting at here. Surely for any particular query, _you_ would know

Re: [PHP] PHP PostgreSQL

2002-12-30 Thread Rick Widmer
At 06:20 PM 12/30/02 +0800, Jason Wong wrote: On Monday 30 December 2002 18:13, Boget, Chris wrote: I'm switching from a MySQL environment to PGSQL and I'm going through and trying to learn the differences between the two. The things that bothered me the most: o Pg doesn't have

[PHP] usort crashes

2002-12-30 Thread CeeGee
A quite anusual problem - and I can't figure it out.. My script, using the usort-function works properly on my local php-environment (PHP 4.0.6) but not on my server, running php 4.1.2! I've read in a documentation, that php since 4.1.0 doesn't accept zero as return-value of the compare-function.

RE: [PHP] PHP PostgreSQL

2002-12-30 Thread Rick Widmer
At 04:41 AM 12/30/02 -0600, Boget, Chris wrote: You can do this in mysql. I just don't know why you can't do this in pgsql. The basic answer to why the interfaces to the databases differ is because the PHP interfaces reflects the C interface provided by the database authors. Most PHP

Re: [PHP] PHP PostgreSQL

2002-12-30 Thread Jason Wong
On Monday 30 December 2002 19:11, Rick Widmer wrote: At 06:20 PM 12/30/02 +0800, Jason Wong wrote: On Monday 30 December 2002 18:13, Boget, Chris wrote: I'm switching from a MySQL environment to PGSQL and I'm going through and trying to learn the differences between the two. The

RE: [PHP] Zerofill

2002-12-30 Thread Rudolf Visagie
http://www.php.net/manual/en/function.str-pad.php or use sprintf, e.g. $formatted = sprintf(%012.2f, $value); pads $value up to 12 digits to the left with zero's. -Original Message- From: Cesar Aracena [mailto:[EMAIL PROTECTED]] Sent: Monday, December 30, 2002 12:22 PM To: [EMAIL

RE: [PHP] PHP PostgreSQL

2002-12-30 Thread Boget, Chris
Sorry, you've lost me. In your OP you say you wanted the table name, but now you're talking about the dbname? For dbname, you can use (oddly enough) pg_dbname(). Eeep, I'm ever so sorry. That's what I get for responding at 4:30a when trying to battle insomnia. Yes, I am looking for the

[PHP] Text repeating problem

2002-12-30 Thread Simon Hay
Hi all, First of all, apologies if this is a question that has already been asked and answered, but a quick search of the archives didn't turn up anything - perhaps because it's hard to think of good keywords... I'm experiencing a bizarre problem with PHP 4.2.2 and Apache 2.0.40 - both the

[PHP] install problem

2002-12-30 Thread gnu_is_not_unix
Hello ! I have problem with php-4.3.0 i can not install it on my 3 different rh7.0 servers. ./configure --prefix=/usr --with-config-file-path=/etc --disable-debug --enable-pic --enable-shared --enable-inline-optimization --with-apxs=/usr/sbin/apxs --with-exec-dir=/usr/bin --with-regex=system

[PHP] help-regarding installation

2002-12-30 Thread celia rexselin
hi all, i jus can't get php to work.i've installed apache web server in windows 2000 platform and tried to run a php script which is in d:/work/sample.php.but the browser prints out a http:404 error saying that the page cannot be displayed. in the httpd.conf file, i 've given the scriptAlias as

Re: [PHP] PHP PostgreSQL

2002-12-30 Thread Chris Boget
Due to writing this email *way* too early in the morning, I got everything mixed up and didn't say what I meant. The below is what I really meant. Not sure what you're getting at here. Surely for any particular query, _you_ would know what table(s) is/are being used? That's not necessarily

[PHP] function misfunction

2002-12-30 Thread Martin S
I'm trying to redo a db lookup into a function. The function is placed in a class called tracking and declared thus: function setCurrentDevGroup($devID) { // start original routine $query = SELECT dev_group FROM tracking WHERE (computer =

[PHP] Multi Language support

2002-12-30 Thread Michael J. Pawlowsky
Hello, I have a multi-lingual site and was wondering if anyone knew of a PHP function to detetct a browser's preferred laguages. I know I can parse it in the _SEREVR var [HTTP_ACCEPT_LANGUAGE] = fr, fr-ca;q=0.75, en-us;q=0.50, en;q=0.25 But I was just wondering if somewhere PHP already had a

Re: [PHP] PHP PostgreSQL

2002-12-30 Thread Michael Sims
On Mon, 30 Dec 2002 04:11:02 -0700, you wrote: The things that bothered me the most: o Pg doesn't have DATE_FORMAT() to_char() accomplishes the same thing, for example: select to_char(lastlogin, 'FMMM-DD- FMHH:MI AM') as lastloginf from users; , or the types SET and ENUM. I'm not sure

Re: [PHP] PHP PostgreSQL

2002-12-30 Thread Chris Boget
o Pg doesn't have DATE_FORMAT() to_char() accomplishes the same thing, for example: select to_char(lastlogin, 'FMMM-DD- FMHH:MI AM') as lastloginf from users; Unless I missed something, that function doesn't work with unix timestamps. Is there anythin internal to PG that allows you to

Re: [PHP] function misfunction

2002-12-30 Thread Michael Sims
On Mon, 30 Dec 2002 14:48:13 +0100, you wrote: function setCurrentDevGroup($devID) { // start original routine $query = SELECT dev_group FROM tracking WHERE (computer =

Re: [PHP] PHP PostgreSQL

2002-12-30 Thread Michael Sims
On Mon, 30 Dec 2002 07:57:04 -0600, you wrote: o Pg doesn't have DATE_FORMAT() to_char() accomplishes the same thing, for example: select to_char(lastlogin, 'FMMM-DD- FMHH:MI AM') as lastloginf from users; Unless I missed something, that function doesn't work with unix timestamps. Is

Re: [PHP] install problem

2002-12-30 Thread Rasmus Lerdorf
I don't see any errors there, just a couple of rather harmless warnings. On Mon, 30 Dec 2002, [EMAIL PROTECTED] wrote: Hello ! I have problem with php-4.3.0 i can not install it on my 3 different rh7.0 servers. ./configure --prefix=/usr --with-config-file-path=/etc --disable-debug

[PHP] creating a .doc file in php

2002-12-30 Thread Edward Peloke
I am creating a 'vacation' scheduling webpage for my company. Currently, when we want a day off, we fill out a document in word and send it to our supervisor. The page I am working on will have a calendar that displays who is off when. I would like for the employees to click on a date, enter

Re: [PHP] PHP PostgreSQL

2002-12-30 Thread Jason Wong
On Monday 30 December 2002 21:33, Chris Boget wrote: Due to writing this email *way* too early in the morning, I got everything mixed up and didn't say what I meant. The below is what I really meant. Not sure what you're getting at here. Surely for any particular query, _you_ would know

Re: [PHP] creating a .doc file in php

2002-12-30 Thread Marco Tabini
My guess is that your best bet is creating either an HTML or RTF documents, both of which are readable by MS Word. RTF is well documented and it should be fairly easy to work with--you can save a template with placeholders and simply replace them, since it's entirely text-based. Cheers, Marco

Re: [PHP] PHP PostgreSQL

2002-12-30 Thread Chris Boget
To convert TO a unix timestamp: To convert FROM a unix timestamp: Excellent. Thank you very much for the info! And there is the major benefit of using Postgres... Why do you think I decided to move to Postgres? :P not to mention sub-selects, views, unions, etc. Indeed. And I'm going

Re: [PHP] Text repeating problem

2002-12-30 Thread Rasmus Lerdorf
Anyone seen this before? Any suggestions/things to try? It's driving me mad... I would strongly suggest using Apache 1.3.x instead of Apache 2. Apache2+PHP simply is nowhere near stable. -Rasmus -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

RE: [PHP] include problem -- how to use an external 'template' file and still use PHP variables?

2002-12-30 Thread Daevid Vincent
I have a similar question/problem. However, I want to use an external email template as it were, so that the sales guys can edit it as they like and simply shuffle the three variables around that they need $username, $password, $code (either with or without the ?php ? tags). I don't want them

Re: [PHP] PHP PostgreSQL

2002-12-30 Thread Jason Wong
On Monday 30 December 2002 21:57, Chris Boget wrote: o Pg doesn't have DATE_FORMAT() to_char() accomplishes the same thing, for example: select to_char(lastlogin, 'FMMM-DD- FMHH:MI AM') as lastloginf from users; Unless I missed something, that function doesn't work with unix

Re: [PHP] function misfunction

2002-12-30 Thread Jason Wong
On Monday 30 December 2002 22:07, Michael Sims wrote: On Mon, 30 Dec 2002 14:48:13 +0100, you wrote: function setCurrentDevGroup($devID) { // start original routine $query = SELECT dev_group FROM tracking WHERE (computer =

Re: [PHP] PHP PostgreSQL

2002-12-30 Thread Chris Boget
Either you're confused or I'm confused :) It's me. This just hasn't been a good week for me. :p One time I'll get it right! mysql_tablename() is used in conjunction with mysql_list_tables() to get the names of the tables defined in the specified database. It cannot get the table name for

[PHP] importing array from flash, how does PHP handle it?

2002-12-30 Thread Gav
Hi, I am sending information from Flash to PHP and ideally I just want to send an array. Would php treat the info as an array or a string? If it is the latter, is there a way that I can convert the information into an array? In Flash you can use the .split action but I'm not too sure of the

RE: [PHP] creating a .doc file in php

2002-12-30 Thread Edward Peloke
Thanks Marco, So I would just create the .rtf file with php, then store it on the server and attach it to the e-mail? Thanks, Eddie -Original Message- From: Marco Tabini [mailto:[EMAIL PROTECTED]] Sent: Monday, December 30, 2002 9:17 AM To: Edward Peloke Cc: [EMAIL PROTECTED] Subject:

php-general Digest 30 Dec 2002 15:34:19 -0000 Issue 1793

2002-12-30 Thread php-general-digest-help
php-general Digest 30 Dec 2002 15:34:19 - Issue 1793 Topics (messages 129623 through 129672): Re: Dropping Tables 129623 by: Steve Buehler Re: imap_set_quota function 129624 by: Michael Sims Re: PHP 4.3 unable to load php_domxml.dll in WinXP Apache 2.0.43 129625

RE: [PHP] importing array from flash, how does PHP handle it?

2002-12-30 Thread SED
As an array. However, you can test this in the page that receives the post with fallowing code: foreach($_POST as $val = $key) { echo $val. = .$key.br; } Regards, Sumarlidi E. Dadason SED - Graphic Design _ E-mail: [EMAIL

RE: [PHP] creating a .doc file in php

2002-12-30 Thread Marco Tabini
Yep. There should be a few SMTP/Email composing classes that can help you with the attachment part. Just remember to delete your temp file once you're done and you should be fine. Cheers, Marco -- php|architect - The Monthly Magazine for PHP Professionals Come check us out on

RE: [PHP] creating a .doc file in php

2002-12-30 Thread Edward Peloke
thanks, I will give it a shot! Thanks, Eddie -Original Message- From: Marco Tabini [mailto:[EMAIL PROTECTED]] Sent: Monday, December 30, 2002 10:26 AM To: Edward Peloke Cc: [EMAIL PROTECTED] Subject: RE: [PHP] creating a .doc file in php Yep. There should be a few SMTP/Email composing

[PHP] Alternatives for Meta Refresh

2002-12-30 Thread Stephen
I'm writing a PHP chat script and I'm rather stumped on this. I either want the chat window to refresh when there's a new message or refresh every few seconds but not with meta refresh, rather something with less noise (the infamous IE clicking sound) and/or something faster. The only thing

[PHP] Round robin script revisited..

2002-12-30 Thread Chad Day
I was trying to find a script to do round robin pairings for a sports schedule generator.. I was able to come across one in Perl, and am in the process of trying to convert it to PHP, but since my perl knowledge is a bit (well, a lot) lacking, I was hoping someone could help.. Perl script:

[PHP] php+html help

2002-12-30 Thread Denis L. Menezes
Hello friends, I have the following php output line that works fine : Print Organisation name : .$row[OrgName].br\n.; However, I want this line to be in bold, red and size=5. I tried the following code but fails. Can someone please tell me what is wrong? Print Organisation name : font

[PHP] send page with https and php sessions problem

2002-12-30 Thread Kocnár Peter
I have problem with sending pages directly(by Send-Page by E-mail...) from browser(ie6) with Outlook 2002. It tells:The current document type can not be sent as mail.Would you like to send a Short cut instead?. The pages use php sessions and https with 128 bit encryption. I found that it is caused

Re: [PHP] php+html help

2002-12-30 Thread R'twick Niceorgaw
Print Organisation name : font color=\#FF\ size=\5\.$row[OrgName]./FONTbr\n.; - Original Message - From: Denis L. Menezes [EMAIL PROTECTED] To: PHP general list [EMAIL PROTECTED] Sent: Monday, December 30, 2002 11:10 AM Subject: [PHP] php+html help Hello friends, I have the

Re: [PHP] function misfunction

2002-12-30 Thread Marek Kilimajer
Besides what Michael and jason said, you seem not have the $tracking initialized (it is not an object). You need to call $tracking=new tracking(); somewhere in your code. Martin S wrote: I'm trying to redo a db lookup into a function. The function is placed in a class called tracking and

[PHP] Warning?

2002-12-30 Thread Doug Coning
Hi everyone, I'm using Dreamweaver to create an insert page and after the record is inserted I receive this error: Warning: Cannot add header information - headers already sent by (output started at /home/virtual/site8/fst/var/www/html/admin_gs/products_insert.php:2) in

Re: [PHP] php+html help

2002-12-30 Thread Marek Kilimajer
still you forgot ;-) Print Organisation name : font color=\#FF\ size=\5\.$row[OrgName]./FONTbr\n; R'twick Niceorgaw wrote: Print Organisation name : font color=\#FF\ size=\5\.$row[OrgName]./FONTbr\n.; - Original Message - From: Denis L. Menezes [EMAIL PROTECTED] To: PHP

RE: [PHP] Warning?

2002-12-30 Thread Chad Day
You can't have any text output to the browser before a redirect. Make sure you have nothing abouve line 58 echoing out text (specifically whatever is in line 2, judging by your error) .. I believe I've had the problem when I've included a file where the 1st line was blank, so you may want to

Re: [PHP] Warning?

2002-12-30 Thread Doug Coning
Never mind. http://www.agner.org/messageboards/docs/read-me.txt says that if there is a space before the ?php that this error will return. Sure enough. Dreamweaver MX placed a space between an include tag and the next ?php tag. Once I removed the space, it worked without error. Doug -- PHP

[PHP] Multi-lingual Language Support in PHP

2002-12-30 Thread Michael J. Pawlowsky
Keywords: Multiple, Language, PHP, $HTTP_ACCEPT_LANGUAGE I'm just shooting this one up here for the Archives. Since I could not find a built in PHP function to access the preferred languages on a user I came up with this. The original version acted as a http server in that you needed to have a

Re: [PHP] Serializing a DOM object

2002-12-30 Thread Chris Boget
In the test function, if I just serialize the $xml, return it and then call xmldoc_open_mem on the unserialized return string, it works fine. But it doesn't like it if I do the above. I'm getting the error: Warning: dump_mem() [function.dump-mem]: Underlying object missing or of invalid

[PHP] Continued story on : PHP includes without access to the default directory//Tom Rogers//

2002-12-30 Thread WMB
Hi, original messagethread on dec 6, 2002, but still have following question on same/continued subject by Tom Rogers:(see below) Like you say it works (with the correction) . for which my thanks, but: if one my includes is a menu.php where there are links inside, how should these work from

[PHP] Great solution, but... another question

2002-12-30 Thread WMB
Like you say it works (with the correction) . for which my thanks, but: if one my includes is a menu.php where there are links inside, how should these work from rootdirectory and from subdirectories. for rootfilelinks they now just say f.i. index.php, but when called from inside a subdirectories

Re: [PHP] Continued story on : PHP includes without access to the default directory//Tom Rogers//

2002-12-30 Thread Matt Vos
Just use absolute paths. If your webserver is looking at the root directory, /index.phtml and index.phtml are the same file Matt - Original Message - From: WMB [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, December 30, 2002 12:03 PM Subject: [PHP] Continued story on : PHP includes

Re: [PHP] function misfunction

2002-12-30 Thread Martin S
Jason Wong wrote: On Monday 30 December 2002 22:07, Michael Sims wrote: On Mon, 30 Dec 2002 14:48:13 +0100, you wrote: function setCurrentDevGroup($devID) { // start original routine $query = SELECT dev_group FROM tracking WHERE (computer =

[PHP] SELECTing a row by maximum value

2002-12-30 Thread Richard Fox
Hi, What would be a query to select a single record from a number of records in a table, depending on which one has the biggest value in an integer field? e.g something like: MYTABLE id ifield 1100 2200 3150 SELECT * FROM MYTABLE WHERE id=$id and

RE: [PHP] Round robin script revisited..

2002-12-30 Thread Chad Day
Ok, after some more fiddling, I'm really close to getting this to work. The script seems to correctly generate a schedule if an odd number of teams are specified: Given an array of 5 teams, A through E, the following pairs are generated: Round 1 - A/E, B/D Round 2 - D/E, A/C Round 3 - C/D, B/E

[PHP] install problem - cd ... and compilation aborts

2002-12-30 Thread gnu_is_not_unix
.. and compilation aborts. ps. i forgot to tell You - sorry ! greetz gnu is not unix Copy of first message: I have problem with php-4.3.0 i can not install it on my 3 different rh7.0 servers. ./configure --prefix=/usr --with-config-file-path=/etc --disable-debug --enable-pic --enable-shared

RE: [PHP] Round robin script revisited..

2002-12-30 Thread Chad Day
Nevermind, I found the bug. End of the code should be: # Now rotate the @teams array # Save the last team as the pivot for the polygon if ($even) { $last_team_save = array_pop($teamarray); } $last_team = array_pop($teamarray); array_unshift($teamarray,

[PHP] Re: SELECTing a row by maximum value

2002-12-30 Thread Elna Moorhouse
TRY: SELECT id,Max(ifield) from MYTABLE. What I don't understand is why you specify id=$id in the where clause. If you already specify the id as let say 1 then the max for that id will be 100 from your example below. Richard Fox [EMAIL PROTECTED] wrote in message

[PHP] problem including a file

2002-12-30 Thread Omar
I have an include line in all the php files i write something like -- include('connection.inc'); The include path is d:\includes. (win nt 4, php 3.0.11) It worked fine before but today failed to open the include file. Does anyone has a clue about what could cause this problem? Thank you. --

Re: [PHP] Re: SELECTing a row by maximum value

2002-12-30 Thread Marek Kilimajer
You cannot mix grouping columns without a group by clause. This would work: SELECT * FROM MYTABLE order by ifield desc limit 1 Elna Moorhouse wrote: TRY: SELECT id,Max(ifield) from MYTABLE. What I don't understand is why you specify id=$id in the where clause. If you already specify the id

[PHP] PHP 4.3 JPG Support. Whats needed?

2002-12-30 Thread Andras Kende
Hello, I'm trying to upgrade to php4.3 on a cobalt raq4 I have 4.1.2 with gd 1.6, but would like to use gd 2.0 Compiled 4.3 from source, everything seems to be fine except the JPG Support. http://www.kende.com/phpinfo.php './configure' '--prefix=/usr' '--with-apxs=/usr/sbin/apxs' '--with-gd'

Re: [PHP] problem including a file

2002-12-30 Thread Tyler Longren
- Original Message - From: Omar [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, December 30, 2002 1:32 PM Subject: [PHP] problem including a file I have an include line in all the php files i write something like -- include('connection.inc'); The include path is d:\includes.

[PHP] Re: fOpen in append mode on a FTP Server

2002-12-30 Thread Elna Moorhouse
To see the error in action go to http://www.moorhouse.co.za/test.php Please help! Thanks Elna Moorhouse [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... What I want to do is very simple, I have a txt file on a ftp server, that contains the number of visits

[PHP] PHP scripts resulting in stderr ?

2002-12-30 Thread gamin
Hi, This is more of a unix/linux question. but i guess somebody will be able to help me here. Can a command-line PHP script result in a stderr output in any circumstances, or does it only generate only stdout ? One can use 21 to redirect stderr to stdout, will this work with PHP command-line

Re: [PHP] Re: SELECTing a row by maximum value

2002-12-30 Thread Elna Moorhouse
Sorry, I forgot to add the group by clause. Both will work fine. Marek Kilimajer [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... You cannot mix grouping columns without a group by clause. This would work: SELECT * FROM MYTABLE order by ifield desc limit 1

[PHP] Multiple forms

2002-12-30 Thread Doug Coning
Hi all, I have an update page that has a form in it. However, I want to add another form in the same page. My current form acts upon itself (i.e. Action = the same page). If I set up another form to do the same, how would my PHP determine with action submit button was acted upon? Currently,

Re: [PHP] Multiple forms

2002-12-30 Thread Tyler Longren
- Original Message - From: Doug Coning [EMAIL PROTECTED] To: php-general [EMAIL PROTECTED] Sent: Monday, December 30, 2002 3:26 PM Subject: [PHP] Multiple forms Hi all, I have an update page that has a form in it. However, I want to add another form in the same page. My current

Re: [PHP] Multiple forms

2002-12-30 Thread Marco Tabini
You should be able to insert a hidden field in your form and that check against that in your PHP script to determine which (if any) of your form was submitted: form input type=hidden name=f value=1 /form form input type=hidden name=f value=2 /form in your script: ?php switch ($_POST['f']) {

RE: [PHP] Multiple forms

2002-12-30 Thread John W. Holmes
I have an update page that has a form in it. However, I want to add another form in the same page. My current form acts upon itself (i.e. Action = the same page). If I set up another form to do the same, how would my PHP determine with action submit button was acted upon? Currently,

Re: [PHP] Multiple forms

2002-12-30 Thread Chris Wesley
On Mon, 30 Dec 2002, Doug Coning wrote: However, I want to add another form in the same page. My current form acts upon itself (i.e. Action = the same page). If I set up another form to do the same, how would my PHP determine with action submit button was acted upon? Give your submit

[PHP] rtf....I knew it couldn't be this easy

2002-12-30 Thread Edward Peloke
Ok, I took a word document, saved it as an rtf then opened the document in a text editor so that I could see all the rtf code. I then added this code to my script $fp=fopen(documents\off.rtf,w); $outputstring=; fwrite($fp, $outputstring); For the outputstring, I simply cut and paste the rtf

[PHP] Design Discussions

2002-12-30 Thread bill
I found that http://designdiscussions.com is backonline with a new url. They use to have a pretty nice PHP forum going. They need a mod for their PHP forum too... bill -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: PHP scripts resulting in stderr ?

2002-12-30 Thread gamin
I think i did not make question clear. What i mean by 'any circumstances' is not using fopen('php://stderr', 'w') or STDERR (ver = 4.3.0) but getting something in stderr when some function call like fopen(), mysql_connect(), ftp_connect() fails. I tried these calls and they dont result in

[PHP] Re: rtf....I knew it couldn't be this easy

2002-12-30 Thread gamin
Edward Peloke [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Ok, I took a word document, saved it as an rtf then opened the document in a text editor so that I could see all the rtf code. I then added this code to my script $fp=fopen(documents\off.rtf,w);

RE: [PHP] Re: rtf....I knew it couldn't be this easy

2002-12-30 Thread Edward Peloke
Thanks, I tried it and don't get a blank line but it still shows all the code when opened in word. Forgive how lengthy it is but here is the actual code: I tried escaping the special characters in the string but that doesn't help either. Thanks, Eddie ? touch(documents\off.rtf);

[PHP] file uploads 800K with php into a BLOB field

2002-12-30 Thread Mike Brancato
i'm having trouble with using php to upload files to be used as resources over the web via php and a backend db. i don't prefer to store them on the filesystem, but i guess thats an ultimate solution. either way, my code works, in theory, and literally. but not on file above 799KB. why?

[PHP] Problem with CHMOD

2002-12-30 Thread Stephen
I'm running the CHMOD function and I get this error: Warning: chmod() [function.chmod]: Permission denied in c:\inetpub\wwwroot\chatness2\admin\save.php on line 13 I'm running IIS 5 which may be causing it. Here's my code: chmod($file, 0666); $file = $HTTP_GET_VARS['file'].".html";

Re: [PHP] Problem with CHMOD

2002-12-30 Thread Chris Garaffa
On Monday, December 30, 2002, at 04:34 PM, Stephen wrote: I'm running the CHMOD function and I get this error:   Warning: chmod() [function.chmod]: Permission denied in c:\inetpub\wwwroot\chatness2\admin\save.php on line 13 I'm running IIS 5 which may be causing it. Here's my code:  

Re: [PHP] Problem with CHMOD

2002-12-30 Thread Stephen
Actually, it is like that. I just copied one part, forgot you'd probably want the file variable and pasted that but accidently below. I read this: $file = $HTTP_GET_VARS['file']..html; chmod($file, 0666); - Original Message - From: Chris Garaffa [EMAIL PROTECTED] To: [EMAIL PROTECTED]

[PHP] ascii(10) changed to ascii(13) when uploading

2002-12-30 Thread James Brennan
Just a heads-up. I was having problems doing a MySql infile insert with a flat file uploaded from an html form. I discovered that ascii character 10 (new line \n,\r) is being changed to ascii character 13 (charriage return) when it is uploaded. MySql didn't recognize the ascii-13 character as

[PHP] PHP Look Back 2002

2002-12-30 Thread Derick Rethans
Hello! We are almost at the end of 2002, and it seemed appropriate to look back on the development issues of the past year. So starts the first PHP Look Back! You can find it @ http://www.derickrethans.nl/20021230.php, and if you have any comments,feel free to post them with the link

[PHP] Re: [PHP-DEV] PHP Look Back 2002

2002-12-30 Thread Leon Atkinson
A friend of mine had an uncle who taught dancing to middle-aged couples. One day he visited some lessons and noticed that all the couples were fussing, stepping on each other's feet and arguing. When he asked, what gives? his uncle told him, if you're not fighting, you're not dancing. (It may

Re: [PHP] Multi-lingual Language Support in PHP

2002-12-30 Thread Paul Roberts
there's a nice article in this months (Feb. 2003!!!) PC world (UK) (www.pcw.co.uk) on this. see www.nigelwhitfield.com for details. Best Wishes Happy New Year Paul Roberts [EMAIL PROTECTED] - Original Message - From: Michael J. Pawlowsky [EMAIL PROTECTED] To:

[PHP] SQL Error

2002-12-30 Thread Stephen
I'm having some troubles. I have an install script which runs a lot of SQL statements to create tables then insert info into them. One of them is an emoticons table. Here's the error I'm getting: You have an error in your SQL syntax near '; INSERT INTO c_emotes VALUES \(':\)',

Re: [PHP] SQL Error

2002-12-30 Thread Michael J. Pawlowsky
I just tried this in MySQL and it inserted no problem INSERT INTO c_emotes VALUES (6, ':-)'); Mike *** REPLY SEPARATOR *** On 30/12/2002 at 7:14 PM Stephen wrote: I'm having some troubles. I have an install script which runs a lot of SQL statements to create tables then

Re: [PHP] PHP PostgreSQL

2002-12-30 Thread Rick Widmer
At 07:59 AM 12/30/02 -0600, Michael Sims wrote: On Mon, 30 Dec 2002 04:11:02 -0700, you wrote: , or the types SET and ENUM. I'm not sure what SET is, never used it, Color set( 'red', 'green', 'blue' ) can contain only the following values: NULL;'blue'; 'green'; 'green,blue';

[PHP] Keeping script running, but returning control to user?

2002-12-30 Thread Leif K-Brooks
I need a way to keep the script running on the server, but control to the user. I'm doing some lengthy processes on the server, and it seems stupid to keep the user waiting pointlessly. I'm trying to do something like: ?php if(array_key_exists('secondrun',$_GET)){ print Processing

Re[2]: [PHP] Serializing a DOM object

2002-12-30 Thread Tom Rogers
Hi, Tuesday, December 31, 2002, 2:55:39 AM, you wrote: In the test function, if I just serialize the $xml, return it and then call xmldoc_open_mem on the unserialized return string, it works fine. But it doesn't like it if I do the above. I'm getting the error: Warning: dump_mem()

[PHP] RE: [PHP-DEV] PHP Look Back 2002

2002-12-30 Thread Mike Robinson
Derick Rethans wrote: We are almost at the end of 2002, and it seemed appropriate to look back on the development issues of the past year. So starts the first PHP Look Back! You can find it @ http://www.derickrethans.nl/20021230.php, and if you have any comments,feel free to post them

RE: [PHP] SQL Error

2002-12-30 Thread John W. Holmes
I don't think there's anything wrong with the queries themselves. Are you trying to run them all at once? You're getting an error because MySQL is reaching a semi-colon somewhere and that's causing a parse error... Show how you're trying to run all of these queries. Bottom line, you must do them

RE: [PHP] PHP Look Back 2002

2002-12-30 Thread John W. Holmes
We are almost at the end of 2002, and it seemed appropriate to look back on the development issues of the past year. So starts the first PHP Look Back! You can find it @ http://www.derickrethans.nl/20021230.php, and if you have any comments,feel free to post them with the link at the bottom

  1   2   >