[PHP] Re: unexpected T_SL

2002-09-02 Thread Erwin
Voisine wrote: Hi, What is wrong witht his code? Parse error: parse error, unexpected T_SL in c:\program files\easyphp\www\tutorial\eod.php on line 2 ?php $str = EOD Example of string spanning multiple lines using heredoc syntax. EOD; ? To be honest, there is nothing wrong. It works

Re: [PHP] using shell_exec

2002-09-02 Thread Erwin
Todd Pasley wrote: Use ; instead of | e.g. shell_exec(cd /change/to/dir; tar cvf /place/for/backup.tar files); Or, if you only want tar to execute after changing directories has succeeded, use instead of | e.g. shell_exec(cd /change/to/dir tar cvf /place/for/backup.tar files); Grtz

[PHP] dumping mysql database with php script

2002-09-02 Thread rdkurth
I am having a problem with a script to dump a mysql database to a text file. When I run the command below it creates the database.sql file but it only puts the first three lines in that file they look like this # MySQL dump 8.13 # # Host: localhostDatabase: testdata1

[PHP] Re: PHP checkbox/hidden field question

2002-09-02 Thread Erwin
I am executing the follwoing statement as part of a while loop. This is part of a form and I wish to pass the name and value of the checkbox as a hidden field only is the checkbox is checked. Can you suggest how I can accomplish this task? tdinput type=checkbox name=d_c_arr[] value=?php

Re: [PHP] dumping mysql database with php script

2002-09-02 Thread Petre Agenbag
put the exec(...) line OUTSIDE the while loop.As your codeis now, it's dumping with each new row , so i'ts overwriting itself. On Mon, 2002-09-02 at 09:47, [EMAIL PROTECTED] wrote: I am having a problem with a script to dump a mysql database to a text file. When I run the command below it

Re[2]: [PHP] dumping mysql database with php script

2002-09-02 Thread rdkurth
Hello Petre, There is more than one database to back up so every time it runs through the while loop it is suppose to back up the next database and it changes the name of the text file it is sending it to. I have already tried just doing one database without the while loop and I get the same

Re[2]: [PHP] dumping mysql database with php script

2002-09-02 Thread rdkurth
I figured it out it was a permission problem with database username and password Monday, September 02, 2002, 12:51:12 AM, you wrote: PA put the exec(...) line OUTSIDE the while loop.As your codeis now, it's PA dumping with each new row , so i'ts overwriting itself. PA On Mon, 2002-09-02 at

Re: [PHP] Re: unexpected T_SL

2002-09-02 Thread Steel
Hi Erwin, Monday, September 2, 2002, 11:28:09 AM, I've got: E Voisine wrote: Hi, What is wrong witht his code? Parse error: parse error, unexpected T_SL in c:\program files\easyphp\www\tutorial\eod.php on line 2 ?php $str = EOD Example of string spanning multiple lines using heredoc

[PHP] Imagemagick

2002-09-02 Thread Sascha Braun
Hi, I want to use Imagemagick together with PHP, but I'm not able to find some documentation for it. I've read, that some people are buildung an PHP Module for Imagemagick. And how is the --with-imagemagick command working, when I compile PHP? Is it possible to compile Imagemagick into PHP

[PHP] Am I just being stupid or something?

2002-09-02 Thread Francis
Ok whats going on here: echo Location: .$_SESSION[Project][location]; // above echo's Location: 0 if($_SESSION[Project][location] !=){ if (checkAccess(folder, $_SESSION[Project][location], create)){ newfile(); }else{ reportError(1, Access Denied); } }else{

[PHP] Re: str_replace question

2002-09-02 Thread Erwin
Hello, i have array $reserved_words which i want to replace with bold .. but when i tried to do str_replace($reserved_words, b.$reserved_words./b, $string) it showed Array instead of bword/b if i simply do str_replace($reserved_words, $reserved_words, $string) then it shows the words not

php-general Digest 2 Sep 2002 09:32:28 -0000 Issue 1561

2002-09-02 Thread php-general-digest-help
php-general Digest 2 Sep 2002 09:32:28 - Issue 1561 Topics (messages 114851 through 114887): dumping mysql database with php script 114851 by: rdkurth.starband.net 114879 by: rdkurth.starband.net 114881 by: Petre Agenbag 114882 by: rdkurth.starband.net

[PHP] Re: getimagesize with image in database

2002-09-02 Thread Erwin
Chaillan Nicolas wrote: Hi, There is no way to get the filesize of a file using a remote file. That's not true. GetImageSize works also on remote files. here's my code $imagesize = getimagesize(http://domain/image.jpg); echo $imagesize[3]; but it returns nothing. If I use a local file,

Re: [PHP] Q:Making an 'expired event' for sessions

2002-09-02 Thread Erwin
Mehran Ziadloo wrote: Hi Thanks for replying, There are some settings for sessions in php.ini but I can't find the thing that I'm looking for. It should exist, I mean isn't there any one who needs to know when the session has expired? Once again I ask my question: How to make a

[PHP] Re: turn off a warning with $GET_['var'];

2002-09-02 Thread Erwin
Peter Mr. Eps Thoenen wrote: Hello, trying to figure a way to turn off the following warning. doesn't seem to work neither does switch (isset($_GET['status'])){ Notice: Undefined index: status in E:\php\tt\index.php on line 6 switch ($_GET['status']){ try array_key_exists instead

[PHP] How to escape in hidden field?

2002-09-02 Thread Martin Thoma
Hello! I have a simple hidden input-field like INPUT TYPE=HIDDEN VALUE=Hello world NAME=Message Now sometimes I need to insert like: INPUT TYPE=HIDDEN VALUE=Hello \world\ NAME=Message But this makes PHP (or the browser?) cutting of the string after Hello . How can I escape the ? Martin --

[PHP] Re: posting form values doesn't work

2002-09-02 Thread Erwin
ØYstein HåLand wrote: This is my form: FORM NAME=answerform METHOD=POST Your name:BRINPUT TYPE=TEXT NAME=name SIZE=20 Group:BRINPUT TYPE=TEXT NAME=group SIZE=8nbsp;nbsp; INPUT TYPE=BUTTON VALUE= OK! onClick=Javascript:validate(this); /FORM and the function validate: function

[PHP] Re: How to escape in hidden field?

2002-09-02 Thread Erwin
Martin Thoma wrote: Hello! I have a simple hidden input-field like INPUT TYPE=HIDDEN VALUE=Hello world NAME=Message Now sometimes I need to insert like: INPUT TYPE=HIDDEN VALUE=Hello \world\ NAME=Message But this makes PHP (or the browser?) cutting of the string after Hello . How can I

[PHP] Re: How to escape in hidden field?

2002-09-02 Thread Martin Thoma
Using the htmlspecialchars() function, so that Hello \world\ will be written in pure HTML: Hello quot;worldquot; Thanx a lot! But how do I get it back to 'Hello world'? Do I have to do it manually? Martin -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] Re: How to escape in hidden field?

2002-09-02 Thread Steel
Hi Martin, Monday, September 2, 2002, 2:21:10 PM, ß ïîëó÷èë: Using the htmlspecialchars() function, so that Hello \world\ will be written in pure HTML: Hello quot;worldquot; MT Thanx a lot! But how do I get it back to 'Hello world'? Do I have to do it MT manually? MT Martin Yep. But you

[PHP] RE: PHP checkbox/hidden field question

2002-09-02 Thread Tim Ward
you need to define the key for checkbox arrays in order to distinguish them (as only the checked ones will be posted).. something like ... tdinput type=checkbox name=d_c_arr[?php echo($count++); ?]/td Tim Ward www.chessish.com -Original Message- From: Paul Maine [mailto:[EMAIL

[PHP] coockie expiration problems

2002-09-02 Thread andy
Hi there, I am trying to save a var inside a cookie for a certain time (in this example 10s): setcookie('referrer', $user_id, time()+10); //expires in one hour Now I would like to get the value, but only if the coockie is valid (if cockie not older than 10 s in this example) echo

[PHP] Re: Am I just being stupid or something?

2002-09-02 Thread nicos
Hi, Yes sometimes it is treated as null. You should reconsider your code and use empty() and not != . -- Merci de nous avoir choisi. - Thanks you for your choice. Nicos - CHAILLAN Nicolas [EMAIL PROTECTED] [EMAIL PROTECTED] www.GroupAKT.com - Hébergement Group. www.WorldAKT.com - Hébergement de

[PHP] Re: linking to secure ssl page using php and Microsoft Explorer - general error serviing up page from MSE... Netscape works fine

2002-09-02 Thread nicos
Hi, No, this has nothing to do to with us, call Microsoft or get Linux. -- Merci de nous avoir choisi. - Thanks you for your choice. Nicos - CHAILLAN Nicolas [EMAIL PROTECTED] [EMAIL PROTECTED] www.GroupAKT.com - Hébergement Group. www.WorldAKT.com - Hébergement de sites Internet Phplist [EMAIL

[PHP] Re: fopen() and flock()

2002-09-02 Thread nicos
Hi, You should use a while(!feof) syntax so that can verify that the file is not empty. You should also use $text = implode(,@file($filename)); Thats the easiest way to read a file. It will put each lines into an array and you will just implode it into a variable -- Merci de nous avoir

Re: [PHP] Re: How to escape in hidden field?

2002-09-02 Thread nicos
Hi, Its really stupid to use that command because there is not any function to come back to the real way. You should just addslashes() to it then remove them. -- Merci de nous avoir choisi. - Thanks you for your choice. Nicos - CHAILLAN Nicolas [EMAIL PROTECTED] [EMAIL PROTECTED]

[PHP] Re: coockie expiration problems

2002-09-02 Thread nicos
Hi, I see really nothing wrong in your example. Did you tried to verify with isset() if the cookie is still here or not? And well, you should use double quote on setcookie(referrer, $user_id, time()+10); You call should be also $_COOKIE['referrer'] and not $_COOKIE[referrer]. --

[PHP] Re: mail() again...

2002-09-02 Thread :B nerdy
what is recommended to use instead of mail() then? cheers Manuel Lemos [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Hello, On 09/01/2002 02:30 AM, Liam Mackenzie wrote: It seems nearly everyone has a problem with this function, probably because it

Re: [PHP] Re: How to escape in hidden field?

2002-09-02 Thread Martin Thoma
Hi, Its really stupid to use that command because there is not any function to come back to the real way. You should just addslashes() to it then remove them. Hi Nicos, unfortunalty, it doesn't work to use stripslashes: When using: INPUT TYPE=HIDDEN VALUE=Hello \world\ NAME=Message

[PHP] why is html code written like this? hr /

2002-09-02 Thread Victor
When I learned html it was always written like this: /hr now I see people write it like this: hr /... why? - Victor www.argilent.com __ Post your free ad now! http://personals.yahoo.ca -- PHP General Mailing List

Re: [PHP] why is html code written like this? hr /

2002-09-02 Thread Adrian Murphy
thats xhtml - it's xml comliant html. tags must be closed so a tag like hr which didn't have a closing tag is written hr / so,for example in php the nl2br() function now produces br / instead of the old br - Original Message - From: Victor [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent:

Re: [PHP] Re: PHP checkbox/hidden field question

2002-09-02 Thread Marek Kilimajer
You are wrong, this is from HTML 4.01 specification: value = /cdata/ cid:[EMAIL PROTECTED] [CA] cid:[EMAIL PROTECTED] This attribute specifies the initial value cid:[EMAIL PROTECTED] of the control. It is optional except when the type cid:[EMAIL PROTECTED] attribute has the value radio or

[PHP] Re: why is html code written like this? hr /

2002-09-02 Thread lallous
hr tag does not need a closing tag, therefore you don't write /hr. Now TAG NAME / tags are used to make the document compatible with XHTML, XML ... Victor [EMAIL PROTECTED] wrote in message 01c25272$357e6360$a3a96518@jumpy">news:01c25272$357e6360$a3a96518@jumpy... When I learned html

RE: [PHP] why is html code written like this? hr /

2002-09-02 Thread Victor
Ok, but is this kind of html compliant with old browsers like Netscape 4? Is it compliant with most new browsers? - Victor www.argilent.com -Original Message- From: Adrian Murphy [mailto:[EMAIL PROTECTED]] Sent: Monday, September 02, 2002 7:13 AM To: [EMAIL PROTECTED]; [EMAIL

[PHP] Re: mail() again...

2002-09-02 Thread Manuel Lemos
Hello, On 09/02/2002 07:59 AM, :B Nerdy wrote: what is recommended to use instead of mail() then? It depends on what is your problem. In most cases mail will do taking some care that may be platform dependent like the header line break issues that have to be \r\n under Windows but under Unix

RE: [PHP] Re: PHP checkbox/hidden field question

2002-09-02 Thread victor
Some check box info here too: http://www.experts-exchange.com/Web/Web_Languages/PHP/Q_20117420.html - Victor www.argilent.com -Original Message- From: Marek Kilimajer [mailto:[EMAIL PROTECTED]] Sent: Monday, September 02, 2002 7:24 AM To: PHP Subject: Re: [PHP] Re: PHP

[PHP] how do I send information to a php page from a menu list

2002-09-02 Thread Ivan Carey
Hello, how do I send information to a php page from a menu list? When a user selects an item from the list I would like to be able to send selcategoryid to faqbycat.php without the use of a submit button. Is it done by using the onChange event? if so how may this be done? The code I am using

[PHP] imagecreatetruecolor is slow

2002-09-02 Thread electroteque
hi i have compared imagecreatetruecolor,imagecopyresampled to imagecreate,imagecopyresized and it is really slow, anyway of optimising this ? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] why is html code written like this? hr /

2002-09-02 Thread Brian V Bonini
The entire point of xx / is backwards compatibility. Read the spec http://www.w3.org/TR/xhtml1/ -B -Original Message- From: Victor [mailto:[EMAIL PROTECTED]] Sent: Monday, September 02, 2002 7:35 AM To: 'Adrian Murphy'; [EMAIL PROTECTED] Subject: RE: [PHP] why is html code written

[PHP] Re: how do I send information to a php page from a menu list

2002-09-02 Thread lallous
Hello Ivan, select name=selcategoryid value=0 Don't set a value for that tag! echo option name=\selcategoryid\ value=\$faqcatsid\$faqcats/option; no need to name the option tag too, setting the value will be enough. when you submit your form, faqbycat.php will receive

[PHP] Drawing graphs

2002-09-02 Thread Ivens Porto
Hello, I need to draw graphs in PHP (bar graphs, pie graphs, line/dot graphs, etc.). I know I can do that using the image creation and manipulation functions, but I would like to use a library, or something, so I don't have to write all the low level manipulation code. Is there any graphs

Re: [PHP] Re: PHP checkbox/hidden field question

2002-09-02 Thread Erwin
Marek Kilimajer wrote: You are wrong, this is from HTML 4.01 specification: You're right. Thanks for your reply! Grtz Erwin -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Drawing graphs

2002-09-02 Thread John Wards
erm jgraph is what i use but for the life of me I cannot remeber the url Try searching for it on hotscripts.com or http://php.resourceindex.com/ John - Original Message - From: Ivens Porto [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, September 02, 2002 2:35 PM Subject:

[PHP] Re: how do I send information to a php page from a menu list

2002-09-02 Thread Erwin
Ivan Carey wrote: Hello, how do I send information to a php page from a menu list? When a user selects an item from the list I would like to be able to send selcategoryid to faqbycat.php without the use of a submit button. Is it done by using the onChange event? if so how may this be

[PHP] Anybody have a sucessfull use of ADO and php together ?

2002-09-02 Thread Saci
I tried to use , and have a lot of trouble. For example I can't read fields who is Date time type I can't read memo fields I can't update using the recordtset.updated methode. The only thing I haven't trouble is to show a read only set of characters rows Anybody know where I can find more

Re: [PHP] Drawing graphs

2002-09-02 Thread l0t3k
www.aditus.nu/jpgraph John Wards [EMAIL PROTECTED] wrote in message 028b01c25285$eca109e0$3100a8c0@JOHNCOMP">news:028b01c25285$eca109e0$3100a8c0@JOHNCOMP... erm jgraph is what i use but for the life of me I cannot remeber the url Try searching for it on hotscripts.com or

[PHP] Re: coockie expiration problems

2002-09-02 Thread andy
OK, I found the reason, but not the solution yet: The cookie time during setting is the time taken from the server. The time for checking the coockie is the time of the local machine!! So what can I do if I would like to last the coockie for 1 hour and the person is sitting on the other site of

[PHP] Forum structure

2002-09-02 Thread Andrian Ivanov
Hi, I'm looking for a developer who have worked already on some forums. I know each forum - depending on it's needs is differnt and then it changes it' structure. What I'm asking for is standart information about forum building. Not exact code, but tested db structure and php functionallity.

[PHP] Re: how do I send information to a php page from a menu list

2002-09-02 Thread Javier Montserat
different approach using JavaScript... script language=JavaScript // drop down redirect function doRedirect(value) { if ((value != ) || (value != 0)) { self.location=value; } else { alert('Please Make a Selection'); return false; } } //-- /script form select name=name

[PHP] Newbie Parse error

2002-09-02 Thread Chase Knott
I am sure that someone here can see somehting that I am too stupid to... Here is my error: Parse error: parse error, unexpected T_VARIABLE in send_contact_form.php on line 13 Here is the code for the page: ? $msg = E-Mail From MCV Contact Form\n; $msg .= Sender's Name: \t$sender.name\n;

[PHP] Re: Newbie Parse error

2002-09-02 Thread Erwin
I am sure that someone here can see somehting that I am too stupid to... Here is my error: Parse error: parse error, unexpected T_VARIABLE in send_contact_form.php on line 13 $subject = Message From MCV Contact Form Forgot a ;? HTH Erwin -- PHP General Mailing List

Re: [PHP] Newbie Parse error

2002-09-02 Thread John Wards
$subject = Message From MCV Contact Form you have missed out a ; on the above line use your eyes...:-) John - Original Message - From: Chase Knott [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, September 02, 2002 4:18 PM Subject: [PHP] Newbie Parse error I am sure that

[PHP] Re: Newbie Parse error

2002-09-02 Thread Chase Knott
Thank you... I knew it was something stupid, but I was too close to see it... Thank you!! Erwin wrote: I am sure that someone here can see somehting that I am too stupid to... Here is my error: Parse error: parse error, unexpected T_VARIABLE in send_contact_form.php on line 13 $subject =

RE: [PHP] Anybody have a sucessfull use of ADO and php together ?

2002-09-02 Thread Richard Black
I don't know anything about Visual Foxpro, so I may be barking up the wrong tree here, but... Is there anyway you can use ODBC??? The ODBC functions work pretty well. HTH, Richy == Richard Black Systems Programmer, DataVisibility Ltd -

Re: [PHP] Newbie Parse error

2002-09-02 Thread Chase Knott
Maybe you can help me with YOUR eyes again... Now I am getting this error... Parse error: parse error, unexpected '' in send_contact_form.php on line 18 This will be around the html line... John Wards wrote: $subject = Message From MCV Contact Form you have missed out a ; on the above

Re: [PHP] Newbie Parse error

2002-09-02 Thread Chase Knott
I thank you... I love these newsgroups, but I tend to feel REALLY stupid when the answer comes... Thanks again! Chase [EMAIL PROTECTED] wrote: You have forgotten a ? before your HTML starts. / Martin Citat Chase Knott [EMAIL PROTECTED]: Maybe you can help me with YOUR eyes

Re: [PHP] Anybody have a sucessfull use of ADO and php together ?

2002-09-02 Thread Saci
Could you please show-me a sample of php code with ODBC to get a data field and a blob field (Memo) ? ODBC and ADO are the very similar , and have both the same problems with php. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: posting form values doesn't work

2002-09-02 Thread Øystein Håland
Yes, you were right. Now a natural question. WHY? I don't understand your explanation, since I thought it was equal, getting a field value using document.answerform.name.value in javascript AND the variable $name in php. I still use php in the location.href-part (it is as follows, the other was

[PHP] SNMP Support Problem

2002-09-02 Thread Xfabius
Hi all, I have a problem with use of snmp functions of php. I have compiled UCD binaries and PHP for support snmp functions ( steps by PHP.NET ) but i always receive this error : Fatal error: Call to undefined function: snmpwalk() ... ... and this for all snmp functions. Where i can get

[PHP] empty php.ini

2002-09-02 Thread timo stamm
Hi, I am new to PHP. I am running the module version 4.2.2 from Marc Lyanage (entropy.ch) on OS X 10.1 and noticed that my /usr/local/lib/php.ini is empty!? Is there a way -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] mailing a cookiecontent

2002-09-02 Thread Øystein Håland
Here's what I wanna do: On the first page I collect a lot of formfield values into a cookie. On the next page I display the content of this cookie. This works. What I even want to do is mailing the cookie content in the same time I submit the forms in the first page (or, when the new page loads).

[PHP] Re: header()-question

2002-09-02 Thread nicos
Dont use a directory but an url like header(Location: http://www.php.net;); -- Merci de nous avoir choisi. - Thanks you for your choice. Nicos - CHAILLAN Nicolas [EMAIL PROTECTED] [EMAIL PROTECTED] www.GroupAKT.com - Hébergement Group. www.WorldAKT.com - Hébergement de sites Internet ØYstein

[PHP] Safe_Mode problem....

2002-09-02 Thread Jim Hatridge
HI all... I'm trying to use exec and unlink in one of my PHP programs. Here is the code: if (exec ('euro-update.program')) { $result = mysql_query(load data local infile 'euroAUD1.txt' into table Money_AUD) or die (AUD Load did not work.);

[PHP] Printing ASCII on Linux Server

2002-09-02 Thread Mingshuo Lin
I am trying to printout some ASCII Text (using LPR, script see below) to a IBM Proprinter compatible dot-matrix printer, on a server running Linux. Printing works fine, however 2 problems: 1. linefeed (\n) doesn't work 2. escape sequences to print BOLD, ITALIC, UNDERLINE, NARROW don't work

[PHP] Re: unexpected T_SL

2002-09-02 Thread Voisine
Your lucky :) because I'm using the same version and I have this parse error. Erwin wrote: Voisine wrote: Hi, What is wrong witht his code? Parse error: parse error, unexpected T_SL in c:\program files\easyphp\www\tutorial\eod.php on line 2 ?php $str = EOD Example of string

[PHP] problems with cookies

2002-09-02 Thread skitum
Hi all, I'm using a cookie like this: setcookie(cookiename1,$domin,timeset()+1800); at the top of my script. $domin is a text field that belongs to a post form. This form is in function one(); well, i try use $domin in function two(); writing $_COOKIE['cookiename1']; Here you are the code: ?

RE: [PHP] mailing a cookiecontent

2002-09-02 Thread Dave [Hawk-Systems]
Here's what I wanna do: On the first page I collect a lot of formfield values into a cookie. On the next page I display the content of this cookie. This works. What I even want to do is mailing the cookie content in the same time I submit the forms in the first page (or, when the new page loads).

RE: [PHP] Re: unexpected T_SL

2002-09-02 Thread Todd Pasley
Hiya, There are two reasons that I can pick up that you may be experiencing this area: 1) You are not using PHP4 or later 2) you are using windoze and. Probably the nastiest gotcha is that there may also not be a carriage return (\r) at the end of the line, only a form feed, AKA newline

Re: [PHP] Re: unexpected T_SL

2002-09-02 Thread Chris Hewitt
Voisine wrote: Hi, What is wrong witht his code? Parse error: parse error, unexpected T_SL in c:\program files\easyphp\www\tutorial\eod.php on line 2 ?php $str = EOD Example of string spanning multiple lines using heredoc syntax. EOD; ? Assuming your line 2 is the one with EOD in it, I can

Re: [PHP] Safe_Mode problem....

2002-09-02 Thread Chris Hewitt
Jim Hatridge wrote: Can someone give me an idea what next to do? Either how to turn off safe_mode or a work around on the code. BTW I'm using SuSE 8.0, PHP, and Mysql on a self-made PI/233. Jim, If you have changed safe_mode in php.ini and phpinfo() still reports it as on, then I would

Re: [PHP] Printing ASCII on Linux Server

2002-09-02 Thread Chris Hewitt
Mingshuo Lin wrote: I am trying to printout some ASCII Text (using LPR, script see below) to a IBM Proprinter compatible dot-matrix printer, on a server running Linux. Printing works fine, however 2 problems: 1. linefeed (\n) doesn't work 2. escape sequences to print BOLD, ITALIC, UNDERLINE,

Re: [PHP] Newbie Parse error

2002-09-02 Thread eriol
Use a closing ? php tag before writing your html and after your mail() function.. Also, in your first $mailheaders variable, you may want to add a : after From.. HTH.. Take care.. peace.. eriol Chase Knott [EMAIL PROTECTED] disgorged: : Maybe you can help me with YOUR eyes again... Now

Re: [PHP] empty php.ini

2002-09-02 Thread David Rice
Hi Timo: From Marc's site: Where is the php.ini file? There is none included in the package. If you need one, just create it as /usr/local/lib/php.ini, including the intermediate lib directory if that doesn't exist already: sudo mkdir -p /usr/local/lib sudo touch /usr/local/lib/php.ini

[PHP] Upload

2002-09-02 Thread mhe
I have a form where i upload files. When I was using windows there was no problem, now I have switched to Linux, and I cannot upload anymore. The form simply does not pass any of the variables on. If i remove enctype=multipart/form-data from the form tag, then the variables are passed. Does

[PHP] Re: header()-question

2002-09-02 Thread Øystein Håland
[EMAIL PROTECTED] skrev i meddelandet [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Dont use a directory but an url like header(Location: http://www.php.net;); Thanks, that made it work. But now comes the next problem. When finshed logging in login.php is reloaded with a confirmation text

[PHP] COM and Word, how?

2002-09-02 Thread Michelle
I am new to COM and tried an example today (See bottom of post) When I execute the code, I get is an error message and if I look in the Task Manager, there is a WINWORD.EXE process running, which I can't end. Every time I reload the page, a new winword is started... How should PHP.ini be set

Re: [PHP] Upload

2002-09-02 Thread mhe
Thank you very much, actually I had already changes that setting, but did not restart apache. Under windows, if I remember correctly, I did not have to worry about apache if I changed something in php.ini, but aperently I there is a connection under linux. Why the difference? /mhe Citat Juan

Re: [PHP] mailing a cookiecontent

2002-09-02 Thread Øystein Håland
Nope, the cookie is a multivalue cookie (the values from several fields (30-40). The cookiestr is the formatted cookievalue (formatted with numbers and \n) Dave [EMAIL PROTECTED] skrev i meddelandet [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Here's what I wanna do: On the first page I

[PHP] help, array values echoed as Array on loop!

2002-09-02 Thread Victor
I have tried both ways to loop through an array and output the data and verify that the array is an array and I get no erros but I get this value, which should not be so. Here I'm checking if it's an array: if (!is_array($ID_arr)) { # show error if no array echo '$ID_arr is not an array.'; }

[PHP] Re: Upload

2002-09-02 Thread nicos
are you using global vars? like $file or you use new var like $_FILES? -- Merci de nous avoir choisi. - Thanks you for your choice. Nicos - CHAILLAN Nicolas [EMAIL PROTECTED] [EMAIL PROTECTED] www.GroupAKT.com - Hébergement Group. www.WorldAKT.com - Hébergement de sites Internet [EMAIL

Re: [PHP] help, array values echoed as Array on loop!

2002-09-02 Thread Chris Wesley
On Mon, 2 Sep 2002, Victor wrote: $ID_arr[] = explode(',', $pictures); # make db data into array This is the string: 15,16,17,18,19 why does it echo as Array? ... because you've created an array ($ID_arr) with an array as the first value (the result of the call to explode()). Take the

Re: [PHP] problems with cookies

2002-09-02 Thread Chris Wesley
A couple problems may exist: 1) If you're trying to do this all in the same script, it's not going to work. You can't set a cookie and use it (with the value you've just set) in the same script (in the same request). You can only use cookies that have been sent back to your script from

Re: [PHP] empty php.ini

2002-09-02 Thread Chris Wesley
On Mon, 2 Sep 2002, timo stamm wrote: I am new to PHP. I am running the module version 4.2.2 from Marc Lyanage (entropy.ch) on OS X 10.1 and noticed that my /usr/local/lib/php.ini is empty!? ... that package doesn't ship with a php.ini. You'll have to get/make your own. Is there a way

[PHP] Why doesn't the second instance work?

2002-09-02 Thread Michael Knauf
I'm creating a list/menu form item and populating it from a database,=20 the code snippet looks like this: ? $db_name =3D dbname; $table_name =3D endpage; $connection =3D mysql_connect(localhost, test, test) or=20 die(Couldn't connect.); $db =3D mysql_select_db($db_name, $connection) or

[PHP] crontab programmed with mysql ??

2002-09-02 Thread admin
I'm looking for the approximate solution of mailing out (or doing anything else ) timed by cron(tab) along with use of mysql as means of identification and storing of the dates in multiuser enviroment. Initial date and interval of recurring event is to be set up by a user. May you know some open

RE: [PHP] help, array values echoed as Array on loop!

2002-09-02 Thread Victor
Thank you, I figured it out 30 seconds after I posted the question, you were right about the problem. - Victor www.argilent.com -Original Message- From: Chris Wesley [mailto:[EMAIL PROTECTED]] Sent: Monday, September 02, 2002 4:11 PM To: 'PHP' Cc: Victor Subject: Re: [PHP] help, array

Re: [PHP] How to escape in hidden field?

2002-09-02 Thread Tom Rogers
Hi, Monday, September 2, 2002, 7:59:43 PM, you wrote: MT Hello! MT I have a simple hidden input-field like MT INPUT TYPE=HIDDEN VALUE=Hello world NAME=Message MT Now sometimes I need to insert like: MT INPUT TYPE=HIDDEN VALUE=Hello \world\ NAME=Message MT But this makes PHP (or the browser?)

RE: [PHP] How to escape in hidden field?

2002-09-02 Thread Martin Towell
Hi Martin You can also do this INPUT TYPE=HIDDEN VALUE=Hello quot;world NAME=Message HTH Martin :) -Original Message- From: Tom Rogers [mailto:[EMAIL PROTECTED]] Sent: Tuesday, September 03, 2002 11:24 AM To: Martin Thoma Cc: [EMAIL PROTECTED] Subject: Re: [PHP] How to escape in

[PHP] ftp question

2002-09-02 Thread Victor
I took the scriopt from php manual and adapted it to my needs, but I get an error: Warning: ftp_put(): user_pictures/vic/: No such file or directory in /home/victor/argilent-www/sites/kodak/upload_picture.php on line 103 This is the code: # set up basic connection $conn_id =

Re: [PHP] Why doesn't the second instance work?

2002-09-02 Thread Tom Rogers
Hi, Tuesday, September 3, 2002, 6:49:25 AM, you wrote: MK Everything is good, Everything is fine, so I decide to put the same=20 MK snippet of code in again, this time pointing to a different page -- MK One=20= MK page lets you edit the fields, the other shows you the final output,=20 MK the

[PHP] Re: crontab programmed with mysql ??

2002-09-02 Thread nicos
Take that to the correct newsgroup. -- Merci de nous avoir choisi. - Thanks you for your choice. Nicos - CHAILLAN Nicolas [EMAIL PROTECTED] [EMAIL PROTECTED] www.GroupAKT.com - Hebergement Group. www.WorldAKT.com - Hebergement de sites Internet [EMAIL PROTECTED] a ecrit dans le message de news:

Re: [PHP] crontab programmed with mysql ??

2002-09-02 Thread Tom Rogers
Hi, Tuesday, September 3, 2002, 7:55:56 AM, you wrote: aac I'm looking for the approximate solution of mailing out (or doing anything aac else ) aac timed by cron(tab) along with use of mysql as means of identification and aac storing aac of the dates in multiuser enviroment. aac Initial date

[PHP] Re: ftp question

2002-09-02 Thread nicos
Hi, Your script upload the file to /home/victor/argilent-www/sites/kodak/user_pictures/vic/ are you sure that is the correct path name? If its not, just put the entier name and not only a part of it. -- Merci de nous avoir choisi. - Thanks you for your choice. Nicos - CHAILLAN Nicolas [EMAIL

RE: [PHP] Re: ftp question

2002-09-02 Thread victor
Actually, that is the correct path. Which is why I don't understand why it's not working. And as a user I'm using myself... waitaminute, the folders are created by the user www, and I argilent may not have write permission, maybe that's why it's not working. I should try with a folder I create as

Re: [PHP] Re: coockie expiration problems

2002-09-02 Thread Tom Rogers
Hi, Tuesday, September 3, 2002, 12:53:22 AM, you wrote: a OK, I found the reason, but not the solution yet: a The cookie time during setting is the time taken from the server. The time a for checking the coockie is the time of the local machine!! a So what can I do if I would like to last the

Re: [PHP] Forum structure

2002-09-02 Thread Justin French
Hi Andrian, I built a forum from scratch, because I had very specific needs on how it would work... different to everything I've seen so far. Sorry to say it though, the underlying table structure IS determined by the way you want it to work. If you're after something stock-standard, I'd

RE: [PHP] mail() function problem

2002-09-02 Thread Akhmad D. Sembiring
Dear Arul friends, thanks for your kind helps, but the problem still exists. the actual problem is that the 2nd mail() function does not ever send the mail, no matter what the destination and the additional header is. is there a way to debug this problem? thanks Daniel # -Original

Re: [PHP] mail() function problem

2002-09-02 Thread Manuel Lemos
Hello, On 09/03/2002 12:19 AM, Akhmad D. Sembiring wrote: Dear Arul friends, thanks for your kind helps, but the problem still exists. the actual problem is that the 2nd mail() function does not ever send the mail, no matter what the destination and the additional header is. is

RE: [PHP] mail() function problem

2002-09-02 Thread Akhmad D. Sembiring
# On 09/03/2002 12:19 AM, Akhmad D. Sembiring wrote: # Dear Arul friends, # # thanks for your kind helps, # but the problem still exists. # # the actual problem is that the 2nd mail() function # does not ever send the mail, no matter what the destination # and the additional

Re: [PHP] mail() function problem

2002-09-02 Thread Manuel Lemos
Hello, On 09/03/2002 12:38 AM, Akhmad D. Sembiring wrote: # thanks for your kind helps, # but the problem still exists. # # the actual problem is that the 2nd mail() function # does not ever send the mail, no matter what the destination # and the additional header is. #

  1   2   >