RE: [PHP] installing PHP with-apxs with-oci8 --with-oracle onLinux - remote oracle

2001-09-25 Thread Jeffrey Iskandar Ahmad
Andrew Hill, I would like to thank you very much for your help. I manage to connect to remote oracle after a week try. The problem was I run apache as nobody and nobody user does not have priviliege to access ~oracle directory. Now I can continue with my project.. :) Jeffrey Iskandar Ahmad System

Re: [PHP] imageJPEG problem.

2001-09-25 Thread Hugh Danaher
Stephan, Check that there are no html statements or blank lines above the To: Johan Vikerskog (EMP) <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Tuesday, September 25, 2001 12:13 AM Subject: Re: [PHP] imageJPEG problem. > > - Original Message - > From: "Johan Vikerskog (EMP)" <[EMAIL

[PHP] Including files without loosing my string

2001-09-25 Thread Bård Tommy Nilsen
Hello ! I am trying to keep my string after including av file. file1.php: (accessed with file1.php?id=1) index.php: 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] Problem with regex

2001-09-25 Thread Steve Edberg
if (ereg('^[a-z][-a-z0-9\._]*[a-z]$', $TestPwd)) { echo "Good"; } else { echo "Bad password $TestPwd"; } should do it. If you want a case insensitive match, use eregi(...) instead. The above regexp allows passwords as short as 2 characters. If you want to, for example, enforce

Re: [PHP] imageJPEG problem.

2001-09-25 Thread Stefan Rusterholz
Whooops, right. HTML after or before picture data doesn't make any sense :) I checked my a bit older function, which puts out image data correctly working. I'm sorry, but I didn't see a big difference to yours... But as I said before: I don't know what your doing at that lines where you wrote: $i

RE: [PHP] I'm back

2001-09-25 Thread Matt Williams
> Oh well, who didn't know me can whether ignore this message or just say > hi :-) > > Cheers Everybody! > Maxim Maletsky Welcome back Max M@ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To conta

Re: [PHP] Including files without loosing my string

2001-09-25 Thread David Robley
On Tue, 25 Sep 2001 17:01, Bård Tommy Nilsen wrote: > Hello ! > > I am trying to keep my string after including av file. > > file1.php: > (accessed with file1.php?id=1) > > include 'index.php'; > > function func() { > echo "buddy"; > } > ?> > > index.php: > echo "Hello"; > if (function_exists('f

SV: [PHP] Including files without loosing my string

2001-09-25 Thread Bård Tommy Nilsen
Thats only if i call the index.php file first. For that i have another solution if (function_exists('func')) { call_user_func ('func'); } else { include 'main.php'; But thats not the problem. I am using id in an sql query, but not shown in my example (sorry :) ) But i wanted to show what i am a

Re: SV: [PHP] Including files without loosing my string

2001-09-25 Thread David Robley
On Tue, 25 Sep 2001 17:32, Bård Tommy Nilsen wrote: > Thats only if i call the index.php file first. > For that i have another solution > if (function_exists('func')) { > call_user_func ('func'); > } else { > include 'main.php'; > > But thats not the problem. > > I am using id in an sql query, but

Re: [PHP] search engine submission

2001-09-25 Thread Krushna Kumar R
Hi, I have a website which i would like to submit to the search engines frequently, so i thought i could write a program for this, not depending on other free web sites for submission Rgds Krushna Kumar - Original Message - From: "Jon Haworth" <[EMAIL PROTECTED]> To: "'Krushna Kumar R'

[PHP] RE: array

2001-09-25 Thread Tim Ward
I can't see where any element of $link is set in the second piece of code. I assume they are separate examples. In the second example I would expect $link[$c] to always be empty. Tim Ward -- From: Jeremy Morano [SMTP:[EMAIL PROTECTED]] Sent: 24 September 2001 16

SV: SV: [PHP] Including files without loosing my string

2001-09-25 Thread Bård Tommy Nilsen
Can you write me an short example ?? Bård Tommy Nilsen -Opprinnelig melding- Fra: David Robley [mailto:[EMAIL PROTECTED]] Sendt: 25. september 2001 10:11 Til: Bård Tommy Nilsen; [EMAIL PROTECTED] Emne: Re: SV: [PHP] Including files without loosing my string On Tue, 25 Sep 2001 17:

[PHP] next maintenance release?

2001-09-25 Thread Eugene Lee
PHP 4.0.6 has been out for 3 months now. Any word on the next update? -- Eugene Lee [EMAIL PROTECTED] -- 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: [EM

[PHP] Feature?

2001-09-25 Thread Andrey Hristov
After some days spent in a hospital reading "Programming Perl" and "Oracle Web Applications" I found that a language construct which appears in Perl and PL/SQL is not available in PHP. As in most 3G languages function call is like that $bar=foo($bar1,$bar2,$bar3,'bar4'); function foo($par1=1,$p

Re: [PHP] A simple PHP form not working

2001-09-25 Thread Tshering Norbu
Is this the correct mail function config in php.ini ? [mail function] SMTP = smtp01.druk.net.bt ;for win32 only sendmail_from = [EMAIL PROTECTED] ;for win32 only ;sendmail_path = ;for unix only, may supply arguments as well (default is sendmail -t) Here, I have smtp01.druk.net.bt as m

[PHP] mysql_fetch_array() doesn't work

2001-09-25 Thread Web user
System: PHP4.06 + Mysql3.23.41 Win32 + Apache 1.3.20 Win32 + Win98 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] html encode

2001-09-25 Thread Mark B
Is there a function available that will convert any none standard chars ($,@,",%,etc) into their " equivalents? Thanks all Mark -- 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 a

[PHP] curl_exec() output and curl_setopt( CURL_CERTIFICATE, $path )

2001-09-25 Thread Kamil Nowicki
1. How to redirect curl_exec() output to a variable without passing it thru a file? 2. Is there a way to use CRT certificates with cURL [curl_setopt( CURL_CERTIFICATE, $path ) ]? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional co

Re: [PHP] html encode

2001-09-25 Thread
From: Mark B <[EMAIL PROTECTED]> Date: Tue, Sep 25, 2001 at 10:07:36AM +0100 Message-ID: <[EMAIL PROTECTED]> Subject: [PHP] html encode > Is there a function available that will convert any none standard chars > ($,@,",%,etc) into their " equivalents? > > Thanks all > > Mark Check the man

Re: [PHP] Sessions just don't work on my machine. (Trying this ag ain)

2001-09-25 Thread Tamas Arpad
On Monday 24 September 2001 21:23, Thomas Deliduka wrote: > I just tried this here below. Before trying this I changed any > called to $PHPSESSID to session_id(). > > I turned off cookies > Loaded the page... Created session id and file: > sess_44074d3a54862b480c3407c9eb373f77 > Contents: var1|s:8

[PHP] Capturing several checkbox values

2001-09-25 Thread John Day
Hi, I have a page containing about 50 different checkboxes, the user can select as few or many as they like. When they submit the form I want the values/names of the checkboxes that they selected to be displayed on the next page, i.e. a thankyou page. Any help is much appreciated. JD -- PHP Gen

Re: [PHP] Capturing several checkbox values

2001-09-25 Thread Dimitris Kossikidis
Now you get an array called mycheck. Manipulate this array in php. Remeber that only checked items are set in array. That means if 2 checkboxes are checked you 'll get an array with 2 positions. Suppose that 1st and 3rd checkboxes are checked. - Original Message - From: "John Day" <

Re: [PHP] Capturing several checkbox values

2001-09-25 Thread Dimitris Kossikidis
Now you get an array called mycheck. Manipulate this array in php. Remeber that only checked items are set in array. That means if 2 checkboxes are checked you 'll get an array with 2 positions. Suppose that 1st and 3rd checkboxes are checked. - Original Message - From: "John Day" <

Re: [PHP] Feature?

2001-09-25 Thread Eugene Lee
On Tue, Sep 25, 2001 at 11:36:25AM +0300, Andrey Hristov wrote: : : After some days spent in a hospital reading "Programming Perl" and : "Oracle Web Applications" I found that a language construct which : appears in Perl and PL/SQL is not available in PHP. : As in most 3G languages function call

[PHP] Re: Making session last

2001-09-25 Thread Geir Eivind Mork
Martin wrote: > The sessions-functions works really fine. But I got one Problem: How can > I make the php-session last more then a browser-session? When the users Now it isn't a 'session' for nothing, for your use I guess cookies and storage of state in database is a much better thing. to mak

[PHP] Problem with regex

2001-09-25 Thread Oliver Ertl
Hi, The following works. But I wouldn't allow users to use something like -. --- _- in $TestPwd. How can I implement this ? --- Steve Edberg <[EMAIL PROTECTED]> wrote: > if (ereg('^[a-z][-a-z0-9\._]*[a-z]$', $TestPwd)) { > echo "Good"; > } else { > echo "Bad password $TestPwd"; > }

[PHP] class name in static functions

2001-09-25 Thread James Gregory
HI!!! Is it possible to get the name of the class from a static member function for which no object has been instantiated? THANKS! James. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact

Re: [PHP] how to make the php page always newest when clicking 'back' botton in browser?

2001-09-25 Thread Brad Hubbard
On Tue, 25 Sep 2001 13:09, mydata wrote: > Hi,I meet a problem when I am developing. > > I am developing php base on other programer's php code . > I must make the php page always newest when clicking 'back' botton in > browser(because that programer using javascript: history.go(-1)), I try > sent

Re: [PHP] class name in static functions

2001-09-25 Thread Andrey Hristov
Set internal member variable $class_name='CSomeClass'; The call is for example print CSomeClass::class_name; I'm not sure whether this works 100% but I think it works. Andrey Hristov IcyGEN Corporation http://www.icygen.com BALANCED SOLUTIONS - Original Message - From: "James Gregory"

Re: [PHP] How to increase number of supported servers?

2001-09-25 Thread buchholz
Notice: Jay´s reply to my post yesterday was only a little mistake while asking his own different question (he corrected this immediatly reposting his message as thread '[PHP] what does this mean?' and got some answers). So keep in mind plaese, the original question '... number of supported serve

[PHP] Job wanted

2001-09-25 Thread Karthick Kumar
Hi all, I am Karthick, from Ireland. I recently got laid off and looking for a job, anywhere in Europe. The Job market is so bad that I haven't got any solid responses, so far. It has been more than 2 weeks that I started looking for a job. But no luck, so far. I am hereby attaching my Resume'

Re: [PHP] Feature?

2001-09-25 Thread Andrey Hristov
Yeap, I know that. I thought about this bit of hack but this breaks the conception on giving parameters. Also this trick cannot solve the problem with default parameters. If I have function with 5 params and all of them have default values and I want to pass value only to the second parameter wh

[PHP] Can I rely on session.gc_maxlifetime?

2001-09-25 Thread Arpad Tamas
Hi, I don't know if I understand right the manual at the session.gc_maxlifetime setting. As I read, php won't use sessions that are older than that time. It means that when a user logs in, and does his/her work for more than (for example) 15 minutes, than he/she will be kicked off immediately,

Re: [PHP] Feature?

2001-09-25 Thread Christian Reiniger
On Tuesday 25 September 2001 10:36, Andrey Hristov wrote: > After some days spent in a hospital reading "Programming Perl" and > "Oracle Web Applications" I found that a language construct which > appears in Perl and PL/SQL is not available in PHP. > As in most 3G languages function call is like

[PHP] Image location question.

2001-09-25 Thread Johan Vikerskog (EMP)
I have a question. I have created an image with imagecreatefromjpeg I have a empty page and i want to display the picture at a specefic location at the page. Does anyone know how to do that? With regards //Johan -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL

Re: [PHP] Image location question.

2001-09-25 Thread Andrey Hristov
You have to have one script for the page and one which serves the image. Also it's possible to use just one script by using GET but this is a mess some_script.php: ... get_image.php: Andrey Hristov IcyGEN Corporation http://www.icygen.com BALANCED SOLUTIONS -

Re: [PHP] Can I rely on session.gc_maxlifetime?

2001-09-25 Thread Andrey Hristov
New SESSID will be generated because the old expired and because all rely on the SESSID which is the "hash key" to the data no previous data will be available. Andrey Hristov IcyGEN Corporation http://www.icygen.com BALANCED SOLUTIONS - Original Message - From: "Arpad Tamas" <[EMAIL PRO

[PHP] Accessing lots of variables

2001-09-25 Thread Jordan Elver
Hi, I'm feeling a bit stupid. I have a,load of variables coming from a MySQL connection using list(). The variables are link1 to link 35 inclusive. How can I access each of these variables, check if they are empty, then add them to an array. I don't know how to access then inside a for loop. Ca

[PHP][ORACLE][SOLARIS] Getting cursors from stored procedures

2001-09-25 Thread THIBAUDEAU Stephane
Environment: Solaris 2.6 Apache 1.3.12 PHP 4.0b4 Oracle 8.1.7 I'm trying to get a cursor as an output value for a stored procedure. My stored procedure is correct (I tested it). When I run the php script with apache on my NT server (using the same database on Solaris), everything is OK. When I ru

[PHP] no of files in a folder....

2001-09-25 Thread sagar N Chand
hi all, is there any way out to get the total no of files in a directory including its subfolders ? thanQ,, /sagar

Re: [PHP] Can I rely on session.gc_maxlifetime?

2001-09-25 Thread Tamas Arpad
On Tuesday 25 September 2001 14:27, Andrey Hristov wrote: > New SESSID will be generated because the old expired and because > all rely on the SESSID which is the "hash key" to the data no > previous data will be available. So, no matter if the user is still working, the session will be destroyed

Re: [PHP] Accessing lots of variables

2001-09-25 Thread Andrey Hristov
for ($i=1;$i<36;$i++){ if (${"link".$i}){ //it's real }else{ // none } } Andrey Hristov IcyGEN Corporation http://www.icygen.com BALANCED SOLUTIONS - Original Message - From: "Jordan Elver" <[EMAIL PROTECTED]> To: "PHP General Mailing List" <[EMAIL PROTECTED]> Sent:

Re: [PHP] A simple PHP form not working

2001-09-25 Thread ReDucTor
you have an l just after the @ sign, it might be an idea to change that, because when it connects, it first does HELO and checks if that user is allowed... - Original Message - From: "Tshering Norbu" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, September 25, 2001 6:38 PM Sub

RE: [PHP] Getting my head around nulls.

2001-09-25 Thread Ben . Edwards
>I wish the rest of the world saw it that way! But not so... That's what capitalism does for you -;) >You may want to look at MySQL's IS_NULL function for retrieving data. Other >than that, I don't have any good advice. It seems that if you retrieve a >NULL from the database and try to assign it

Re: [PHP] Getting my head around nulls.

2001-09-25 Thread Andrey Hristov
SELECT * from some_table WHERE some_field IS NULL; Andrey Hristov IcyGEN Corporation http://www.icygen.com BALANCED SOLUTIONS - Original Message - From: <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Tuesday, September 25, 2001 4:09 PM Subject: RE: [PHP] Gett

Fw: [PHP] Capturing several checkbox values

2001-09-25 Thread sagar N Chand
- Original Message - From: sagar N Chand To: John Day Sent: Tuesday, September 25, 2001 6:46 PM Subject: Re: [PHP] Capturing several checkbox values give each checkbox an individual name before you submit it. In the next page put this code : while(list($key,$value)=each($HTTP_POST_V

[PHP] public and private parts in classes ?

2001-09-25 Thread Oliver Ruf
Hello I'm sorry, if this is a faq. But I would like to know, if there exist public and private parts in classes like in c++ ? AFAIK there are no public and private parts supportet. I would be pleased to get either a confirmation on that or, if it works, some information on how to do it. Than

Re: [PHP] public and private parts in classes ?

2001-09-25 Thread Andrey Hristov
PHP Classes are not so powerful as C++. No there is no division ot private and public or protected. All is public but good technique is to name methods you prefer to be private with a underbar at the start. Andrey Hristov IcyGEN Corporation http://www.icygen.com BALANCED SOLUTIONS - Origina

Re: [PHP] public and private parts in classes ?

2001-09-25 Thread Oliver Ruf
Thank you for your confirmation. Now I'm sure that I was correct. -Oliver [EMAIL PROTECTED] (Andrey Hristov) wrote in 01ba01c145c7$22bcc6d0$0b01a8c0@ANDreY:">news:01ba01c145c7$22bcc6d0$0b01a8c0@ANDreY: > PHP Classes are not so powerful as C++. No there is no division ot > private and public

Re: [PHP] public and private parts in classes ?

2001-09-25 Thread Nick Winfield
On Tue, 25 Sep 2001, Andrey Hristov wrote: > > I'm sorry, if this is a faq. But I would like to know, if there exist > > public and private parts in classes like in c++ ? > > > > AFAIK there are no public and private parts supportet. > > > > I would be pleased to get either a confirmation on that

Re: [PHP] public and private parts in classes ?

2001-09-25 Thread Andrey Hristov
Hmmm, Original: $_this->foo = "bar"; I think that it must be: $this->_foo = "bar"; Have fun. Andrey Hristov IcyGEN Corporation http://www.icygen.com BALANCED SOLUTIONS - Original Message - From: "Nick Winfield" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, September

Re: [PHP] public and private parts in classes ?

2001-09-25 Thread Nick Winfield
On Tue, 25 Sep 2001, Andrey Hristov wrote: > Hmmm, > Original: $_this->foo = "bar"; > I think that it must be: > $this->_foo = "bar"; Nope, I tested my code before I posted. :) Definitely $_this->foo Cheers, Nick W.. -[ [EMAIL PROTECTED] ]- :: today's word is.. haggis (n): a small, hai

RE: [PHP] Getting my head around nulls.

2001-09-25 Thread Johnson, Kirk
> SELECT * from some_table WHERE some_field IS NULL; > > > Andrey Hristov > -- > 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] Th

Re: [PHP] public and private parts in classes ?

2001-09-25 Thread Andrey Hristov
class Test { function Test() { $_this->foo = "bar"; } } $n = new Test; echo "foo: " . $n->foo."\n"; var_dump($n); returns : foo: object(test)(0) { } So there is no member variable which you meant to be private in the instance $n of class Test. Have fun. Andrey Hristov IcyGEN Corpor

[PHP] chat with php

2001-09-25 Thread Edney Marcel Imm
HI. Anyone have a chat with php? tks

RE: [PHP] Can I rely on session.gc_maxlifetime?

2001-09-25 Thread Johnson, Kirk
> So, no matter if the user is still working, the session will be > destroyed. I mean session.gc_maxlifetime isn't > session.gc_maxIDLEtime? Every time the user requests a page in an application using sessions, the session file's access time gets updated. The garbage collection routine looks a

Re: [PHP] Linking data from a different site and server

2001-09-25 Thread Andrey Hristov
http://www.php.net/";); $fp = fopen ("php_homepage.txt", "w"); curl_setopt ($ch, CURLOPT_FILE, $fp); curl_setopt ($ch, CURLOPT_HEADER, 0); curl_exec ($ch); curl_close ($ch); fclose ($fp); ?> I think that by using CURL you can get the output of your script and add the content to the another pag

[PHP] Socket help

2001-09-25 Thread Stefano Baronio
Hello list, I need to receive/send sms through an IPSec connection using the socket (pfsocket) function of php. I hope there's someone out there that can help me solving some questions. Here is what I thought to do: REC_SCRIPT that open the socket connection and listen on arriving message

RE: [PHP] Getting my head around nulls.

2001-09-25 Thread Ben . Edwards
Just realised, you meant 'is null' not is_null. Sorry, couldn't see the wood for the trees. This in ANSI SQL and I use it every day. Had a look at zootweb.com. And I thought ASP meant 'Active Server Pages' not 'Application Service Provider'. And not a zoot suit in sight -;) Regards, Neb

Re: [PHP] Feature?

2001-09-25 Thread Steve Cayford
Maybe this? A bit verbose, but functional. -Steve 'hello', 'banana' => 'world')); ?> On Tuesday, September 25, 2001, at 06:25 AM, Andrey Hristov wrote: > Yeap, I know that. I thought about this bit of hack but this breaks the > conception on giving parameters. Also this trick cannot > solv

[PHP] PHP attempting to parse non-existent files

2001-09-25 Thread Tim Ward
okay, I'll try again. The apache server our site runs on is set up to parse .html files as php. If you pass a url of a non-existant file to the server the client gets a php parse error back rather than a 404 error ... specifically: pass in http://www.sitename/fred.html and you get Fatal error: Un

[PHP] help with some printing stuff

2001-09-25 Thread Christian Dechery
I'm having some trouble putting on a formatting to printer script. I've done it in ASP to print CDs tracklists... 4 per page. Since I know nothing about Word macros, I've done it in HTML and it's working fine... it's customizable and all.. but the problem I have is printers... since it's in HTM

RE: [PHP] Getting my head around nulls

2001-09-25 Thread Ben . Edwards
>Thanks for correcting my misspelling, Andrey, "IS NULL" not "IS_NULL". >Another thing to look at, Ben, is IFNULL(). I would give you an example, but >I never got it to work like I thought it should ;) I think it is supposed to >return an alternate value for NULLs. Just had a look at manual, ifnu

[PHP] Counter

2001-09-25 Thread Mark Lo
Hi, I would like to know how to write a web page counter in PHP or Javascript. Thank You Mark Lo -- 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:

Re: [PHP] Can I rely on session.gc_maxlifetime?

2001-09-25 Thread Tamas Arpad
On Tuesday 25 September 2001 16:19, Johnson, Kirk wrote: > > So, no matter if the user is still working, the session will be > > destroyed. I mean session.gc_maxlifetime isn't > > session.gc_maxIDLEtime? > > Every time the user requests a page in an application using > sessions, the session file's

[PHP] Test.php does not show that it was configured with sybase on Linux 7.1

2001-09-25 Thread Caleb Carvalho
Hi all, I have installed sybase on my Linux 7.1 machine and after creating my first php-4.0.4pl1-9 page, sybase is not listed under ./configure section,,, do i need to recompile again??? pls help Caleb Carvalho LoadRunner/APM -

[PHP] php from the command line

2001-09-25 Thread Jimmy Bäckström
Hi! I was wondering how you could run php from the command line, and how it works! Just out of curiosity =) Thanks /Broder

[PHP] cookies

2001-09-25 Thread Joseph Bannon
When I set a cookie like below, what does the "300" represend in time? Seconds? setcookie ("referred", "yes", 300, "", ".advparadigm.com",0); Thanks, Joseph -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-

[PHP] dates only in the future

2001-09-25 Thread Kristjan Kanarik
Good afternoon, I'm looking for a function which enables me to allow user only to enter those dates which are still to come. In my head I have three things... one for day, one for month and one for year. In order to prevent the user from submitting the form with the date which is in past, I need

[PHP] the apache log file

2001-09-25 Thread Jimmy Bäckström
Hey! I know the question is somewhat missplaced thought I think someone on this list should be able to answer me. I'm doing a statistics application wich uses the apache http-acces.log file. One line looks like this: 195.58.118.234 - - [03/Oct/2000:09:39:04 +0200] "GET /temp/odenresor HTTP/1.1"

[PHP] Re: cookies

2001-09-25 Thread Oliver Ruf
Hi m8 I just say... rtfm ... start here: >From the manual:.. (http://www.php.net/manual/en/function.setcookie.php) int setcookie (string name [, string value [, int expire [, string path [, string domain [, int secure])

Re: [PHP] the apache log file

2001-09-25 Thread Rasmus Lerdorf
It is the response code and the number of bytes transferred. These are the codes: #define HTTP_CONTINUE 100 #define HTTP_SWITCHING_PROTOCOLS 101 #define HTTP_PROCESSING102 #define HTTP_OK200 #define HTTP_CREATED

RE: [PHP] dates only in the future

2001-09-25 Thread Boget, Chris
> I'm looking for a function which enables me to allow user > only to enter those dates which are still to come. In my head > I have three things... one for day, one for month and > one for year. In order to prevent the user from submitting the > form with the date which is in past, I need pr

Re: [PHP] php from the command line

2001-09-25 Thread Nathan Cook
It might be a good idea to check the list archives. http://marc.theaimsgroup.com/?l=php-general But since I am feeling nice today (assuming you want to do it on *nix). Then download and un-pack the source and run: # ./configure [... additional options here like MySQL etc...(make sure you don't p

Re: [PHP] Getting my head around nulls

2001-09-25 Thread Steve Cayford
On Tuesday, September 25, 2001, at 10:30 AM, [EMAIL PROTECTED] wrote: >> Thanks for correcting my misspelling, Andrey, "IS NULL" not "IS_NULL". >> Another thing to look at, Ben, is IFNULL(). I would give you an >> example, > but >> I never got it to work like I thought it should ;) I think it

RE: [PHP] Re: cookies

2001-09-25 Thread Joseph Bannon
And this is where I say kma thanks. J -- 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] 2 decimal places

2001-09-25 Thread Christian Dechery
At 22:22 19/09/01 -0400, Kurth Bemis wrote: >i'm looking for a php function to add 2 decimal place sto a number. if >the number already have one decimal place then one more zero should be >added to make it two decimal placesanyone know of a quick way to do this? $number=32.5; echo number_

Re: [PHP] curl_exec() output and curl_setopt( CURL_CERTIFICATE,$path )

2001-09-25 Thread Sterling Hughes
On Tue, 25 Sep 2001, Kamil Nowicki wrote: > 1. How to redirect curl_exec() output to a variable without >passing it thru a file? > curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); $data = curl_exec($ch); echo $data; curl_close($ch); -Sterling -- PHP General Mailing List (h

Re: [PHP] 2 decimal places

2001-09-25 Thread Jason Bell
What if I want to pad a number with zeros in the other direction? I.E: 524 becomes 00524 - Original Message - From: "Christian Dechery" <[EMAIL PROTECTED]> To: "Kurth Bemis" <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Tuesday, September 25, 2001 9:41 AM Subject: Re: [PHP] 2 dec

RE: [PHP] Counter

2001-09-25 Thread Jon Haworth
It's very simple - at the top of every page, have a routine that opens a text file, reads the number inside it into a variable, adds one, and writes it back out again. If the text file doesn't exist, create it. Psuedocode: if (file exists) { open file for reading; read contents into $counter

RE: [PHP] 2 decimal places

2001-09-25 Thread Boget, Chris
> What if I want to pad a number with zeros in the other > direction? I.E: > 524 becomes 00524 printf() / sprintf() is your friend. Chris

[PHP] Re: Zend Cache & cache_gui

2001-09-25 Thread John Lim
I had that problem. Appeared to be some incompatibility with Zend Optimizer and Zend Cache. Upgrade to Zend Optimizer 1.1.0 and everything worked. Regards, John "Joseph Blythe" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Hello all, > > I just installed Ze

[PHP] Php-Gtk.....does it work ever?

2001-09-25 Thread Dhaval Desai
Hi! I downloaded the Php-Gtk files for Windows 32 Binary and I am trying to make it work on Windows 98. I already have phpdev2 with Apahce, Mysql and Php installed phpdev2 is in C:\phpdev2 1. Now I downloaded php-gtk and I copied the files from php4 folder to php directory. 2. Then I copied

[PHP] News ticker

2001-09-25 Thread Sheni R. Meledath
Hi friends, I have a created a PHP script for a news ticker. The data is extracted from a MySQL server. I have to use this script on all our sites which is on different servers. Is there a way to execute the PHP script from one server and get the results on these sites. For eg: I am looking f

Re: [PHP] News ticker

2001-09-25 Thread Evan Nemerson
Make the output in javascript format. If you just want to write to the document, use something like this document.write(''); My JavaScript is a little rusty, but I think that's the correct format. Have the PHP parsed on your server then the remote site could call it like this:

RE: [PHP] Can I rely on session.gc_maxlifetime?

2001-09-25 Thread Johnson, Kirk
> I thought that php works as you wrote. But sometimes I find that much > older session are still "alive". I have 1440secs for maxlifetime, and > if I bookmark a page with the session id I can use it till days or > even weeks (I haven't tested longer time period :)) Are old files being re-use

Re: [PHP] help with some printing stuff

2001-09-25 Thread Evan Nemerson
If you want to cheat, I would create the html doc, then use one of the many HTML -> PDF converters out there. Of course you could also create the PDF by hand, there is a module for that On Tuesday 25 September 2001 08:19, you wrote: > I'm having some trouble putting on a formatting to printer

[PHP] can you pls tell me where is php ./configure file in linux 7.1

2001-09-25 Thread Caleb Carvalho
hi, am still having problem to compile my sybase, i have linux 7.1 and php was installed during installation process, i can't find the ./configure file.. php-4.0.4pl1-9 pls help Caleb Carvalho LoadRunner/APM

Re: [PHP] php from the command line

2001-09-25 Thread Attila Strauss
Hi Simply put /usr/local/bin/php -q to the top of your script ... i've written one a while ago an email roboter ... it works on command line maybe u wanna check it out : http://linuks.net/robot.phps best regards attila strauss > > > Hi! > I was wondering how you could run php from the command

Re: [PHP] can you pls tell me where is php ./configure file in linux 7.1

2001-09-25 Thread Sam Masiello
Chances are that since it was installed as part of your RH install, there isn't a configure script. I would scrap the RPM and go to www.php.net and download the source tarball. That includes the configure script that you are looking for, which will allow you to include whatever you would like a

Re: [PHP] php from the command line

2001-09-25 Thread Nathan Cook
> Simply put > > /usr/local/bin/php -q to the top of your script ... > i've written one a while ago an email roboter ... it works on command line But you realize you have to have command line php compiled first, right? Nathan Cook [EMAIL PROTECTED] -- PHP General Mailing List (http://www.ph

Re: [PHP] 2 decimal places

2001-09-25 Thread Evan Nemerson
Yeah, but what if they don't JUST want to print it... /*untested*/ $i=524; $n=5-strlen($i); $outnum=""; for($x=1;$x<=$n;$x++){ $outnum.="0"; }; $outnum.=$i; On Tuesday 25 September 2001 09:56, you wrote: > > What if I want to pad a number with zeros in the other > > direction? I.E: > >

RE: [PHP] 2 decimal places

2001-09-25 Thread Boget, Chris
> Yeah, but what if they don't JUST want to print it... Umm, have you read the documentation on either of the functions? They both return a string; they don't send anything to standard out (like echo or print does). $myString = printf(); $myString = sprintf(); echo $myString; Chris

[PHP] php script ownership

2001-09-25 Thread Adam Plocher
Is there anyway I could make a PHP script run as the user that owns the script?

[PHP] XML works like a DataBase?

2001-09-25 Thread Augusto Cesar Castoldi
Hi. I've been looking for XML, and I'd like to know if you know if with the XML funtions of PHP I can create a XML file, add and remove data just, or almost equal of I do with MySQL. regards, Augusto __

RE: [PHP] XML works like a DataBase?

2001-09-25 Thread Andrew Hill
Augusto, Regardless if you CAN do this, I recommend against it :) Relational Databases are much better for storing, updating, and accessing disparate information than XML. XML should be used for communication between applications or for an intermediary output format from relational data. If you

[PHP] Variable naming

2001-09-25 Thread Kyle Moore
I want to use the value of a variable in a variable name. For instance: $id = 1; $sql_$id = "hey"; //set variable $sql_1 to hey print $sql_1; //should print hey I have looked high and low on how to do this. My first idea was eval but I can't seem to get that to work in this instance. Any ideas?

RE: [PHP] Variable naming

2001-09-25 Thread Boget, Chris
> I want to use the value of a variable in a variable name. For > instance: > > $id = 1; > $sql_$id = "hey"; //set variable $sql_1 to hey > print $sql_1; //should print hey I *believe* (could be wrong) what you want is this: print ${$sql_1}; Check out variable variables in the dox. Chris

RE: [PHP] Variable naming

2001-09-25 Thread Adam Plocher
$id = 1; ${"sql_" . $id} = "hey"; print $sql_1; Try that -Original Message- From: Kyle Moore [mailto:[EMAIL PROTECTED]] Sent: Tuesday, September 25, 2001 9:15 AM To: [EMAIL PROTECTED] Subject: [PHP] Variable naming I want to use the value of a variable in a variable name. For instance

Re: [PHP] Variable naming

2001-09-25 Thread Fábio Migliorini
$id = 1; $sql_1 = "hey"; $vname = "sql_".$id; echo $$vname; -- Fábio Migliorini http://www.atua.com.br [EMAIL PROTECTED] UIN: 42729458 Linux User: 175409 - Original Message - From: "Kyle Moore" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, September 25, 2001 1:15 PM Subject: [

  1   2   >