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

[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] 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] 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] 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] 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

[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

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] 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

[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

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

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] 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

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 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] 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] 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] 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

[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] 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] 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
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

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

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

[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

[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

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

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] 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] 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

[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

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

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

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] 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] 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 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

[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] 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] 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] --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

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 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

[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] 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:

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] 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] 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 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] 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] 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] 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

[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] Build problems

2001-04-27 Thread Yasuo Ohgaki
The cause of this error is complier cannot find kernel related headers. Download kernel source (2.2 not 2.4), and untar under /usr/src/linux. (or get/install kernel source/header RPM for 6.2) Regards, -- Yasuo Ohgaki "Curtis Maurand" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:

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

2001-04-27 Thread John Platte
I use BBEdit on the Mac, uploading PHP code to a Unix server, and I get parse errors on line 1 unless I remember to set line breaks to Unix \n (rather than Mac and Windows line endings, which use different characters). You may be running into a similar problem. Jimmy Lantz wrote: > Hi, I have a

Re: [PHP] network error

2001-04-27 Thread claudia
Hi, maybe now someone can help me. While i get a "network error" message from netscape i get no message from ie. It´s like i make a reload on my page and not that i am sending a lot of data over with my form. While testing with ie i figured out that the problem, why ie displays nothing is, becaus

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

2001-04-27 Thread PHPBeginner.com
no classes CAN'T solve my problem: it is an abstraction layer. called as func_hello(); I want, inside func_hello() {} declare a new function based on what happened before func_hello() was called. In other words: I of course though about classes, and there is in fact a work around, but I need to k

Re: [PHP] PHP Book?

2001-04-27 Thread Randal Pitt
I used 'Professional PHP Programming' by WROX Press first, but to learn more about what PHP can do and the best way to do it, I recommend 'Web Application Development with PHP4', you can get both from Amazon. Randal. "Hamed Nik" wrote in message <9cbr3a$mkc$[EMAIL PROTECTED]>... >Hey everyone..

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

2001-04-27 Thread Jimmy Lantz
Yes, thank you you're right this is exactly what it was, I used Dreamweaver on a mac to edit the files, but now if I encounter parse error I convert them with BBEdit. Thank you. Jimmy Lantz >I use BBEdit on the Mac, uploading PHP code to a Unix server, and I get >parse errors on line 1 unless I

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

2001-04-27 Thread Johnson, Kirk
Here is what I see in my FORM with --enable-trans-sid: PHP is adding the HIDDEN field with the session id. For some reason, it also appends it to the SRC attribute of the image submit button, but doesn't add it in the ACTION url. Kirk > -Original Message- > Its my understandin

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

2001-04-27 Thread Boget, Chris
> Here is what I see in my FORM with --enable-trans-sid: > > VALUE="cbf75d263416e77d773b1772f6e1be89"> > PHP is adding the HIDDEN field with the session id. For some > reason, it also appends it to the SRC attribute of the image submit > button, but doesn't add it in the ACTION url. I'm not g

RE: [PHP] PHP Book?

2001-04-27 Thread Boaz Yahav
You can check for PHP / MySQL books at : PHP: http://www.weberdev.com/index.php3?GoTo=ShowShoppingItems.php3%3FMasterCateg ory%3D156%26SubCategory%3D106%26SubCategoryName%3DPHP%26MainCategoryName%3DB ooks MySQL: == http://www.weberdev.com/index.php3?GoTo=ShowShoppingItems.php3%3FMasterC

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

2001-04-27 Thread PHPBeginner.com
have you checked your PHP.INI file? it sais there what links to rewrite. Sincerely, Maxim Maletsky Founder, Chief Developer PHPBeginner.com (Where PHP Begins) [EMAIL PROTECTED] www.phpbeginner.com -Original Message- From: Johnson, Kirk [mailto:[EMAIL PROTECTED]] Sent: Saturda

[PHP] mysql table speed

2001-04-27 Thread Bas Jochems
i've got a mysql table with about 150.000 record. i'm getting data out of this table to generate statistic overviews it seems that this is a problem, cause it takes a long time to generate these overviews q: how can i speed up this table cause 150.000 records is not that much i suppose?

RE: [PHP] mysql table speed

2001-04-27 Thread Jason Murray
> i've got a mysql table with about 150.000 record. > i'm getting data out of this table to generate statistic overviews > > it seems that this is a problem, cause it takes a long time > to generate these overviews > > q: how can i speed up this table cause 150.000 records > is not that

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

2001-04-27 Thread Johnson, Kirk
Thanks, Maxim, I hadn't seen the url_rewriter.tags entry in php.ini before. A search of the PHP manual only returns one unhelpful reference, tho. Any idea where to find some documentation on this? TIA Kirk > -Original Message- > From: PHPBeginner.com [mailto:[EMAIL PROTECTED]] > > have

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

2001-04-27 Thread PHPBeginner.com
well, in your situation I would go into php-general archives right away. I think (not that I remember, but...) that this was a topic here before. try to search there. Sincerely, Maxim Maletsky Founder, Chief Developer PHPBeginner.com (Where PHP Begins) [EMAIL PROTECTED] www.phpbeginner.c

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

2001-04-27 Thread Boget, Chris
> have you checked your PHP.INI file? > it sais there what links to rewrite. This is what is in my .ini. url_rewriter.tags = "a=href,area=href,frame=src,input=src,form=fakeentry" ; added 3/2/01 Am I missing something here that I should have? I don't see anything in the docs about the above

RE: [PHP] PHP Book?

2001-04-27 Thread Simon Ould
"PHP Developers Cookbook", by Sterling Hughes I like it: as the name might suggest, it is packed with real-World examples. I also bought "Beginning PHP Programming" (Wrox press). Mistake. Big mistake. It is aimed at people who are *completely* new to programming. The review that I read of it didn

[PHP] Syntax for select statement

2001-04-27 Thread Don Pro
Hi, I've written PHP routines to work on MySQL and so far so good. However, I have one question. I have a select routine that has the following syntax (which works fine thus far): $queryID = mysql_query("SELECT Country, Agent FROM Ports WHERE Portname =

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

2001-04-27 Thread Johnson, Kirk
Did you see create_function()? Not sure if this is what you are after, but http://www.php.net/manual/en/function.create-function.php Kirk > -Original Message- > From: Maxim Maletsky [mailto:[EMAIL PROTECTED]] > Subject: [PHP] Variable (naming them) Functions. > > Hello everyone: > > I

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

2001-04-27 Thread PHPBeginner.com
create_function seems not letting you choosing it's name. am I right, or there's a way to say: create_function($name.$to.be, args, args, args)? Sincerely, Maxim Maletsky Founder, Chief Developer PHPBeginner.com (Where PHP Begins) [EMAIL PROTECTED] www.phpbeginner.com -Origina

[PHP] A lot of records

2001-04-27 Thread mfourny
Hi, After a querry on a dBase I get to much result to insert them in one page, so I have to count them in blocks of, let say 20 records; I used the count() function to get the number of records in result, but I don't figure what to do after... Regards and thanks for your help Marc -- PHP Gene

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

2001-04-27 Thread Johnson, Kirk
It lets you choose the variable name which you use when referencing the function, but the actual function name is set by PHP (as lambda_1, lambda_2, etc.) "; ?> Kirk > -Original Message- > From: PHPBeginner.com [mailto:[EMAIL PROTECTED]] > Sent: Friday, April 27, 2001 10:27 AM > To: Jo

[PHP] Grand Opening

2001-04-27 Thread Merchandise WholeSale
First off I would like to Thank You for taking time to read this letter. Second of all your e-mail address was pulled from an on-line source, if this was unsolicited from an unclean source we're very sorry, but you will not receive any other e-mails from us. This is the only & last me

[PHP] nesting php

2001-04-27 Thread Brendan Caulfield
Hello everyone! I am trying to pass a variable in a url and can't seem to do it. The problem is, the url is already being determined by a php "if" statement. So, when I get to the part where I try to append the url I get parse errors. What I would ideally like to do is generate the url using

[PHP] Storing php-code in mysqlDB

2001-04-27 Thread heinisch
Hi folks, I try to store phpcode in a mysql-database, to have them ready, when they´ll be needed When I request these, it seems that they will not be parsed. Any suggestion? some code: // the result comes from an object function while ($obj -> Fetchinto(&$row)) // as long as there are results {

Re: [PHP] nesting php

2001-04-27 Thread Jason Brooke
> Hello everyone! > > I am trying to pass a variable in a url and can't seem to do it. The problem is, the url is already being determined by a php "if" statement. So, when I get to the part where I try to append the url I get parse errors. What I would ideally like to do is generate the url usin

RE: [PHP] Storing php-code in mysqlDB

2001-04-27 Thread Jason Murray
> I try to store phpcode in a mysql-database, to have them ready, when > they´ll be needed > When I request these, it seems that they will not be parsed. > Any suggestion? Eval() it. http://www.php.net/manual/en/function.eval.php Jason -- Jason Murray [EMAIL PROTECTED] Web Developer, Melbour

RE: [PHP] A lot of records

2001-04-27 Thread PHPBeginner.com
search for a such class on the web. tip: don't select everything, LIMIT your search with LIMIT 100, 20 to select the records from 100 to 120. Sincerely, Maxim Maletsky Founder, Chief Developer PHPBeginner.com (Where PHP Begins) [EMAIL PROTECTED] www.phpbeginner.com -Original Mess

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

2001-04-27 Thread Christian Reiniger
On Friday 27 April 2001 17:08, PHPBeginner.com wrote: > no classes CAN'T solve my problem: > > it is an abstraction layer. called as func_hello(); I want, inside > func_hello() {} declare a new function based on what happened before > func_hello() was called. In other words: I of course though abo

Re: [PHP] explode won't explode

2001-04-27 Thread Christian Reiniger
On Friday 27 April 2001 14:15, Tom Beidler wrote: > 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")

RE: [PHP] Storing php-code in mysqlDB

2001-04-27 Thread PHPBeginner.com
YOU ARE GENIUS! I don't think Jason you have read my previous posts here, but your answer to Oliver might be able to solve my problem. still have some BIG doubts on it, but it gave me an idea of a try. Thanks, Maxim Maletsky Founder, Chief Developer PHPBeginner.com (Where PHP Begins) [EMA

RE: [PHP] rounding up

2001-04-27 Thread Joseph Bannon
What is the best seamless way to upgrade/update PHP? Joseph -- 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]

[PHP] line break part2

2001-04-27 Thread Gary
Thanks for everyone's help on the original question. Now that I have gotten the line breaks in a file, How do I get the file out with the breaks? Also, does anyone know of a good tutorial on file formatting. TIA Gary -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail

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

2001-04-27 Thread matt . wong
Hello, please correct me if I'm wrong, but it seems that in PHP 4, after calling session_start(), you are stuck with serving an HTML page. What if you want to call session_start(), but you want to send headers after the session has started? for example, I'd like to deliver a downloadable file,

Re: SV: [PHP] PHP Book?

2001-04-27 Thread Christian Reiniger
On Friday 27 April 2001 15:15, Johan Holst Nielsen wrote: > > 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 > Try "Core PHP Programmning", it's have a lot of good stuff! That b

Re: [PHP] Syntax for select statement

2001-04-27 Thread Christian Reiniger
On Friday 27 April 2001 17:56, Don Pro wrote: > $queryID = mysql_query("SELECT Country, Agent FROM Ports > WHERE Portname = '$portname'"); > > My question is, if the variable $portname has the ' character within > in, will this cause an error in my select s

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

2001-04-27 Thread PHPBeginner.com
Guys, I think LORD just looked down here in Tokyo, seen me still typing at 3.15am of Friday night, smoking the third pack of that nasty Marlboros, having no dinner, with no even a cup coffee remained... and sent to the list that GENIUS of Jason Murray who solved my problem. I know, Jason, you di

RE: [PHP] line break part2

2001-04-27 Thread PHPBeginner.com
just do $content_str = implode("\n", $content); at the end of the file. Sincerely, Maxim Maletsky Founder, Chief Developer PHPBeginner.com (Where PHP Begins) [EMAIL PROTECTED] www.phpbeginner.com -Original Message- From: Gary [mailto:[EMAIL PROTECTED]] Sent: Saturday, April

Re: [PHP] php4 on RedHat 7.1

2001-04-27 Thread Peter H. Lemieux
Take a look at /var/log/httpd/error_log. Is there an entry for the very first time the server was run (before you installed PHP 4.04pl)? Does it list PHP/4.0 as installed? The initial entry in my error_log from the "Wolverine" beta of 7.1 shows: [Fri Apr 27 12:36:13 2001] [notice] Apache/1.3.1

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

2001-04-27 Thread Yasuo Ohgaki
Variable functions? http://localhost/some_script.php?fname=foo prints "this is foo"; http://localhost/some_script.php?fname=bar print "this is bar" Regards, -- Yasuo Ohgaki "Maxim Maletsky" <[EMAIL PROTECTED]> wrote in message DC017B079D81D411998C009027B7112A015ED16A@EXC-TYO-01">news:DC01

Re: [PHP] PHP Book?

2001-04-27 Thread Kath
I agree 100% with Professional PHP Programming. It was my first book. Also "php fast and easy web development" by Julie Meloni. - Kath - Original Message - From: "Angerer, Chad" <[EMAIL PROTECTED]> To: "'Hamed Nik'" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Friday, April 27, 2001

[PHP] PHP4, .php3 files and Apache

2001-04-27 Thread Kath
I run a Debian 2.2 server with Apache (from stable) and PHP4 (from stable). I downloaded phpChat in order to setup a chat center on the website. However, the files are named .php3. At first I thought I could be cute and just rename the files to .php, as .php is what we name our files on our

Re: [PHP] line break part2

2001-04-27 Thread Philip Olson
Have a look at file() : http://www.php.net/manual/en/function.file.php $lines = file('log_test.txt'); echo $lines[4]; // prints line #5 regards, philip On Fri, 27 Apr 2001, Gary wrote: > Thanks for everyone's help on the original question. Now that I have > gotten the line breaks in

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

2001-04-27 Thread Philip Olson
for point of reference regarding this thread : http://www.php.net/manual/en/functions.variable-functions.php regards, philip On Sat, 28 Apr 2001, Yasuo Ohgaki wrote: > Variable functions? > > foo () { > echo 'this is foo'; > } > > bar () { > echo 'this is bar'; > } > > $var = $HTT

Re: [PHP] PHP4, .php3 files and Apache

2001-04-27 Thread Philip Olson
do something similar to : AddType application/x-httpd-php .php .php3 .html .phtml .parsemephp regards, philip On Fri, 27 Apr 2001, Kath wrote: > I run a Debian 2.2 server with Apache (from stable) and PHP4 (from > stable). > > I downloaded phpChat in order to setup a chat center on the w

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

2001-04-27 Thread PHPBeginner.com
no, I knew that, my problem was generating functions with dynamic names. I solved it with a simple eval(), see my last post below; Thanks, Yasuo, Sincerely, Maxim Maletsky Founder, Chief Developer PHPBeginner.com (Where PHP Begins) [EMAIL PROTECTED] www.phpbeginner.com -Origina

Re: [PHP] Syntax for select statement

2001-04-27 Thread Philip Olson
also note that if magic_quotes_gpc setting (in php.ini) is on, these quotes will automagically be escaped. phpinfo() will tell you your setting, as will get_magic_quotes_gpc(). http://www.php.net/manual/en/configuration.php#ini.magic-quotes-gpc run around the manual for more information. re

Re: [PHP] PHP4, .php3 files and Apache

2001-04-27 Thread Kath
Thank you! I wasn't doing the "application/x-httpd-php" part right! Thanks! - Kath - Original Message - From: "Philip Olson" <[EMAIL PROTECTED]> To: "Kath" <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Friday, April 27, 2001 2:37 PM Subject: Re: [PHP] PHP4, .php3 files and Apach

  1   2   >