[PHP] php mail confirmation

2002-11-14 Thread Martin Hudec
Hello all, I would like to ask how can I make registration confirmation by email...user will receive mail confirming his registration immediately after he registers in application.is it possible to make mail() function filled with data from registration (email)? -- Best regards, Martin

Re: [PHP] session randomly loses objects

2002-11-14 Thread Ernest E Vogelsinger
At 07:39 14.11.2002, Josh Bauguss said: [snip] >I've got a fairly high traffic server. (30-50K uniques per day) > >For the most part, everything works ok. We get plenty of orders (between >70-90 a day). However, I also get complaints from people who say t

[PHP] Syntax Help

2002-11-14 Thread conbud
Whats wrong here ?? The variables are getting the correct information from the form but for some reason as soon as I put the variables into the $sql they dont post the proper data to the database, its connecting to the database ok but just not updating the data. $sql = "UPDATE updates SET member=

Re: [PHP] Syntax Help

2002-11-14 Thread Jason Wong
On Thursday 14 November 2002 17:22, conbud wrote: > Whats wrong here ?? The variables are getting the correct information from > the form but for some reason as soon as I put the variables into the $sql > they dont post the proper data to the database, its connecting to the > database ok but just n

[PHP] LDAP specific?

2002-11-14 Thread Tony Earnshaw
People, I'm trying to produce a "book of mugs" (a 'mug' is a 'face') for people at work to be able to manage and change, as far as they are allowed to, their own personal details in the org's directory database. It's based on PHP 4.2.3/Apache and Openldap 2.1.8 and above and/or Novell eDirectory

Re: [PHP] php mail confirmation

2002-11-14 Thread Jason Wong
On Thursday 14 November 2002 17:02, Martin Hudec wrote: > Hello all, > > I would like to ask how can I make registration confirmation by > email...user will receive mail confirming his registration immediately > after he registers in application. > is it possible to make mail() > function fil

[PHP] Re: _POST incorrect output...

2002-11-14 Thread Sebastian Konstanty Zdrojewski
The substitution is made only to array keys, not its values... Brad Apps wrote: Hey Again, I am doing the output from a _POST array and it seems to replace all spaces and '.'s in the file names with '_'. so a file name brads doc.htm outputs as brads_doc_htm. Any suggestions, PLEASE. Thanks.

Re: [PHP] Syntax Help

2002-11-14 Thread Petre Agenbag
What do you mean by "dont post proper data"? Have you added slashes to the variables? (use addslashes() and then stripslashes() when reading the contents from the db) On Thu, 2002-11-14 at 11:22, conbud wrote: > Whats wrong here ?? The variables are getting the correct information from > the form

Re: [PHP] runing com

2002-11-14 Thread kai
Hi Michael, thanks for your reply. > Firstly - that error would suggest to me that Word is not installed on your > machine. Thats true thats why i've been trying to start other applications like wordpad, just to see some funktionality. >... try looking it up in the registry to confirm the regist

Re: [PHP] LDAP specific?

2002-11-14 Thread Chris Hewitt
Tony Earnshaw wrote: frame. To do this, PHP needs to be fed 'header("Content-type: image/jpeg")'. This can be put more or less anywhere in the very short script used for showing the jpeg and works. However, if I try to put any more html code into the script, i.e. 'print ';, print ''; etc, *anywhe

[PHP] Re: Need Help in escaping " and\

2002-11-14 Thread Per
Hi \ is the escape character: $real_path=$real_path."\DefaultFld\SubFld\"; should be $real_path=$real_path."\\DefaultFld\\SubFld\\"; or $real_path .= "\\DefaultFld\\SubFld\\"; if you want to shorten it. Ppf wrote: Hi All: I am trying to generate the directory path dynamically to save the Uploaded

Re[2]: [PHP] locale

2002-11-14 Thread Bc. Radek Krejča
Hello, sorry, I have no expiriences with this problem. I was looking for somethink about localo on OpenBSD and I find OpenBSD not support locale. I don't know what is localedef on OpenBSD or what I may do to use function SetLocale in PHP if I runnig it on OpenBSD. Could you help me with

[PHP] multiple file upload

2002-11-14 Thread Funk-XL
Is it possible to upload multiple files at once without selecting each file with seperate form fields? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] multiple file upload

2002-11-14 Thread Funk-XL
Hi All, Is it posible to do multiple file upload without selecting each file manual in multiple form fields? Rob -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] runing com

2002-11-14 Thread Michael Hazelden
Apologies all - that should have just gone to the Windows list ... -Original Message- From: Michael Hazelden [mailto:michael.hazelden@;ocado.com] Sent: 14 November 2002 10:18 To: 'kai'; [EMAIL PROTECTED] Subject: [PHP-WIN] RE: [PHP] runing com Kai, I've moved this to the Windows list be

RE: [PHP] multiple file upload

2002-11-14 Thread John W. Holmes
> Is it posible to do multiple file upload without selecting each file > manual > in multiple form fields? No. ---John Holmes... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] multiple file upload

2002-11-14 Thread Justin French
Hi, on 14/11/02 8:12 PM, Funk-XL ([EMAIL PROTECTED]) wrote: > Is it posible to do multiple file upload without selecting each file manual > in multiple form fields? Nope. Only way I can think of would be if the files were pre-zipped/stuffed/gzipped/etc, AND if you were able to decompress on the

Re: [PHP] multiple file upload

2002-11-14 Thread Jason Wong
On Thursday 14 November 2002 18:12, Funk-XL wrote: > Hi All, > > Is it posible to do multiple file upload without selecting each file manual > in multiple form fields? Nope. -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Integrators * Web Design & Hosting *

Re: [PHP] posible bug, require and symlinks

2002-11-14 Thread Krzysztof Dziekiewicz
> When I require a file from index.php, if there's no .. on the path (a relative > path, but not going back), the relative path is from where the original file > is, but if there's a .. on the path, the relative path is from where the > symlink is (although php identifies the script as the origin

Re: [PHP] LDAP specific?

2002-11-14 Thread Krzysztof Dziekiewicz
> I can show a jpeg using a href with a target, either in a new page or a > frame. To do this, PHP needs to be fed 'header("Content-type: > image/jpeg")'. This can be put more or less anywhere in the very short > script used for showing the jpeg and works. However, if I try to put any > more html c

[PHP] connecting to a remote host through mysql.exe

2002-11-14 Thread Mr. BuNgL3
Hi... How can i connect to a remote host database through mysql.exe? Thank you -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] connecting to a remote host through mysql.exe

2002-11-14 Thread Jason Wong
On Thursday 14 November 2002 19:17, Mr. BuNgL3 wrote: > Hi... > How can i connect to a remote host database through mysql.exe? > Thank you This is the PHP list, try asking on the MySQL list? -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Integrators * Web D

[PHP] Re: connecting to a remote host through mysql.exe

2002-11-14 Thread Brian McGarvie
mysql -u username -pPASSWORD -h www.domain.com "Mr. Bungl3" <[EMAIL PROTECTED]> wrote in message news:20021114111727.44334.qmail@;pb1.pair.com... > Hi... > How can i connect to a remote host database through mysql.exe? > Thank you > > -- PHP General Mailing List (http://www.php.net/) To unsubs

RE: [PHP] Would appreciate thoughts on session management

2002-11-14 Thread Ford, Mike [LSS]
> -Original Message- > From: Charles Wiltgen [mailto:lists@;wiltgen.net] > Sent: 13 November 2002 18:28 > > Here's what I > was using: > > Form: > > http://domain.com/"; name="the_form"> > > > > Link: > > http://coremessaging.com/"; > onClick="document.the

RE: [PHP] Would appreciate thoughts on session management

2002-11-14 Thread Ford, Mike [LSS]
Additionally... > -Original Message- > From: Charles Wiltgen [mailto:lists@;wiltgen.net] > Sent: 13 November 2002 18:28 > > Ford, Mike [LSS] wrote... > > > ...But why would they even see that in the first place > If I want them > > to click on a button to do something

[PHP] Re: How do i make an upload script?

2002-11-14 Thread Tweak2x
ok, this is upload.php: Send this file: what else do i need? "@ Edwin" <[EMAIL PROTECTED]> wrote in message news:20021112124140.71748.qmail@;pb1.pair.com... > > "Tweak2x" <[EMAIL PROTECTED]> wrote in message > news:20021112123023.55841.qmail@;pb1.pair.com... > > How do i make an upload scri

Re: [PHP] small php engine

2002-11-14 Thread Marek Kilimajer
I found this: http://hints.se.linuxfromscratch.org/hints/apache+php4+sql.hint.txt Not sure how small it gets Maximilian Eberl wrote: Hi list, has anyone ever experimented to "melt down" the php engine to a few hundred KBs ? By leaving out not needed libraries/functions ? What i am searching fo

RE: [PHP] Re: How do i make an upload script?

2002-11-14 Thread Jon Haworth
Hi, > > > How do i make an upload script? > > > > http://us.php.net/manual/en/features.file-upload.php > > ok, this is upload.php: > > > > Send this file: > > Yup, copied and pasted from the manual page, that should work. > > what else do i need? 1. A script to receive the uploads 2. A

[PHP] Image from MIME email

2002-11-14 Thread Christoph
Hello, I'm currently programming a webmail interface with php 4.1.2 and c-client 2001. I'm getting the Mime data from the mail. Now I have the image data as text but how I can get it into an field? greetz peterschen Liebe ist auch nach einem Bluescreen zu behaupten es gäbe keine Alternativ

Re: [PHP] How to cache PHP on Apache

2002-11-14 Thread Marek Kilimajer
Do you use sessions? If so, try using session_cache_limiter() function. Otherwise connect directly to apache with telnet and see the headers yourself. Luanna Silva wrote: Hello! I´m having major problems while trying to cache php scripts on Apache. Could you help me, please? I really dont k

[PHP] how to generate ms-word files

2002-11-14 Thread michael
hello I'm trying to generate ms-word files with php. Until now, I can create a document and even insert page-breaks. Is there any tutorials going further (boxes, mergedocuments etc...)? this is my code so far: Text before PagBreak Text after PagBreak Thank you for any help. michael

Re: [PHP] LDAP specific?

2002-11-14 Thread Tony Earnshaw
tor, 2002-11-14 kl. 11:14 skrev Chris Hewitt: > >frame. To do this, PHP needs to be fed 'header("Content-type: > >image/jpeg")'. This can be put more or less anywhere in the very short > >script used for showing the jpeg and works. However, if I try to put any > >more html code into the script, i.

Re: [PHP] posible bug, require and symlinks

2002-11-14 Thread Michael Sims
On Wed, 13 Nov 2002 20:12:44 -0500, you wrote: >When I require a file from index.php, if there's no .. on the path (a relative >path, but not going back), the relative path is from where the original file >is, but if there's a .. on the path, the relative path is from where the >symlink is (alt

Re: [PHP] multiple file upload

2002-11-14 Thread Marek Kilimajer
Don't get mistaken. Sure it is possible: this will give you $_FILES['file']['name'][0],$_FILES['file']['name'][1],$_FILES['file']['name'][2], the same for [type],[tmp_name] and [size] Funk-XL wrote: Hi All, Is it posible to do multiple file upload without selecting each file manual in mul

Re: [PHP] multiple file upload

2002-11-14 Thread Marek Kilimajer
Sorry, now I read your question thoroughly, no this is not possible Funk-XL wrote: Hi All, Is it posible to do multiple file upload without selecting each file manual in multiple form fields? Rob -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.ne

RE: [PHP] multiple file upload

2002-11-14 Thread Edward Peloke
I am probably missing something here, how would you select each file you want? Do you mean just using one form field? Seems like this would be ugly if it was even possible which it looks like it is not. I have a script that uses multiple form fields but one upload button and then just loops thro

Re: [PHP] posible bug, require and symlinks

2002-11-14 Thread Jonathan Sharp
Can you post some sample code as well as paths to symlinks etc. -js Michael Sims wrote: > On Wed, 13 Nov 2002 20:12:44 -0500, you wrote: > > >>When I require a file from index.php, if there's no .. on the path (a relative >>path, but not going back), the relative path is from where the origin

[PHP] Re: Image from MIME email

2002-11-14 Thread Erwin
Christoph wrote: > Hello, > > I'm currently programming a webmail interface with php 4.1.2 and > c-client 2001. > I'm getting the Mime data from the mail. > Now I have the image data as text but how I can get it into an > field? At first, you'll have to convert the data back to binary using the e

[PHP] PHP download problem IE5 on mac

2002-11-14 Thread Javier Montserat
I'm using this code to various files for download via a http header - $filename = basename($filepath); header("Content-type: unknown/unknown"); header("Content-Disposition: attachment; filename=$filename"); readfile($filepath); works fine in most cases - the save dialogue appears. However - IE

[PHP] passing multiple variables in a url

2002-11-14 Thread CJ
I have a "contact us" php script on my site that allows users to email direct from the webiste. I want to be able to pass the to address and subject line to the script so I can call teh web page from elsewhere on the site and have it automatically choose the correct email address and subject line.

Re: [PHP] passing multiple variables in a url

2002-11-14 Thread pig pig
you will have to use "&" to separate the variables. ie Otherwise it will be deem as one variable instead CK Ong --- CJ <[EMAIL PROTECTED]> wrote: > I have a "contact us" php script on my site that > allows users to email > direct from the webiste. I want to be able to pass > the to address an

Re: [PHP] LDAP specific?

2002-11-14 Thread BigDog
Why can u not do a page that displays the images as img src? That should work for ya...instead of sending the headers. Are u saving the image in the ldap server? On Thu, 2002-11-14 at 09:27, Tony Earnshaw wrote: > People, > > I'm trying to produce a "book of mugs" (a 'mug' is a 'face') for pe

Re: [PHP] LDAP specific?

2002-11-14 Thread BigDog
This is how I do it. I create a php page that gets the image and sends the correct header. Then in my other php page that displays the details about a user i call . Then in showperson i send the correct image headers and the image is displayed properly. HTH... On Thu, 2002-11-14 at 10:50, Krzys

Re: [PHP] how to generate ms-word files

2002-11-14 Thread BigDog
You might want to do a search on google and see if someone has written a class on creating word documents. I am almost certain that someone has created on. This will save you much time... On Thu, 2002-11-14 at 12:34, michael wrote: > hello > > I'm trying to generate ms-word files with php. Unti

[PHP] Re: multiple file upload

2002-11-14 Thread Javier Montserat
Is it posible to do multiple file upload without selecting each file manual in multiple form fields? Yes. I have recently implemented an upload mechanism based on hotmails add attachment mechanism. haven't got time for a detailed explanation but here is the basic idea - on your html page - /

Re: [PHP] passing multiple variables in a url

2002-11-14 Thread BigDog
Does this not work... On Thu, 2002-11-14 at 14:11, CJ wrote: > I have a "contact us" php script on my site that allows users to email > direct from the webiste. I want to be able to pass the to address and > subject line to the script so I can call teh web page from elsewhere on the > site an

Re: [PHP] PHP download problem IE5 on mac

2002-11-14 Thread Ernest E Vogelsinger
At 15:13 14.11.2002, Javier Montserat spoke out and said: [snip] >I'm using this code to various files for download via a http header - > >$filename = basename($filepath); >header("Content-type: unknown/unknown"); >header("Content-Disposition: attachment; fil

Re: [PHP] passing multiple variables in a url

2002-11-14 Thread Adam Williams
Change the space in job enquiry to a + Adam On 14 Nov 2002, BigDog wrote: > Does this not work... > > > > > > On Thu, 2002-11-14 at 14:11, CJ wrote: > > I have a "contact us" php script on my site that allows users to email > > direct from the webiste. I want to be able

Re: [PHP] passing multiple variables in a url

2002-11-14 Thread CJ
that works fine thanks. Now for what to do with the variables (new post "scanning for non alpha characters") "Bigdog" <[EMAIL PROTECTED]> wrote in message news:1037262239.10847.17.camel@;pclnxrhunter.digitalglobe.com... > Does this not work... > > > > > > On Thu, 2002-11-14 at 14:11, CJ wrote: >

[PHP] scanning for non alpha characters

2002-11-14 Thread CJ
I want to scan the variables passed from teh url of my script for non alpha characters. The variables should only consist of a-z A-Z 0-9 and spaces, full stops and commas (Basically I don't want scripts to be passed via the variable to the server) I've used perl a long time ago and its regular ex

Re: [PHP] passing multiple variables in a url

2002-11-14 Thread @ Edwin
And... --- CJ <[EMAIL PROTECTED]> wrote: ...[snip]... > > Also is this a big security risk as I will be > > echoing the 2nd variable as the contents of a form field. > > Would it be possible for someone to type in > > the URL with HTML/php in it that would make a mess > > of everything? Well, i

[PHP] Re: scanning for non alpha characters

2002-11-14 Thread Coert Metz
PHP also supports regular expressions Check the manual at php.net for more information (ereg_replace a.s.o) Coert Cj wrote: I want to scan the variables passed from teh url of my script for non alpha characters. The variables should only consist of a-z A-Z 0-9 and spaces, full stops and commas

Re: [PHP] passing multiple variables in a url

2002-11-14 Thread @ Edwin
And if you want your pages to be valid xhtml, make sure that you have quotes: Also, be sure to use "&" instead of just "&". - E "Adam Williams" <[EMAIL PROTECTED]> wrote: > Change the space in job enquiry to a + > > Adam > > On 14 Nov 2002, BigDog wrote: > > > Does this not work... > > > >

RE: [PHP] Re: How do i make an upload script?

2002-11-14 Thread brucedickey
Jon, There's bulk-emailer on hotscripts.com. You could look at its code. Bruce -Original Message- From: Jon Haworth [mailto:jhaworth@;witanjardine.co.uk] Sent: Thursday, November 14, 2002 5:37 AM To: 'Tweak2x'; [EMAIL PROTECTED] Subject: RE: [PHP] Re: How do i make an upload script? Hi

[PHP] Swear word substitution

2002-11-14 Thread CJ
I've got a mysql based website with a php scripted fromt end. I want to parse the output the php scripts get from the database before "printing it as html" for swear words and substitute these for more acceptable words (on a word for word basis). I need to do it this way as I want to keep the orig

Re: [PHP] scanning for non alpha characters

2002-11-14 Thread Ernest E Vogelsinger
At 16:32 14.11.2002, CJ spoke out and said: [snip] >I want to scan the variables passed from teh url of my script for non alpha >characters. The variables should only consist of a-z A-Z 0-9 and spaces, >full stops and commas (Basically I don't want scripts t

[PHP] Re: scanning for non alpha characters

2002-11-14 Thread CJ
Did check them, it suggested that it was an optional library! I'll look into ereg_replace. Thanks CJ "Coert Metz" <[EMAIL PROTECTED]> wrote in message news:3DD3C27A.9070504@;metzonline.nl... > PHP also supports regular expressions > Check the manual at php.net for more information > (ereg_repla

[PHP] Re: multiple file upload

2002-11-14 Thread Javier Montserat
here's a couple of the more tricky code snippets which should make it easy for folks to see how a multiple file upload select can work - the rest is basically a lot of interaction with the database - storing / retrieving the upload list. Its a bit tricky but worth it though - the users responci

[PHP] query question

2002-11-14 Thread Steve Buehler
I have been trying to figure something out here and am having problems. What I have is a problem with outputting some info in a table. Here is what I have and the problem is in the "getstart_end" function. This should be a working copy if you want to run it and I have put in some sample time

[PHP] Swear word substitution

2002-11-14 Thread CJ
I'm posting this again as i got a mail saying Trend SMEX Content Filter has detected sensitive content. Place = [EMAIL PROTECTED]; ; Sender = CJ Subject = [PHP] Swear word substitution Delivery Time = November 14, 2002 (Thursday) 23:40:23 Policy = Dirty Words Action on this mail = Delete message

Re: [PHP] how to generate ms-word files

2002-11-14 Thread Tom Woody
http://sourceforge.net/projects/php-doc-xls-gen/ On 14 Nov 2002 08:22:00 + BigDog <[EMAIL PROTECTED]> wrote: > You might want to do a search on google and see if someone has written > a class on creating word documents. > > I am almost certain that someone has created on. > > This will save

Re: [PHP] LDAP specific?

2002-11-14 Thread Tony Earnshaw
tor, 2002-11-14 kl. 11:14 skrev Chris Hewitt: > The headers must be the first thing that is sent to the browser. Do all > your other html afterwards, or use output buffering. Please nobody else bother, it's my own stupid fault for not knowing enough. I'm halfway there, output buffering will pro

Re: [PHP] PHP Auth with Apache

2002-11-14 Thread ed
I'm now understanding how you can get PHP to present you with a username and password promt just like APache would do if you had a .htaccess file in the directory you were trying to enter. Great idea but it seems that it would be easier to just use the .htaccess file in the directory. What I've

Re: [PHP] PHP Auth with Apache

2002-11-14 Thread BigDog
Ed, When you do auth with mysql and they succeed then u can set the $_SERVER['PHP_AUTH_USER'] and in theory that should allow you to connect to the directory because that should be set for apache http authentication. You might have to play with it, but i am sure you can get it to work. On Thu,

RE: [PHP] PHP Auth with Apache

2002-11-14 Thread Ysrael Guzmán
Y have a problemm Warning: Cannot send session cache limiter - headers already sent (output started at c:\foxserv\www\t-demo1\pedidos\prod_oficina.php:5) in c:\foxserv\www\t-demo1\pedidos\prod_oficina.php on line 6 Ysrael Guzmán Meza -Mensaje original- De: BigDog [mailto:bigdog@;ventico

RE: [PHP] PHP Auth with Apache

2002-11-14 Thread Adam Voigt
You have a space or a tag or something before you call session_start, session_start has to be the very first thing, unless you use output buffering (ob_start, etc). On Thu, 2002-11-14 at 11:54, Ysrael Guzmán wrote: > Y have a problemm > > Warning: Cannot send session cache limiter - headers alre

Re: [PHP] Mail Question

2002-11-14 Thread R'twick Niceorgaw
put the following line in the .qmail file for that user |/path/to/your/script/yourscript.php HTH R'twick - Original Message - From: "Mike D" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, November 13, 2002 3:12 PM Subject: [PHP] Mail Question > Does anyone know of a way

Re: [PHP] Would appreciate thoughts on session management

2002-11-14 Thread Charles Wiltgen
Ford, Mike [LSS] wrote... >> http://coremessaging.com/"; >> onClick="document.the_form.foo.value='5'; >> document.the_form.submit();">Next > > ... but there's *still* no GET variables involved here... I'm weighing the pros and cons of two different methods: "In

[PHP] Run webscript from command line

2002-11-14 Thread Aate Drageset
Not specifically php-problem, but.. How could i run a php-script from command line (cron.daily) using no GUI or X ?? There should be some way of using a browser or comparable. my PHP is not enabled for command line script. Regards Aate Drageset -- PHP General Mailing List (http://www.php.net/)

Re: [PHP] Run webscript from command line

2002-11-14 Thread Adam Williams
0 0 * * * lynx http://whatever/blah.php &; sleep 5; killall -9 lynx Adam On Thu, 14 Nov 2002, Aate Drageset wrote: > Not specifically php-problem, but.. > How could i run a php-script from command line (cron.daily) using no GUI or X ?? > There should be some way of using

Re: [PHP] Run webscript from command line

2002-11-14 Thread David T-G
Aate -- ...and then Aate Drageset said... % % Not specifically php-problem, but.. % How could i run a php-script from command line (cron.daily) using no GUI or X ?? % There should be some way of using a browser or comparable. Have you tried lynx, links, w3m, or the like? Something like lynx

[PHP] Whats the deal with HotScripts.com?

2002-11-14 Thread www.NukedWeb.com
How many of you have listed "premium" (not free) scripts on HotScripts? Have you ever had ranking problems? Everything was going great for me, I had 12 scripts listed, all on the tops of the categories, and then poof! Now all my scripts are on the last page, I get zero traffic from that site now, a

Re: [PHP] Run webscript from command line

2002-11-14 Thread Ernest E Vogelsinger
At 18:36 14.11.2002, Adam Williams spoke out and said: [snip] >0 0 * * * lynx http://whatever/blah.php &; sleep 5; killall -9 lynx [snip] I believe it's better to let lynx decide when the page is done: 0 0 * * * lynx

Re: [PHP] PHP Auth with Apache

2002-11-14 Thread Ewout de Boer
PHP sends a '401 Authorization required' to your browser (just like apache) and it also gets the user/password info Code example: In this example no user/passwd checking is done... just replace the 'welcome' message with your mysql/ldap check routine and voila ! regards, Ewout de Boer -

Re: [PHP] passing multiple variables in a url

2002-11-14 Thread www.NukedWeb.com
BigDog wrote: > Does this not work... > > > No but this will: For more adversity between browsers, use this: -- Submit your PHP or Perl Script to the newest Script Repository on the web. http://www.nukedweb.com/ The Webmaster's Board - http://www.nukedweb.com/board/ -- PHP General Maili

Re: [PHP] query question

2002-11-14 Thread Marek Kilimajer
Untested, but should work Steve Buehler wrote: function getstart_end(){ $result=mysql_query("SELECT * FROM aplayabletimes ORDER BY min"); while(($row=mysql_fetch_object($result))){ if(!$i){ echo $row->min . " - "; $i=$row->min; }else{ $t

Re: [PHP] PHP Auth with Apache

2002-11-14 Thread ed
I can set the $_SERVER['PHP_AUTH_USER'] and $_SERVER['PHP_AUTH_PW'] easily enough but how would you pass that information along with the redirect so apach doesn't prompt you for username and password? I have tried the header("Location http://usernam:password@;URL") method and it always prompts as

Re: [PHP] query question

2002-11-14 Thread Marek Kilimajer
One mistake Marek Kilimajer wrote: Untested, but should work Steve Buehler wrote: function getstart_end(){ $result=mysql_query("SELECT * FROM aplayabletimes ORDER BY min"); while(($row=mysql_fetch_object($result))){ if(!$i){ echo $row->min . " - ";

[PHP] Regular Expression trouble

2002-11-14 Thread Brent Baisley
I'm trying create form template as I have seen recommended in many places. It seems fairly simple but I can't seem to get ereg_replace to work the way I want it. I'm starting off easy and I want to use the sample template for entering a new record or editing an existing one. If they are editing,

Re: [PHP] query question

2002-11-14 Thread Steve Buehler
Thanks for the help, but that is not actually producing the desired results either. This returns the following results: 00:00:05 - 00:00:05 00:00:05 - 5 00:00:05 - 10 00:00:05 - 15 00:00:10 - 20 00:00:10 - 25 00:00:10 - 30 00:00:10 - 35 00:00:15 - 40 00:00:15 - 45 00:00:15 - 50 00:00:15 - 55 00:0

Re: [PHP] Run webscript from command line

2002-11-14 Thread John Nichel
One way would be to use lynx. Another way is to compile php as a cgi as well as a module. Whenever I install / upgrade php on one of my systems, I compile it twice, with all the same options, save --with-apache. When you don't compile it with a webserver, you'll get the php executable, which

[PHP] shell_exec problem

2002-11-14 Thread Coert Metz
Hi everybody I have some few problems with the shell_exec command. I want to send a fax with hylafax using the sendfax program in linux. When I try to do shell_exec ("sendfax -n -d faxnumber faxfile") it will not work I can see in my httpd file that linux only gets the command 'sendfax' and not

Re: [PHP] query question

2002-11-14 Thread Steve Buehler
Ok. That output was my fault. I had an error in one of my other functions. I needed to set $hours to "00" to start with in my populatetemptable() function. Now my output is: 00:05:00 - 00:05:00 00:05:00 - 00:10:00 00:10:00 - 00:15:00 00:10:00 - 00:20:00 00:15:00 - 00:25:00 00:15:00 - 00:30:00

[PHP] icmp ping, check port, etc.

2002-11-14 Thread Bryan Koschmann - GKT
Hello, I've been looking into setting up a site to check the hosts on my network. Basically, I want it to ping each host and tell whether it is up or not, then also check various services (www, ftp, smtp, pop3, dns, ssh) and see if they are available. This would check either for a connection refus

Re: [PHP] Regular Expression trouble

2002-11-14 Thread Ewout de Boer
You could exclude the '}' sign from the expression $content = ereg_replace("\{[^}]*}","",$content); This should do the trick... i'm not 100% certain about the '[^}]' expression, but you should find it in any regexp tutorial regards, Ewout de Boer - Original Message - From: "Brent Bais

[PHP] PHP apache module question

2002-11-14 Thread Mike D
I am trying to execute a php script from the command line but came to realize that I can't locate any php binary file. I thought there had to be a php bin file in order for php to work or am i missing something? NOTE: i have looked in /usr/bin/, /usr/local/bin/ and ran locates but found nothing

Re: [PHP] icmp ping, check port, etc.

2002-11-14 Thread Ewout de Boer
You could exec the ping command and analyze its output using regular expressions. regards, Ewout de Boer - Original Message - From: "Bryan Koschmann - GKT" <[EMAIL PROTECTED]> To: "PHP General" <[EMAIL PROTECTED]> Sent: Thursday, November 14, 2002 8:09 PM Subject: [PHP] icmp ping, che

Re: [PHP] query question

2002-11-14 Thread Marek Kilimajer
This is checked: function getstart_end(){ $result=mysql_query("SELECT * FROM aplayabletimes ORDER BY min"); while(($row=mysql_fetch_object($result))){ if(!$i){ echo $row->min . " - "; $i=$row->min; } else {

[PHP] STDIN question

2002-11-14 Thread Mike D
Is it possible to pass STDIN data to a php script via wget or lynx (cuz Apache is not installed in CGI mode, so I don't have a binary to call)?? I am trying to create a setup where, a certain email address when sent, takes the message data and passes it to a php script to insert into a DB for

Re: [PHP] LDAP specific?

2002-11-14 Thread Tony Earnshaw
tor, 2002-11-14 kl. 11:50 skrev Krzysztof Dziekiewicz: < > You can not put any html code with image code. > If you send some html you mean to send > header("Content-Type: text/html") > with > header("Content-type: image/jpeg") > Where do you want go to ? > > You can do so: > There is

Re: [PHP] PHP Auth with Apache

2002-11-14 Thread BigDog
You should use sessions for this...however, i would not store the password in the session... And verify it that way...i would probably use all sessions for this... Check sessions first and see...if not then do the mysql or apache auth... When you do sessions you can save the page they are trying

Re: [PHP] PHP apache module question

2002-11-14 Thread BigDog
When you compile php + apachemany people have php as a DSO. So there is no actual binary file in a bin directory that is called. You can also have php as a module that is in the apache core, where it is loaded automatically in apache (not a DSO). You can run php as a cgi which uses the binar

[PHP] Re: passing multiple variables in a url

2002-11-14 Thread Tularis
If I understand correctly, you want to ahev links like: To get the vars from the thread, if you don't know it's name, you can use soemthing like this: foreach($_GET as $key => $name){ $get[] = htmlentites($name, 'ENT_QUOTES'); } that way you'll get a $get array, with all the url parts in it, nu

Re: [PHP] Syntax Help

2002-11-14 Thread conbud
Jason thanks, I completely forgot about trying echo $sql by using that I found where it was messing up. Thanks again. Lee "Jason Wong" <[EMAIL PROTECTED]> wrote in message news:200211141725.47510.php-general@;gremlins.biz... > On Thursday 14 November 2002 17:22, conbud wrote: > > Whats wrong here

Re: [PHP] STDIN question

2002-11-14 Thread Jason Wong
On Friday 15 November 2002 04:05, Mike D wrote: > Is it possible to pass STDIN data to a php script via wget or lynx Not directly. If you're calling a php script via wget then the only way to send info to it would be using something like POST, or by putting the info into the URL. > (cuz Apache

Re: [PHP] STDIN question

2002-11-14 Thread BigDog
You would have to pass it through the "get" method... You can only pass stdin to the binary... On Thu, 2002-11-14 at 20:05, Mike D wrote: > Is it possible to pass STDIN data to a php script via wget or lynx > (cuz Apache is not installed in CGI mode, so I don't have a binary to > call)?? >

[PHP] OOP-related question

2002-11-14 Thread Tularis
Hey, I have the following script: class overall { function overall(){ $this->loaded['overall'] =1; function load($class){ $$class = new $class; $this->loaded[$class] = 1; $$class->setup(); // Run constructor if(!is_object($$class)){ return false; } return true; } } t

Re: [PHP] STDIN question

2002-11-14 Thread Mike D
Thanks for the feedback BigDog and Jason Wong (you guys rock!) That's what I thought as far as the STDIN goes... My host has told me that it would screw up our current DSO version of PHP if we installed a second CGI version of PHP, is that a crock or what? On Thursday, November 14, 2002, at 05

[PHP] Error uploading a file

2002-11-14 Thread Emiliano Marmonti
Hello all, when I try to upload a file I receive the following error: Warning: Max file size of 2 bytes exceeded - file [Archivo] not saved in Unknown on line I've looked into php.ini and it has the limit set to 2Mb. Have looked using phpinfo and everything looks OK. I'm sure this co

Re: [PHP] PHP download problem IE5 on mac

2002-11-14 Thread Jason Wong
On Thursday 14 November 2002 23:22, Ernest E Vogelsinger wrote: > At 15:13 14.11.2002, Javier Montserat spoke out and said: > [snip] > > >I'm using this code to various files for download via a http header - > > > >$filename = basename($filepath); > >header("

  1   2   >