[PHP] how to use Semaphore...

2001-04-27 Thread ±èº´°Ç
how to use Semaphore... through PHP... please help me. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]

Re: [PHP] php4 on RedHat 7.1

2001-04-27 Thread .
Yes, it has that in there right out of the box like this: LoadModule php4_modulemodules/libphp4.so # # AddType: allows you to tweak mime.types without actually editing it, or to # make certain files to be certain types. # # The following is for PHP4 (conficts with PHP/FI, below): Add

Re: [PHP] a (simple) question?

2001-04-27 Thread Michael Kimsal
You can only do one file in each box - get a yahoo mail account and see how they handle file uploading. Ivan Porro wrote: > Hi, > > anyone know a simple way to realize multiple-upload at once (something > like Msoft CTRL-multiple selection when browsing and uniqe Upload > button). I've found on

Re: [PHP] Submiting two forms at the same time

2001-04-27 Thread John Platte
As long as you're using the GET variables simply to pass along values (not allowing the user to change the GET variables), you can stick the values in the action property of your POST form and get the same result. So the below code would become: Hope this helps. (Hello in Goshen...I gre

Re: [PHP] PHP+MS Access and/or MS SQL

2001-04-27 Thread Ivan Porro
10X a lot !!! Bye. Andrew Hill wrote: > > Hi, > > A small correction, remote ODBC DSNs work fine with Access. > It's simply a question of installing appropriate drivers. > > Best regards, > Andrew > -- > Andrew Hill - OpenLink Software > Director Technolog

RE: [PHP] Ultradev PHP Server Model

2001-04-27 Thread Ovidiu EFTIMIE
php4ud became PhAkt (http://www.interakt.ro/phakt) Ovidiu > -Original Message- > From: Matt Williams [mailto:[EMAIL PROTECTED]] > Sent: Friday, April 27, 2001 3:59 PM > To: John Platte; John Monfort > Cc: [EMAIL PROTECTED] > Subject: RE: [PHP] Ultradev PHP Server Model > > > > > > I was

RE: [PHP] PHP+MS Access and/or MS SQL

2001-04-27 Thread Andrew Hill
Hi, A small correction, remote ODBC DSNs work fine with Access. It's simply a question of installing appropriate drivers. Best regards, Andrew -- Andrew Hill - OpenLink Software Director Technology Evangelism Universal Data Access Integration http://www.openl

Re: [PHP] Extracting the body of the http request entity? found it!

2001-04-27 Thread nik
> I would like to add a note to this, that this works in general, but > the thing which actually triggers the setting of $HTTP_POST_RAW_DATA > is a not recognized mime-type. > Aha! Blinding light of understanding - THANKYOU! nik -- PHP General Mailing List (http://www.php.net/) To unsubsc

Re: [PHP] Sorry, wrong sebject :)

2001-04-27 Thread Steven Haryanto
At 4/27/2001 07:35 PM, Manesh wrote: >I need a free web server that gives me 1 Myslq accound and php hoasting! if >soneone know of any please tell me. > >thx search php knowlegde base at www.faqts.com, you'll find a bunch of such links there. -- sh -- PHP General Mailing List (http://www

Re: [PHP] What is this??

2001-04-27 Thread Ivan Porro
try error_reporting(E_ERROR); on top of script. PHP 4 don't like variable (such i.e. variable checked in if() ) before u declare or set them (i.e. in one-page only form management. by. (note: u must be sure that the variable is used correctly! this only kill the annoyng warning) Manesh wrote:

[PHP] HELP!! Mail and attachments

2001-04-27 Thread Tym Rehm
I have been trying to get this to work for days and I'm confused. I want to attach a Word document to an email. I found this code on php.net and I'm trying to modify it to work. I get the email sent, the attached Word document is filled with junk and not the document I'm trying to send. Here is t

RE: [PHP] --enable-trans-sid and forms

2001-04-27 Thread Boget, Chris
> Its my understanding that PHP appends the SID on the > end of the URL regardless of weather its a form or not. If thats > not happening for you, check your php.ini and make sure you > have session.use_trans_sid enabled. It is enabled. And it's being appended to most URLs (though, not

Re: [PHP] PHP+MS Access and/or MS SQL

2001-04-27 Thread Ivan Porro
Hi, www.mysql.com, and check the website for a myaccess or myodbc doc's. I know (I dwnloaded it) that exist a myaccess plugin to save access dB to mysql structure files. >From php side you have a lot of classical dbfunction to access MSAccess dB, simply using odbc_function and creating a ODBC Da

Re: [PHP] --enable-trans-sid and forms

2001-04-27 Thread Larry Hotchkiss
Its my understanding that PHP appends the SID on the end of the URL regardless of weather its a form or not. If thats not happening for you, check your php.ini and make sure you have session.use_trans_sid enabled. "Boget, Chris" wrote: > > If you have PHP compiled with --enable-trans-s

[PHP] a (simple) question?

2001-04-27 Thread Ivan Porro
Hi, anyone know a simple way to realize multiple-upload at once (something like Msoft CTRL-multiple selection when browsing and uniqe Upload button). I've found only a multiple file input field in a form but the numbers of file I'had to upload is unknow. TIA -- (p)Ivan Student DIST Bio-Lab Vi

RE: [PHP] Ultradev PHP Server Model

2001-04-27 Thread Matt Williams
> > I was wondering, is anyone aware of a PHP server model, for Ultradev? > > > > Or, any leads on how I can create one? > > > > I'm developing a site with PHP+MS Access+Ultradev. I wanted to use some > > of the Ultradev server model features (and convenience), but > > they only support ASP/JSP/J

[PHP] suggestions for binary data in database

2001-04-27 Thread Ray Hilton
Hi, I have a site, http://rayh.co.uk which is basically my personal home page and nothing more than a hobby. However, on the site, i am currently storing images in the database, purely because i can. But i wonder, how much will the server load be affected when pulling binary data out of the dat

Re: [PHP] PHP Book?

2001-04-27 Thread Ivan Porro
Hi, i suggest three: o) Beginning PHP4 by Chris Lea et. al. Editors ISBN and so on at: www.amazon.com/exec/obidos/search-handle-form/107-8101819-4534115 o) PHP poket reference by Rasmus Leedorf, O'Reilly. OK 4 a brief fuction reference and fundamentals (it's the best choice when you learn some

RE: [PHP] forms and RETURN key

2001-04-27 Thread Matt Williams
> If I run this form using IE, hitting the Return/Enter key submits the form > but the 'ok' variable is not set; it just redraws the form. If however, I > uncomment the third echo line (the one for Name2), then hitting the > Return/Enter key does have the desired effect in IE. In NS, the first

RE: [PHP] PHP Book?

2001-04-27 Thread Angerer, Chad
Professional PHP by WROX. Great book. It provides you with some real world examples. Chad Angerer HTML Programmer Internet Broadcasting Systems 651.365.4006 -Original Message- From: Hamed Nik [mailto:[EMAIL PROTECTED]] Sent: Friday, April 27, 2001 8:10 AM To: [EMAIL PROTECTED] Subject

Re: [PHP] What's wrong with Apache + php + mysql on Windows?

2001-04-27 Thread Ivan Porro
Hi, I've a w2k installation with Apache and it's a very fast and reliable environment. Ok, still prefer Linux but... My machine is a celeron433 (just pushed to 507) and 128M ram, w2kpro eng. Hope this help you, bye Steve Maroney wrote: > > I think the question should be what's wrong with > Wi

RE: [PHP] Extracting the body of the http request entity? found it!

2001-04-27 Thread Bruin, Bolke de
I would like to add a note to this, that this works in general, but the thing which actually triggers the setting of $HTTP_POST_RAW_DATA is a not recognized mime-type. Bolke -Oorspronkelijk bericht- Van: nik [mailto:[EMAIL PROTECTED]] Verzonden: Friday, April 27, 2001 3:04 PM Aan: [EMAI

SV: [PHP] PHP Book?

2001-04-27 Thread Johan Holst Nielsen
> Hey everyone... > > I've been programming in perl for about 3 years now, i have installed php > and have been working on it for about three weeks. I started by converting > some of the programs I've written in Perl to PHP it seems its pretty > similar to Perl and not very hard to learn for a

[PHP] PHP Book?

2001-04-27 Thread Hamed Nik
Hey everyone... I've been programming in perl for about 3 years now, i have installed php and have been working on it for about three weeks. I started by converting some of the programs I've written in Perl to PHP it seems its pretty similar to Perl and not very hard to learn for a perl progr

Re: [PHP] Extracting the body of the http request entity? found it!

2001-04-27 Thread nik
> > According to the w3c docs, POSTed content is sent in the "request > entity body". Since the request has a header, it's logical that it can > have a body too :-) but I don't see any PHP functionality for getting at > it. Someone in another group suggested accessing a variable called > $HTTP_R

RE: [PHP] Variable (naming them) Functions.

2001-04-27 Thread SED
Why not use classes? If I understand you problem correctly, I think classes should solve your problem. Right? SED -Original Message- From: Maxim Maletsky [mailto:[EMAIL PROTECTED]] Sent: 27. apríl 2001 11:58 To: 'PHP General List. (E-mail)' Subject: [PHP] Variable (naming them) Functions

Re: [PHP] explode won't explode

2001-04-27 Thread jdwright
Hiya, > I have the following code that doesn't seem to "explode." I'm trying to make > a field that looks like 21,23,25,27 or small,medium,large,x-large into a > pulldown menu with the individual item broken out. > > if (($size != "") && ($size != "n/a")) { >$sizearry = explode(",", $size);

RE: [PHP] RE: What is this??

2001-04-27 Thread Jon Haworth
Try http://members.evolt.org/ HTH Jon -Original Message- From: Manesh [mailto:[EMAIL PROTECTED]] Sent: 27 April 2001 13:35 To: Manesh; [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: [PHP] RE: What is this?? I need a free web server that gives me 1 Myslq accound and php hoasting! if so

[PHP] RE: scripts execute as user nobody

2001-04-27 Thread Daniel BI
If you are compiling php as an apache module, you may configure apache with the options: --server-uid=asduk and --server-gid=asdukgrp (or what you want..) if you don't compile them at all, may try to set the directory's group as asdukgrp like this: chgrp asdukgrp -R path-to-your-php-scripts-dir

[PHP] Sorry, wrong sebject :)

2001-04-27 Thread Manesh
I need a free web server that gives me 1 Myslq accound and php hoasting! if soneone know of any please tell me. thx -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administra

[PHP] RE: What is this??

2001-04-27 Thread Manesh
I need a free web server that gives me 1 Myslq accound and php hoasting! if soneone know of any please tell me. thx -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators

[PHP] explode won't explode

2001-04-27 Thread Tom Beidler
I have the following code that doesn't seem to "explode." I'm trying to make a field that looks like 21,23,25,27 or small,medium,large,x-large into a pulldown menu with the individual item broken out. if (($size != "") && ($size != "n/a")) { $sizearry = explode(",", $size); while (list($key

RE: [PHP] Problem with the HTTP_REFERER

2001-04-27 Thread Simon Ould
I guess that this is worth a mention: (Copied from http://www.php.net/manual/en/function.header.php) "Remember that the header() function must be called before any actual output is sent, either by normal HTML tags blank lines in a file, or from PHP. It is a very common error to read code with incl

Re: [PHP] Problem with the HTTP_REFERER

2001-04-27 Thread Rosen
Thanks very much !!! Rosen Marinov "Simon Ould" <[EMAIL PROTECTED]> wrote in message 511B289BD436D41199AE0001021A9B5E05C5AB@SERVER">news:511B289BD436D41199AE0001021A9B5E05C5AB@SERVER... > My interpretation of the problem is: > You want a link on page A.php which points to B.php, > B.php does so

[PHP] Variable (naming them) Functions.

2001-04-27 Thread Maxim Maletsky
got a typo in my previous post: I was trying this: $fname = 'hello'; function { sprintf("%s", $fname) }($fname='') { Return "I named you : $fname"; } echo $fname($fname); But that doesn't matter... Thanks, waiting for your help. Maxim Maletsky Founder, Chief Developer PH

[PHP] RE: Sizeof a multi-dimensional array??

2001-04-27 Thread Tim Ward
you need to count all the elements in each of the elements. $x is a simple array each member of which is an array this should work for any array, although for some reason it falls over if the array passed in hasn't been predfined as an array. i.e. ... works but ... ... doesn't. I haven't wor

[PHP] Variable (naming them) Functions.

2001-04-27 Thread Maxim Maletsky
Hello everyone: I was wondering, does anyone of you know a method to declare a function (give it a name) basing on a value acquired during run time? I tried using the syntax as of a variable function call: $fname = 'hello'; function { sprintf("%s", $fname) }($arg='') { Retu

[PHP] session.auto_start problem

2001-04-27 Thread Andreas Wolff
hi all, i'm using PHP on a Win98 machine, and after switching session.auto_start=1, PHP is enhancing every address with SessionID's; well, normally I'm satisfied with this behaviour, but for a single page containing some javascript I would like to have it turned it off. I red there is a compilin

[PHP] RE: Parsing HTML files from an external web server

2001-04-27 Thread Tim Ward
Are you looking at the site the calling script is on? I had the same problem spidering my site to build a search engine. Using "http://localhost/"; instead of the site address got it working. I find that file() works fine on external pages but falls over (in exactly the same way as yours) when ac

Re: [PHP] What's wrong with Apache + php + mysql on Windows?

2001-04-27 Thread Steven Haryanto
Are you referring to delay in executing PHP scripts? If you run PHP as a CGI binary, that would give significant slowdown. CGI's are much slower in Windows than in Linux. Or perhaps you are running out of RAM? That really slows the whole thing down. Steve At 4/27/2001 06:14 AM, Mig wrote: >Hell

[PHP] please help!

2001-04-27 Thread kaab kaoutar
Hi! can u please chek this url http://www.tekora.com/tekora.html its a flash demo of an online site builder? do u think we can create a site for someone that way online using ph (fast template) ? thanks _ Get Your Private, Fr

Re: [PHP] Problem with the HTTP_REFERER

2001-04-27 Thread Geir Eivind Mork
On Thursday 26 April 2001 13:33, Rosen wrote: > main.php: > Click here You need a good deal of beating if you do your markup like that. there are something called a standard and that standard would make that line look like this: http://www.moijk.net/ | amusing? 3. Does it know its p

php-general Digest 27 Apr 2001 10:34:07 -0000 Issue 652

2001-04-27 Thread php-general-digest-help
php-general Digest 27 Apr 2001 10:34:07 - Issue 652 Topics (messages 50523 through 50590): Sizeof a multi-dimensional array?? 50523 by: Chris Anderson 50556 by: Maxim Maletsky Re: Ultradev PHP Server Model 50524 by: John Platte 50532 by: Andrew Hill

RE: [PHP] Problem with the HTTP_REFERER

2001-04-27 Thread Simon Ould
My interpretation of the problem is: You want a link on page A.php which points to B.php, B.php does some stuff, then redirects the user to page C.php You want the value of HTTP_REFERER on page C.php to be A.php Correct? If so, read on, if not, then delete this email. I'm using php-4.0.4pl1, a

Re: [PHP] Fw: how do I calculate this?

2001-04-27 Thread bill
$days = ; if ($days % 7 == 0) { ...then $days is divisible by seven; } else { ...if is not; } the % is the modulus operator. basically divides left hand side by right hand side and returns the remainder. HTH On Fri, 27 Apr 2001, Jacky wrote: > - Original Message - > From: Jacky >

Re: [PHP] Re: check if an url is valid

2001-04-27 Thread Manisha
Any body know how to un-subscribe temporarily. As I am going out station for 2 weeks. I want to stop all my PHP user group mails. (other wise there will be big junk) But later again I want to restart. If I un-subscribe now whether I will be able to subscribe again ? manisha -- PHP General

[PHP] help me pls

2001-04-27 Thread Yamin Prabudy
I write a script for dealing with a form and the algorithem will look like this if (isset($somthing)) { the form is here and user input it } if($filter_in_the_form == 'something) { print the 1st } elseif($all_condition_done == 'OK') { print the 2nd } else { print nothin

[PHP] Re: check if an url is valid

2001-04-27 Thread yanto
there is no pure fopen function available to connect to other site. because basically fopen use to open file (file open). fopen in php just try to facilite programmer with human friendly name, but inside, when the argument is url, it'll make standard socket connection like any other tcp/ip connet

RE: [PHP] How to execute a php scripts

2001-04-27 Thread Henning Kilset Pedersen
Bertrand, if you're serious about trying to get help for something, it would be very helpful if you ask a more specific question, with code samples of what you've done so far. There are excellent tutorials on this subject, at http://www.phpbuilder.com, http://www.phpbeginner.com, http://www.zend

Re: [PHP] What's wrong with Apache + php + mysql on Windows?

2001-04-27 Thread nik
> Hello, I can't understand the reason apache server running locally on my > Win98 machine delays so much to respond browser when accesing php > scripts in the form > > http://localhost/myscript.php > > When I transfer php scripts to host server via FTP, script execution is > immediate, even remot

[PHP] Extracting the body of the http request entity?

2001-04-27 Thread nik
I need to write a script which extracts information POSTed by a non-browser client, and stores it on the server. With a browser client I could upload from with form elements and use the PHP upload functions, but using a browser at the client end is not an option here. According to the w3c docs

RE: [PHP] What's wrong with Apache + php + mysql on Windows?

2001-04-27 Thread Nicolas Guilhot
You can try to had HostnameLookups off in your httpd.conf if it is not already present. More info at http://www.apache.org/DELETE_ME/mod/core.html#hostnamelookups --- > Hello, I can't understand the reason apache server running locally on my > Win98 machine delays so much to respond b

[PHP] bug with sessions and output-compression?????

2001-04-27 Thread Sebastian Stadtlich
Hi I just rewrote a website to use sessions all over the site. on one page i used output-compression just to test it. if i use MSIE everything just works fine, BUT: if i use Netscape WITHOUT cookies the PHP does not rewrite the relative urls here is the code of the page : session_start(); fu

[PHP] loops with array_walk or foreach using array??? of variable pairs

2001-04-27 Thread Helmut Ott
I need to run the if-construct below (containing a number of variables in each "branch") using the 2 variables $table1 and $table2 in each run for each combination Is it array_walk or foreach ? (I "guess" that here I need a 2-dim-array, or so, passing always these 2 variables with each run: This

Re: [PHP] sending content-type header after session_start()

2001-04-27 Thread Yasuo Ohgaki
Use ob_start() at the top of script. (Before calling session_start()) It will do what you want. You may want to flush output buffer. Refer to output buffering functions for details. Regards, -- Yasuo Ohgaki <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Hell

[PHP] How to execute a php scripts

2001-04-27 Thread Bertrand TACHAGO
Hi, I want to know how to execute a php scripts which update a MySQL database. I am working on Win 98 and MySQL is install on Linux on another computer. Thank You in Advance. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands,

Re: [PHP] parse error is always on line 1 == error ?

2001-04-27 Thread Frank Joerdens
On Fri, Apr 27, 2001 at 08:49:46AM +0200, Jimmy Lantz wrote: > Hi, I have a problem, > that when I get a parse error it always says that it's on line 1 in > this or that file. > Where is the configuration option to set this right? When I had this problem it turned out that the files in question

[PHP] Fw: how do I calculate this?

2001-04-27 Thread Jacky
Jack [EMAIL PROTECTED] "There is nothing more rewarding than reaching the goal you set for yourself" - Original Message - From: Jacky To: [EMAIL PROTECTED] Sent: Friday, April 27, 2001 2:59 PM Subject: how do I calculate this? Hi all I have a variable that store number of days, I wan

Re: [PHP] check if an url is valid

2001-04-27 Thread Black Dragon
ok, I'll try with socket. Thanks > no, sockets are not a bad solution at all. They are just as fast. > > And plus fsockopen has more functionality such as timing out, result > messages, mess_num etc... what fopen doesn't have. > > I think fsockopen is better for this job. > > > Sincerely, > > M

<    1   2