[PHP] Re:[PHP] Chill out

2003-04-03 Thread SLanger
First of all I comply with all my previouse poster. For all the readers of this list I'd suggest to read the following article: "How to ask questions the smart way" at http://www.catb.org/%7Eesr/faqs/smart-questions.html It's an instruction booklet on how to ask questions on lists like this.

Re: [PHP] REPLY NEEDED

2003-04-03 Thread [EMAIL PROTECTED]
What has this to do with PHP? On 4/4/2003, "PATRICK KOFI" <[EMAIL PROTECTED]> wrote: >STRICTLY CONFIDENTIAL > >WE ARE MEMBERS OF A SPECIAL COMMITTEE FOR BUDGET AND PLANNING OF THE NIGERIAN NATIONAL PETROLEUM CORPORATION (NNPC). THIS COMMITTEE IS PRINCIPALLY CONCERNED WITH CONTRA

Re: [PHP] File Download?

2003-04-03 Thread b b
It would be: path/fileName I tried to print the _GET['daFile'] however if I am using the header function in the same file then it won't print a thing. In fact it starts downloading. The only thing is that it doesn't catch the correct file name (though it downloads the actual daFile). Cheers,

Re: [PHP] ^M

2003-04-03 Thread Jason Wong
On Friday 04 April 2003 14:38, Liam Gibbs wrote: > So which is it that will keep my files from having ^M after PHP is finished > fopen(), fputs(), and fclose() with them? \n, \r, and \n\r all seem to > reinsert ^M at the ends of all my lines. 1) Could you summarise what you're trying to do 2) Sho

Re: [PHP] PHP Email Attachment problem

2003-04-03 Thread Jason Wong
On Friday 04 April 2003 06:10, Michael Arena wrote: > Made some progress today. Found an attachment script in the archives. I > was able to send an email attachment if it was already on the server. now i > just need the file to come from a form instead of already being on the > server but that's n

Re: [PHP] File Download?

2003-04-03 Thread Jason Wong
On Friday 04 April 2003 13:51, b b wrote: > Why would the $daFile in the following code be > resolved to "". I am passing it via the url. > session_start(); > if($_SESSION['isValidSession'] == 'Y'){ > $daFile = $_GET['daFile']; - What URL are you using? - Have you t

[PHP] ^M

2003-04-03 Thread Liam Gibbs
So which is it that will keep my files from having ^M after PHP is finished fopen(), fputs(), and fclose() with them? \n, \r, and \n\r all seem to reinsert ^M at the ends of all my lines.

Re: [PHP] Which PHP version is stable with apache 2.0.39

2003-04-03 Thread Jason Wong
On Friday 04 April 2003 09:44, Jason Smith wrote: > In one part it is saying that it is known to work and then goes on to > say is not recommended. Does anyone know why it is not recommended. WHY it is not recommended has been discussed in the past -- search archives for Rasmus' posts for the pa

Re[2]: [PHP] Q. Adding line numbers to highlighted source

2003-04-03 Thread Tom Rogers
Hi, Friday, April 4, 2003, 3:57:25 PM, you wrote: TR> Hi, TR> Friday, April 4, 2003, 3:27:55 PM, you wrote: AM>> I've been trying to add line-numbers to my source code, but can't seem to AM>> work out how to do it. AM>> As an example, I tried the following: AM>> > function addPrefix( $matches )

Re: [PHP] Q. Adding line numbers to highlighted source

2003-04-03 Thread Tom Rogers
Hi, Friday, April 4, 2003, 3:27:55 PM, you wrote: AM> I've been trying to add line-numbers to my source code, but can't seem to AM> work out how to do it. AM> As an example, I tried the following: AM> function addPrefix( $matches ) AM> { AM> static $line = 1; AM> return $line++ . $matc

[PHP] File Download?

2003-04-03 Thread b b
Hi, Why would the $daFile in the following code be resolved to "". I am passing it via the url. You are not autherized to view this page"); } ?> __ Do you Yahoo!? Yahoo! Platinum - Watch CBS' NCAA March Madness,

Re: [PHP] Q. Adding line numbers to highlighted source

2003-04-03 Thread Burhan Khalid
Alan McFarlane wrote: I've been trying to add line-numbers to my source code, but can't seem to work out how to do it. As an example, I tried the following: function addPrefix( $matches ) { static $line = 1; return $line++ . $matches[0]; } $url = split("\?", $_GET['url']); $source = high

[PHP] Q. Adding line numbers to highlighted source

2003-04-03 Thread Alan McFarlane
I've been trying to add line-numbers to my source code, but can't seem to work out how to do it. As an example, I tried the following: `U", "addPrefix", $source); echo $source; ?> which is called whenever the use user on a link like Show Source The problem is that my regex does not correcly m

Re: [PHP] RE: newbie Dynamic Drop down lists using mysql

2003-04-03 Thread Sebastian
This is how i make my drop downs, see if this help... echo " show all"; $results = @mysql_query("SELECT * FROM table"); while($row = mysql_fetch_row($result)) { echo "$row[0]"; } echo ""; cheers, - Sebastian -Original Message-

[PHP] Re: Need Reply About BBS

2003-04-03 Thread Daniel Leighton
Below is a link to a list of PHP-based discussion boards. I'm sure they'll be plenty with the features you are looking for. After looking at several, I decided to go with Invision Power Board which seems to be quite good so far. http://www.hotscripts.com/PHP/Scripts_and_Programs/Discussion_Boa

RE: [PHP] RE: newbie Dynamic Drop down lists using mysql

2003-04-03 Thread Daevid Vincent
Not that this hasn't been coverd a million times already Bobby -- check the archives... function ListboxMatch($size, $name, $query, $matchtothis) { $items = 0; //echo "".$query.""; if ( $qry = mysql_query($query) )

Re: [PHP] command line

2003-04-03 Thread Leif K-Brooks
http://www.php.net/manual/en/ref.exec.php Randy Johnson wrote: What would be the syntax for executing a command line php script from the web. and is there way to check the staus of the script via the web ie is it stil running or not? Randy -- The above message is encrypted with double rot

RE: [PHP] magic quotes

2003-04-03 Thread John W. Holmes
> So, > > 1. turn ON runtime and gpc No, leave them off if your code runs fine without them. You'll save resources if you do the addslashes() yourself to only the fields that need it instead of everything. I see no reason at all to ever have runtime ON. It will escape data coming _from_ the datab

[PHP] command line

2003-04-03 Thread Randy Johnson
What would be the syntax for executing a command line php script from the web. and is there way to check the staus of the script via the web ie is it stil running or not? Randy -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Which PHP version is stable with apache 2.0.39

2003-04-03 Thread Rasmus Lerdorf
There isn't. On Fri, 4 Apr 2003, Jason Smith wrote: > Hi, > > Need some information as I cant seem to find it in the manual or online. > > We are running apache 2.0.39 on redhat 7.3 and would like to run PHP on > the same server. > I am having trouble finding out if there is a stable version that

RE: [PHP] Good Book?

2003-04-03 Thread Mantas Kriauciunas
Hey! Well, if you are totally beginer you can start like I did, but you can find better books out there. I used this one: http://search.barnesandnoble.com/textbooks/booksearch/isbninquiry.asp?us erid=2WGTOMAKH3&isbn=076153055X There is Second Edition allready, I haven't seen it, maybe that one is

RE: [PHP] no worky :|

2003-04-03 Thread John W. Holmes
> thanks for pointing that out yeah, you're right it was wrong, should > be > "UPDATE news_comments SET WHERE ..." > > since there was already a row. > > ... still can't get it to post to the database though. Then you still have an error in the query or your WHERE clause is not matching

RE: [PHP] HTTP or HTTPS

2003-04-03 Thread John W. Holmes
> anybody knows how to find out the connection type (http or httpS)? Tried > out > $HTTP_SERVER_VARS. $_SERVER['HTTPS'] will be set if it's over HTTPS. ---John W. Holmes... PHP Architect - A monthly magazine for PHP Professionals. Get your copy today. http://www.phparch.com/ -- PHP General M

RE: [PHP] PHP and Cookies

2003-04-03 Thread John W. Holmes
> I have a problem with php and cookies. I use the following line of code > to set a cookie to expire in one year: > > setcookie('gsp_email',$_POST['requiredsubEmail'],time()*60*60*24*365 > ,'/','',0); > > The idea is that the cookie will sit on the client for a year, so that a > visitor only ha

RE: [PHP] Creating Session Variables

2003-04-03 Thread John W. Holmes
> > No, $varname isn't created. You don't need it. You have a variable > called > > $_SESSION['varname'], just use that where ever you need it (even within > > functions). If register_globals is on, you should be using the > > session_register() method, anyhow, not the one above. > > I have regist

[PHP] Good Book?

2003-04-03 Thread Bob X
What is a good beginners book for PHP? I would like a little depth on security. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] File download

2003-04-03 Thread b b
Hi, Anybody knows the solution to the following: I am trying to force the download of a file called dadada.txt. I have a file named downloadFile.php It is invoked like this: dadada.txt However within the downloadFile.php the $daFile argument is empty. This is the file: You are not a

[PHP] Re: Need Reply About BBS

2003-04-03 Thread blade xtreme
I need help finding PHP bullitin board similar to: http://www.hardknox.com/discus/messages/1491/1491.html?1049330252 This one is cgi and I would like to have the same thing in php. Thanks Blade _ MSN 8 helps eliminate e-mail

Re: [PHP] Creating Session Variables

2003-04-03 Thread trlists
On 3 Apr 2003 CPT John W. Holmes wrote: > No, $varname isn't created. You don't need it. You have a variable called > $_SESSION['varname'], just use that where ever you need it (even within > functions). If register_globals is on, you should be using the > session_register() method, anyhow, not th

Re: [PHP] generate all permutations possible? (solved!)

2003-04-03 Thread michael geary
beautiful! This seems to do the trick. Thanks very much! -michael On Thursday, April 3, 2003, at 07:45 PM, Leif K-Brooks wrote: Try this (minimal testing, un-optimized): function permutations($letters,$num){ $last = str_repeat($letters{0},$num); $result = array(); while($last != str_rep

Re: [PHP] generate all permutations possible? (twist)

2003-04-03 Thread Leif K-Brooks
Try this (minimal testing, un-optimized): function permutations($letters,$num){ $last = str_repeat($letters{0},$num); $result = array(); while($last != str_repeat(lastchar($letters),$num)){ $result[] = $last; $last = char_add($letters,$last,$num-1); } $result[] = $last;

[PHP] PHP and Cookies

2003-04-03 Thread Scott Teglasi
Hi all, I have a problem with php and cookies. I use the following line of code to set a cookie to expire in one year: setcookie('gsp_email',$_POST['requiredsubEmail'],time()*60*60*24*365,'/','',0); The idea is that the cookie will sit on the client for a year, so that a visitor only ha

[PHP] Re: *****SPAM***** [PHP] REPLY NEEDED *****SPAM*****

2003-04-03 Thread Sebastian
can you not yell?! - Original Message - From: "PATRICK KOFI" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, April 04, 2003 5:28 AM Subject: *SPAM* [PHP] REPLY NEEDED *SPAM* | SPAM: Start SpamAssassin results -- | SPAM: T

Re: [PHP] HTTP or HTTPS

2003-04-03 Thread Alexander Weber
Hi Burhan, sorry but this tells me only HTTP/1.1 but not if the connection is secure or not. Alex "Burhan Khalid" <[EMAIL PROTECTED]> schrieb im Newsbeitrag news:[EMAIL PROTECTED] > Alexander Weber wrote: > > Hi! > > > > anybody knows how to find out the connection type (http or httpS)? Tried ou

Re: [PHP] REPLY NEEDED

2003-04-03 Thread Leif K-Brooks
Based on the information gathered about thousands of people, you believe they would all be in a position to help you? :) PATRICK KOFI wrote: BASED ON INFORMATION GATHERED ABOUT YOU, WE BELIEVE YOU WOULD BE IN A POSITION TO HELP US IN TRANSFERING THIS FUND (US$31.5M) INTO A SAFE ACCOUNT. IT HAS B

RE: [PHP] Which PHP version is stable with apache 2.0.39

2003-04-03 Thread Mark Douglas
Something you should note before diving into making PHP work with Apache 2.0.39 - Apache 2.0.45 was recently released, to address a DOS vulnerability in Apache2 on all platforms. You may want to upgrade (or have your system administrator upgrade) to Apache 2.0.45. A second note, when I went from 2

Re: [PHP] HTTP or HTTPS

2003-04-03 Thread Burhan Khalid
Alexander Weber wrote: Hi! anybody knows how to find out the connection type (http or httpS)? Tried out $HTTP_SERVER_VARS. Thanx a lot! Alex Try $_SERVER['SERVER_PROTOCOL'] -- Burhan Khalid phplist[at]meidomus[dot]com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

RE: [PHP] Which PHP version is stable with apache 2.0.39

2003-04-03 Thread Jason Smith
Jennifer, Thank you, I have followed that link previously and however find it somewhat confusing. ~These versions of PHP are compatible to Apache 2.0.40 and later. ~Note: Apache 2.0 SAPI-support started with PHP 4.2.0. PHP 4.2.3 its known ~to work in conjunction with Apache 2.0.39. Don't try t

Re: [PHP] REPLY NEEDED

2003-04-03 Thread Ernest E Vogelsinger
At 12:28 04.04.2003, PATRICK KOFI said: [snip] >STRICTLY CONFIDENTIAL > >WE ARE MEMBERS OF A SPECIAL COMMITTEE FOR BUDGET AND PLANNING OF THE >NIGERIAN NATIONAL PETROLEUM CORPORATION (NNPC). THIS COMMITTEE IS [snip]--

[PHP] RE: newbie Dynamic Drop down lists using mysql

2003-04-03 Thread Bobby Rahman
Hiya Im looking for any tutorials/snippets of code to show me how to code a dynamic drop down box/list in a php form. e.g a drop down menu of all current users (I assume this will need to connect to mysql db and select all usernames from table user and place in the menu. here what I have so

[PHP] HTTP or HTTPS

2003-04-03 Thread Alexander Weber
Hi! anybody knows how to find out the connection type (http or httpS)? Tried out $HTTP_SERVER_VARS. Thanx a lot! Alex -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] REPLY NEEDED

2003-04-03 Thread PATRICK KOFI
STRICTLY CONFIDENTIAL WE ARE MEMBERS OF A SPECIAL COMMITTEE FOR BUDGET AND PLANNING OF THE NIGERIAN NATIONAL PETROLEUM CORPORATION (NNPC). THIS COMMITTEE IS PRINCIPALLY CONCERNED WITH CONTRACT AWARDS AND APPROVAL. WITH OUR POSITIONS, WE HAVE SUCCESSFULLY SECURED FOR OURSELVES TH

Re: [PHP] generate all permutations possible? (twist)

2003-04-03 Thread michael geary
Hi guys, I appreciate your taking interest, but as I wrote, I am looking for a permutation algorithm, not specifically for all the hex colors. That was simply an example of a usage. Put another way, I want a function that I can do: echo generatePerms("abc",4); and it will return aaab aa

RE: [PHP] Which PHP version is stable with apache 2.0.39

2003-04-03 Thread Jennifer Goodie
http://www.php.net/manual/en/install.apache2.php > -Original Message- > From: Jason Smith [mailto:[EMAIL PROTECTED] > Sent: Thursday, April 03, 2003 5:22 PM > To: [EMAIL PROTECTED] > Subject: [PHP] Which PHP version is stable with apache 2.0.39 > > > Hi, > > Need some information as

[PHP] Which PHP version is stable with apache 2.0.39

2003-04-03 Thread Jason Smith
Hi, Need some information as I cant seem to find it in the manual or online. We are running apache 2.0.39 on redhat 7.3 and would like to run PHP on the same server. I am having trouble finding out if there is a stable version that runs with Apache 2.0.39 Any help appreciated Cheers jason

RE: [PHP] generate all permutations possible? (twist)

2003-04-03 Thread John Coggeshall
>I'm sure there's a function for outputting a number in hex. $number = 1234; Printf("Hexadecimal number: 0x%X", $number); Output: Hexadecimal number: 0x4D2 John -~=~--~=~--~=~--~=~--~=~--~=~--~=~--~=~--~=~--~=~--~=~--~=~--~=~--~=~- John Coggeshall john at coggeshall dot org

Re: [PHP] generate all permutations possible? (twist)

2003-04-03 Thread Barry Gould
just count from 0 to FF in HEX or count from 0 to 16777216 and print each output in HEX I'm sure there's a function for outputting a number in hex. of course, displaying 16million numbers to the browser will be time consuming, to say the least. :P Barry At 03:59 PM 4/3/2003, you wrote: Hi Fo

Re: [PHP] Re: httpd.conf - php entry?

2003-04-03 Thread Burhan Khalid
Ryan Vennell wrote: h ok i did a searh in it and found no reference to php. is there anywhere else i would find a place in apache settings that would be telling it where to find php? Thanks -Ryan I don't know why you are looking for a reference to PHP in the httpd.conf -- the only thing

[PHP] generate all permutations possible? (twist)

2003-04-03 Thread michael geary
Hi Folks, I'm struggling with a permutation problem. I want to take a set of characters (for example "012345678ABCDEF") and generate all permutations of length N, allowing characters to be repeated. For example, I could use this algorithm to generate all HTML hex colors by passing: generatePe

[PHP] Re: Creating Session Variables

2003-04-03 Thread nooper
If you dont have register globals on, but find it convenient to access $varname instead of $_SESSION['varname'], you can extract($_SESSION), thought that has potential for other name conflicts and confusion, so be careful if you use extract(); "Tom Rawson" <[EMAIL PROTECTED]> wrote in message news

[PHP] PHP 4.3.1 Compiliation - RHL9

2003-04-03 Thread Michael Smith
Hi, I'm trying to compile PHP 4.3.1 on a RedHat 9 machine. I get the following error: checking return type of qsort... void configure: error: Cannot find header files under /usr when using the following configure script: ./configure --program-prefix= --prefix=/usr --exec-prefix=/usr --bindir=/

Re: [PHP] no worky :|

2003-04-03 Thread Sebastian
haha, good one! Funny, I have a bad habbit of using "ugh". cheers, - Sebastian - Original Message - From: "Hugh Danaher" <[EMAIL PROTECTED]> | The name's not ugh it's Hugh ; ) | - Original Message - | From: "Sebastian" <[EMAIL PROTECTED]> | > ugh, just when you posted th

Re: [PHP] no worky :|

2003-04-03 Thread Sebastian
ugh, just when you posted that I got it figured it out! I needed a hidden value like you said! Thanks! cheers, - Sebastian - Original Message - From: "Hugh Danaher" <[EMAIL PROTECTED]> To: "Sebastian" <[EMAIL PROTECTED]> Sent: Thursday, April 03, 2003 6:24 PM Subject: Re: [PHP] no wor

RE: [PHP] excel 2 csv 2 mysql

2003-04-03 Thread Dan Rossi
yes i hope it comes handy , i'm stoked i found it, the import works perfect i simply upload the xls file str8 into mysql :D or u can play around with the csv data using getcsv() -Original Message- From: jon roig [mailto:[EMAIL PROTECTED] Sent: Friday, April 04, 2003 4:13 AM To: [EMAIL PROT

RE: [PHP] no worky :|

2003-04-03 Thread Jennifer Goodie
Since you are using a database abstraction layer, I do not know what type of database you are using, but if your object has debugging, why don't you turn it on and see if the database is throwing up an error. If it does not have debugging, I would suggest printing out the query instead of trying t

[PHP] Memory problem...

2003-04-03 Thread Leif K-Brooks
I've posted this before, but still haven't been able to solve it. Often, users will get "Fatal error: Allowed memory size of 15728640 bytes exhausted (tried to allocate 86460 bytes) in Unknown on line 0". I'm not doing anything very memory-intensive, and this sometimes does mention a specific l

Re: [PHP] Usort

2003-04-03 Thread Jonathan Pitcher
Thank you. I now have it working and it makes sense. Jonathan On Thursday, April 3, 2003, at 04:26 PM, Ernest E Vogelsinger wrote: [snip] The compare callback is expected to return anything < 0 if the first value is less than the second (should sort _be

[PHP] Re: httpd.conf - php entry?

2003-04-03 Thread Ryan Vennell
h ok i did a searh in it and found no reference to php. is there anywhere else i would find a place in apache settings that would be telling it where to find php? Thanks -Ryan >>> Ryan Vennell<[EMAIL PROTECTED]> 04/03/03 03:29PM >>> my other post seems to be getting a ways down, so i'm p

Re: [PHP] directory size?

2003-04-03 Thread Ernest E Vogelsinger
At 00:40 04.04.2003, Mantas Kriauciunas said: [snip] >Hey >I looked up in the manual but found only >Disk_total_space >Disk_free_space > >Is there anything like total_space for directory? >Or I will have to think of something else? >Like counting every file

[PHP] Re: directory size?

2003-04-03 Thread Philip Hallstrom
If you are on unix take a look at the "du" command. On Thu, 3 Apr 2003, Mantas Kriauciunas wrote: > Hey > I looked up in the manual but found only > Disk_total_space > Disk_free_space > > Is there anything like total_space for directory? > Or I will have to think of something else? > Like countin

[PHP] directory size?

2003-04-03 Thread Mantas Kriauciunas
Hey I looked up in the manual but found only Disk_total_space Disk_free_space Is there anything like total_space for directory? Or I will have to think of something else? Like counting every file size and adding it to total. But if there is like 1000 files with directories in the main directory.

Re: [PHP] no worky :|

2003-04-03 Thread Sebastian
thanks for pointing that out yeah, you're right it was wrong, should be "UPDATE news_comments SET WHERE ..." since there was already a row. ... still can't get it to post to the database though. cheers, - Sebastian - Original Message - From: "Jennifer Goodie" <[EMAIL PROTECTED

[PHP] httpd.conf - php entry?

2003-04-03 Thread Ryan Vennell
my other post seems to be getting a ways down, so i'm posting this up top. where in the httpd.conf can i find the directory entry for PHP? i cant seem to find it anywhere in there and i need to change it. thanks for any help. -Ryan -- PHP General Mailing List (http://www.php.net/) To unsubs

Re: [PHP] Usort

2003-04-03 Thread Ernest E Vogelsinger
At 23:53 03.04.2003, Jonathan Pitcher said: [snip] >This email is long I apologize for that. It is my code and then what >it returns and what I am wanting it to return. I don't think I >understand how USORT works or even if I am using the right function f

Re: [PHP] Ok, problem found, but that makes way for another...

2003-04-03 Thread Ryan Vennell
ok, now where in that heck can i find the php entry in that file? i cant seem to find it anywhere. would it be with the CGI entry or in a different place? >>> Marek Kilimajer<[EMAIL PROTECTED]> 04/03/03 04:37AM >>> The old installation is likely in /usr, and you installed in /usr/local. Simply

RE: [PHP] no worky :|

2003-04-03 Thread Jennifer Goodie
Have you checked to make sure your query works, the syntax looks really odd. I've never seen INSERT ... WHERE > -Original Message- > From: Sebastian [mailto:[EMAIL PROTECTED] > Sent: Thursday, April 03, 2003 2:20 PM > To: php list > Subject: [PHP] no worky :| > > > Hello, > > This form is

[PHP] no worky :|

2003-04-03 Thread Sebastian
Hello, This form is really giving me a fight. I am connected to the database, yet it won't submit, Is the form and $_POST's Okay? echo " reason: "; if($_POST[reason]) { $result = $db->sql("INSERT INTO comments (reported, reportedby, reason) VALUES ('1', '$username'

Re: [PHP] PHP Email Attachment problem

2003-04-03 Thread Michael Arena
Made some progress today. Found an attachment script in the archives. I was able to send an email attachment if it was already on the server. now i just need the file to come from a form instead of already being on the server but that's not working yet. HTML form code to submit file user want

[PHP] Usort

2003-04-03 Thread Jonathan Pitcher
This email is long I apologize for that. It is my code and then what it returns and what I am wanting it to return. I don't think I understand how USORT works or even if I am using the right function for what I am looking for. Thanks in advance for your help Jonathan Pitcher ###

Re: [PHP] 4.3.1 sessions not expiring / garbage collection not working

2003-04-03 Thread Barry Gould
At 01:36 PM 4/3/2003, Ernest Vogelsinger wrote: At 23:25 03.04.2003, Barry Gould said: [snip] >Following some documentation I found somewhere on php.net, I have the >permissions on /tmp/php equal to 310: > >ls -l /tmp >d-wx--x---2 apache apache 174

Re: [PHP] 4.3.1 sessions not expiring / garbage collection not working

2003-04-03 Thread Ernest E Vogelsinger
At 23:25 03.04.2003, Barry Gould said: [snip] >Following some documentation I found somewhere on php.net, I have the >permissions on /tmp/php equal to 310: > >ls -l /tmp >d-wx--x---2 apache apache 17408 Apr 3 11:14 php Check the umask of the apa

[PHP] 4.3.1 sessions not expiring / garbage collection not working

2003-04-03 Thread Barry Gould
Hi, I'm having a problem where session files are not expiring or getting deleted. I'm running RedHat 7.3 (which normally expires sessions fine). I removed the RedHat PHP packages (rpm -e), and compiled and installed PHP 4.3.1 from source. './configure' '--with-mysql' '--with-gd' '--with-zlib-d

Re: [PHP] datetime

2003-04-03 Thread Sara Golemon
'g' is 12-hour format, 'H' is 24 hour (with leading 0) date("Y-m-d H:i:s",$date); "Sebastian" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > $date = date("Y-m-d g:i:s", $date); > echo $date; > > cheers, > - Sebastian > > -Original Message- > From: Tim Haskins [mailto:[EMA

Re: [PHP] datetime

2003-04-03 Thread Sebastian
$date = date("Y-m-d g:i:s", $date); echo $date; cheers, - Sebastian -Original Message- From: Tim Haskins [mailto:[EMAIL PROTECTED] > How does one retrieve the date and time off a server in the following > format? > > 2003-04-03 11:11:38 -- PHP General Mailing List (http://www.php.

RE: [PHP] Submit Image Button

2003-04-03 Thread Daevid Vincent
Anyone know if this annoying behaviour will ever be 'fixed' in future HTML specs? I can't believe what a glaring oversight this is that the 'value' doesn't get GET/POSTED like with a normal 'submit' button... WTF were they thinking? -- PHP General Mailing List (http://www.php.net/) To unsubscrib

Re: [PHP] Problem with PHP and MySQl after install

2003-04-03 Thread Barry Gould
Yes, the RPM you need in RedHat for php with mysql is called php-mysql. It is a replacement for the php rpm Also, if you install them both (i.e. rpm -Uvh php*) you may not get the correct php.ini file. At 12:39 PM 4/3/2003, you wrote: Don wrote: Further to this point, I've just read that RedHat

Re: [PHP] Problem with PHP and MySQl after install

2003-04-03 Thread Chris Hewitt
Don wrote: Further to this point, I've just read that RedHat installed PHP RPM's do not come with MySQL support. Now I've d/l the latest stable version form php.net, version 4.3.1 but I still cannot get MySQL support after compiling and installing. I think that there is more than one rpm. If you

Re: [PHP] chill out

2003-04-03 Thread CPT John W. Holmes
> just like to add something here, (which i recmended before) > there should be a automated way to email all the new users about what php > is, that explain them that php is server side and it can't do client side, > just a plain email will do this will certinaly minimize the no of off topic > post

Re: [PHP] chill out

2003-04-03 Thread Haseeb Iqbal
hi all, just like to add something here, (which i recmended before) there should be a automated way to email all the new users about what php is, that explain them that php is server side and it can't do client side, just a plain email will do this will certinaly minimize the no of off topic posts,

Re: [PHP] Creating Session Variables

2003-04-03 Thread CPT John W. Holmes
> Consider this: > > function foo() { > $_SESSION['varname'] = "test"; > . > } > > At this point: > > - Can I reference $varname inside the function? If so, must it be > declared global first? Or can I only reference it via > $_SESSION['varname']? > > - Can I reference it outside the function

Re: [PHP] Creating Session Variables

2003-04-03 Thread Jason Wong
On Friday 04 April 2003 03:47, Tom Rawson wrote: > Hmmm, this doesn't seem clear in the docs ... > > Consider this: > > function foo() { > $_SESSION['varname'] = "test"; > . > } > > At this point: > > - Can I reference $varname inside the function? If so

RE: [PHP] Problem connecting to POP3 accounts

2003-04-03 Thread Danny Shepherd
Try: $strMailServer = "{domain.co.uk:110/pop3}INBOX"; As per the manual. HTH Danny. -Original Message- From: Alec Wallis [mailto:[EMAIL PROTECTED] Sent: 03 April 2003 18:35 To: [EMAIL PROTECTED] Hi I am currently experiencing some problems connecting to POP3 accounts using imap_open

[PHP] Problem connecting to POP3 accounts

2003-04-03 Thread Alec Wallis
Hi I am currently experiencing some problems connecting to POP3 accounts using imap_open. I am using the following code: $ArrayImap = imap_open ($strMailServer, $strUsername, $strPassword); with the mail server being set to: $strMailServer = "{domain.co.uk/pop3:110}INBOX"; It seems to connect

RE: [PHP] datetime

2003-04-03 Thread Matt Schroebel
> -Original Message- > From: Tim Haskins [mailto:[EMAIL PROTECTED] > Sent: Thursday, April 03, 2003 2:45 PM > To: [EMAIL PROTECTED] > Subject: [PHP] datetime > > > How does one retrieve the date and time off a server in the following > format? > > 2003-04-03 11:11:38 Plenty of example

[PHP] PHP with PDFlib installation on windows

2003-04-03 Thread Bill Hudspeth
Hello, I am having problems getting the PDF extension to work with PHP on Windows. I am running PHP 4.2.3 on Windows NT 4.0 using IIS as my internet server. I have enabled the PDF extension in the php.ini file, with no apparent success. When I try to load the page, I get an empty screen (i.e., n

[PHP] Creating Session Variables

2003-04-03 Thread Tom Rawson
Hmmm, this doesn't seem clear in the docs ... Consider this: function foo() { $_SESSION['varname'] = "test"; . } At this point: - Can I reference $varname inside the function? If so, must it be declared global first? Or can I only reference

[PHP] datetime

2003-04-03 Thread Tim Haskins
How does one retrieve the date and time off a server in the following format? 2003-04-03 11:11:38 I've read much on date and time regarding php and mysql but could not figure out the above format...please help -- Tim Haskins -- PHP General Mailing List (http://www.php.net/) To unsubscribe,

[PHP] imap mail() problems

2003-04-03 Thread Alec Wallis
Hi I am experiencing problems with the mail functions, in that I can not send emails to multiple addresses in the to field, or send Cc's. The multiple addresses show up in the email when it arrives to the first email address, but the other copies never arrive. The code I use is: mail($strTo,

Re: [PHP] chill out

2003-04-03 Thread bob parker
On Thu, 3 Apr 2003 16:39, daniel wrote: > lol , hey boyz and galz lets be professional now, we cant show the windoze > ppl we are such a loose bunch now can we ? heh :D > Actually a lot of these folk are using wonders sadly. Bob -- PHP General Mailing List (http://www.php.net/) To unsubscribe, vi

RE: [PHP] uploading entire directory, with or without compression ...

2003-04-03 Thread Dan Rossi
i have looked into this , and the browser is only limited to single file uploads , but yes a a java applet is prob the best options, i am considering on learning java as it is similar to php OO or maybe the other way round, it looks familiar so maye i can get my hed around it :D, maye there is an o

RE: [PHP] chill out

2003-04-03 Thread daniel
lol , hey boyz and galz lets be professional now, we cant show the windoze ppl we are such a loose bunch now can we ? heh :D >= Original Message From Kevin Waterson <[EMAIL PROTECTED]> = >This one time, at band camp, ><[EMAIL PROTECTED]> wrote: > >> We subscribe to a few email lists on va

RE: [PHP] excel 2 csv 2 mysql

2003-04-03 Thread jon roig
Pretty cool, man... I actually didn't know about xls2csv. Learn something new every day -- this'll certainly come in handy. 'Course, it's not exactly standard with most distributions. For anyone looking for it, you can download it here: http://www.45.free.net/~vitus/ice/catdoc/ Or, depending on

Re: [PHP] chill out

2003-04-03 Thread Steve Keller
At 4/3/2003 01:14 PM, [EMAIL PROTECTED] wrote: > We subscribe to a few email lists on various languages. Why do people assume that because they subscribe to a mailing list with their work address that the mailing list must hold to their company's standards? > This list would have to be the wor

[PHP] circumventing SAFE MODE Restriction

2003-04-03 Thread Henry Grech-Cini
Hi All, I want to get a list of files in my own sub-directory from where my .php file is. If I use dir(".") then I can list the file in the current directory BUT If I use dir("./subdirectory") or dir("subdirectory") I get the following error: Warning: SAFE MODE Restriction in effect. The script

RE: [PHP] php 3 to 4.3

2003-04-03 Thread Philip Olson
On Wed, 2 Apr 2003, daniel wrote: > if u need it to work for both versions use $HTTP_POST_VARS instead Keep in mind that the deprecated PHP directive track_vars must be on for $HTTP_*_VARS type variables to exist in PHP versions prior to 4.0.3 Regards, Philip -- PHP General Mailing List (http

Re: [PHP] Problem with PHP and MySQl after install

2003-04-03 Thread Jason Wong
On Thursday 03 April 2003 23:31, Don wrote: > Hmmm...well the php libraries indicate that it is PHP 4 which is what I had > originally (upgraded from 4.1.x to 4.3.1). I did use the > "i386-redhat'linux" configuration option. > > I am using the "--with-mysql=shared/usr" option. Following your poin

Re: [PHP] PHP Email Attachment problem

2003-04-03 Thread Jason Wong
On Thursday 03 April 2003 22:30, Michael Arena wrote: > I just checked the directory that I specified for temporary uploads > (/tmpuploads) and there is nothing there which leads me to believe the file > isn't getting uploaded. I'm not sure *how* you're checking that there's nothing there but pl

Re: [PHP] Apache SetHandler

2003-04-03 Thread Erwin Kerk
Zoff wrote: Hi Guys! ich have a question with apache and mod_perl I can write a Handler in perl which is called before anything else happens. this allows me to write all sorts of auth stuff. is there something similar in PHP. There is a topic in the php manual which describes something similar

RE: [PHP] RE: [newbie] embed php in html file

2003-04-03 Thread Matt Schroebel
> -Original Message- > From: Bobby Rahman [mailto:[EMAIL PROTECTED] > Sent: Thursday, April 03, 2003 11:25 AM > To: [EMAIL PROTECTED] > Subject: [PHP] RE: [newbie] embed php in html file > > I have a header.php : > session_start(); > echo " color=\"red\"size=\"3\">Logged in as: > ".$_SE

Re: [PHP] Apache SetHandler

2003-04-03 Thread Jason Wong
On Thursday 03 April 2003 22:38, Zoff wrote: > that's not what I want. > I want something where all the POST and GET data gets passed thru > transparently. and where I can serve static and dynamic pages as well. > mod_perl can do this. In that case I really have no idea what you want. Could you g

  1   2   >