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

[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 form name=\sendform\ action=\report.php\ method=\post\ reason: br textarea name=\reason\ cols=\50\ rows=\3\/textarea br/br/ input

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 really

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 remove

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 for

[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

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

[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 counting every

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 size

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

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

[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

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

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

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! input type=\hidden\ name=\comment\ value=\$_GET[comment]\ Thanks! cheers, - Sebastian - Original Message - From: Hugh Danaher [EMAIL PROTECTED] To: Sebastian [EMAIL PROTECTED] Sent:

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 that I got

[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

[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

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

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

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

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

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

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

[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

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

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

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

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

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

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 out

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

[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

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

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

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 the

[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

[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: a href=downloadFile.php?daFile=path/dadada.txtdadada.txt/a However within the downloadFile.php the $daFile

[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

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 register_globals

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

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

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] 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=2WGTOMAKH3isbn=076153055X There is Second Edition allready, I haven't seen it, maybe that one is

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 runs

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

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

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 BR.$query.BR; if ( $qry = mysql_query($query) )

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

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 form action=\page.php\ method=\get\ select name=\category\ option value=\-1\show all; $results = @mysql_query(SELECT * FROM table); while($row = mysql_fetch_row($result)) { echo option

[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: ?php function addPrefix( $matches ) { static $line = 1; return $line++ . $matches[0]; } $url = split(\?, $_GET['url']); $source =

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: ?php function addPrefix( $matches ) { static $line = 1; return $line++ . $matches[0]; } $url = split(\?, $_GET['url']); $source =

[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. ? session_start(); if($_SESSION['isValidSession'] == 'Y'){ $daFile = $_GET['daFile']; $size=filesize($daFile);

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 ?php AM function addPrefix( $matches ) AM { AM static $line = 1; AM return $line++ .

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 ?php AM function addPrefix( $matches )

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

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

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 not

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

Re: [PHP] File Download?

2003-04-03 Thread b b
It would be: a href=downloadFile.php?daFile=path/fileNamepath/fileName/a 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

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 CONTRACT

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

2003-04-03 Thread Mat Harris
On Thu, Apr 03, 2003 at 01:20:01 +0800, Jason Wong wrote: On Thursday 03 April 2003 11:14, [EMAIL PROTECTED] wrote: We subscribe to a few email lists on various languages. This list would have to be the worst for anyone learning - the amount of sarcasm and flaming that goes on is huge.

Re: [PHP] magic quotes

2003-04-03 Thread Leif K-Brooks
That's exactly what magic_quotes_runtime does. It adds slashes to data at runtime - including data returned from functions such as mysql_fetch_(assoc/row/array/object). Justin French wrote: Hi all, Can I just have a quick head check on magic quotes runtime (gpc)? I have them both set to

[PHP] space

2003-04-03 Thread Diksha Neel
hi all! in an html file thru a php script, i have to put in some data. i am using variable $string to write the data as under. what i want to know is how can i ensure that the value of $badd1 and $area get written on different lines. in other words, i want to know how to use '\n' here. thanks,

Re: [PHP] magic quotes

2003-04-03 Thread Chris Hewitt
Justin French wrote: Hi all, Can I just have a quick head check on magic quotes runtime (gpc)? I have them both set to Off currently, and my pages work fine. However, when I set them to on, I end up with slashes throughout the mysql data. Is this the expected behaviour? Seems

Re: [PHP] space

2003-04-03 Thread Leif K-Brooks
The manual is your friend! :) www.php.net/nl2br Diksha Neel wrote: hi all! in an html file thru a php script, i have to put in some data. i am using variable $string to write the data as under. what i want to know is how can i ensure that the value of $badd1 and $area get written on different

Re: [PHP] magic quotes

2003-04-03 Thread Justin French
Hi Philip, Thanks for taking the time... $me = confused; ...but rather than attempting to get a grip on the past, I need a solution for the future :) So, 1. turn ON runtime and gpc 2. only addslashes() when inserting into the database IF get_magic_quotes_runtime() is 0 (false) 3. only

[PHP] @getimagesize

2003-04-03 Thread Diana Castillo
even though I use a @getimagesize , I still get the following Warning when the image is not on the server. I need to somehow not have the warning come out when there is no image there. Warning: getimagesize(http://www.hotelresb2b.com/planos/PLHAHC019330.GIF) [function.getimagesize]: failed to

RE: [PHP] @getimagesize

2003-04-03 Thread Niklas Lampén
Check if file exists with file_exists(). Niklas -Original Message- From: Diana Castillo [mailto:[EMAIL PROTECTED] Sent: 3. huhtikuuta 2003 11:42 To: [EMAIL PROTECTED] Subject: [PHP] @getimagesize even though I use a @getimagesize , I still get the following Warning when the image is

RE: [PHP] Can php run as a script?

2003-04-03 Thread John Coggeshall
Note that any errors will be chucked back to the terminal in HTML. Only if you are using the CGI version of PHP. The CLI version prints errors, etc without HTML. John -~=~--~=~--~=~--~=~--~=~--~=~--~=~--~=~--~=~--~=~--~=~--~=~--~=~--~=~- John Coggeshall john at coggeshall dot org

[PHP] Apache SetHandler

2003-04-03 Thread Zoff
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. e.g.: in httpd.conf Directory /foobar SetHandler MyFoo.php /Directory this would

Re: [PHP] Apache SetHandler

2003-04-03 Thread Jason Wong
On Thursday 03 April 2003 17:06, Zoff wrote: 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. e.g.: in httpd.conf Directory /foobar

[PHP] sql: unable to save result set

2003-04-03 Thread Johannes Esteban Kalunka
Hi! since upgrading my mysql server from 3.23.xx to 4.0.12 the following error appears on all my php pages (that make use mysql, of course): php version used : 4.1.2   Warning: MySQL: Unable to save result set in ...   does anybody know why?   thanks in advance for any hints!   Johannes E Kalunka

[PHP] Re: *Umlauts/UTF-8

2003-04-03 Thread Alexey Lysenkov
Please, anybody? I'm really stuck with this. Please, help, if you know the solution. -Alex -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

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

2003-04-03 Thread Marek Kilimajer
The old installation is likely in /usr, and you installed in /usr/local. Simply remove the old installation (man rm ;-) and change httpd.conf to look for php in the new place Ryan Vennell wrote: ok, my last post stated that i've tried reconfigureing.making/makeinstalling php 4.3.1 a tons of

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

2003-04-03 Thread David T-G
Kenn -- ...and then Kenn Murrah said... % % i was afraid you were gonna say that, jason ... but i was hoping i had % overlooked something ... Yeah. I went the same route on the list a while back. Check the archives :-) % % anyway, thanks for your response ... i'm familiar enough with your

Re: [PHP] @getimagesize

2003-04-03 Thread Diana Castillo
according to the documentation on php.net , This function will not work on remote files; the file to be examined must be accessible via the server's filesystem. so it wont work for http Niklas lampén [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Check if file exists with

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

2003-04-03 Thread Awlad Hussain
I found this link that has a stand alone java application that will allow to to upload a folder... if that what you want? or you want it to be embedded in your webpage? http://support.softartisans.com/docs/JFile/prog_g_recursive.htm hope you find it useful -awlad - Original Message -

Re: [PHP] *Umlauts/UTF-8

2003-04-03 Thread Marek Kilimajer
Where do you get the ?'s and squares? In the browser? Did you specify encoding? Alexey Lysenkov wrote: Hello, I am having a problem with umlauts in utf-8 encoded txt file, which is being read by my script. Instead of umlauts I get ? or squares or anything else, but not those umlauts. What is

Re: [PHP] *Umlauts/UTF-8

2003-04-03 Thread Alexey Lysenkov
I have the junk showing up in my browser (Moz 1.3 / IE5.5 on Win2K) Strangely enough it happens only on one page - another page, containing even more text, shows all umlauts alright. I don't knwo where the problem is. :-/ Txt file self?... Alex Marek Kilimajer wrote: Where do you get the ?'s

RE: [PHP] Re: *Umlauts/UTF-8

2003-04-03 Thread nospam
Hi Alexey I can't tell about Cyrillic, but for Umlauts : When you write the Text-Files, you can try to encode them an entities. I stole the following function somewhere : function encodemymail($txt) { for ($i = 0; $i strlen($txt); $i++) { $ent .= # . ord(substr($txt, $i, 1)) . ;;

[PHP] Re: *Umlauts/UTF-8

2003-04-03 Thread Alexey Lysenkov
Sorry for disturbing. That was fault - the txt file was not properly encoded. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] tets

2003-04-03 Thread Craig
test -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] MSSQL using Sybase FreeTDS

2003-04-03 Thread Craig
Hey all, Im hoping someone can shed some light on this for me: Im running PHP 4.31 on RH Advanced Server 2.1 I am connecting, to M$SQL Server 2000 using FreeTDS -- with Sybase support, and Im stumped on 1 thing: CODE:

Re: [PHP] MSSQL using Sybase FreeTDS

2003-04-03 Thread Jyry Kuukkanen
On Thu, 3 Apr 2003, Craig wrote: Hey all, Im hoping someone can shed some light on this for me: Im running PHP 4.31 on RH Advanced Server 2.1 I am connecting, to M$SQL Server 2000 using FreeTDS -- with Sybase support, and Im stumped on 1 thing: CODE:

Re: [PHP] newbie2

2003-04-03 Thread Marek Kilimajer
You need to restart http server, php is loaded usually as module. For apache on unix: apachectl restart or /etc/init.d/httpd restart on windows close the apache console and start apache again Ilyas wrote: It is an online shop : oscommerce How can I restart Php? Any ideas??? Ilyas At 06:42

[PHP] Re: Database Question

2003-04-03 Thread José Pereira
I Posted this and no one has helpedis this possible to get working or do I have to do it differently?? Thanks in advance José Pereira [EMAIL PROTECTED] escreveu na mensagem news:[EMAIL PROTECTED] Hi all, I'm trying to grab information from two DBs one being a mamber db and the other a

Re: [PHP] MSSQL using Sybase FreeTDS

2003-04-03 Thread Lowell Allen
From: Craig [EMAIL PROTECTED] Im running PHP 4.31 on RH Advanced Server 2.1 I am connecting, to M$SQL Server 2000 using FreeTDS -- with Sybase support, and Im stumped on 1 thing: [snip] The above code works fine, except when one of the fields e.g client_name - Has a quoted string or

[PHP] RE: xml parse error?

2003-04-03 Thread SLanger
I might be mistaken but what you are getting is the normalized whitespaces inbetween your nodes, which is considered to be their content. Example: ... test test2/ /test Will return the following dom: test | --- / |

Re: [PHP] Re: Database Question

2003-04-03 Thread Marek Kilimajer
What is the problem? You need to be more clear about it, especially you did not tell anything about the tables, how they are related and what they contain José Pereira wrote: I Posted this and no one has helpedis this possible to get working or do I have to do it differently?? Thanks in

[PHP] Ximian Mail on PHP

2003-04-03 Thread Chris Blake
Greetings learned PHP(eople), I want to create a PHP page that can pull all the messages from my PHP-list inbox, and display them on the local intranet. There are a few users who use PHP and I want to create a system where they simply log into the intranet, and view the messages with related

RE: [PHP] PHP Email Attachment problem

2003-04-03 Thread Steve Jackson
I also had a similar problem and it was simply because the directory holding the attachment didn't have permission to send the attachment, so check the permissions on the directory. Once I changed it it sends fine. Cheers, Steve Jackson Web Developer Viola Systems Ltd. http://www.violasystems.com

  1   2   >