Re: [PHP] Getting short (DOS) name of file?

2002-12-30 Thread Leif K-Brooks
Thanks... thing is, it can be anything from c:\whatever.exe to c:\program files\program name\bin\program.exe. I'll write a function that goes to each directory in a string and does a dir /x if I have to, but isn't there a simpler way? Michael Sims wrote: On Tue, 31 Dec 2002 01:12:47 -0500, you

Re: [PHP] Shopping Cart Credit Card Verification

2002-12-30 Thread Maciek Ruckgaber Bielecki
see at http://verisign.com two services are available: payflo link & payflow pro regards, -- "Few are those who see with their own eyes and feel with their own hearts." Albert Einstein --

[PHP] Shopping Cart Credit Card Verification

2002-12-30 Thread Josiah Peters
I sure hope this is the correct mailing list. I have been struggling with this problem for quite some time. Does anyone know a way to verify credit card information in real time with your bank over the internet in say a shopping cart? Joey Peters

[PHP] RE: PHP3 + session handling limitation

2002-12-30 Thread electroteque
hi i've just started a job and they are sadly using php3 , what is the work around for the session handling limitation ? i have an authentication class which will not work now beause it cant handles sessions :| -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://ww

Re: [PHP] PHP 4.3 JPG Support. Whats needed?

2002-12-30 Thread Jason Wong
On Tuesday 31 December 2002 03:52, Andras Kende wrote: > 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 > >

[PHP] Function misfunction - 2

2002-12-30 Thread Martin S
NOW what am I doing wrong?? function setCurrentDevGroup($devID) { $query = "SELECT dev_group FROM tracking WHERE (computer = $devID)"; $sth = $adb->prepare($query); if($sth) { $res = $sth->execute();

[PHP] chunking a blob field. adding a large object chunk by chunk

2002-12-30 Thread Mike Brancato
if I wanted to read a very large object into a blob field, is there a way i could do it in 1MB chunks. using and UPDATE statement "field = field+'$data'". and just use fread to read 1MB at a time into $data. -- Mike Brancato -- PHP General Mailing List (http://www.php.net/) To unsubscribe, vis

[PHP] Getting short (DOS) name of file?

2002-12-30 Thread Leif K-Brooks
I'm trying to run some (often user-defined) files on my windows server. Thing is, it seems to want short names (like C:\PROGRA~1\WHATEVER\PROG.EXE). Is there any way to get the short name from a long name? -- The above message is encrypted with double rot13 encoding. Any unauthorized attempt

RE: [PHP] FORM text formatting problem

2002-12-30 Thread Pag
Are you using a WRAP attribute on your TEXTAREA? You'll want to set it to OFF or NONE, probably. I can't remember the exact values, it can take, but I think it's PHYSICAL, VIRTUAL, and NONE/OFF. Thank you. Problem solved. Better put "thank you" on some sort of macro because it

RE: [PHP] FORM text formatting problem

2002-12-30 Thread John W. Holmes
> When i retrieve the text i have on my database, which was taken from > a > form textbox, i have line breaks ate the end of each line in the textbox. > Ah, hard to explain! > My textbox is small, and everytime, while writing a text in it, the > line > ends and we continued writing on t

[PHP] FORM text formatting problem

2002-12-30 Thread Pag
Hi, When i retrieve the text i have on my database, which was taken from a form textbox, i have line breaks ate the end of each line in the textbox. Ah, hard to explain! My textbox is small, and everytime, while writing a text in it, the line ends and we continued writing on the next one, t

[PHP] PLEASE HELP

2002-12-30 Thread Dale
I was able to successfully install the php on my win2k server. I am, however, getting an error any time I try to initialize a variable. This is the error I am getting: Notice: Undefined index: adv_auth in ...\mysql\lib.inc.php on line 132 I am not sure as to whether I forgot to do something when

Re: [PHP] printing documents on printer

2002-12-30 Thread Michael J. Pawlowsky
Build a file on the disk and use a shell to send it with lpr. *** REPLY SEPARATOR *** On 30/12/2002 at 11:59 PM Larry Brown wrote: >Does anyone know where I might find specific information on methods of >sending documents to a printer from the web server to an attached printe

RE: [PHP] printing documents on printer

2002-12-30 Thread Larry Brown
My apologies, this is Linux RH8 to be exact. Larry S. Brown Dimension Networks, Inc. (727) 723-8388 -Original Message- From: John W. Holmes [mailto:[EMAIL PROTECTED]] Sent: Tuesday, December 31, 2002 12:05 AM To: 'Larry Brown'; 'PHP List' Subject: RE: [PHP] printing documents on printer

RE: [PHP] printing documents on printer

2002-12-30 Thread John W. Holmes
> Does anyone know where I might find specific information on methods of > sending documents to a printer from the web server to an attached printer. > My PHP and Perl books don't even touch on the capability for some reason. On windows you can use the Printer Functions... http://www.php.net/manu

[PHP] printing documents on printer

2002-12-30 Thread Larry Brown
Does anyone know where I might find specific information on methods of sending documents to a printer from the web server to an attached printer. My PHP and Perl books don't even touch on the capability for some reason. Larry S. Brown Dimension Networks, Inc. (727) 723-8388 -- PHP General Mai

Re: [PHP] Making with $values!!!

2002-12-30 Thread Maciek Ruckgaber Bielecki
i dont finally understand mate what do need, load the values already filled, when the form is not sent because of an error? you can try something like this for($i=0;$1<5;$i++) { } if that is what you need, if no, you can write to me in spanish, and explain better in spanish ;) regards

[PHP] Eocene -- An OO Framework for Web Devlopment

2002-12-30 Thread Eocene
Eocene is an OO (Object Oriented) Web development framework that incorporates many proven software development practices to provide a foundation for building Web applications. It uses PHP for foundation classes and xml-based text files for application configurations. It is a simple and easy to use

[PHP] Making with $values!!!

2002-12-30 Thread Alexander Guevara
hi.. i have this and i cant get it work!!.. HERES THE CODE --- for ($i=1;$i<11;$i++){ echo" TEXT "; }

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

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 on

[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

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] 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: if(array_key_exists('secondrun',$_GET)){ print "Processing complete!";

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'; '

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 i

[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 \(':\)', 'emotes/smile

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

[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

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

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 PROTEC

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:   chmod($file

[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";   Ple

[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? got

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 -Original Message- From: gami

[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 at the

[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

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

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

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 bu

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? > > Curr

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: in your script: --- Begin Message --- Hi all, I have an update page that has a form in it. However, I want to add another fo

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

[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, fo

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

[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 2>&1 to redirect stderr to stdout, will this work with PHP command-lin

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

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:\inc

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

[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 003901c2b034$0c563740$0700a

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, $last_te

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

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 R

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

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

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 inclu

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

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

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 inv

[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] 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 http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.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 check

Re: [PHP] php+html help

2002-12-30 Thread Marek Kilimajer
still you forgot " ;-) Print "Organisation name : ".$row[OrgName]."\n"; R'twick Niceorgaw wrote: Print "Organisation name : size=\"5\">.$row[OrgName]."\n".""; - Original Message - From: "Denis L. Menezes" <[EMAIL PROTECTED]> To: "PHP general list" <[EMAIL PROTECTED]> Sent: Monday

[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 /home/virtual/site8/fst/va

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 declar

Re: [PHP] php+html help

2002-12-30 Thread R'twick Niceorgaw
Print "Organisation name : .$row[OrgName]."\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 following php output line that

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

[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]."\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 : .$row[Or

[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: http:

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

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 c

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 t

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.""; } Regards, Sumarlidi E. Dadason SED - Graphic Design _ E-mail: [EMAIL PROTE

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

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

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

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

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

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 tags). I don't want them mucking

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: http://www.php.net/u

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 goin

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

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

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

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 timestam

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

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

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

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

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

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

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 th

  1   2   >