[PHP] Foreach Array Help

2003-10-13 Thread Jed R. Brubaker
Okay, total newbie when it comes to arrays, and I could really use some help. I sure this will be an easy one for you veterans out there. Here is the array ($code): array(2) { ["total"]=> int(1) ["assign"]=> array(1) { [1]=> array(3) { ["type"]=> string(10) "Transcript"

Re: [PHP] Slow searches in large database

2003-10-13 Thread Rory McKinley
Hi Adrian Somewhere in the back of my mind..I remember reading that if you are using LIKE putting in wildcards for and aft e.g %string% slows down queries somewhat I will have a look at my mySQL stuff and see if I can confirm...but if I recall correctly, is there any way you can do away with o

Re: [PHP] what is the best PHP editor?

2003-10-13 Thread Davy Obdam
Zend Studio is definatly my choice-), sometimes i use EditPlus too, to edit html/css/javascript, but all my PHP coding is done in zend studio. Best regards, Davy Jonathan Villa wrote: What's the matter? No one likes Zend Studio? On Mon, 2003-10-13 at 12:00, Chris Boget wrote: I currently

Re: [PHP] Passing variables between pages

2003-10-13 Thread John Nichel
Rashini Jayasinghe wrote: Hi, I want to pass a variable between three pages. I tried to get a username from the first page through a form. Use that username in a select statement in the second page to query a table.Everything is fine up to that point. now I want to pass the same username to the th

Re: [PHP] Passing variables between pages

2003-10-13 Thread Raditha Dissanayake
Hi, You need to use sessions. Please refer session handling functions in the manual. Having said that it's a bad idea to put username in a session. You need to have some kind of association between session ids and username's in app. The most common way this is done is with a two column table.

[PHP] Passing variables between pages

2003-10-13 Thread Rashini Jayasinghe
Hi, I want to pass a variable between three pages. I tried to get a username from the first page through a form. Use that username in a select statement in the second page to query a table.Everything is fine up to that point. now I want to pass the same username to the third page where I have

Re: [PHP] (newbie) How to keep files ?

2003-10-13 Thread Mohamed Lrhazi
Your question is not clear enough Who are you trying to protect your files from? All of you files must be accessible to the web server and to yourself, via ftp or ssh or sth. your php script needs the mysql login info... where would it find them, if not hard coded in the script, or in a file

Re: [PHP] \n \t don't work!!!

2003-10-13 Thread Chris Shiflett
--- Eugene Lee <[EMAIL PROTECTED]> wrote: > Note that nl2br() is XHTML compliant, which means it sends out > "" tags instead of "" tags. This is a problem on > browsers that do poorly with mixed HTML and XHTML tag styles in the > same body content. Which browsers does this refer to? Chris =

Re[2]: [PHP] php variable

2003-10-13 Thread Tom Rogers
Hi, Tuesday, October 14, 2003, 12:42:18 AM, you wrote: OK> Jay Blanchard wrote: >> [snip] >> $var=¨How are you¨; >> THE PROBLEM IS THAT I ALSO WANT TO USE $VAR IN SCRIPTTWO. >> [/snip] >> >> Pleace $var in a hidden form element. OK> I tried... something like this OK> value=¨¨> OK> but it does

[PHP] Re: php convert html to pdf

2003-10-13 Thread hycn office
but i cant install html2ps and fpdf cant convert , need to build from scratch i think only solution is need to setup a server no choice thanks ~ "Scott Fletcher" <[EMAIL PROTECTED]> ¦b¶l¥ó news:[EMAIL PROTECTED] ¤¤¼¶¼g... > Hey, Hey, Hey, found it on the Internet on converting HTML to PDF.

[PHP] (newbie) How to keep files ?

2003-10-13 Thread Sudheer Palaparambil
Hi, I have a few gif files and five php files and using mysql database and planning a shared hosting. The web contents are static. How should I keep the files in my web space? Should I restrict access to the php files? How do I safeguard my mysql login parameters (which I hard coded in the php f

Re: [PHP] Slow searches in large database

2003-10-13 Thread Miles Thompson
Start by checking the MySQL docs to find out if indexes are used with "IN" and "LIKE" especially as the latter is using wildcards. I suspect not. Given that you are essentially performing a sequential read of the database and checking on all these fields your performance is remarkably good. So

RE: [PHP] Slow searches in large database

2003-10-13 Thread Chris W. Parker
Adrian Teasdale on Monday, October 13, 2003 3:54 PM said: > An example of one of our search strings is: [snip] > Basically, is there anything that anyone can immediately suggest that > we need to do to speed things up? 1. You could try changing 'docs.*' to a verbo

[PHP] Slow searches in large database

2003-10-13 Thread Adrian Teasdale
Hi there Wondering if someone could help or give some advice. We have a mysql database that has approximately 20,000 records and has a total size of 125mb There are approximately 25 fields that we need to search each time that someone performs a search. We have installed TurckMMCache onto the s

RE: [PHP] header() function for displaying an opened PDF document.

2003-10-13 Thread Bertrand Moulard
now that I'm rethinking of it, I solved the problem by using the brilliant python program tcpwatch, which logs all the http data going in and out your browser. Very easy to run and so handy (not only for this problem). Would find the url for dld if you want. cheers .b -Original Message-

RE: [PHP] header() function for displaying an opened PDF document.

2003-10-13 Thread Bertrand Moulard
Might not be connected at all, but I had a similar problem with pdf stored in a postgreSQL database as large object. The content type was set to pdf, but ie wouldn't open it. It turned up that it was because there was a CRLF at the end of one of my script, which spoiled the whole output. Pretty dum

[PHP] Re: header() function for displaying an opened PDF document.

2003-10-13 Thread Kevin Stone
I'm sorry but it can't be done. You cannot output a file without printing it to the output buffer. You cannot print a file to the output buffer without opening the file into memory. You cannot open a file into memory without using a function like fopen() or readfile(). It's as simple as that

[PHP] Re: php convert html to pdf

2003-10-13 Thread Scott Fletcher
Hey, Hey, Hey, found it on the Internet on converting HTML to PDF. Take a look at this at http://www.rustyparts.com/pdf.php "Hycn Office" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > hi all ~ > > where can find the free of charge complete script ? > > remarks : i am using web h

[PHP] Re: header() function for displaying an opened PDF document.

2003-10-13 Thread Scott Fletcher
I can't do readfile() because of lots of bug in IE (Internet Explorer) "Kevin Stone" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Forget the content length and disposition headers. Just set the content type then output the file.. > > header("Content-type: application/pdf"); >

[PHP] Re: Problem with session_destroy() don't work

2003-10-13 Thread Scott Fletcher
session_destroy() don't work too well with IE (Internet Explorer) due to bunch of bugs that IE have. That is if you are using IE to test this "Kostas" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hi, > I have a problem with destroing a session. > I have made a login page and

[PHP] Re: php convert html to pdf

2003-10-13 Thread Scott Fletcher
I'm not aware of any such feature that would convert the HTML to PHP. You can use the FPDF library to generate a PDF stuffs without installing or compiling or anything of thsoe sort. You can find it at www.fpdf.org. It is free and it is pretty nice. Scott F. "Hycn Office" <[EMAIL PROTECTED]> w

Re: [PHP] Restarting Apache without screwing up running scripts?

2003-10-13 Thread Scott Fletcher
Wow! I didn't know that. I have been using apachectl restart all the time. Now I feel better that this feature will allow Apache to be running until people logged off of the website (by the mean of terminating the apache connection) Thanks!!! "Marek Kilimajer" <[EMAIL PROTECTED]> wrote in m

Re: [PHP] php variable

2003-10-13 Thread Scott Fletcher
Page 1 Page 2 echo $_REQUEST['var2']; //or echo $_POST['var2']; //== //Sometime noticed some glitch with $_POST because sometime PHP think the data go to $_GET... //So, to prevent future headache, I use $_REQUEST['var2'] at all time... //== Scott "Comex" <[EMAIL PROTECTED]>

Re: [PHP] php variable

2003-10-13 Thread Scott Fletcher
Should also work if you use the POST method... "Comex" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > <[EMAIL PROTECTED]> > Onno Kuipers: > > Jay Blanchard wrote: > >> [snip] > >> $var=¨How are you¨; > >> THE PROBLEM IS THAT I ALSO WANT TO USE $VAR IN SCRIPTTWO. > >> [/snip] > >> >

[PHP] Re: header() function for displaying an opened PDF document.

2003-10-13 Thread Kevin Stone
Forget the content length and disposition headers. Just set the content type then output the file.. header("Content-type: application/pdf"); readfile("junk.pdf"); - Kevin "Scott Fletcher" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > I seem to be having problem with sending the

Re: [PHP] Re: what is the best PHP editor?

2003-10-13 Thread Scott Fletcher
Yea, I tried it from before and it seem to be somewhat limit. The only good thing about it is that with each of the newer version, it get better and better. I have been sticking to Visual Slick Edit along the way. It would have been nice if it can transfer files between two webservers if this is

Re: [PHP] what is the best PHP editor?

2003-10-13 Thread Jonathan Villa
What's the matter? No one likes Zend Studio? On Mon, 2003-10-13 at 12:00, Chris Boget wrote: > > I currently use EditPlus - and like it -- is there anything else out there > > that is better and still reasonably priced. > > I am not sure what you would consider reasonably priced, but the best >

[PHP] header() function for displaying an opened PDF document.

2003-10-13 Thread Scott Fletcher
I seem to be having problem with sending the PDF document to the browser to be open on screen. I kept getting the error message, it say 'Windows cannot open this file'. Here's my sample script, so what am I doing wrong?... --snip-- header("Content-Type: application/pdf"); header("Content

Re: [PHP] Re: what is the best PHP editor?

2003-10-13 Thread Rob Adams
I actually tried this a while ago, and must've had a really early version. It showed a lot of promise, but there were too many problems, and the error text was mostly German, so I couldn't tell what was wrong or how to fix it. I'll have to give it another shot now. -- Rob "Daniel Guerrier" <[

Re: [PHP] provide flag -X when connecting to mysql

2003-10-13 Thread Marek Kilimajer
No, I haven't used any, but search www.phpclasses.org and choose the one with the best rating. Victor Spång Arthursson wrote: 2003-10-13 kl. 16.39 skrev Marek Kilimajer: No, it is not. But there are plenty of classes that can do it for you. Can you recommend any? Sincerely Victor -- PH

Re: [PHP] what is the best PHP editor?

2003-10-13 Thread Chris Boget
> Hey Chris, > After reading your post I too downloaded SlickEdit...I personally use a mix > of Zend and EditPlus > Just opened slickEdit and it seems a bit complicated but more java > oriented...mind telling me why you have such a preference for this? It's actually C/C++/Java oriented. But y

Re: [PHP] Re: what is the best PHP editor?

2003-10-13 Thread Daniel Guerrier
http://www.phpedit.net It's good. How good, is up to you. --- Rob Adams <[EMAIL PROTECTED]> wrote: > I like EditPlus too, but recently I've been using > UltraEdit. > http://www.ultraedit.com/ > $35 registration. Has great column mode support. I > use the macros and > templates all the time. Ha

Re: [PHP] FTP resumepos

2003-10-13 Thread Curt Zirzow
* Thus wrote Andrei Popovici ([EMAIL PROTECTED]): > Can anyone help me understand how the parameter resumepos from ftp_get > function can be used? ftp_get will first seek the value 'resumepos' within the 'remote_file', before it starts to write to 'local_file'. Curt -- "My PHP key is worn out"

Re: [PHP] what is the best PHP editor?

2003-10-13 Thread Ryan A
Hey Chris, After reading your post I too downloaded SlickEdit...I personally use a mix of Zend and EditPlus Just opened slickEdit and it seems a bit complicated but more java oriented...mind telling me why you have such a preference for this? Cheers, -Ryan A http://bestwebhosters.com > I a

Re: [PHP] provide flag -X when connecting to mysql

2003-10-13 Thread Victor Spång Arthursson
2003-10-13 kl. 16.39 skrev Marek Kilimajer: No, it is not. But there are plenty of classes that can do it for you. Can you recommend any? Sincerely Victor -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] FTP Errors

2003-10-13 Thread Ian
Hi, I was wondering if anyone knew how to retrieve connection error information when using FTP in php? By this I mean, when connecting to a ftp server that is full, ftp_connect just returns FALSE, and not the 421 error returned by the server. FALSE is also the response given when attempting to c

[PHP] OT project

2003-10-13 Thread Didier McGillis
I'm starting a pretty involved project and would like to get some help lookin for 1 php/sql/linux person and 1 database person for some assistance. will answer/talk about the project off list with those interested. compensation available. serious inquires only. __

[PHP] PHP Journals and Magazined

2003-10-13 Thread Karam Chand
Hello I just shifted to PHP from ASP and I am impressed. I have a query though - Apart from sites like phpbuilder.com etc. which is the most read English magazines read by PHP developers. I know PHP Arch..nebody reading something else...just querying...might subscribe to one of them. Karam

[PHP] FTP resumepos

2003-10-13 Thread Andrei Popovici
Can anyone help me understand how the parameter resumepos from ftp_get function can be used? Thanks. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: what is the best PHP editor?

2003-10-13 Thread Rob Adams
I like EditPlus too, but recently I've been using UltraEdit. http://www.ultraedit.com/ $35 registration. Has great column mode support. I use the macros and templates all the time. Has a word file for PHP. -- Rob "Dougd" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > I curre

RE: [PHP] what is the best PHP editor?

2003-10-13 Thread Chris W. Parker
Chris Boget on Monday, October 13, 2003 10:00 AM said: > I am not sure what you would consider reasonably priced, but the best > editor I've come across is Visual Slick Edit. Bar none, the best and > most feature rich editor I've come across in the last few years.

Re: [PHP] php variable

2003-10-13 Thread Comex
<[EMAIL PROTECTED]> Onno Kuipers: > Jay Blanchard wrote: >> [snip] >> $var=¨How are you¨; >> THE PROBLEM IS THAT I ALSO WANT TO USE $VAR IN SCRIPTTWO. >> [/snip] >> >> Pleace $var in a hidden form element. > > I tried... something like this > > value=¨¨> > > but it doesn't work. Maybe you mean som

Re: [PHP] mail() php in message

2003-10-13 Thread Manuel Lemos
Hello, On 10/13/2003 06:13 AM, Onno Kuipers wrote: My server runs PHP and Mysql. Normaly I can put some php in my .php-files wich will create a html file for the clients. (you all know this of course). My question now is: How can I put that html (created with PHP) in the message off the mail.

[PHP] Re: Yes!!! BTML v1.0 is here!!!

2003-10-13 Thread Comex
\s*(.*?)\s*!is"); preg_match_all($tag_match, $filedata, $matches); for ($i=0; $i< count($matches[0]); $i++) { $tagname = $matches[1][$i]; $tag['tagname'] = $tagname; $tag['value'] = $matches[2][$i]; $tags[] = $tag; } return $tags; } $filename = $_GET['name']; $bttags = parseTags($filen

Re: [PHP] what is the best PHP editor?

2003-10-13 Thread Chris Boget
> I currently use EditPlus - and like it -- is there anything else out there > that is better and still reasonably priced. I am not sure what you would consider reasonably priced, but the best editor I've come across is Visual Slick Edit. Bar none, the best and most feature rich editor I've come

[PHP] what is the best PHP editor?

2003-10-13 Thread DougD
I currently use EditPlus - and like it -- is there anything else out there that is better and still reasonably priced. Thanks. -Doug -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Exec() wont run program

2003-10-13 Thread steve
Curt Zirzow wrote: What is gedit? it looks like the gnu text editor command. most X applications wont run from the webserver in most cases. Curt, I'm trying to understand why most X applications wont run from the webserver in most cases. If nothing else, you should at least be able to run a sh

Re: [PHP] mail() php in message

2003-10-13 Thread Marek Kilimajer
Onno Kuipers wrote: thanx a lot! I think this will help. . oops works only with PHP 4... and I ... euh PHP3.. Is there another method to do this before I even think of upgrading? You can write your own. But I would upgrade. -- PHP General Mailing List (http://www.php.n

RE: [PHP] PNG to GIF conversion

2003-10-13 Thread Howard Cohodas
If you are still looking for an on-the-fly GIF encoder for PHP in a windows environment, let me know. Howard -Original Message- From: John Ryan [mailto:[EMAIL PROTECTED] Sent: Saturday, October 11, 2003 4:50 PM To: [EMAIL PROTECTED] Subject: [PHP] PNG to GIF conversion How do I do this?

[PHP] Re: Yes!!! BTML v1.0 is here!!!

2003-10-13 Thread Bas
Yes, i think that you want to know the structure of the BTML-file: Title of the page Here any valid HTML-MARKUP Path to a image This is the structure of a BTML file. I hope that you have improvements. If this changes the structure, post or email me the new structure also.(double check f

Re: [PHP] Restarting Apache without screwing up running scripts?

2003-10-13 Thread Marek Kilimajer
This command automatically checks the configuration files via configtest before initiating the restart to make sure Apache doesn't die. So it is not necessery. Curt Zirzow wrote: * Thus wrote Marek Kilimajer ([EMAIL PROTECTED]): # apachectl graceful Its also wise to run a 'configtest' # ap

[PHP] Yes!!! BTML v1.0 is here!!!

2003-10-13 Thread Bas
It is freely avialable!!! Here is the sourcecode: 2 files are used to parse: read-tags.php --- \s*(.*?)\s*!is"; preg_match_all($tag_match, $filedata, $matches); for ($i=0; $i< count($matches[0]); $i++) { $tagname = $matches[1][$i]; $tags[$tagname] = $matches[2][$i]; } return $tag

Re: [PHP] php variable

2003-10-13 Thread Onno Kuipers
Jay Blanchard wrote: [snip] $var=¨How are you¨; THE PROBLEM IS THAT I ALSO WANT TO USE $VAR IN SCRIPTTWO. [/snip] Pleace $var in a hidden form element. I tried... something like this ¨> but it doesn't work. Maybe you mean something totaly different, can you show me what you mean. -- PHP General

Re: [PHP] php variable

2003-10-13 Thread Marek Kilimajer
Read about sessions in the manual. Onno Kuipers wrote: Hello, If i set a variabele in lets say 'script one'. When i jump into 'script two', is there a way (without cookies) to read the variable set in 'script one' Like: SCRIPTONE.PHP: $var=¨How are you¨; ?> name: SCR

Re: [PHP] provide flag -X when connecting to mysql

2003-10-13 Thread Marek Kilimajer
No, it is not. But there are plenty of classes that can do it for you. Victor Spång Arthursson wrote: Using the command line client when connecting to mysql makes it possible to provide the flag "-X" to get the result as XML directly from mysql. What I wonder is if its possible in some way to p

RE: [PHP] php variable

2003-10-13 Thread Jay Blanchard
[snip] $var=¨How are you¨; THE PROBLEM IS THAT I ALSO WANT TO USE $VAR IN SCRIPTTWO. [/snip] Pleace $var in a hidden form element. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Restarting Apache without screwing up running scripts?

2003-10-13 Thread Curt Zirzow
* Thus wrote Marek Kilimajer ([EMAIL PROTECTED]): > # apachectl graceful Its also wise to run a 'configtest' # apachectl configtest It is a bummer if apache doesn't restart cause there is something wrong with the config. Curt -- "My PHP key is worn out" PHP List stats since 1997:

Re: [PHP] Error in BTML parser 2

2003-10-13 Thread Bas
Yes! It works!!! This is also an good beginner-HTML. If you have improvements then i like it from you to post them in an reply or email me. Regards, Bas "Curt Zirzow" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > * Thus wrote Bas ([EMAIL PROTECTED]): > > This error is not so stup

[PHP] php variable

2003-10-13 Thread Onno Kuipers
Hello, If i set a variabele in lets say 'script one'. When i jump into 'script two', is there a way (without cookies) to read the variable set in 'script one' Like: SCRIPTONE.PHP: $var=¨How are you¨; ?> name: SCRIPTTWO.PHP: THE PROBLEM IS THAT I ALSO WANT TO USE

Re: [PHP] Restarting Apache without screwing up running scripts?

2003-10-13 Thread Marek Kilimajer
# apachectl graceful snip from manpage: gracefulGracefully restarts the Apache daemon by send­ ing it a SIGUSR1. If the daemon is not run­ ning, it is started. This differs from a nor­ mal restart in that currently open conne

Re: [PHP] Connecting to Linux server from windows

2003-10-13 Thread Raditha Dissanayake
SOAP Binay wrote: Hi all ! I have PHP (4.3.2) running on windows 2k. Now i want to connect to a Linux Server and execute some commands and get the results back to win2k server. How can i achiece this. Please help me out. Thanks in advance Binay -- Raditha Dissanayake.

[PHP] provide flag -X when connecting to mysql

2003-10-13 Thread Victor Spång Arthursson
Using the command line client when connecting to mysql makes it possible to provide the flag "-X" to get the result as XML directly from mysql. What I wonder is if its possible in some way to provide this flag via php to get the result as it appears in the command line client, that is, as xml?

[PHP] Restarting Apache without screwing up running scripts?

2003-10-13 Thread Donald Tyler
Hi, We are building an Intranet for our company and I was wondering how people deal with having to restart the server when its running an intranet. Obviously if there is a complex process running and the server restarts in the middle of it then its going to screw a lot of stuff up. The o

Re: [PHP] ftp_connect() issues

2003-10-13 Thread Raditha Dissanayake
easiest way i know to debug FTP is with good old telnet. just type telnet yourserver.com 21 If there is a firewall in the way you will get a time out. If not you can login with user youname pass your pass btw if you have access to the FTP server's log file that will probably tell you what's hap

Re: [PHP] Error in BTML parser 2

2003-10-13 Thread Curt Zirzow
* Thus wrote Bas ([EMAIL PROTECTED]): > This error is not so stupid as a deleted closing ". > > Okay, for all of you who missed my code here is it again: > > read-tags.php > --- > // Tag Parser v1.1 > // v1.0 First release(not working) > // v1.1 Edited: > // Uses Regular Expressions > funct

RE: [PHP] From PHP to C and viceversa

2003-10-13 Thread Gregory Kornblum
>I have to develop an application for a small LAN (4 pcs) >What I need is to store some data in a personally cryptographed manner (two >way as I need to store and be able to retrieve data), so no one can just sit >in front of the pc where the server is (linux or win200 I have to decide), >copy the

Re: [PHP] From PHP to C and viceversa

2003-10-13 Thread Antonio Bernabei
Thank you for your answer, I have to develop an application for a small LAN (4 pcs) What I need is to store some data in a personally cryptographed manner (two way as I need to store and be able to retrieve data), so no one can just sit in front of the pc where the server is (linux or win200 I have

[PHP] Error in BTML parser 2

2003-10-13 Thread Bas
This error is not so stupid as a deleted closing ". Okay, for all of you who missed my code here is it again: read-tags.php --- \s*([^<]*)\s*!is"; preg_match_all($tag_match, $filedata, $matches); for ($i=0; $i< count($matches[0]); $i++) { $tagname = $matches[1][$i]; $tags[$tagname] =

Re: [PHP] preg_replace newb

2003-10-13 Thread Eugene Lee
On Mon, Oct 13, 2003 at 11:00:36PM +1000, Justin French wrote: : : On Monday, October 13, 2003, at 10:17 PM, Mohamed Lrhazi wrote: : : >I would try a petern like this: : > : >$pattern="!([^<]*)!" : > : >check the docs for greedy not greedy thingy... : : Mohamed, : : I still can't seem to get i

Re: [PHP] \n \t don't work!!!

2003-10-13 Thread Eugene Lee
On Mon, Oct 13, 2003 at 08:10:39AM -0500, Jay Blanchard wrote: : : [snip] : To give tabs in html, you might want to try using       : instead of \t : [/snip] : : And one other thing I didn't see mentioned http://www.php.net/nl2br Note that nl2br() is XHTML compliant, which means it sends out ""

RE: [PHP] \n \t don't work!!!

2003-10-13 Thread Jay Blanchard
[snip] To give tabs in html, you might want to try using       instead of \t [/snip] And one other thing I didn't see mentioned http://www.php.net/nl2br -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] \n \t don't work!!!

2003-10-13 Thread Steve Buehler
To give tabs in html, you might want to try using       instead of \t Steve At 06:57 AM 10/13/2003, you wrote: Wang Feng wrote: The page source shows: The problem might be right here --+ (closing html tag)

Re: [PHP] \n \t don't work!!!

2003-10-13 Thread Wang Feng
Thank you all for pointing me to the *right* direction!!! Now I really understand why and what I can do with the \n in php. :-) cheers, feng - Original Message - From: "Eugene Lee" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, October 13, 2003 10:58 PM Subject: Re: [PHP]

Re: [PHP] \n \t don't work!!!

2003-10-13 Thread Steve Buehler
Do what I do, use both the \n and the tags. I am not worried about anybody else thinking the source is nice looking, I do it for debugging so that I can see how the source comes out in a readable format. Steve At 06:48 AM 10/13/2003, you wrote: Ok, Now I see what happen (maybe). So, the "\n"

Re: [PHP] preg_replace newb

2003-10-13 Thread Justin French
Mohamed, I still can't seem to get it working: foo"; $str = preg_replace("!([^<]*)!",'blah',$str); echo $str; ?> echo's 'foo' rather than 'blah' Justin On Monday, October 13, 2003, at 10:17 PM, Mohamed Lrhazi wrote: I would try a petern like this: $pattern="!([^<]*)!" check the docs for gre

Re: [PHP] \n \t don't work!!!

2003-10-13 Thread Steve Buehler
If you want it to work with \n, then you will need to use the tags. Otherwise you need to translate the \n's into tags. \n is NOT an html tag so when you print them to the browser, it adds lines to the source, but as you might already know, a new line in the source of an html page does NOT

Re: [PHP] \n \t don't work!!!

2003-10-13 Thread Eugene Lee
On Mon, Oct 13, 2003 at 09:48:56PM +1000, Wang Feng wrote: : : Ok, Now I see what happen (maybe). : : So, the "\n" is not for the browser output, but for the *view source*? So, : it's different from the "echo "? : : If so, what's the deal to do that? --- Makes it look nice if the user view : the

RE: [PHP] PHP Installation Problems

2003-10-13 Thread Daniel Perez Clavero
RE: [PHP] PHP Installation ProblemsThis is my experience, I never chose the PHP installation pack, I prefer the uncompressed version, modify the php.ini and put the right dlls into the WINNT\System32 folder... I do not know what windows is going to permit to the installation program (registry entri

Re: [PHP] newbie question

2003-10-13 Thread 'Eugene Lee'
On Mon, Oct 13, 2003 at 10:32:18AM +0100, Ford, Mike [LSS] wrote: : : On 12 October 2003 23:36, Eugene Lee wrote: : > : > The PHP manual is vague in several sections. I wonder how bug : > reports get submitted for it? : : http://bugs.php.net/report.php and select "Documentation p

RE: [PHP] From PHP to C and viceversa

2003-10-13 Thread Gregory Kornblum
>I have apache under linux and I want to exchange data >from a php script to a c programm (some strings): is it possible? Yes in multiple ways. First off you need to figure out if you have the source for the C application. If so you can use sockets, the MySQL client API, and various other connec

Re: [PHP] Error in creating BTML(BT Markup Language)

2003-10-13 Thread Bas
Now I get the output: (in html, if you get a mail, you get the real output.) Welcome! Welcome! Notice: Undefined index: text in C:\pub\include\btml.php on line 13 "Pavel Jartsev" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Bas wrote: > > > > ... > > > > echo "; > > > > Se

Re: [PHP] preg_replace newb

2003-10-13 Thread Mohamed Lrhazi
I would try a petern like this: $pattern="!([^<]*)!" check the docs for greedy not greedy thingy... Mohamed~ On Mon, 2003-10-13 at 06:27, Justin French wrote: > Hi, > > Trying to get this working, without any luck: > > $str = preg_replace("! href='(.*?)'>(.*?)!",'{link|\\2|\\1}',$str); > > F

Re: [PHP] Error in creating BTML(BT Markup Language)

2003-10-13 Thread Pavel Jartsev
Bas wrote: > ... > echo "; > Seems that U don't have closing double-quote (") in line above. It should be: echo ""; -- Pavel a.k.a. Papi -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Connecting to Linux server from windows

2003-10-13 Thread Mohamed Lrhazi
How about CURL and telnet? see http://php.net/curl On Mon, 2003-10-13 at 08:12, Binay wrote: > Hi all ! > > I have PHP (4.3.2) running on windows 2k. Now i want to connect to a Linux Server > and execute some commands and get the results back to win2k server. How can i > achiece this. > > Ple

[PHP] Error in creating BTML(BT Markup Language)

2003-10-13 Thread Bas
I am trying to make an BTML-parser. (BTML-Some Markup Language invented by Me) I have 3 files: read-tags.php: --- \s*([^<]*)\s*!is"; preg_match_all($tag_match, $filedata, $matches); for ($i=0; $i< count($matches[0]); $i++) { $tagname = $matches[1][$i]; $tags[$tagname] = $matches[2][$

[PHP] Connecting to Linux server from windows

2003-10-13 Thread Binay
Hi all ! I have PHP (4.3.2) running on windows 2k. Now i want to connect to a Linux Server and execute some commands and get the results back to win2k server. How can i achiece this. Please help me out. Thanks in advance Binay

RE: [PHP] ftp_connect() issues

2003-10-13 Thread Phil Ewington - 43 Plc
I can still connect to the ftp server from my client machine using any number of FTP apps, I also created an ftp test tool, on the same server as I am currently having problems, that lets you enter an ftp host, username & password to see if it can connect and login. I can login to other ftp server

Re: [PHP] \n \t don't work!!!

2003-10-13 Thread Marek Kilimajer
Wang Feng wrote: The page source shows: The problem might be right here --+ (closing html tag)| | Hello World Program ?> ***

Re: [PHP] \n \t don't work!!!

2003-10-13 Thread Wang Feng
Ok, Now I see what happen (maybe). So, the "\n" is not for the browser output, but for the *view source*? So, it's different from the "echo "? If so, what's the deal to do that? --- Makes it look nice if the user view the source code? cheers, feng - Original Message - From: "Chris Ha

Re: [PHP] I can't make 'read_tag.php' file

2003-10-13 Thread Bas
This works!!! I am a newbie to PHP and i8 knop really nothing about Regular Expressions!!! Thanks!!! "Curt Zirzow" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > * Thus wrote Bas ([EMAIL PROTECTED]): > > > > --- > > And with this, it needs the file 'test.tag' > > --- > > > > I am my

Re: [PHP] unset() un-appropriate ?

2003-10-13 Thread Jason Wong
On Monday 13 October 2003 18:47, Ciprian Trofin wrote: > I have a form with 3 checkboxes x1,x2,x3. I want to build an array of > values from the checked boxes; I choosed the following approach: > 1. build an array with all values > 2. eliminate from array the "" values using unset The checkboxes t

Re: [PHP] \n \t don't work!!!

2003-10-13 Thread Wang Feng
> They do work but you will not see that in the rendered html page (in a > browser). Have a look at the source of the produced page and you will see > the linebreaks. The page source shows: > I suppose your manual was n

Re: [PHP] phpmyadmin

2003-10-13 Thread Marek Kilimajer
Again, check phpmyadmin html source code. If your query begins with anything potentionaly destructive (DELETE, ALTER, DROP ...) it displays a confirm (not alert). John Taylor-Johnston wrote: What about some javascript to alert() and decide if the form executes like phpmyadmin does: http://ccl.

[PHP] Re: I can't make 'read_tag.php' file

2003-10-13 Thread Bas
This just says: Parse error: parse error, unexpected T_STRING, expecting ')' in C:\pub\read-tags.php on line 12 "Manuel VáZquez Acosta" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Try this: > > function readTag($filenane, $tagtype, $degub = false) > // I prefer boolean for debug

Re: [PHP] \n \t don't work!!!

2003-10-13 Thread Marek Kilimajer
It DOES work, look at the source html code. Wang Feng wrote: Guys, These codes are copied from the manual: * echo ("this is the simplest, an SGML processing instruction\n"); echo "This spans multiple lines. The newlines will be

Re: [PHP] \n \t don't work!!!

2003-10-13 Thread Chris Hayes
At 13:22 13-10-03, you wrote: Guys, These codes are copied from the manual: * echo ("this is the simplest, an SGML processing instruction\n"); echo "This spans multiple lines. The newlines will be output as well"; echo "This

[PHP] \n \t don't work!!!

2003-10-13 Thread Wang Feng
Guys, These codes are copied from the manual: * echo ("this is the simplest, an SGML processing instruction\n"); echo "This spans multiple lines. The newlines will be output as well"; echo "This spans\nmultiple lines. The ne

Re: [PHP] unset() un-appropriate ?

2003-10-13 Thread David Otton
On Mon, 13 Oct 2003 12:47:44 +0200, you wrote: >I have a form with 3 checkboxes x1,x2,x3. I want to build an array of >values from the checked boxes; I choosed the following approach: >1. build an array with all values >2. eliminate from array the "" values using unset > >For some reason, the code

Re: [PHP] Output control - IE problem with flush()

2003-10-13 Thread Marek Kilimajer
Guess what? No, unless you hack into users computer and install mozilla instead ;). Do you really need tables? CSS can do just about anything. Duncan wrote: Hi, I am currently working with the output control functions and they work like a charm - as long as I don't start using IE to view my tes

[PHP] preg_replace newb

2003-10-13 Thread Justin French
Hi, Trying to get this working, without any luck: $str = preg_replace("!(.*?)!",'{link|\\2|\\1}',$str); FWIW, I'm aware that this doesn't ANY WHERE NEAR cover all instances of a link, but in this case, I KNOW that the link will have the above format, because it was generated by another PHP scr

  1   2   >