[PHP] Object pooling with PHP

2003-06-15 Thread Sephiroth
Hi, Is it possible to implement an object pooling service with PHP? Something like COM+ or IAS (Inprise Application Server)... any ideas? regards, Sepho -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Please I need help it's very Urgent (Prevent un-authorized users to download document)

2003-06-15 Thread Sebastian
Hi. See if this helps you get started. I assume each user has an ID. If so all you have to do is make a query above $userid that fetches the user ID of the user that is auth to download.. Also, edit the $path to the location of the files, you can download a file by file.php?file=a_file.zip -- he/s

Re: [PHP] Re: Upgrading PHP 4.1.2 to Current

2003-06-15 Thread Jaap van Ganswijk
At 2003-06-15 23:57 +0200, Catalin Trifu wrote: > As I understand, you are using prepackaged PHP and Apache, >the ones that come with a Linux distribution. >If you want to continue using this style of RPMs you should >consider looking for an upgrade on the web site for u'r Linux >distro (like

Re: [PHP] Please I need help it's very Urgent (Prevent un-authorizedusers to download document)

2003-06-15 Thread Leif K-Brooks
Mishari wrote: Hi All I built a MySQL table for all authorized users and their password , when user correctly enter his username and password he can access to a PHP site that contains a link to all document he need When he click on one of the document to he can download it, the URL will appear :

Re: [PHP] Call to undefined function: mysql_connect()

2003-06-15 Thread Jason Wong
On Monday 16 June 2003 13:49, Daniel R. Hansen wrote: > Attempts to install the client RPM return messages that it's already > installed. What version of MySQL do you have installed? And where did you get it from? If it's not from Redhat then it's best that you remove it and install Redhat's. -

[PHP] Please I need help it's very Urgent (Prevent un-authorized users to download document)

2003-06-15 Thread Mishari
Hi All I built a MySQL table for all authorized users and their password , when user correctly enter his username and password he can access to a PHP site that contains a link to all document he need When he click on one of the document to he can download it, the URL will appear : http://www.my

[PHP] Call to undefined function: mysql_connect()

2003-06-15 Thread Daniel R. Hansen
This is driving me buggy... I just upgraded to RH 8 which included an Apache 2.0 update. PHP and MySQL work OK independently; I can call mysql_connect() from the command line, but an attempt to do so from a script within Apache returns a "Fatal error: Call to undefined function: mysql_connect()"

Re: [PHP] php editor?

2003-06-15 Thread M-Ali Mahmoodi
if no newer editors? so the old messages suggest the older! "Lars Torben Wilson" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > On Sat, 2003-06-14 at 12:59, electroteque wrote: > > boy how painfully dweebish is vi why make it harder for yourself :O > > Please don't start this again

[PHP] Re: php editor?

2003-06-15 Thread M-Ali Mahmoodi
thanks all for all i will test them "M-Ali Mahmoodi" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > hi all > i'm a beginner in php > can anyone help me about useful and powerful editors in php? > > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http

Re: [PHP] session question

2003-06-15 Thread Don Read
On 16-Jun-2003 Matt Palermo wrote: > When a session is started on my server, it gets a name in the > "sessiondata" folder like: > > sess_8sjg4893m9d0j43847dk4o5l2 > > > I was just wondering if all sessions on ANY server start with "sess_"? > Is this a PHP-wide default, or can it be changed (

Re: [PHP] / [Newman] When i send an email it ...

2003-06-15 Thread jb
I think you need a \r\n between the headers, Philip J. Newman wrote: My code is this ... // MAIL HEADERS. $headers = "X-Priority: 1\n"; $headers .= "Return-path: <[EMAIL PROTECTED]>\n"; $headers .= "From: \"Philip Newman\" <[EMAIL PROTECTED]>\n";

Re: [PHP] Re: interact with .htaccess

2003-06-15 Thread Justin French
See this article: http://www.zend.com/zend/trick/tricks-august-2001.php It got me well on the way to understanding this. You will need to combine with some sort of user/session/login management script, but there are hundreds of articles on the web about this. Personally, I started with an arti

Re: [PHP] rows by day

2003-06-15 Thread Sebastian
- Original Message - From: "John W. Holmes" | John W. Holmes wrote: | | You only need one query. One of your columns should be what you want to | "change" on, like DAYOFWEEK(date_column). As you loop through your rows, | you echo out your "heading" whenever this column changes... | | whil

[PHP] ACL howto

2003-06-15 Thread Sn!per
I have several admin modules for my portal. And I have also several admin users who are supposed to have access only to certain modules. Say, the superadmin can access ALL modules (modA, modB, modC, modD) and admin-A can only access modA and modB admin-B can only access modA and modD ... ... How

Re: [PHP] Why SID changes each time I refresh the page??

2003-06-15 Thread Justin French
Is this up on the web somewhere for us to test? Justin on 16/06/03 3:09 AM, MH_Hong ([EMAIL PROTECTED]) wrote: > I have a very simple php code as below, but may i know why my SID changes > every time i refresh the page? > Do i need to change anything in PHP.ini?? thanks > session_start(); > ?

Re: [PHP] / [Newman] When i send an email it ...

2003-06-15 Thread Philip J. Newman
Ahh yess .. I found the issue. [mail function] ; For Win32 only. SMTP = localhost ; For Win32 only. sendmail_from = [EMAIL PROTECTED] The sendmail_from was not a valid email it was set to an email that was deleted from the system a week ago. Sweet as - Original Message - From: "Michael

Re: [PHP] PHPFI? How to build on Win32?

2003-06-15 Thread Lars Torben Wilson
On Sun, 2003-06-15 at 06:44, DvDmanDT wrote: > Hello... Today I downloaded 'phpfi' from CVS and I was wondering how to > build it? It included no dsw/dsp files so I tried cygwin > ./configure > make > cd src > make > > but it doesn't work... Says like no rules or something... Or that it doesn't >

Re: Fwd: Re: [PHP] is my server working

2003-06-15 Thread Lars Torben Wilson
On Sun, 2003-06-15 at 19:56, Khoo Merry wrote: > Hei, everyone > My configuration is working now. Thank's for everybody helps. > My apache is able to parse the .php4 extension. > I found that i shouldn't save my .php4 in document format. I have to > use notepad instead of world pad. I dun know why

Re: [PHP] Test message

2003-06-15 Thread Lars Torben Wilson
On Sun, 2003-06-15 at 13:28, jb wrote: > Testing news reader Please use a test group for your testing. misc.test is a good bet. -- Torben Wilson <[EMAIL PROTECTED]>+1.604.709.0506 http://www.thebuttlesschaps.com http://www.inflatableeye.com http://www.hybrid1

Re: [PHP] rows by day

2003-06-15 Thread Sebastian
the database has the timestamp in unix format, so this is what i use for 'dayofweek_column' ? what should $old_dayofweek hold? thankyou. cheers, - Sebastian - Original Message - From: "John W. Holmes" <[EMAIL PROTECTED]> | John W. Holmes: | | You only need one query. One of your column

[PHP] session question

2003-06-15 Thread Matt Palermo
When a session is started on my server, it gets a name in the "sessiondata" folder like: sess_8sjg4893m9d0j43847dk4o5l2 I was just wondering if all sessions on ANY server start with "sess_"? Is this a PHP-wide default, or can it be changed (not that I want to change it, I just want to know if

Re: [PHP] rows by day

2003-06-15 Thread John W. Holmes
Sebastian wrote: I posted this at several other discussion forums, and i haven't received any real way of doing this. i am about 3/4 done with a article management i am working on and came across a problem i can't seem to figure out. On to the question .. I currently have this query: $result = $db

Fwd: [PHP] need help on coding

2003-06-15 Thread Khoo Merry
""   If you want the out put "message". You can just simply put the " before and after the php code. Try this code.     good luckNote: forwarded message attached. Do you Yahoo!? SBC Yahoo! DSL - Now only $29.95 per month!--- Begin Message --- From: Gabor Hojtsy <[EMAIL PROTECTED]> To: Shien Hang

Re: [PHP] / [Newman] When i send an email it ...

2003-06-15 Thread Michael Geier
The error is your answer. The server is setup to relay mail for specific domains/users. Evidently, the user "[EMAIL PROTECTED]" is not one of those users/domains. If you are the administrator for this box, check your documentation for your specific SMTP server for setting relay for that domai

Fwd: Re: [PHP] is my server working

2003-06-15 Thread Khoo Merry
Hei, everyone My configuration is working now. Thank's for everybody helps. My apache is able to parse the .php4 extension. I found that i shouldn't save my .php4 in document format. I have to use notepad instead of world pad. I dun know why it works in notepad but not in world pad. Can anyone tel

[PHP] Re: [PEAR] Trying to install Log

2003-06-15 Thread Stan Lemon
I'm using the mysql driver, so $server = "mysql"; I am also very confident that mysql support is provided correctly through php because up until recently I've used mysql_() functions and never experienced a problem. I have no problem connecting, it's just the query() function doesn't want

Re: [PHP] / [Newman] When i send an email it ...

2003-06-15 Thread Philip J. Newman
My code is this ... \n"; $headers .= "From: \"Philip Newman\" <[EMAIL PROTECTED]>\n"; $headers .= "Reply-To: \"[EMAIL PROTECTED]" <[EMAIL PROTECTED]>\n"; $msg = "Dear $mUserName,\n\n"; $msg .= "You have requested a user account on Untouched.

[PHP] rows by day

2003-06-15 Thread Sebastian
Hello. I posted this at several other discussion forums, and i haven't received any real way of doing this. i am about 3/4 done with a article management i am working on and came across a problem i can't seem to figure out. On to the question .. I currently have this query: $result = $db->sql("S

[PHP] parse_str and NULL entry problem

2003-06-15 Thread Adrian Bolzan
Greetings, We use debian package: php44.1.2-6. We use a GET request to initiate a "status request" process on another server and want to split the output into fields. My php code is: -- $send = "GET \ /servlet/gateway?Client=TEST&Q=CacheRefreshReque stStatus \

[PHP] asymmetric encryption with PHP

2003-06-15 Thread Logan McKinley
I am new to PHP and was wondering if there was a way to do asymmetric (public/private key) encryption with PHP? I don't have administrative (ability to install programs) on either the web server or the client machines so it seems that neither pgp nor gnupg will not work. Thanks in advance, ~Logan

[PHP] Re: List Files in Directory to Array

2003-06-15 Thread Bix
I have found ftp_nlist() Should suit me perfectly, sorry to trouble! Bix. ;o) "Bix" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hi all... > > Is there any way of reading the contents of a directory into an array so I > can generate a listing from it? > > I can't see a filesyste

[PHP] List Files in Directory to Array

2003-06-15 Thread Bix
Hi all... Is there any way of reading the contents of a directory into an array so I can generate a listing from it? I can't see a filesystem function for this, how about with ftp functions? Am looking around at the moment but would appreciate some help. I am looking to read each file in the dir

Re: [PHP] slow mail()

2003-06-15 Thread Don Read
On 13-Jun-2003 Marko wrote: > Hi all, > > Sending multiple emails using PHP - as BCC or multiple mail() commands - > takes quite long; usually over 50 seconds for 10 addresses. > While sending these messages the browser won't show anything else but a > blank page, which is not a very exciting int

[PHP] Re: [Newman] When i send an email it ...

2003-06-15 Thread Catalin Trifu
Hi, This a SMTP server error. It looks like you did not add the header FROM: "yourname" [EMAIL PROTECTED]; looks like u'r SMTP does not allow for messages without FROM header as the PHP function: mail ( string to, string subject, string message [, string additional_head

[PHP] Re: Upgrading PHP 4.1.2 to Current

2003-06-15 Thread Catalin Trifu
Hi, As I understand, you are using prepackaged PHP and Apache, the ones that come with a Linux distribution. If you want to continue using this style of RPMs you should consider looking for an upgrade on the web site for u'r Linux distro (like redhat's or mandrake's). Otherwise

[PHP] Test message

2003-06-15 Thread jb
Testing news reader -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Mail() "problem"

2003-06-15 Thread Don Read
On 10-Jun-2003 Maikel Verheijen wrote: > > Unfortunately php does NOT pass on these environment variabeles to the > program that gets called as the mail-program (In my case my > mini-sendmail). > This renders this little "spamfinder" trick unusable, which is too bad :( > > If someone has a cl

Re: [PHP] Capturing the input of dynamic form fields (part II)

2003-06-15 Thread Frank Keessen
Hi, Wow! Live = beautiful (or is it PHP??).. Any way: foreach($_POST['test1'] as $i => $Value) { > $query = "INSERT INTO test (test1, test2) VALUES > ('".$_POST['test1'][$i]."', '".$_POST['test2'][$i]."')"; > $result = mysql_query($query); That one did the trick! Thanks James and Wouter for he

RE: [PHP] Capturing the input of dynamic form fields (part II)

2003-06-15 Thread esctoday.com | Wouter van Vliet
First thing I notice as being at least a bit odd is this part: $nArraySize = count($_POST['test1']); $test1=$_POST['test1[]']; $test2=$_POST['test2[]']; what are you trying to do with that? .. What I'd expect it to look like is smth like: $nArraySize = count($_POST['test1']); $test1 = $_POST['te

Re: [PHP] Capturing the input of dynamic form fields (part II)

2003-06-15 Thread Frank Keessen
Hi, Looks like the value's are not coming to the database.. Can you please all have a close look at my code because it's driving me NUTS! THANKS FOR YOUR HELP! $query".mysql_affected_rows($result)); } } ?> > "; echo "# $i"; } ?> Regards, Frank - Original Message - From: "

php-general Digest 15 Jun 2003 19:06:36 -0000 Issue 2119

2003-06-15 Thread php-general-digest-help
php-general Digest 15 Jun 2003 19:06:36 - Issue 2119 Topics (messages 151541 through 151600): Re: php editor? 151541 by: ORLANDO POZO 151570 by: Brian V Bonini Re: PHP installation on RedHat 151542 by: Yann Larrivee Re: is my server working 151543 by: DvDman

Re: [PHP] Capturing the input of dynamic form fields (part II)

2003-06-15 Thread Frank Keessen
Hi James, Sorry to say; I've put your code in it but there are no error message's displaying and there is no value inserted in the database... Any clue??? Regards, Frank - Original Message - From: "James Hicks" <[EMAIL PROTECTED]> To: "Frank Keessen" <[EMAIL PROTECTED]> Cc: <[EMAIL PROT

[PHP] [Newman] When i send an email it ...

2003-06-15 Thread Jason Marks
When i send an email i get the following error. Warning: mail() [function.mail]: SMTP server response: 550 , Sender unknown in D:\Hosting\Crushme\includes\inc_register.php on line 138 Is this a server or a PHP error? / Philip

Re: [PHP] Sendmail Problem

2003-06-15 Thread Don Read
On 10-Jun-2003 Uma Shankari T. wrote: > > Hello, > > I am having some problem in sendmail using this code. > > $MP = "/usr/sbin/sendmail -t -f [EMAIL PROTECTED]"; > > by main server id name..because of this outside mails are bouncing back.. > > Can any one pls tell me where is the prob

[PHP] Upgrading PHP 4.1.2 to Current

2003-06-15 Thread Davy Campano
I am pretty new to Linux and I was wondering if someone can point me in the right direction on upgrading packages. Right now, I am looking to upgrade PHP but actually I would just like to understand how to do any upgrades. Do I have to recompile??? If so, how do I do this? Thanks for any hel

[PHP] Re: need help on coding

2003-06-15 Thread Hugh Bothwell
"Shien Hang Low" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > > >problem : > > > >code : > > >$data= "message"; > >echo $data; > >?> > > > >output : > >message > >--- > >if i want the output to be : > >"message" > > > >i try to used the below code bu

[PHP] Re: need help on coding

2003-06-15 Thread Thomas Seifert
you need to quote " in your code. Thomas On Sun, 15 Jun 2003 17:01:03 + [EMAIL PROTECTED] (Shien Hang Low) wrote: > > > > From: Gabor Hojtsy <[EMAIL PROTECTED]> > To: Shien Hang Low <[EMAIL PROTECTED]> > CC: [EMAIL PROTECTED] > Subject: Re: need help on coding > Date: Sun, 15 Jun 2003 12

Re: [PHP] Re: fetch then put record?

2003-06-15 Thread Don Read
On 10-Jun-2003 Jean-Christian Imbeault wrote: > [reply to a personal email posted here for the benefit of all :)] > > > This bugs me because my db has 125 fields and it will be a very long > sql string! > > I bet! > > > The form page generates form contents by using a while loop. > > >

Re: [PHP] Re: Zend encoding and security

2003-06-15 Thread Manuel Lemos
Hello, On 06/15/2003 12:39 PM, Zeev Suraski wrote: At 13:59 11/06/2003, Manuel Lemos wrote: I guess they can't compare with what they can't afford to buy. It's therefore nice that it's available for free 21-day evaluation on zend.com, isn't it? :) I suppose that was not available when they sta

[PHP] need help on coding

2003-06-15 Thread Shien Hang Low
From: Gabor Hojtsy <[EMAIL PROTECTED]> To: Shien Hang Low <[EMAIL PROTECTED]> CC: [EMAIL PROTECTED] Subject: Re: need help on coding Date: Sun, 15 Jun 2003 12:26:53 +0200 Please ask support questions at [EMAIL PROTECTED] Goba Shien Hang Low : hi there, i am very sorry, previously i have send yo

[PHP] Why SID changes each time I refresh the page??

2003-06-15 Thread MH_Hong
I have a very simple php code as below, but may i know why my SID changes every time i refresh the page? Do i need to change anything in PHP.ini?? thanks MH Hong -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: interact with .htaccess

2003-06-15 Thread Ernest E Vogelsinger
At 16:32 15.06.2003, Peter Berglund said: [snip] >ok, I change my question, how do I protect downloadable files from users >that are not valid? >without the use of htaccess? [snip] Have a look at an example on my serv

Re: [PHP] Creating Images

2003-06-15 Thread Don Read
On 09-Jun-2003 Chris Blake wrote: > > Any ideas on how to make it so that the error I specified comes up and > not the "The image "http://xxx.xxx.xxx.xxx.x blah blah" part. > > Here`s the code : > --- >Header('Content-type: image/png'); > A little too early for that. Wait

Re: [PHP] When putting " or ' in text field, \' or \" is returned

2003-06-15 Thread John W. Holmes
Ben Houlton wrote: As the subject say, when putting " or ' in text field, \' or \" is returned. I'm not sure why, but it only happerns when it is returned in a input -> text field box. Could you tell me how to fix this. If you have magic_quotes_gpc enabled (which it is by default), then quotes wi

Re: [PHP] need working php.ini under apache 1.3.27 and redhat 7.2

2003-06-15 Thread John W. Holmes
[EMAIL PROTECTED] wrote: doe anyone quickly have a working 4.3.1 "php.ini" file, under apache 1.3.27 and redhat 7.2 that I could take a look at...for reference... you see, I think ours is missing some lines... of commands or something...it just doesn't look right something is missing...I think. s

Re: [PHP] Re: Zend encoding and security

2003-06-15 Thread Zeev Suraski
At 13:59 11/06/2003, Manuel Lemos wrote: I guess they can't compare with what they can't afford to buy. It's therefore nice that it's available for free 21-day evaluation on zend.com, isn't it? :) Anyway, it does not seem to make much sense to compare code acceleration based on plain caching/opt

[PHP] need working php.ini under apache 1.3.27 and redhat 7.2

2003-06-15 Thread Kwgoins1
doe anyone quickly have a working 4.3.1 "php.ini" file, under apache 1.3.27 and redhat 7.2 that I could take a look at...for reference... you see, I think ours is missing some lines... of commands or something...it just doesn't look right something is missing...I think. so I need a good one that

Re: [PHP] Very Weird Problem Continued

2003-06-15 Thread John W. Holmes
James Hicks wrote: The following variable needs to be escaped before it can be submitted as an MySQL query. It seems that the \0 in this string is causing me the problem. I have tried several functions in an attempt to escape this variable. Anybody got any other suggestions. The resulting strin

Re: [PHP] Re: interact with .htaccess

2003-06-15 Thread James Hicks
I think what you really want to do is place your downloadable files in a directory that is not in your httpd's document root and use a password protected PHP script to access these files and send them to the user after authentication. I think you could accomplish this with the fpassthru() funct

[PHP] Re: Minimalistic BBcode script

2003-06-15 Thread DvDmanDT
$text=preg_replace("#\[([bisu])\](.*?)\[/\\1\]#i","<\\1>\\2",$text); "Dz" <[EMAIL PROTECTED]> skrev i meddelandet news:[EMAIL PROTECTED] > Hello, > > I found one minimalistic BBcode script, but it doesnt work. > > Warning: Unknown modifier '1' in f:\_php\_f\bb-code\test.php on line 32 > > line 32 i

Re: [PHP] reverse DNS lookup with PHP

2003-06-15 Thread John W. Holmes
Tim Thorburn wrote: I'm setting up a simple tracking program for a website I'm working on. Currently it records a visitors IP address, but I would like to be able to do a DNS lookup of these IP addresses. Is this possible with PHP and if so, how is it done? I've been looking through Google, a

[PHP] Re: interact with .htaccess

2003-06-15 Thread Peter Berglund
ok, I change my question, how do I protect downloadable files from users that are not valid? without the use of htaccess? "Peter Berglund" <[EMAIL PROTECTED]> skrev i meddelandet news:[EMAIL PROTECTED] > I want to send user and password from php to a protected directory. > For example: If I go dir

[PHP] multiple count (*) from php? (last one got sent in error, this is the correct one)

2003-06-15 Thread Ryan A
Hi, I have 5 tables which keep th details for 5 packages for a company... a company may add however many packages they wish. When a company logs in I want to be able to tell them: you have $numberOfPackages entered: package1 $one package2 $two package3 $three package4 $four package5 $five instea

Re: [PHP] Capturing the input of dynamic form fields (part II)

2003-06-15 Thread James Hicks
Whenever I am having problems with SQL queries I always display the query on the page with all the replaced variables so I can make sure that the query makes sense. If it passes the MySQL parser in my brain and still doesn't work, I will copy the displayed query into the command line mysql monit

[PHP] multiple count (*) from php?

2003-06-15 Thread Ryan A
Hi, I have 5 tables which keep th details for 5 packages for a company... a company may add how every many packages they wish. When a company logs in I want to be able to tell them: you have $numberOfPackages entered: package1 $one package1 $one package1 $one package1 $one package1 $one -- PHP

[PHP] Very Weird Problem Continued

2003-06-15 Thread James Hicks
The following variable needs to be escaped before it can be submitted as an MySQL query. It seems that the \0 in this string is causing me the problem. I have tried several functions in an attempt to escape this variable. Anybody got any other suggestions. The resulting string should look like t

[PHP] When putting " or ' in text field, \' or \" is returned

2003-06-15 Thread Ben Houlton
As the subject say, when putting " or ' in text field, \' or \" is returned. I'm not sure why, but it only happerns when it is returned in a input -> text field box. Could you tell me how to fix this. Thank you. Code Snip: $nl = " "; $ascii = "$ascii"; $text_form = ereg_replace (" "

[PHP] Capturing the input of dynamic form fields (part II)

2003-06-15 Thread Frank Keessen
Dear all, Refering to my first e-mail with the same subject; I've reworked the code to this: But the only problem is; Nothing is written into the mysql database! And there are no error displayed.. Can someone have a look at my code? "; echo "# $i"; } ?> Thanks very much, Frank

[PHP] PHPFI? How to build on Win32?

2003-06-15 Thread DvDmanDT
Hello... Today I downloaded 'phpfi' from CVS and I was wondering how to build it? It included no dsw/dsp files so I tried cygwin ./configure make cd src make but it doesn't work... Says like no rules or something... Or that it doesn't know how to build... So, how? Thanks in advance // DvDmanDT

[PHP] Capturing the input of dynamic form fields

2003-06-15 Thread Frank Keessen
Dear all, Can you help me with the following or point me to the right direction; I'm receiving value's of two fields called test1 and test2. Both fields can have multivalue's. The first field called test1 is going o.k. with the following code; if(is_array($_POST['test1'])) { foreach($_POST['tes

[PHP] Re: Minimalistic BBcode script

2003-06-15 Thread Manuel Lemos
Hello, On 06/14/2003 10:53 AM, Dz wrote: I found one minimalistic BBcode script, but it doesnt work. You may want to try these classes that are ready to do what you want: Class: BBCode Class http://www.phpclasses.org/bbcode Class: UBBCode http://www.phpclasses.org/ubb -- Regards, Manuel Lemos Fr

Re: [PHP] php editor?

2003-06-15 Thread Brian V Bonini
For Linux: Bluefish... On Sat, 2003-06-14 at 07:15, Ryan A wrote: > I have tested quite a few editors since i came to php as notepad started to > p1ss me off after some time... > I have never really touched vi so cant say much about that but I think Zend > is pretty good (ill even dare say better)

[PHP] Re: slow mail()

2003-06-15 Thread Manuel Lemos
Hello, On 06/13/2003 10:19 AM, Marko wrote: Sending multiple emails using PHP - as BCC or multiple mail() commands - takes quite long; usually over 50 seconds for 10 addresses. While sending these messages the browser won't show anything else but a blank page, which is not a very exciting internet

[PHP] Re: Setting Return-Path header for mail() on Linux

2003-06-15 Thread Manuel Lemos
Hello, On 06/13/2003 09:09 AM, Tom Woody wrote: Is it possible to change the Return-Path header in PHP on linux? I have seen all the posts about setting it in the php.ini with the -f switch to sendmail. But I need to set it based on the person logged into the page? Right now the Return-Path is

[PHP] Re: Please help.

2003-06-15 Thread Thomas Seifert
That doesn't tell much. The way you'r using should work. What happens if it doesn't work? Thomas On Sun, 15 Jun 2003 21:46:54 +1000 [EMAIL PROTECTED] (Ben Houlton) wrote: > How do I get a DB table open easily? > So far, I've been using a metod that sometimes works and some times doesn't, > I ju

[PHP] Re: PHP Priter Functions

2003-06-15 Thread Manuel Lemos
Hello, On 06/13/2003 06:41 AM, Stephen Goddard wrote: Has anyone managed to get the php printer functions to work on a network printer. My code is connecting to the printer but . You may want to try this class: Class: APrint http://www.phpclasses.org/aprint -- Regards, Manuel Lemos Free read

[PHP] Please help.

2003-06-15 Thread Ben Houlton
How do I get a DB table open easily? So far, I've been using a metod that sometimes works and some times doesn't, I just want to know the easy way to do it. My code of what I'm doing now is below: $db = mysql_connect("localhost","root"); mysql_select_db("misc",$db); $result = mysql_query("

[PHP] Re: Zend Optimizer not active?

2003-06-15 Thread Manuel Lemos
Hello, On 06/12/2003 10:16 PM, Steve Yates wrote: Starting with a working site (FreeBSD 4.7, Apache 1.3.27) using PHP 4.3.0 and the latest Zend Optimizer, I upraded to PHP 4.3.2. Afterwards, phpinfo () did not show the Optimizer as loaded. Reinstalling Optimizer did not change this, nor did un

Re: [PHP] opening msword files outside the browser

2003-06-15 Thread DvDmanDT
You could go for like javascript maybe.. but nah, that seems kinda impossible... But maybe not... VBS... "Maris Kalnins" <[EMAIL PROTECTED]> skrev i meddelandet news:[EMAIL PROTECTED] > yeah, i guess you're right! > then there's no such possibility :( > > "Adrian" <[EMAIL PROTECTED]> wrote in messa

[PHP] Retrieving x number of words from text field?

2003-06-15 Thread Murray Wells
Hello All, I have a page that displays a summary of records available for view. As part of that summary I'd like to be able to retrieve and display x number of words (perhaps 15 or 20?) excluding punctuation (as in, I want the punctuation to be present, but not to count towards the word total, so

Re: [PHP] opening msword files outside the browser

2003-06-15 Thread Maris Kalnins
yeah, i guess you're right! then there's no such possibility :( "Adrian" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > oops, i thougt you wanted it opening in the browser. > i don't think there is a way to open it directly outside the browser, > because if this would be possible so

Re: [PHP] opening msword files outside the browser

2003-06-15 Thread Adrian
oops, i thougt you wanted it opening in the browser. i don't think there is a way to open it directly outside the browser, because if this would be possible someone could do so with a virus .exe, too. > .. but this is opening word document inside the web browser which is not > acceptable in my cas

Re: [PHP] opening msword files outside the browser

2003-06-15 Thread Maris Kalnins
Adrian, thanks for the clue! .. but this is opening word document inside the web browser which is not acceptable in my case :( "Adrian" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > you could try > header('Content-Disposition: inline; filename=test.doc'); > > -- PHP General

Re: [PHP] opening msword files outside the browser

2003-06-15 Thread Adrian
you could try header('Content-Disposition: inline; filename=test.doc'); -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] opening msword files outside the browser

2003-06-15 Thread Maris Kalnins
Hi! I am using: What changes should be made to this code to skip the dialog box asking Open, Save, Cancel and go right to the opening the MSWord file outside the browser? Thanks, Maris -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] more information about the php-/zend-api

2003-06-15 Thread Thomas Seifert
Hi folks, I'm currently trying to work my way through an extension. Using the tutorials on the php.net/zend.com ... and other sites it works so far to do some work, return values and getting parameters. But how can I get access to the variables defined in php or add other variables without the n

Re: [PHP] Re: interact with .htaccess

2003-06-15 Thread Ernest E Vogelsinger
At 13:04 15.06.2003, Adrian said: [snip] >you could redirect to http://username:[EMAIL PROTECTED]/foo [snip] with the drawback that your highly sensitive account information is visible at the URL and will be stored in

Re: [PHP] Re: interact with .htaccess

2003-06-15 Thread Adrian
you could redirect to http://username:[EMAIL PROTECTED]/foo > what I mean is if you can create a form page > in PHP prompting for a username and password and then redirect into > an .htaccess protected directory without having the server pop up another > username/password

Re: [PHP] interact with .htaccess

2003-06-15 Thread Ernest E Vogelsinger
At 12:28 15.06.2003, Peter Berglund said: [snip] >I want to send user and password from php to a protected directory. >For example: If I go directly to the directory I get a popup to enter user >and password, the normallt way. > >But if I go through a php-scr

[PHP] Re: interact with .htaccess

2003-06-15 Thread Peter Berglund
what I mean is if you can create a form page in PHP prompting for a username and password and then redirect into an .htaccess protected directory without having the server pop up another username/password box? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.

[PHP] interact with .htaccess

2003-06-15 Thread Peter Berglund
I want to send user and password from php to a protected directory. For example: If I go directly to the directory I get a popup to enter user and password, the normallt way. But if I go through a php-script that checks if I'm a valid user from a database I will get access to the folder. So i nee

Fwd: Re: [PHP] is my server working

2003-06-15 Thread Khoo Merry
Note: forwarded message attached. Do you Yahoo!? SBC Yahoo! DSL - Now only $29.95 per month!--- Begin Message --- Allow me to paste the PHP bit of my httpd.conf: LoadFile C:/PHP/php4ts.dll Loadmodule php4_module c:\php\sapi\php4apache.dll AddType application/x-httpd-php .php4 AddType application/x

Re: [PHP] is my server working

2003-06-15 Thread DvDmanDT
Allow me to paste the PHP bit of my httpd.conf: LoadFile C:/PHP/php4ts.dll Loadmodule php4_module c:\php\sapi\php4apache.dll AddType application/x-httpd-php .php4 AddType application/x-httpd-php-source .phps ScriptAlias /php3/ "c:/php3/" ScriptAlias /php4/ "c:/php/" ScriptAlias /php5/ "D:/php5/" A

Re: [PHP] is my server working

2003-06-15 Thread Alex Ciurea
oh, I see. My bad, my mistake... I also have had problems with apache/php in the past. The apache couldn't parse the php files. All the php tags were interpreted as normal text and displayed to the browser. So, try : >> phpinfo(); >> into one of your php files. it should work if your apa

Fwd: Re: [PHP] is my server working

2003-06-15 Thread Khoo Merry
Today's Date:  $Today\n"); ?> when i try to test my code at http://localhost/1-5.php4, they ask me if i want to download the file. it come out as document file not html. why? Note: forwarded message attached. Do you Yahoo!? SBC Yahoo! DSL - Now only $29.95 per month!--- Begin Message --- do i

Re: [PHP] is my server working

2003-06-15 Thread Lars Torben Wilson
On Sun, 2003-06-15 at 01:07, Alex Ciurea wrote: > try to use echo instead of print() : > > >> > echo $myString; > >> > > or, if u realy want to use the print function, try this: > > >> > print("$myString", %s); > >> > > maybe will work > > > Alex Ciur

Fwd: Re: [PHP] is my server working

2003-06-15 Thread Khoo Merry
i had configure the php 4 with apache 1.3 in the httpd.conf configuration file. When i tried the single line in the local host. Note: forwarded message attached. Do you Yahoo!? SBC Yahoo! DSL - Now only $29.95 per month!--- Begin Message --- Merry-- No, it's not working. Does your Apache httpd.co

Re: [PHP] is my server working

2003-06-15 Thread Alex Ciurea
try to use echo instead of print() : >> echo $myString; >> or, if u realy want to use the print function, try this: >> print("$myString", %s); >> maybe will work Alex Ciurea Greets You www.netonwave.com - Original Message - From: "Khoo Merry

[PHP] Re: is my server working

2003-06-15 Thread DvDmanDT
Check the source of the output (view->source), is the PHP tags there? If so, your Apache (php accutually) doesn't parse the .php files... "Khoo Merry" <[EMAIL PROTECTED]> skrev i meddelandet news:[EMAIL PROTECTED] > I'm using windows me, server apache 1.3 for php. > I had wrote this code and tried

Re: [PHP] PHP installation on RedHat

2003-06-15 Thread Yann Larrivee
Oups sorry with a link it always works better ;) http://protonicdesign.com/tutorial/sablot_and_php.php Yann Larrivee www.phpquebec.org www.protonicdesign.com Sorry the tutorial is not in french yet. I will translate it soone. On Sun, 2003-06-15 at 08:02, Tim Best wrote: > Bonsoir Yann, > > Je

  1   2   >