[PHP] MAIL( ) - Send mail using another SMTP

2003-06-20 Thread Chinmoy Barua
Hello Everybody, I don't have sendmail/qmail on my web server where i installed PHP. But I want to send mails from web server using PHP. Can anybody tell me, how can i use another SMTP server to send mails? I don't like to change php.ini on my web server. Thank You, - Chinmoy

[PHP] Header, Directory, and SESSIONs

2003-06-20 Thread nabil
Hi all, wish u all a good weekend.. Guys I have a question as the following: 1- In my wwwroot I have two folders : folder1 and folder2 (actually I have 14 folders) 2- In the same two folders there are same PHP files do the same job, as db jobs with different databases.. 3- I log in the users by r

[PHP] Header, Directory, and SESSIONs

2003-06-20 Thread nabil
Hi all, wish u all a good weekend.. Guys I have a question as the following: 1- In my wwwroot I have two folders : folder1 and folder2 (actually I have 14 folders) 2- In the same two folders there are same PHP files do the same job, as db jobs with different databases.. 3- I log in the users by r

Re: [PHP] Seating chart registration system?

2003-06-20 Thread Don Read
On 21-Jun-2003 Jay Fitzgerald wrote: > I am writing a php event registration system for lanparties and I believe > I have everything written that I need except for a seating selection > chart. > As a person goes through the event registration system, they will come to > a > page that displays

[PHP] Re: Password generator

2003-06-20 Thread Manuel Lemos
Hello, On 06/17/2003 06:45 AM, Davy Obdam wrote: I have to make a password generator, but i have a little problem. You may also want to try any of these classes: http://www.phpclasses.org/password%20generation -- Regards, Manuel Lemos Free ready to use OOP components written in PHP http://www.p

[PHP] Re: Email Valadation

2003-06-20 Thread Manuel Lemos
Hello, On 06/17/2003 06:42 AM, Philip J. Newman wrote: How would i valadate an email string to see if it has invalid charactors? You may want to try this class: http://www.phpclasses.org/emailvalidation -- Regards, Manuel Lemos Free ready to use OOP components written in PHP http://www.phpclass

[PHP] stream_wrapper_register

2003-06-20 Thread Larry E. Masters
Hello all, I do not know if this is the right place to post a question about this. I am trying to figure out what all I can do using stream_wrapper_register functions. I have looked over http://us2.php.net/manual/en/function.stream-wrapper-register.php and I am trying to write a class that will a

[PHP] Seating chart registration system?

2003-06-20 Thread Jay Fitzgerald
I am writing a php event registration system for lanparties and I believe I have everything written that I need except for a seating selection chart. I dont want to reinvent the wheel if I dont have to and am curious to know if something like this has already been written as public source... If

Re: [PHP] Not incrementing?

2003-06-20 Thread Lars Torben Wilson
On Fri, 2003-06-20 at 17:07, Kyle Babich wrote: > I have a file, current.txt, that at the start has only the digit 1 in it. Here is > my code: Hi there, > $current = readfile('setupData/current.txt'); This will cause $current to contain the number of bytes read from the file, not the contents

[PHP] Not incrementing?

2003-06-20 Thread Kyle Babich
I have a file, current.txt, that at the start has only the digit 1 in it. Here is my code: $current = readfile('setupData/current.txt'); foreach ($HTTP_POST_VARS as $index => $value) { $index = $HTTP_POST_VARS['$index']; } $info = fopen("postInfo/{$current}-{$dateFile}.txt", 'w'); fwri

RE: [PHP] Chomp, Chomp, Chomp

2003-06-20 Thread Lars Torben Wilson
On Fri, 2003-06-20 at 16:16, Aaron Axelsen wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > The php chop function is suppose to act like the perl chomp. No, chop() is an alias for rtrim(), and is identical in every way (save for its name, of course...) http://www.php.net/chop C

RE: [PHP] Chomp, Chomp, Chomp

2003-06-20 Thread Aaron Axelsen
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 The php chop function is suppose to act like the perl chomp. - --- Aaron Axelsen AIM: AAAK2 Email: [EMAIL PROTECTED] Want reliable web hosting at affordable prices? www.modevia.com Web Dev/Design Community/Zine www.developercube.com - -Ori

Re: [PHP] Chomp, Chomp, Chomp

2003-06-20 Thread Lars Torben Wilson
On Fri, 2003-06-20 at 15:47, Sparky Kopetzky wrote: > I looked at the documentation on rtrim. It trims ALL whitespace characters > from the end, not just the '\n'. I need only the '\n' trimmed. Look again, but check out the second argument: Good luck, Torben > Sparky > - Original Messag

RE: [PHP] Re: PHP Problem regarding updating through text boxes

2003-06-20 Thread electroteque
hmm name the text fields the field of the database then put a [] in front of them to make them an array then then try maybe foreach ($_POST['id'] as $key=>$value) { //sql statement update table set us=$_POST['us'][$key] where id=$_POST['id'][$key]; } -Original Message- From: Esteban Fer

Re: [PHP] Chomp, Chomp, Chomp

2003-06-20 Thread Lars Torben Wilson
On Fri, 2003-06-20 at 15:37, Sparky Kopetzky wrote: > Does anyone have a piece of code that emulates a Perl 'Chomp' function? I need one. > > Thanks in advance!! > > Robin E. Kopetzky > Black Mesa Computers/Internet Services > www.blackmesa-isp.net This should do it for you: http://www.php.net/

Re: [PHP] Chomp, Chomp, Chomp

2003-06-20 Thread Sparky Kopetzky
I looked at the documentation on rtrim. It trims ALL whitespace characters from the end, not just the '\n'. I need only the '\n' trimmed. Sparky - Original Message - From: "Lars Torben Wilson" <[EMAIL PROTECTED]> To: "Sparky Kopetzky" <[EMAIL PROTECTED]> Cc: "PHP General" <[EMAIL PROTECTED

[PHP] Chomp, Chomp, Chomp

2003-06-20 Thread Sparky Kopetzky
Does anyone have a piece of code that emulates a Perl 'Chomp' function? I need one. Thanks in advance!! Robin E. Kopetzky Black Mesa Computers/Internet Services www.blackmesa-isp.net

Re: [PHP] Error in php after uprading

2003-06-20 Thread Javier
[EMAIL PROTECTED] (John W. Holmes) wrote in news:[EMAIL PROTECTED]: >> > > Your query failed. Add some error reporting around mssql_query() to > find out why. > Hi, I recompiled an older version of php with freetds 0.60 instead of 0.61 and everything start to work again. Maybe there is som

[PHP] Re: PHP Problem regarding updating through text boxes

2003-06-20 Thread Esteban Fernandez
Hum,, i don't see the database conecction :P. It's necesary modified the fileds on the fly ?, one by one it's more easy to do... "Esteban Fernandez" <[EMAIL PROTECTED]> escribió en el mensaje news:[EMAIL PROTECTED] > Put the code in a Form tag, modified thevalues, and put a submit button in >

[PHP] Re: PHP Problem regarding updating through text boxes

2003-06-20 Thread Esteban Fernandez
Put the code in a Form tag, modified thevalues, and put a submit button in the Form, so, in the php page you get it the values by name, you can modified with 'update' mysql sentence. "Matt Hedges" <[EMAIL PROTECTED]> escribió en el mensaje news:[EMAIL PROTECTED] > Please take a look at http://hed

[PHP] PHP Problem regarding updating through text boxes

2003-06-20 Thread Matt Hedges
Please take a look at http://hedges.org/code/wine.php - You'll see what I can't figure out how to do. thanks, Matt -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] [Newman] Passing an image through a php file.

2003-06-20 Thread Lars Torben Wilson
On Fri, 2003-06-20 at 12:07, Mark Tehara wrote: > Ahh, the Docs don't tell you that. > > They are a little weard wehen it comes to that How so? int readfile ( string filename [, bool use_include_path [, resource context]]) It does say 'filename', not 'resource'. Seems pretty unequivocal. H

Re: [PHP] updateable database 2nd question

2003-06-20 Thread Don Read
On 20-Jun-2003 Matt Hedges wrote: > Thanks for the help. I now have the wine information displaying in text > boxes (below is the code that displays all the wines). > > Now I want anyone to be able to change the data in text box/s and hit > "update" and it change that field/s. > > Would it be s

Re: [PHP] [Newman] Passing an image through a php file.

2003-06-20 Thread Mark Tehara
Ahh, the Docs don't tell you that. They are a little weard wehen it comes to that - Original Message - From: "Lars Torben Wilson" <[EMAIL PROTECTED]> To: "Mark Tehara" <[EMAIL PROTECTED]> Cc: "PHP" <[EMAIL PROTECTED]> Sent: Friday, June 20, 2003 10:53 PM Subject: Re: [PHP] [Newman]

Re: [PHP] clearing cache

2003-06-20 Thread Kevin Stone
- Original Message - From: "Mark McCulligh" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, June 20, 2003 11:44 AM Subject: Re: [PHP] clearing cache > I can't just create a link on the last page back to the first page. Because > if the user hits the back button on the browser th

[PHP] Search Engine

2003-06-20 Thread Michael A Smith
Hi, I'm trying to find a script (PHP,Perl, Whatever) that will search through a bunch text files, ignore certain keywords, and then generate a text file with the line that each one is on, and what the words were. Thanks, -Michael -- PHP General Mailing List (http://www.php.net/) To unsubscribe

Re: [PHP] Standalone PHP Client?

2003-06-20 Thread Galen P. Zink
On Friday, June 20, 2003, at 11:42 AM, Brian V Bonini wrote: On Fri, 2003-06-20 at 13:57, Galen P. Zink wrote: I work for a small networking company. We're working on a piece of software that will be run server-side with PHP and MySQL. It allows the user to develop an online store and handles all

RE: [PHP] Standalone PHP Client?

2003-06-20 Thread Jay Blanchard
[snip] Is there any kind of standalone PHP/MySQL engine that could be reasonably installed from a CD and run on most Windows machines? [/snip] Check out the PHP-GTK http://gtk.php.net/ . I am not sure if there is a 'portable' data source to go with it, but it sounds like what you'd want Jay --

Re: [PHP] Standalone PHP Client?

2003-06-20 Thread Brian V Bonini
On Fri, 2003-06-20 at 13:57, Galen P. Zink wrote: > I work for a small networking company. We're working on a piece of > software that will be run server-side with PHP and MySQL. It allows the > user to develop an online store and handles all the complex shopping > cart stuff with ease. It is a

[PHP] updateable database 2nd question

2003-06-20 Thread Matt Hedges
Thanks for the help. I now have the wine information displaying in text boxes (below is the code that displays all the wines). Now I want anyone to be able to change the data in text box/s and hit "update" and it change that field/s. Would it be something like $sql = "UPDATE wines SET Bodega='$B

Re: [PHP] Passing Date/Time

2003-06-20 Thread Kyle Babich
That works, thanks. > Try setting that date as a type="hidden" value instead. Do a > print_r($_POST) at the other end to see what comes up! > > -Michael > On Fri, 2003-06-20 at 08:55, Kyle Babich wrote: > > I have a input field in a form that is disabled by javascript but is assigned a > > value

Re: [PHP] Passing Date/Time

2003-06-20 Thread Kyle Babich
Nothing passes when it is disabled via HTML either. > just for shits and giggles, why not manually disable the field without using > javascript and see what happens. just add the word "disabled" to the tag. > > > >From: "Kyle Babich" <[EMAIL PROTECTED]> > >Reply-To: [EMAIL PROTECTED] > >To: [EM

Re: [PHP] Standalone PHP Client?

2003-06-20 Thread Galen P. Zink
Well, having a solid product that people can look at offline has been a major selling point in the past. The customers we cater to appreciate a physical product. We could give them HTML that sends them online, but we could just as easily give them a card with an URL on it and not waste CD media

[PHP] Standalone PHP Client?

2003-06-20 Thread Galen P. Zink
I work for a small networking company. We're working on a piece of software that will be run server-side with PHP and MySQL. It allows the user to develop an online store and handles all the complex shopping cart stuff with ease. It is a port of an originally client-side application. We would l

[PHP] Re: mail() without subjects and froms

2003-06-20 Thread Manuel Lemos
Hello, On 06/20/2003 12:39 PM, Johannes Reichardt wrote: I have a weired problem with a 4.12 php version on win2k. When i mail more then one email i often have the problem that the mail reaches their recipient but the subject and from does not work properly, instead this is on top of the email.

Re: [PHP] clearing cache

2003-06-20 Thread Mark McCulligh
I can't just create a link on the last page back to the first page. Because if the user hits the back button on the browser they end up on page 2. Which can't happen. Once you are on the last page the user can't by anyway get back to page 2, unless they start over on page 1. What I am planning o

Re: [PHP] Convert KB to MB?

2003-06-20 Thread Mike Migurski
>>Ahhh, but then marketing gets involved and changes the 1024 to 1000 and >>ta da, you now have more MegaBytes. 1024 is the right number to use, but >>don't be surprised if it doesn't match with some numbers you might >>compare it to. > >Not necessarily, in data storage 1mb = 1024kb but in data tra

Re: [PHP] updateable database- please help- only displaying firstword from field

2003-06-20 Thread Adam Voigt
Actually just putting a " around doesn't work because his original echo uses those, so you have to escape them, like: \" On Fri, 2003-06-20 at 13:39, Don Read wrote: > On 20-Jun-2003 Matt Hedges wrote: > > > >However, the text boxes > > only display the first word of the field from the

[PHP] Re: updateable database- please help- only displaying first word from field

2003-06-20 Thread Matt Hedges
Thanks! "Matt Hedges" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hello. I am making an online database of my wines that I want my friends to > be able to edit. The page below displays the wines. I want the fields in > text boxes so later they can be easily edited. However,

Re: [PHP] updateable database- please help- only displaying first word from field

2003-06-20 Thread Don Read
On 20-Jun-2003 Matt Hedges wrote: >However, the text boxes > only display the first word of the field from the database. Quote your values. >\n Regards, -- Don Read [EMAIL PROTECTED] -- It's always darkest before t

Re: [PHP] updateable database- please help- only displaying firstword from field

2003-06-20 Thread Adam Voigt
Put quote's around name, I would suspect the space is throwing off the value equals, example: \n On Fri, 2003-06-20 at 13:31, Matt Hedges wrote: > Hello. I am making an online database of my wines that I want my friends to > be able to edit. The page below displays the wines. I want the field

[PHP] updateable database- please help- only displaying first word from field

2003-06-20 Thread Matt Hedges
Hello. I am making an online database of my wines that I want my friends to be able to edit. The page below displays the wines. I want the fields in text boxes so later they can be easily edited. However, the text boxes only display the first word of the field from the database. For example, i

[PHP] Odd reactions to Globals On/Off

2003-06-20 Thread Lee Herron QCS
Anyone know why $HTTP_SESSION_VARS['var'] and $HTTP_SESSION_VARS[vararray][var1] both contain values with register_globals ON, but only $HTTP_SESSION_VARS[vararray][var1] contains values if register_globals is OFF? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http:/

Re: [PHP] Cookies- peanut butter or chocolate??

2003-06-20 Thread Don Read
On 19-Jun-2003 Steve Keller wrote: > At 6/19/2003 02:10 PM, Sparky Kopetzky wrote: > > > 2. How do you put 2 items that you want to save in the cookie and > retrieve?? > > Smuch 'em together into a single variable with a delimiter you're sure > won't show up in either value, something like "#

[PHP] SQL Sanitation in PHP

2003-06-20 Thread Jeff Stewart
I'm using PHP's odbc_ functions to access an Access database, and I'm concerned about security. Do you folks have any recommendations on the best ways to sanitize my SQL queries? I've read plenty about what characters I should strip from SQL queries that use user input, namely " , / \ * & ( ) $ %

Re: [PHP] ErrorDocument doesn't work for PHP scripts

2003-06-20 Thread Andy Fiddaman
: ErrorDocument 404 http://www.jeamland.org/_error.html Yep, it does seem to work if I put the whole URL in the ErrorDocument directive rather than just /_error.html ! Unfortunately, that makes the web server snd a redirect which isn't exactly what I want (unless you know of a way to get at the or

[PHP] Passing Date/Time

2003-06-20 Thread Kyle Babich
I have a input field in a form that is disabled by javascript but is assigned a value in the code that is the RFC 822 formated date. Why is this field not included in the $HTTP_POST_VARS? Here is the page I am talking about: http://babich.us/xlog/post.php When the page is submitted all other v

Re: [PHP] mail() without subjects and froms

2003-06-20 Thread David Nicholson
Hello, This is a reply to an e-mail that you wrote on Fri, 20 Jun 2003 at 17:44, lines prefixed by '>' were originally written by you. > Hi! > I guess i do not make any weired things, the configuration looks like > this: > mail("$mail", > "$message", > "From: "[EMAIL PROTECTED]"<[EMAI

Re: [PHP] strange crypt() problem

2003-06-20 Thread Don Read
On 19-Jun-2003 Huzz wrote: > I have this bit of code to crypt user password in user registration as > shown > below. > > $cryptpass=crypt($makepass); > which generated crypted password like eg 37Q9fppLHc4fQ with php 4.0 > > And am using the codes below to check for valid login.. > // $pass - f

RE: [PHP] Re: preg_match

2003-06-20 Thread Aaron Axelsen
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Thanks, I weas reading on the php website under the preg_match functino and people were saying that you had to excape the $ so that iw ould be evaluated right. That's what got me confused. - --- Aaron Axelsen AIM: AAAK2 Email: [EMAIL PROTECTED] W

Re: [PHP] clearing cache

2003-06-20 Thread Jeff Harris
On Jun 20, 2003, "Mark McCulligh" claimed that: |I am building a two page search feature. The user fills out page one, that |takes them to page two. Then from page two they get the results page from |the search. If the user hits the back button in their browser I want them |to go back to page on

Re: [PHP] ErrorDocument doesn't work for PHP scripts

2003-06-20 Thread Wendell Brown
On Fri, 20 Jun 2003 10:34:04 -0500, Wendell Brown wrote: >>> php_value auto_prepend_file header.php >>> php_value auto_append_file footer.php Andy, I've tried the following (with my server info, of course) in one of my directories and it works like a champ! It doesn't mat

Re: [PHP] Synchronize MYSQL

2003-06-20 Thread Jim McNeely
From Paul Dubois's MySQL book: "If you are dumping a database so that you can transfer the database to another server: (on the unix command line or in a shell script) % mysqladmin -h boa.snake.net create samp_db % mysqldump samp_db | mysql -h boa.snake.net samp_db" the first command obviously cr

Re: [PHP] mail() without subjects and froms

2003-06-20 Thread David Nicholson
Hello, This is a reply to an e-mail that you wrote on Fri, 20 Jun 2003 at 16:40, lines prefixed by '>' were originally written by you. > Hi there! > I have a weired problem with a 4.12 php version on win2k. > When i mail more then one email i often have the problem that the mail > reaches their r

[PHP] mail() without subjects and froms

2003-06-20 Thread Johannes Reichardt
Hi there! I have a weired problem with a 4.12 php version on win2k. When i mail more then one email i often have the problem that the mail reaches their recipient but the subject and from does not work properly, instead this is on top of the email. but strangely sometimes it just works normal.

Re: [PHP] ErrorDocument doesn't work for PHP scripts

2003-06-20 Thread Wendell Brown
On Fri, 20 Jun 2003 10:15:43 -0500, Wendell Brown wrote: >Try it without the: > >> php_value auto_prepend_file header.php >> php_value auto_append_file footer.php Or check for the existence of the requested file in the header and if not found, send the 302 header with a

[PHP] Uploading/retrieving PDFs to and from Oracle BLOB

2003-06-20 Thread Michael Champagne
Can anyone point me to some sample code for uploading and later retrieving PDFs or other binary files into an Oracle BLOB field? I've been searching for some time and haven't been able to come up with anything. It looks like there's new LOB functions for OCI but they aren't documented at all on t

Re: [PHP] ErrorDocument doesn't work for PHP scripts

2003-06-20 Thread Wendell Brown
On Fri, 20 Jun 2003 15:08:39 GMT, [EMAIL PROTECTED] wrote: > > AddType application/x-httpd-php .html > php_value include_path ".:/spool/web/www.jeamland.org/lib" > php_value auto_prepend_file header.php > php_value auto_append_file foo

[PHP] ErrorDocument doesn't work for PHP scripts

2003-06-20 Thread php
I'm having a problem configuring my web server to redirect 404 errors to a custom error page. It almost looks like the PHP parser is getting hold of the request before apache has checked to see if the file exists. It works fine if you request an unknown page on the server that isn't a PHP script,

[PHP] Re: Synchronize MYSQL

2003-06-20 Thread Neil
Khuram Noman wrote: Dear Members How to Synchronize two MYSQL databases in php Thanks khuram noman __ Do you Yahoo!? SBC Yahoo! DSL - Now only $29.95 per month! http://sbc.yahoo.com Hello as usual there are a few ways to do tackle this job. My preference is to sto

RE: [PHP] Migrating pre-4.1 code to a post-4.1 server with regist er_globals on

2003-06-20 Thread Johnson, Kirk
> -Original Message- > From: Ford, Mike [LSS] [mailto:[EMAIL PROTECTED] > Sent: Friday, June 20, 2003 2:57 AM > To: Johnson, Kirk; [EMAIL PROTECTED] > Subject: RE: [PHP] Migrating pre-4.1 code to a post-4.1 server with > regist er_globals on > > > > -Original Message- > > From:

Re: [PHP] open_basedir

2003-06-20 Thread Ernest E Vogelsinger
At 15:03 20.06.2003, dorgon said: [snip] >Would it be possible to limit access to open_basedir without the >exception of /tmp, to allow the uploads? [snip] You (or your server admin) should add /tmp to the allowed dir

[PHP] clearing cache

2003-06-20 Thread Mark McCulligh
I am building a two page search feature. The user fills out page one, that takes them to page two. Then from page two they get the results page from the search. If the user hits the back button in their browser I want them to go back to page one, NOT page two. Is the some way I can make page two

RE: [PHP] Call Servlet Java from PHP

2003-06-20 Thread Jay Blanchard
[snip] I'm trying to call a Servlet Java from PHP and it doesn't works.. I tried CURL, but no works, I tried put code Java inside PHP, but no works too. Does Somebody can give a light? [/snip] Can you show us the code? Jay -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visi

[PHP] Call Servlet Java from PHP

2003-06-20 Thread maximiliano_potje
Hi Peolpe! I'm trying to call a Servlet Java from PHP and it doesn't works.. I tried CURL, but no works, I tried put code Java inside PHP, but no works too. Does Somebody can give a light? Thanks Max -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.ne

Re: [PHP] Convert KB to MB?

2003-06-20 Thread Brent Baisley
Again I say "Ahhh". Are you mixing your bits and bytes then? 1MB =1024KB 1mb=1000kb Although upper and lower case seem to have becoming interchangeable, even though technically they have different meaning. The simple formula is suddenly getting more complicated. On Friday, June 20, 2003, at 04:4

Re: [PHP] Help me compose myself... I'm about to kill Microsoft....

2003-06-20 Thread Daniel
LOL =) "Steve M" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > On Thu, 19 Jun 2003 13:21:07 +0200, Daniel wrote: > > > Okay, I think I'll have to kill myself... > > > I can't believe I am this stupid, but it turned out I was working on a copy > > of the file, not the real one. D'OH

RE: [PHP] Cannot modify header information - headers already sent

2003-06-20 Thread Henning Sittler
The problem does not appear to be database related, it appears to header related. You are trying to send header information after sending regular output. You can't do this: BUT you can do this: Try looking at line 29. that's the line where you are trying to output a header after outputing

[PHP] Cannot modify header information - headers already sent

2003-06-20 Thread Logan McKinley
I am having a problem when i use an include file to include database connectivity, however if i cut and paste the code out of the include and place it directly into the .php file it works. I am not sure how to figure this problem out. <=== error: Warning: Cannot modify header info

[PHP] Need Instruction on how to compile PHP in Win32...

2003-06-20 Thread Scott Fletcher
Hi! I have been looking around on the website and haven't found what I'm looking for. What I am looking for is instruction on what software do I need on the machine, environment variables, etc. and the instruction on the compiling of the php as cgi executable for win32. Thanks, Scott --

[PHP] open_basedir

2003-06-20 Thread dorgon
hi folks, I just realised that open_basedir also prevents the access to /tmp. Thus, file uploads aren't possible. One solution would be, to use a tmp directory within open_basedir, to give PHP the required write access. But assume you're using a server with multiple VirtualHosts and www-dirs. You

Re: [PHP] Synchronize MYSQL

2003-06-20 Thread John W. Holmes
khuram noman wrote: Dear Members How to Synchronize two MYSQL databases in php Thanks khuram noman Don't use PHP, just use the replication that's already built into MySQL. -- ---John Holmes... Amazon Wishlist: www.amazon.com/o/registry/3BEXC84AB3A5E/ PHP|Architect: A magazine for PHP Profession

Re: [PHP] ie issue: when I do a forced redirect with the header()

2003-06-20 Thread Pete Morganic
Slkigh Ammendment to below https://www.google.com";) ; die; ?> Jake Johnson wrote: Have you tried... https://www.google.com";) ; ?> Regards, Jake Johnson [EMAIL PROTECTED] -- Plutoid - http://www.plutoid.com Shop Plutoid for the best p

[PHP] Synchronize MYSQL

2003-06-20 Thread khuram noman
Dear Members How to Synchronize two MYSQL databases in php Thanks khuram noman __ Do you Yahoo!? SBC Yahoo! DSL - Now only $29.95 per month! http://sbc.yahoo.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.ph

Re: [PHP] [Newman] Passing an image through a php file.

2003-06-20 Thread Lars Torben Wilson
On Thu, 2003-06-19 at 20:19, Mark Tehara wrote: > > $myimage="..//..//site//images//2.jpg"; > > header("Content-type: image/jpeg"); > fopen ("$myimage", "r"); > readfile("$myimage") ; > fclose("$myimage"); > > ?> > > This seemed to do the trick for me. Thank you. > > / Mark Even better, you

Re: [PHP] safe mode and mail

2003-06-20 Thread David Nicholson
Hello, This is a reply to an e-mail that you wrote on Fri, 20 Jun 2003 at 01:40, lines prefixed by '>' were originally written by you. > Hi, > safe mode on and mass mailing wished. I know that it's not possible to > set > the time limit, when safe mode is on. Sure mass mailing using mail > functi

Re: [PHP] Can't pass query string from HTML to PHP

2003-06-20 Thread Thorsten Körner
Hi again Am Freitag, 20. Juni 2003 11:47 schrieb Thorsten Körner: > Am Freitag, 20. Juni 2003 08:06 schrieb Robby Ku: > > Hi, > > > > I've got a problem passing a query string from a HTML file to a PHP file. > > I created a HTML file called "welcome.html" with the following link: > > > >

Re: [PHP] Can't pass query string from HTML to PHP

2003-06-20 Thread Thorsten Körner
Am Freitag, 20. Juni 2003 08:06 schrieb Robby Ku: > Hi, > > I've got a problem passing a query string from a HTML file to a PHP file. I > created a HTML file called "welcome.html" with the following link: > >Hi, I'm Andy > > I am trying to pass the query string Andy to a PHP file calle

Re: [PHP] Help me compose myself... I'm about to kill Microsoft....

2003-06-20 Thread Steve M
On Thu, 19 Jun 2003 13:21:07 +0200, Daniel wrote: > Okay, I think I'll have to kill myself... > I can't believe I am this stupid, but it turned out I was working on a copy > of the file, not the real one. D'OH!!! > Sorry, guys! > Daniel That's no reason not to kill M$... +a Steve -- Steve Ma

[PHP] Re: preg_match

2003-06-20 Thread sven
preg_matchtry without backslashes. $pattern = "/$search/i"; if (preg_match ($pattern, $date[$i])) { echo "$date[$i]"; } you don't need the .*? in your regex (either * or ? multiplier) as preg_match searches for any occurance (not from begin ^ or to end $). ciao SVEN "Aaron Axelsen" <[EMAI

RE: [PHP] Re: Can't pass query string from HTML to PHP

2003-06-20 Thread Ford, Mike [LSS]
> -Original Message- > From: Robby Ku [mailto:[EMAIL PROTECTED] > Sent: 20 June 2003 08:25 > > Thanks for the fast response given. I tried both Jan's and > Martin's method but it won't solve the problem. > > I've tried to change "register_globals = On" in php.ini and i > got the same

RE: [PHP] Migrating pre-4.1 code to a post-4.1 server with register_globals on

2003-06-20 Thread Ford, Mike [LSS]
> -Original Message- > From: Johnson, Kirk [mailto:[EMAIL PROTECTED] > Sent: 19 June 2003 20:31 > To: [EMAIL PROTECTED] > Subject: [PHP] Migrating pre-4.1 code to a post-4.1 server with > register_globals on > > > A heads-up to those who are moving old code with > register_globals "on" t

Re: [PHP] How to secure site?

2003-06-20 Thread Marek Kilimajer
Andrew Afliatunov wrote: Other way - I can turn on safe_mode and include www/lib in safe_mode_include_dir. In this case projects will be able to include scripts from lib, BUT won't be able to create files in cache because scripts and cache have different owners. Go this way, but create a separate

Re: [PHP] Convert KB to MB?

2003-06-20 Thread Ian Mantripp
on Thu, Jun 19, 2003, Brent Baisley wrote: >Ahhh, but then marketing gets involved and changes the 1024 to 1000 and >ta da, you now have more MegaBytes. 1024 is the right number to use, >but don't be surprised if it doesn't match with some numbers you might >compare it to. Not necessarily, in

Re: [PHP] strange crypt() problem

2003-06-20 Thread Awlad Hussain
If I use MD5 based encryption...would i have similar problem in the future when i move the codes around to different server? - Original Message - From: "Jeff Harris" <[EMAIL PROTECTED]> To: "Sævar Öfjörð" <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Friday, June 20, 2003 12:06 AM Sub

php-general Digest 20 Jun 2003 08:31:10 -0000 Issue 2128

2003-06-20 Thread php-general-digest-help
php-general Digest 20 Jun 2003 08:31:10 - Issue 2128 Topics (messages 152226 through 152283): Re: Month loop 152226 by: CPT John W. Holmes 152228 by: David Nicholson 152229 by: Dan Joseph 152230 by: drparker 152236 by: Tyler Lane SNMP v2 15222

Re: [PHP] When to escape slashes, and when not to???

2003-06-20 Thread Marek Kilimajer
Gerard Samuel wrote: I have a class method that does one thing and one thing only. Escape characters before going to the DB. Part of it is -> if (!get_magic_quotes_gpc()) { $string = pg_escape_string( $string ); } return "'" . $string . "'"; In everyday get/post operation it seems to work fla

Re: [PHP] file problem

2003-06-20 Thread Jason Wong
On Friday 20 June 2003 16:23, Adina wrote: > I have this script named test.php: [snip] > This script dosen't work. I receive the following warning: > Warning: > file("http://www.google.fr/search?q=beautiful&hl=fr&lr=&ie=UTF-8&oe=UTF-8&s >tart=10&sa=N") - No such file or directory in test.php on l

[PHP] Authentication: Addressing the user variable

2003-06-20 Thread Jason End
I'm using LDAP to authenticate my users. login.php and any script that requires authentication start off with the following code: -- session_start(); if (session_is_registered("valid_user")) { header( "Location: admin.php" ); -- The ldap binds as such: ldap_bind($ds, "uid=$uid,ou=people,dc=server,

Re: [PHP] Re: Can't pass query string from HTML to PHP

2003-06-20 Thread Robby Ku
Hi again, Thanks for the fast response given. I tried both Jan's and Martin's method but it won't solve the problem. I've tried to change "register_globals = On" in php.ini and i got the same result. I've tried using $_Get['name'] instead of $name but i got the following error: Parse erro

[PHP] file problem

2003-06-20 Thread Adina
I have this script named test.php: http://www.google.fr/search?q=beautiful&hl=fr&lr=&ie=UTF-8&oe=UTF-8&start=10&sa=N'); // Loop through our array, show html source as html source; and line numbers too. foreach ($lines as $line_num => $line) { echo "Line #{$line_num} : " . htmlspecialchars($li

[PHP] Configuring PHP5 in IIS 6.0

2003-06-20 Thread Roberto Ramírez
Hello I am trying to configure one snap shot of PHP5 in IIS 6.0 to test some stuff, but somehow i can't make it work correctly. This is what i get: CGI Error The specified CGI application misbehaved by not returning a complete set of HTTP h