Re: [PHP] imagecreate()

2003-02-26 Thread Chris Shiflett
--- Anthony Ritter <[EMAIL PROTECTED]> wrote: > Fine Chris. > > Maybe you'd be kind enough to explain how I can get that function to work. This is an example of what I am talking about. I would love to help, but you are leaving out way too much information. What function? Why do you think it does

[PHP] Re: Re: Editors

2003-02-26 Thread James Hatridge
HI Pierre et al... On Tuesday 25 February 2003 18:54, Pierre Vaudrey wrote: > The download address is : > > http://www.maguma.com/products/download.php > > Pierre Thanks for the address. I looked into it closer and I find that it is only for Windows. Pity. Does anyone know of a PHP editor for

Re: [PHP] imagecreate()

2003-02-26 Thread Anthony Ritter
Chris, The function I'm trying to get...it's: imagecreate() I am using MS Win 98 / PHP 4 and Apache. I tried running the following script but got an undefined call to imagecreate() The following copy is located in my php.ini file...one of which is: .. ;extension=php_gd.dll ...

[PHP] date, "first of next month"?

2003-02-26 Thread Bryan Koschmann - GKT
Hello, Does anyone know a way to do this easily? I have a script that pretty much says "this is due on the first of next month" but I would like it to actually use the correct date. Thanks, Bryan -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.n

Re: [PHP] date, "first of next month"?

2003-02-26 Thread 1LT John W. Holmes
> Does anyone know a way to do this easily? I have a script that pretty much > says "this is due on the first of next month" but I would like it to > actually use the correct date. You would think strtotime("first of next month") would work, but it doesn't. This does: $t = mktime(0,0,0,date('m')+

Re: [PHP] date, "first of next month"?

2003-02-26 Thread Chris Shiflett
--- Bryan Koschmann - GKT <[EMAIL PROTECTED]> wrote: > Does anyone know a way to do this easily? I have a script that pretty much > says "this is due on the first of next month" but I would like it to > actually use the correct date. Well, you need: 1. The day of the month, which is always going

Re: [PHP] date, "first of next month"?

2003-02-26 Thread Brent Baisley
Use the mktime function: mktime (0,0,0,(date("n",$date)+1),1,date("Y",$date)) Where the variable $date contains whatever is the starting date. The function handles a December date just fine also. On Wednesday, February 26, 2003, at 03:28 PM, Bryan Koschmann - GKT wrote: Hello, Does anyone know

[PHP] mcrypt as shared module

2003-02-26 Thread Vladimir Fedorkov
How can I attach mcrypt to PHP (FreeBSD) without recompile whole PHP ? How can I compile mcrypt as PHP shared module ? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: Re: Editors

2003-02-26 Thread Paul Nicholson
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Wednesday 26 February 2003 02:19 pm, James Hatridge wrote: [snip] > Thanks for the address. I looked into it closer and I find that it is only > for Windows. Pity. It will run on linux using wine. Yes, I've tried it...it works! ~Paul - -- ~Paul Ni

Re: [PHP] Deleting a page after viewing it

2003-02-26 Thread 1LT John W. Holmes
> I have a confirmation of "membership" page a user would arrive at after > clicking on a URL in an email. After they click on a link in this page I > want to delete the page itself so it will only exist for this one use. > The URL in the page does go to another "Welcome" page which is on > ano

Re: [PHP] date, "first of next month"?

2003-02-26 Thread Bryan Koschmann - GKT
On Wed, 26 Feb 2003, 1LT John W. Holmes wrote: |You would think strtotime("first of next month") would work, but it doesn't. |This does: | |$t = mktime(0,0,0,date('m')+1,1,date('Y')); | |Gives you timestamp of first day, next month. Format accordingly with |date(). Thats great, worked perfectly!

[PHP] question on preg_replace()

2003-02-26 Thread Andy Crain
I'm having a problem figuring out how to prevent preg_replace() from replacing substrings when one element of the pattern array matches a portion of a string that would match a subsequent value in the pattern array. Say I have an two arrays: find => Array ( [0] => 'f

[PHP] php Warning help!

2003-02-26 Thread Richard Baskett
Warning: Unknown(path/index.php): failed to create stream: Permission denied in Unknown on line 0 Warning: Unknown(): Failed opening '/path/index.php' for inclusion (include_path='.:/path/phpinc/') in Unknown on line 0 What in the world is going on here? I've set all my files to 777 just to test

[PHP] Manipulating a text file

2003-02-26 Thread Richard Kurth
Hello php-general, I need to be able to add and delete to a text file that look like this. I only need to manipulate the part after site:x:503: site1:x:503:tester1,tester6 site2:x:504: site3:x:505: site4:x:506: site5:x:507: site6:x:508: site7:x:509:tester2,tester3,tester4 site8:x:510: site9:x:511

Re: [PHP] query to Active Directory

2003-02-26 Thread Bill MacAllister
Hello, Should start off my saying I do not know about Active Directory specifically, but I have used the PHP LDAP support a lot against other directory servers. What I see straight off is that $user_dn does not look like a distinguished name. I would have expected something like: $user_dn =

Re: [PHP] Problem wit doing ldap_add and modify in same script

2003-02-26 Thread Bill MacAllister
Looks to me like a judiciously place $info = array(); would do wonders. Bill --On Wednesday, February 26, 2003 08:23:39 AM -0500 Jim Greene <[EMAIL PROTECTED]> wrote: > Strange problem: Taking the 2 halfs of the scripts (the section to > update uidNumber and the one to add the user) and combini

[PHP] Mail (), BBC: recipients not receiving my Newsletter

2003-02-26 Thread Ricardo Fitzgerald
Hi to all, I wrote a small form which dumps data to a php script that uses mail () to send an html newsletter, so far is working except that it's not sending to BCC: headers, in my form I have a field to enter a comma delimited email list, after submiting the form this list is stored under one var

Re: [PHP] Mail (), BBC: recipients not receiving my Newsletter

2003-02-26 Thread Richard Baskett
Yeah I am having the same problem also.. it used to work and Im not sure when it happened.. it just doesn¹t work anymore.. Someone enlighten us? Rick When one door closes, another opens; but we often look so long and so regretfully upon the closed door that we do not see the one which has opened

[PHP] using php to rotate ad banners

2003-02-26 Thread Joseph Bannon
I recently created some scripts to rotate ad banners on my site. One script is called show.php, which serves the banner. The other is called click.php, which redirects the people to the proper site for the banner they clicked on. Some people have noticed that when they click on the banner, they go

Re: [PHP] Mail (), BBC: recipients not receiving my Newsletter

2003-02-26 Thread Jason k Larson
What about using a ';' semicolon seperated list. Ricardo Fitzgerald wrote: Hi to all, I wrote a small form which dumps data to a php script that uses mail () to send an html newsletter, so far is working except that it's not sending to BCC: headers, in my form I have a field to enter a comma deli

[PHP] Best way to accept donations online - Can't use paypal

2003-02-26 Thread David Caplan
Hi, I'm making a site for a non-profit and I need to be able to handle donations online. I can't use paypal because the donations need to be seamlessly integrated with the site, also I will need to do a fair amount of customization to the donation forms, like matching funds, gift in another person

Re: [PHP] Deleting a page after viewing it

2003-02-26 Thread David T-G
Chris, et al -- ...and then Chris Hayes said... % % At 18:32 26-2-03, you wrote: % >I have a confirmation of "membership" page a user would arrive at after % >clicking on a URL in an email. After they click on a link in this page I % >want to delete the page itself so it will only exist for thi

Re: [PHP] php Warning help!

2003-02-26 Thread Sebastian
apparently the path to an include is not correct.. Check you have the correct path for your include(); chmod 777 might not be the answer. warm regards, Sebastian - [BBR] Gaming Clan http://www.broadbandreports.com - Original Message - From: "Richard Baskett" <[EMAIL PROTECTED]> To: "PHP

[PHP] Re: date, "first of next month"?

2003-02-26 Thread Philip Hallstrom
> On Wed, 26 Feb 2003, 1LT John W. Holmes wrote: > > |You would think strtotime("first of next month") would work, but it doesn't. > |This does: > | > |$t = mktime(0,0,0,date('m')+1,1,date('Y')); > | > |Gives you timestamp of first day, next month. Format accordingly with > |date(). > > Thats great

Re: [PHP] Deleting a page after viewing it

2003-02-26 Thread Justin French
Yes, with either sessions, POST or GET, you need to let the second page know that it has to delete the other page, and then delete it with unlink... although I'm SURE there's gotta be a better way to do all this rather than creating/deleting files for each member. Justin on 27/02/03 4:32 AM, Pau

RE: [PHP] session_start

2003-02-26 Thread Mr Percival
> [snip] > >Not to be nosey or anything but "usually" session data will always be saved > >or not. How come one would want to check to see if is was or not. > [snip] Maybe I am on the wrong track but the other day I

[PHP] PHP list problems?

2003-02-26 Thread Sebastian
every so often i get a blank email that contains an attachment, a ATTxyz.dat and ATTxyz.txt why? I just got a reply from David T-G, Thread "Deleting a page after viewing it" and its blank with an attachment.. warm regards, Sebastian - [BBR] Gaming Clan http://www.broadbandreports.com

Re: [PHP] session_start

2003-02-26 Thread Justin French
Yeah, get a new host :) J on 27/02/03 11:36 AM, Mr Percival ([EMAIL PROTECTED]) wrote: > >> [snip] >>> Not to be nosey or anything but "usually" session data will always be saved >>> or not. How come one would want to check to see if is was or not. >> --

RE: [PHP] session_start

2003-02-26 Thread Ernest E Vogelsinger
At 01:36 27.02.2003, Mr Percival said: [snip] >What I was hoping to do was to be able to give a error message if the server >was having this problem, but in order to do that I was needing a way of >knowing if it was because the session_start failed or users

RE: [PHP] Emacs?

2003-02-26 Thread Larry Brown
25 Larry S. Brown Dimension Networks, Inc. (727) 723-8388 -Original Message- From: Sascha Braun [mailto:[EMAIL PROTECTED] Sent: Tuesday, February 25, 2003 12:00 PM To: PHP General list Subject: [PHP] Emacs? How many Persons in this List are using Emacs as there default Editor? -- PHP Ge

Re: [PHP] Emacs?

2003-02-26 Thread Justin French
on 27/02/03 11:55 AM, Larry Brown ([EMAIL PROTECTED]) wrote: > 25 ahahahahahahaha -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Best way to accept donations online - Can't use paypal

2003-02-26 Thread Joseph Bannon
I think paypal can be used. I created a script that gets all their information passed from paypal's server where it updates their account on mine. Very seemless. J. __ Do you Yahoo!? Yahoo! Tax Center - forms, calculators, tips, more http://taxes.

Re: [PHP] Emacs?

2003-02-26 Thread Michael E. Barker
Me. Sascha Braun wrote: How many Persons in this List are using Emacs as there default Editor? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] checking if module exists

2003-02-26 Thread Jun
thank you chris and marek.. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] problem in writing into an html text file

2003-02-26 Thread Michael P. Carel
hi to all, Im having a problem writing an HTML code in a text file which comes from the html text area as an editor. There's an added characters inserted to it. How could i write to it perfectly? mike -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/u

[PHP] mysqldump

2003-02-26 Thread John Taylor-Johnston
Anyone do MySQLDump using PHP ? http://www.mysql.com/doc/en/mysqldump.html My code is: mysqldump -u ** -p ** -A > /home/mybackups/dump_all.sql I would like to pull it off using PHP, remotely. $date = date ("Ymd"); $to_path = "/home/MyBackups/$date/dump_all.sql"; mysqldump -u ** -p

[PHP] Re: mysqldump

2003-02-26 Thread Joseph Szobody
You need to use exec, system, etc. Here is a script that I recently put together. It backs up the database, and pushes it as a download to the user. Hope this helps, Joseph "John Taylor-Johnston" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Anyone do MySQLDump using PHP ? >

[PHP] Re: mysqldump

2003-02-26 Thread Joseph Szobody
u. that should read: exec("mysqldump -c -q database -u user -ppassword", $sql); -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] session_start

2003-02-26 Thread John W. Holmes
> At 01:36 27.02.2003, Mr Percival said: > [snip] > >What I was hoping to do was to be able to give a error message if the > server > >was having this problem, but in order to do that I was needing a way of > >knowing if it was because the session_start faile

Re: [PHP] resizing .jpg file in php

2003-02-26 Thread Jason Sheets
You can use the GD image functions or ImageMagick to resize images. More about GD can be found in the PHP manual at http://www.php.net/manual. Jason On Wed, 2003-02-26 at 07:36, Anthony Ritter wrote: > I'd like to use (with permission) .jpg files from a webcam from another URL. > > Once that URL

RE: [PHP] problem in writing into an html text file

2003-02-26 Thread John W. Holmes
> Im having a problem writing an HTML code in a text file which comes from > the > html text area as an editor. There's an added characters inserted to it. > How > could i write to it perfectly? You have a problem on line 9 of your script after the 'e'. ---John W. Holmes... PHP Architect -

Re: [PHP] problem in writing into an html text file

2003-02-26 Thread Jason Sheets
Hello Mike, You will need to better describe your problem and preferably show some source code. What characters are being added to it? You could use str_replace or the regular expression replacement functions but you should not get added characters in general. Jason On Wed, 2003-02-26 at 19:07,

Re: [PHP] non transmitted cookie

2003-02-26 Thread Jason Sheets
Not that I am aware of, it seems you would be better off using SSL, if you are concerned about someone hijacking the sessions you could generate your own session id (I generate random 80 character session ids instead of 32) and also limit the life of the session, you could write logic to change the

Re: [PHP] mcrypt as shared module

2003-02-26 Thread Jason Sheets
Hello Vladimir, you can run phpize in the mcrypt extension directory in your PHP source code, then copy the .so file to your PHP extension dir and either add an extension line to your php.ini file or use dl to load the extension at run time. Generally I just compile it in at PHP configure time as

[PHP] multiple line text area

2003-02-26 Thread Gregory Chagnon
I need to be able to preserve line breaks when a user types in multiple lines in a multitple line test area. Right now if I echo $_POST['textarea'] I get everything on one line. Is there any way to do this? Thanks! -Greg -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit

[PHP] Re: multiple line text area

2003-02-26 Thread Gregory Chagnon
Make that a multitple line TEXT area, not a test area :) -Greg "Gregory Chagnon" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > I need to be able to preserve line breaks when a user types in multiple > lines in a multitple line test area. Right now if I echo $_POST['textarea'] > I

RE: [PHP] multiple line text area

2003-02-26 Thread John W. Holmes
> I need to be able to preserve line breaks when a user types in multiple > lines in a multitple line test area. Right now if I echo > $_POST['textarea'] > I get everything on one line. Is there any way to do this? Thanks! > -Greg www.php.net/nl2br ---John W. Holmes... PHP Architect - A month

Re: [PHP] multiple line text area

2003-02-26 Thread Gregory Chagnon
That would work, only I need to copy this text to a file without the in it. -Greg "John W. Holmes" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > > I need to be able to preserve line breaks when a user types in > multiple > > lines in a multitple line test area. Right now if I ec

RE: [PHP] multiple line text area

2003-02-26 Thread John W. Holmes
The newlines are preserved. Do a view source of your page where you're displaying it and you'll see what I'm talking about. HTML just doesn't render newlines, only . If you're seeing something different, then show your code and explain this more. ---John W. Holmes... PHP Architect - A monthly mag

Re: [PHP] multiple line text area

2003-02-26 Thread Gregory Chagnon
Thanks John, you're right -Greg "John W. Holmes" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > The newlines are preserved. Do a view source of your page where you're > displaying it and you'll see what I'm talking about. HTML just doesn't > render newlines, only . If you're seeing

[PHP] Re: Mail (), BBC: recipients not receiving my Newsletter

2003-02-26 Thread Manuel Lemos
Hello, On 02/26/2003 07:40 PM, Ricardo Fitzgerald wrote: I wrote a small form which dumps data to a php script that uses mail () to send an html newsletter, so far is working except that it's not sending to BCC: headers, in my form I have a field to enter a comma delimited email list, after submit

Re: [PHP] problem in writing into an html text file

2003-02-26 Thread Michael P. Carel
sorry here's the sample code: /textarea> the html file upon modify multiplies all the backslashes. any idea why? thanks in advance. - Original Message - From: "Jason Sheets" <[EMAIL PROTECTED]> To: "Michael P. Carel" <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Thursday, Fe

[PHP] Re: using php to rotate ad banners

2003-02-26 Thread Manuel Lemos
Hello, On 02/26/2003 07:58 PM, Joseph Bannon wrote: I recently created some scripts to rotate ad banners on my site. One script is called show.php, which serves the banner. The other is called click.php, which redirects the people to the proper site for the banner they clicked on. Some people have

[PHP] Re: mysqldump

2003-02-26 Thread John Taylor-Johnston
Thanks! > exec("mysqldump -c -q database -u user -ppassword", $sql); Why is there no space between the -p and password? >-ppassword Am I wrong? Thanks, John -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] One more string question

2003-02-26 Thread Gregory Chagnon
When I submit a form with a text area containing the test "//server/share" and try to echo the variable it echos "server//share". Is there any way to prevent the extra /'s? Thanks! -Greg -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: One more string question

2003-02-26 Thread John Taylor-Johnston
Stripslashes I think. Gregory Chagnon wrote: > When I submit a form with a text area containing the test "//server/share" > and try to echo the variable it echos "server//share". Is there any way > to prevent the extra /'s? Thanks! > -Greg -- John Taylor-Johnston --

[PHP] php_flag session.auto_start 0 not working

2003-02-26 Thread Gary
I am using php_flag session.auto_start 0 in an .htaccess file to stop sessions from auto starting. It works on all but the one below, it still auto starts. The session replaces linked style sheets on the page through some links. Can anyone see the problems? session_start(); if ( isset($_GET['

RE: [PHP] One more string question

2003-02-26 Thread Matt Honeycutt
Trying using stripslashes() on the string variable prior to displaying it. That *might* not work for you, but I'd try that first. ---Matt -Original Message- From: Gregory Chagnon [mailto:[EMAIL PROTECTED] Sent: Wednesday, February 26, 2003 11:12 PM To: [EMAIL PROTECTED] Subject: [PHP] O

RE: [PHP] Emacs?

2003-02-26 Thread Matt Giddings
Don't you mean 42? > -Original Message- > From: Larry Brown [mailto:[EMAIL PROTECTED] > Sent: Wednesday, February 26, 2003 7:55 PM > To: PHP List > Subject: RE: [PHP] Emacs? > > 25 > > -Original Message- > From: Sascha Braun [mailto:[EMAIL PROTECTED] > Sent: Tuesday, February 25,

Re: [PHP] non transmitted cookie

2003-02-26 Thread Dennis Gearon
Unless of course, you are listening into the network connection :-) Jason Sheets wrote: > > Not that I am aware of, it seems you would be better off using SSL, if > you are concerned about someone hijacking the sessions you could > generate your own session id (I generate random 80 character sess

[PHP] exec & mysqldump

2003-02-26 Thread John Taylor-Johnston
This works: exec("mysqldump -u -p -A > test.sql"); This doesn't. exec("mysqldump -u -p -A > $filename"); :) $filename"); echo "dump completed on $filename "; ?> -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] exec & mysqldump

2003-02-26 Thread John Taylor-Johnston
Scratch that. Had a CHMOD problem. Sorry. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Using mod_rewrite and PHP

2003-02-26 Thread Dan Phiffer
So I'm trying to implement a URL system like so: http://domain.org/issues/2003/feb/article-name/ such that http://domain.org/issues/index.php will display the requested page. I've read a little about this (http://www.alistapart.com/stories/succeed/) and have gotten it to work for the most part, b

[PHP] RE: PHP, Windows and COM.

2003-02-26 Thread Harald Radi
hi richard > The problem with some of the VBA functions is that the first and last > parameter need to be set and the ones in the middle have no > meaning and > cannot be present. This can only be achieved by using named > parameters. The > GoTo method, as a function, in VBA would be ... sooner

[PHP] RE: PHP, Windows and COM.

2003-02-26 Thread Richard Quadling
Genius! Thank you very much. Can this example be added to the PHP Manual? All the online examples I've seen relate to functions which you can pass the first few params and no more. In this case having to pass the first and last param is not mentioned. This simple example demonstrates the use of

[PHP] RE: PHP, Windows and COM.

2003-02-26 Thread Richard Quadling
Hi Harald. The problem with some of the VBA functions is that the first and last parameter need to be set and the ones in the middle have no meaning and cannot be present. This can only be achieved by using named parameters. The GoTo method, as a function, in VBA would be ... GoTo(wdGoToBookmark,

[PHP] Is PHP Reinstall required?

2003-02-26 Thread Patrick LOK
I have to uninstall my Apache 2.0.x that came along with RedHat 8.0 because the httpd (rpm) in RH8.0 does not have Apache apxs (why dont they include it). I need apxs to install lxp... (it seems lxp can only be installed on a customized Linux platform... USER NOT FRIENDLY :( ) I already have PH

Re: [PHP] Is PHP Reinstall required?

2003-02-26 Thread Rasmus Lerdorf
Just install the apache-devel package which is where the apxs tool lives. -Rasmus On Thu, 27 Feb 2003, Patrick LOK wrote: > I have to uninstall my Apache 2.0.x that came along with RedHat 8.0 because > the httpd (rpm) in RH8.0 does not have Apache apxs (why dont they include > it). > > I need a

Re: [PHP] Is PHP Reinstall required?

2003-02-26 Thread Patrick LOK
But where is the package? rgds ./pl "Rasmus Lerdorf" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Just install the apache-devel package which is where the apxs tool lives. > > -Rasmus > > On Thu, 27 Feb 2003, Patrick LOK wrote: > > > I have to uninstall my Apache 2.0.x that came

<    1   2